3 Replies Latest reply on Mar 4, 2003 5:33 PM by petertje

    Invalid Invocation in StatelessSessionContainer

    ikestrel

      I just downloaded JBoss-RC3 and trying to run our application. We have a web app calling into a stateless session bean. I'm seeing the error below. This same bean runs fine in HP-AS. I'm trying to get our stuff running under JBoss.


      10:49:03,429 ERROR [LogInterceptor] TransactionRolledbackException, causedBy:
      javax.ejb.EJBException: Invalid invocation, check your deployment packaging, met
      hod=public abstract java.lang.String OURMETHODCALL(java.lang.String) throws java.rmi.RemoteException
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S
      tatelessSessionContainer.java:634)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
      ke(CachedConnectionInterceptor.java:147)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat
      elessSessionInstanceInterceptor.java:77)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
      rceptor.java:96)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
      torCMT.java:142)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:6
      1)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
      java:129)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContai
      ner.java:313)
      at org.jboss.ejb.Container.invoke(Container.java:705)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav
      a:102)
      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.
      java:73)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:7
      6)
      at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:111)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
      at $Proxy26.OURMETHODCALL(Unknown Source)
      at OURMETHODCALL(SearchActionForm.java:484)
      at org.apache.jsp.DocumentSearch$jsp._jspService(DocumentSearch$jsp.java
      :202)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
      vlet.java:202)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
      82)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:326
      )
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
      95)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1357)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1309)
      at org.mortbay.http.HttpServer.service(HttpServer.java:744)
      at org.jboss.jetty.Jetty.service(Jetty.java:525)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:743)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:916)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:758)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
      145)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)

        • 1. Re: Invalid Invocation in StatelessSessionContainer
          ikestrel

          Apparently this appears to be a redeployment bug in JBoss-RC3. It only happens after I touch ejb-jar.xml and it redeploys. It also happens if I remove the expanded jar and put it back in.

          Immediately after server start up and initial deployment it works with no exception, so it's something in the redeployment.

          I'm using an expanded jar directory, it's not jarred up. I haven't tested if it's jarred up.

          • 2. Re: Invalid Invocation in StatelessSessionContainer
            fullej

            I am also having this problem, and not finding any solutions at all. I have tried many different releases (from 3.0.3 to 3.2) and have constantly had this problem.

            I have JDK 1.3 and tried 1.4 as well.

            I have tried every combination of SAR/WAR/JAR and EAR that I can come up with.

            Please HELP!!

            • 3. Re: Invalid Invocation in StatelessSessionContainer

              First, make sure it's not your bean that is causing trouble. Put a try-catch block in the EJB method that has this problems, catching (and printing ;-) Throwable.

              Peter