2 Replies Latest reply on Jan 4, 2010 3:02 PM by PavanKumar Adusumilli

    My ejb2.1 stateful session beans from wsad does't work in jboss5

    PavanKumar Adusumilli Newbie

      I have an ejb application which i am trying to migrate it from wsad to jboss5. after migrating my ejb2.1 stateless sessions work fine. but stateful session beans giving problem. Here is the log

       

       

      Dec 24, 2009 10:53:50 ERROR [http-127.0.0.1-8080-2] ShowQueueBrowserAH.execute(): Unable to execute the method.

       

       

      java.rmi.ServerException: RuntimeException; nested exception is:

      java.lang.NumberFormatException: null

       

       

      at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:421)

       

       

      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:209)

       

       

      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)

       

       

      at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)

       

       

      at org.jboss.ejb.Container.invoke(Container.java:1029)

       

       

      at sun.reflect.GeneratedMethodAccessor346.invoke(Unknown Source)

       

       

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

       

       

      at java.lang.reflect.Method.invoke(Unknown Source)

       

       

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

       

       

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

       

       

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

       

       

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

       

       

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

       

       

      at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)

       

       

      at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)

       

       

      at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)

       

       

      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)

       

       

      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)

       

       

      at org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64)

       

       

      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)

       

       

      at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:118)

       

       

      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)

       

       

      at $Proxy340.getQueueItem(Unknown Source)

       

       

      at com.dcx.webams.workflow.action.ShowQueueBrowserAH.execute(ShowQueueBrowserAH.java:537)

       

       

      at com.ibm.ead4j.jade.servlet.JadeGatewayServlet.processWithSession(JadeGatewayServlet.java:374)

       

       

      at com.dcx.webams.servlet.WebAMSGatewayServlet.processWithSession(WebAMSGatewayServlet.java:363)

       

       

      at com.ibm.ead4j.jade.servlet.JadeGatewayServlet.service(JadeGatewayServlet.java:439)

       

       

      at com.dcx.webams.servlet.WebAMSGatewayServlet.service(WebAMSGatewayServlet.java:505)

       

       

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

       

       

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

       

       

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

       

       

      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

       

       

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

       

       

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

       

       

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

       

       

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

       

       

      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

       

       

      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

       

       

      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

       

       

      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

       

       

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

       

       

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

       

       

      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

       

       

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

       

       

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

       

       

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

       

       

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

       

       

      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

       

       

      at java.lang.Thread.run(Unknown Source)

       

       

      Caused by: java.lang.NumberFormatException: null

       

       

      at java.lang.Integer.parseInt(Unknown Source)

       

       

      at java.lang.Integer.<init>(Unknown Source)

       

       

      at com.dcx.webams.workflow.process.QueueManagerBean.getQueueItem(QueueManagerBean.java:1236)

       

       

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       

       

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

       

       

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

       

       

      at java.lang.reflect.Method.invoke(Unknown Source)

       

       

      at org.jboss.invocation.Invocation.performCall(Invocation.java:386)

       

       

      at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContainer.java:606)

       

       

      at org.jboss.ejb.plugins.StatefulSessionSecurityInterceptor.invoke(StatefulSessionSecurityInterceptor.java:84)

       

       

      at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:228)

       

       

      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)

       

       

      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:156)

       

       

      at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)

       

       

      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)

       

       

      at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)

       

       

      at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:77)

       

       

      at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:348)

       

       

      at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:97)

       

       

      at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java:81)

       

       

      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)

       

       

      ... 47 more

       

       

      Dec 24, 2009 10:53:50 ERROR [http-127.0.0.1-8080-2] ShowQueueBrowserAH.execute(): Unable to remove the EJB

       

       

      java.rmi.ServerException: RuntimeException; nested exception is:

      java.lang.NumberFormatException: null

       

       

      at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:421)

       

       

      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:209)

       

       

      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)

       

       

      at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)

       

       

      at org.jboss.ejb.Container.invoke(Container.java:1029)

       

       

      at sun.reflect.GeneratedMethodAccessor346.invoke(Unknown Source)

       

       

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

       

       

      at java.lang.reflect.Method.invoke(Unknown Source)

       

       

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

       

       

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

       

       

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

       

       

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

       

       

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

       

       

      at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)

       

       

      at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)

       

       

      at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)

       

       

      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)

       

       

      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)

       

       

      Please suggest me if any changes needs to be done for stateful session beans when migrating to jboss 5

        • 1. Re: My ejb2.1 stateful session beans from wsad does't work in jboss5
          jaikiran pai Master

          pavan403 wrote:

           


           

           

          Caused by: java.lang.NumberFormatException: null

           

           

          at java.lang.Integer.parseInt(Unknown Source)

           

           

          at java.lang.Integer.<init>(Unknown Source)

           

           

          at com.dcx.webams.workflow.process.QueueManagerBean.getQueueItem(QueueManagerBean.java:1236)

           

           


          The error seems to be coming from within your application. It appears that you are passing null to Integer on line 1236 of QueueManagerBean.

          • 2. Re: My ejb2.1 stateful session beans from wsad does't work in jboss5
            PavanKumar Adusumilli Newbie

            No that is because of state not being maintained. All the values are becoming null. Please help me in this regard. My question is : is there anything else i need to do for stateful session bean to maintain  the state.

             

            Here is the ejb-jar.xml:

             

             

            <session>

             

            <ejb-name>QueueManager</ejb-name>

             

            <home>com.dcx.webams.workflow.process.QueueManagerHome</home>

             

            <remote>com.dcx.webams.workflow.process.QueueManager</remote>

             

            <ejb-class>com.dcx.webams.workflow.process.QueueManagerBean</ejb-class>

             

            <session-type>Stateful</session-type>

             

            <transaction-type>Bean</transaction-type>

             

            </session>

             

             

            jboss.xml:

             

             

            <session>

             

            <ejb-name>QueueManager</ejb-name>

             

            <home>com.dcx.webams.workflow.process.QueueManagerHome</home>

             

            <remote>com.dcx.webams.workflow.process.QueueManager</remote>

             

            <ejb-class>com.dcx.webams.workflow.process.QueueManagerBean</ejb-class>

             

            <session-type>Stateful</session-type>

             

            <transaction-type>Bean</transaction-type>

             

            </session>