[JBoss-user] [EJB 3.0] - BUG ? : IllegalArgumentException occurred calling getter of

2006-01-17 Thread chelaru.viorel
hi all, 
i'm a newbie with problems in cascade; my last problem is : in a schedulable i 
lookup a stateless bean and i start some threads; i pass the stateless bean 
reference to the thread throught the constructor of the thread; when i call a 
function of the stateless witch want to persist the entity bean with the 
EntityManager, i get an IllegalArgumentException occurred calling getter of 
vc.ejb.rss.persistence.RssItemBean.id . 

i use jboss4.0.3SP1, and ejb3.0 of course. 
it's the first time encounter this problem.this is strange because 
persisting entities from the application work perfectly wellis it because i 
want to persist an entity from a thread, schedulable ? i found out that this i 
s because the stateless is not proxyiedit is deployed diretly in the deploy 
dir of jboss.but why the session beans deployed in the ear are proxied ? 
because they work perfectly..who's fault is it ? jboss's because doesn't 
proxy the session bean ? or mine ? 

thanks,
chelaru.viorel

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3917783#3917783

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3917783


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - IllegalArgumentException occurred calling getter

2006-01-16 Thread chelaru.viorel
hi all,
i'm a newbie with problems in cascade; my last problem is : in a schedulable i 
lookup a stateless bean and i start some threads; i pass the stateless bean 
reference to the thread throught the constructor of the thread; when i call a 
function of the stateless witch want to persist the entity bean with the 
EntityManager, i get an IllegalArgumentException occurred calling getter  of 
vc.ejb.rss.persistence.RssItemBean.id .

i use jboss4.0.3SP1, and ejb3.0 of course.
it's the first time encounter this problem.this is strange because 
persisting entities from the application work perfectly wellis it because i 
want to persist an entity from a thread, schedulable ? i don't know...just 
saying

thanks
chelaru.viorel

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3917723#3917723

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3917723


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: IllegalArgumentException occurred calling getter

2006-01-16 Thread chelaru.viorel
i found out that this is happening because the class is not proxied.but why 
the session beans of the .ejb3 jar deployed in my ear are proxied and the .ejb3 
jar deployed directly in the deploy directory of jboss is not proxiedhow 
can i proxy it ???

please help,
chelaru.viorel

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3917735#3917735

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3917735


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: ids for this class must be manually assigned before call

2006-01-16 Thread chelaru.viorel
yes, i put auto and i setted manually...i solved the problem letting the AUTO 
and ignoring the id setter

thanks,
chelaru.viorel

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3917781#3917781

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3917781


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - no transaction is in progress in Schedulable

2006-01-15 Thread chelaru.viorel
hi all, 
i'm new in ejb, and i have a problem :

in a class where i implement interface Schedulable in the perform() method 
i write this code :
UserTransaction ut = (UserTransaction)initCtx.lookup(UserTransaction); 
ut.begin(); 
emi.persist(new RssItemBean());
ut.commit();

i got emi like this : 
EntityManagerFactory 
emf=Persistence.createEntityManagerFactory(em);emi=emf.getEntityManager();

and i get this exception :
 javax.persistence.TransactionRequiredException: no transaction is in progress
 at 
org.hibernate.ejb.AbstractEntityManagerImpl.checkTransactionActive(AbstractEntityManagerImpl.java:123)
 at 
org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:128)
 at 
services.schedulables.SchedulesForRssWorker.run(SchedulesForRssWorker.java:221)

and i know that this exception is thrown because i use the emi outside an 
persistence context but how can i get the persistence context ?

thanks,
chelaru.viorel

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3917515#3917515

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3917515


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Class Cast Exception with lookup

2006-01-15 Thread chelaru.viorel
hi,

i have exactly the same problem only my interface is named LoginInterface and i 
have a single .ejb3 jar that is sittuated in my ear directory outside the war 
directory and iu get ClassCastException:$Proxy81 .

i use jboss4.0.3SP1.

thanks,
chelaru.viorel

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3917527#3917527

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3917527


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Class Cast Exception with lookup

2006-01-15 Thread chelaru.viorel
same reply

thanks,
chelaru.viorel

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3917563#3917563

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3917563


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: get EntityManager problem in a Schedulable

2006-01-05 Thread chelaru.viorel
hi, 
i found out how to resolve this problem :
you have to write:
EntityManagerFactory emf=Persistence.createEntityManagerFactory(em);
emi=emf.getEntityManager();

BUT NOT IN THE CONSTRUCTOR OF THE SCHEDULABLE

thanks,
Viorel

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3915779#3915779

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3915779


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - get EntityManager problem in a Schedulable

2006-01-04 Thread chelaru.viorel
hi,

i'm trying to get the EntityManager em from a Schedulable like this :

EntityManagerFactory emf=Persistence.createEntityManagerFactory(em);
emi=emf.getEntityManager();

but i don't know where to put the persistence.xml to register em; i have 
another persisntence.xml witch is in the persistence.par file in my application 
,but now for scheduling i user -service.xml and hibernate.properties outside 
the application.

please help, 
Viorel

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3915528#3915528

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3915528


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - HANamingService (HAJNDI) AutomaticDiscovery start error

2005-11-14 Thread chelaru.viorel
hi,
i'am new with jboss (4.0.3SP1) and ejb3 and all this stuff. i'm learning and i 
got an error:

Failed to start AutomaticDiscovery
java.net.SocketException: error setting options
at java.net.PlainDatagramSocketImpl.join(Native Method)
at 
java.net.PlainDatagramSocketImpl.join(PlainDatagramSocketImpl.java:172)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:276) 
at 
org.jboss.ha.jndi.DetachedHANamingService$AutomaticDiscovery.start(DetachedHANamingService.java:495)
at 
org.jboss.ha.jndi.DetachedHANamingService.startService(DetachedHANamingService.java:332)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:428)
at org.jboss.system.ServiceController.start(ServiceController.java:446)
at org.jboss.system.ServiceController.start(ServiceController.java:446)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy6.deploy(Unknown Source)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:1
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at