9 Replies Latest reply: Feb 8, 2013 5:38 AM by Jean-Frederic Clere RSS

    Invalid invocation

    Giuseppe Pellegrino Newbie

      Hi all, I have an Error when I invoke an EJB's methods.

      The raised exception is this:

      13:35:58,160 ERROR [LogInterceptor] TransactionRolledbackException in method: public abstract de.danet.an.workflow.ejbs.WorkflowEngine de.danet.an.workflow.ejbs.WorkflowEngineHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException, causedBy:
      javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract de.danet.an.workflow.ejbs.WorkflowEngine de.danet.an.workflow.ejbs.WorkflowEngineHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionContainer.java:632)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:205)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:51)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:128)
      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:94)
      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
      at org.jboss.ejb.StatelessSessionContainer.internalInvokeHome(StatelessSessionContainer.java:319)
      at org.jboss.ejb.Container.invoke(Container.java:743)
      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:324)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:97)
      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90)
      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53)
      at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
      at $Proxy150.create(Unknown Source)
      at de.danet.an.workflow.ejbs.client.StandardWorkflowServiceFactory.newWorkflowService(StandardWorkflowServiceFactory.java:206)
      at com.bbk.evtmgr.ejbs.BbkCmdRcvBean.onMessage(BbkCmdRcvBean.java:156)
      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:324)
      at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:458)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
      at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:62)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
      at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:90)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
      at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:372)
      at org.jboss.ejb.Container.invoke(Container.java:723)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:914)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1208)
      at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:276)
      at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:871)
      at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159)
      at org.jboss.mq.SpySession.run(SpySession.java:347)
      at org.jboss.jms.asf.StdServerSession.run0(StdServerSession.java:200)
      at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
      at java.lang.Thread.run(Thread.java:534)
      13:35:58,160 INFO [STDOUT] [StandardWorkflowServiceFactory,ERROR] Invalid invocation, check your deployment packaging, method=public abstract de.danet.an.workflow.ejbs.WorkflowEngine de.danet.an.workflow.ejbs.WorkflowEngineHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException; nested exception is:
      javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract de.danet.an.workflow.ejbs.WorkflowEngine de.danet.an.workflow.ejbs.WorkflowEngineHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException
      javax.transaction.TransactionRolledbackException: Invalid invocation, check your deployment packaging, method=public abstract de.danet.an.workflow.ejbs.WorkflowEngine de.danet.an.workflow.ejbs.WorkflowEngineHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException;
      ...
      ...
      etc

      Why this exception is launch?

        • 1. Re: Invalid invocation
          Joan Horta  Tosas Novice

          Please provide WorkflowEngineHome and related classes to further know about your problem...

          • 2. Re: Invalid invocation
            Sunil Vishnu Newbie

            I have a similar problem:

            I just moved my application from JBoss 4.0.1SP1 to 4.0.3 and am seeing this error. Did not see this on 4.0.1SP ??!! Any clue why? or what needs to be done to make the application work on 4.0.3 ??

            I get this error:

            11:41:33,559 ERROR [LogInterceptor] EJBException in method: public abstract com.aqm.interfaces.UserLocal com.aqm.interfaces.UserLocalHome.findByUserNa
            me(java.lang.String,java.lang.String) throws javax.ejb.FinderException:
            javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract com.aqm.interfaces.UserLocal com.aqm.interfaces.Us
            erLocalHome.findByUserName(java.lang.String,java.lang.String) throws javax.ejb.FinderException

            11:41:33,559 INFO [STDOUT] Invalid invocation, check your deployment packaging, method=public abstract com.aqm.interfaces.UserLocal com.aqm.interface
            s.UserLocalHome.findByUserName(java.lang.String,java.lang.String) throws javax.ejb.FinderException

            • 4. Re: Invalid invocation
              Sunil Vishnu Newbie

              Great article and good explanation. But I am still not sure what I need to do to make my application work the way it was in 4.0.1SP1. Do I have to dismantle the JARS and WARS to separate common classes? I hope not as this would be impractical if the JARS are for 3rd party components.

              • 5. Re: Invalid invocation
                dromanyuk dromanyuk Newbie

                I have deployed a very easy EJB app and had the same error.
                SOLUTION: remove yourEJBname.jar from WAR archive.

                • 6. Re: Invalid invocation
                  Siddhartha Kapil Newbie

                  Hi, I am new to this community. I am facing problem when migrating my EJB's from JBoss4.2 to Jboss6.0. The EJB jars working fine in Jboss 4.2 but when same build is deployed on Jboss 6.0 Exception is coming. I have searched on the Internet communities and forums but didn't find solution for this.

                  Please help me as this is hampering my schedule here.

                  EJB jars deployed successfully on the server but error comes when I try to access my application.


                  Please find the error stacktrace below:

                   

                  SessionHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException:: javax.ejb.EJBExcept
                  ion: Invalid invocation, check your deployment packaging,
                  throws javax.ejb.CreateException,java.rmi.RemoteException
                          at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionC
                  ontainer.java:172) [:6.0.0.Final]
                          at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnect
                  ionInterceptor.java:187) [:6.0.0.Final]
                          at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInst
                  anceInterceptor.java:97) [:6.0.0.Final]
                          at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java
                  :56) [:6.0.0.Final]
                          at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125) [:
                  6.0.0.Final]
                          at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350) [:6
                  .0.0.Final]
                          at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:161) [:6.0.0.Fina
                  l]
                          at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:230) [:6.0.0.F
                  inal]
                          at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:205) [:6.0.
                  0.Final]
                          at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java
                  :99) [:6.0.0.Final]
                          at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invokeHome(PreSecurityInterceptor.j
                  ava:88) [:6.0.0.Final]
                          at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132) [:6.0.0.Final]
                          at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderIntercep
                  tor.java:107) [:6.0.0.Final]
                          at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:639) [:6.0.0.Fina
                  l]
                          at org.jboss.ejb.Container.invoke(Container.java:1089) [:6.0.0.Final]
                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0]
                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0]
                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1
                  .6.0]
                          at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0]
                          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0
                  .GA]
                          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]
                          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]
                          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA
                  ]
                          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]
                          at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169) [
                  :6.0.0.Final]
                          at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118) [:6.0.0.Final]
                          at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209) [:6.0.0.
                  Final]
                          at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195) [:6.0.0.Final
                  ]
                          at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61) [:6.0.0.Fin
                  al]
                          at org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64)
                  [:6.0.0.Final]
                          at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68) [:6.0.0.Final]
                          at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184) [:6.0.0.Final]
                          at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101) [:6.0.0.Final]
                          at $Proxy287.create(Unknown Source) 

                  • 8. Re: Invalid invocation
                    young.seth Newbie

                    I also seem to be going round in circles with this error.  I have an ear built which includes one war file, and the war file includes an ejb client jar.

                     

                    If I deploy locally to Jboss Version:5.1.0.GA it works without any problem, however if I deploy to EAP 5.1.2 the exception (as below) is thrown.

                     

                    EJBException:; nested exception is:

                              javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract com.nnn.ejb.RequestEjbRemote com.nnn.ejb.RequestEjbHome.create() throws java.rmi.RemoteException,javax.ejb.CreateException

                     

                    Any examples much appreciated.

                     

                    S

                    • 9. Re: Invalid invocation
                      Jean-Frederic Clere Master

                      Asking the EJB questions in EJB forums might help more