Hi all, I have two EAR files. EAR isolation and CallByValue is enabled in ear-deployer.xml and JNDI CallByValue is enabled in naming-service.xml
I dependency inject via the @EJB annotation one stateless session bean from the first EAR into a message driven bean in the second EAR. When I call the dependency injected bean I get a ClassCastException for the argument passed into the method. The argument is a class contained in both of the EARs. The stack trace is below. What am I doing wrong here? I have CallByValue enabled for the EAR deployer and for JNDI. The bean from the first EAR declares a @Remote inteface. I have tried it with and without an @Local interface and it still doesn't work. I am using JBoss 4.0.3_SP1 with EJB3 RC3. | 18:53:55,586 ERROR [MDB] Exception in JMSCI message listener | javax.ejb.EJBTransactionRolledbackException: null; CausedByException is: | com.genologics.platform.behaviourmanagement.commands.GenericCommandImpl | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:65) | at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:117) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:138) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) | at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:39) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) | at org.jboss.ejb3.mdb.MDB.localInvoke(MDB.java:716) | at org.jboss.ejb3.mdb.MDB$MessageListenerImpl.onMessage(MDB.java:912) | at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256) | at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904) | at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:160) | at org.jboss.mq.SpySession.run(SpySession.java:333) | at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180) | at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743) | at java.lang.Thread.run(Thread.java:595) | java.lang.ClassCastException: com.genologics.platform.behaviourmanagement.commands.GenericCommandImpl | at $Proxy82.execute(Unknown Source) | at com.genologics.automatedinformatics.server.MDBDataMessageListener.processDataMessage(MDBDataMessageListener.java:131) | at com.genologics.automatedinformatics.server.MDBDataMessageListener.onMessage(MDBDataMessageListener.java:95) | 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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:109) | at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:32) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) | at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:113) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:138) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) | at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:39) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) | at org.jboss.ejb3.mdb.MDB.localInvoke(MDB.java:716) | at org.jboss.ejb3.mdb.MDB$MessageListenerImpl.onMessage(MDB.java:912) | at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256) | at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904) | at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:160) | at org.jboss.mq.SpySession.run(SpySession.java:333) | at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180) | at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743) | at java.lang.Thread.run(Thread.java:595) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921097#3921097 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921097 ------------------------------------------------------- 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=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
