1 2 Previous Next 20 Replies Latest reply on Jun 10, 2013 9:09 AM by VIKRAM Y

    java.lang.IllegalStateException: No EJB receiver available for handling

    VIKRAM Y Newbie

      Hi all,

       

      I created a ejb application which is under .ear and deployed in jboss 7.1.1 server. Created a web client which is wrapped in .war and deployed in another jboss 7.1.1 server. If the both server are in same network I can able to call remote ejb's. If the both systems are in deferent networks I am getting fallowing exception:

       

      17:20:23,511 ERROR [stderr] (http--127.0.0.1-8080-6) java.lang.IllegalStateException: No EJB receiver available for handling [appName:XXXXXXX,modulename:XXXXX,distinctname:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@1c61fb5

       

      17:20:23,511 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:584)

       

      17:20:23,511 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:119)

       

      17:20:23,521 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)

       

      17:20:23,521 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)

       

      17:20:23,521 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)

       

      17:20:23,531 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)

       

      17:20:23,531 ERROR [stderr] (http--127.0.0.1-8080-6)     at $Proxy16.updateServer(Unknown Source)

       

      17:20:23,531 ERROR [stderr] (http--127.0.0.1-8080-6)     at samplejava.EJB.getDeskTop(EJB.java:60)

       

      17:20:23,531 ERROR [stderr] (http--127.0.0.1-8080-6)     at com.vis.erp.action.system.updateserver.UpdateServerFlag.getUpdateServerFlag(UpdateServerFlag.java:1562)

       

      17:20:23,531 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.jsp.WEB_002dINF.jsp.system.updateserver.updateServerViewPage_jsp._jspService(updateServerViewPage_jsp.java:88)

       

      17:20:23,541 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

       

      17:20:23,541 ERROR [stderr] (http--127.0.0.1-8080-6)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

       

      17:20:23,541 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)

       

      17:20:23,541 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)

       

      17:20:23,541 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)

       

      17:20:23,551 ERROR [stderr] (http--127.0.0.1-8080-6)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

       

      17:20:23,551 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

       

      17:20:23,551 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

       

      17:20:23,551 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840)

       

      17:20:23,561 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:622)

       

      17:20:23,561 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:560)

       

      17:20:23,561 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:488)

       

      17:20:23,561 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)

       

      17:20:23,561 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)

       

      17:20:23,561 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)

       

      17:20:23,561 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

       

      17:20:23,561 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)

       

      17:20:23,561 ERROR [stderr] (http--127.0.0.1-8080-6)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

       

      17:20:23,561 ERROR [stderr] (http--127.0.0.1-8080-6)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

       

      17:20:23,561 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

       

      17:20:23,571 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

       

      17:20:23,571 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

       

      17:20:23,571 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

       

      17:20:23,571 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

       

      17:20:23,571 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

       

      17:20:23,571 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

       

      17:20:23,571 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

       

      17:20:23,571 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

       

      17:20:23,571 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

       

      17:20:23,571 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

       

      17:20:23,581 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

       

      17:20:23,581 ERROR [stderr] (http--127.0.0.1-8080-6)     at java.lang.Thread.run(Thread.java:619)

       

      For invocation of remote ejb, fallowed this link https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+server+instance and created and configured the both the applications and servers.

       

      jboss-ejb-client.xml is in META-INF folder of my war file

      --------------------------------------------------------------------------------

      <jboss-ejb-client xmlns="urn:jboss:ejb-client:1.1">

          <client-context>

              <ejb-receivers>

                  <remoting-ejb-receiver outbound-connection-ref="remote-ejb-connection"/>

              </ejb-receivers>

          </client-context>

      </jboss-ejb-client>

       

      Please suggest me where I am getting wrong.

       

      Thanks in advance.

       

      Vikram Y.

        • 1. Re: java.lang.IllegalStateException: No EJB receiver available for handling
          jaikiran pai Master

          What do the remoting outbound connection configurations look like? I'm guessing the user/pass credentials aren't setup correctly which results in the connection creation failure due to authentication issues.

          • 2. Re: java.lang.IllegalStateException: No EJB receiver available for handling
            VIKRAM Y Newbie

            Hi jaikiran,

             

            Thanks for fast reply. Remoting outboud connection configured correctly. Now i can able to call a remote ejb if the ejb is wrapped in .jar. But if i am wrapping the ejb into .ear i can't able to call again it is showing the error. I enabled org.jboss.ejb.client, org.jboss.remoting, org.jboss.remoting3. I am attaching the logs of success and failure also. Please look into this and suggest me what i have to do.

             

            Thanks and regards,

             

            Vikram Y.

            • 3. Re: java.lang.IllegalStateException: No EJB receiver available for handling
              jaikiran pai Master

              VIKRAM Y wrote:

               

              Hi jaikiran,

               

              Now i can able to call a remote ejb if the ejb is wrapped in .jar. But if i am wrapping the ejb into .ear i can't able to call again it is showing the error.

              In that case, I think you haven't updated your client to use the changed JNDI names when packaged in .ear.

              • 4. Re: java.lang.IllegalStateException: No EJB receiver available for handling
                VIKRAM Y Newbie

                I changed my JNDI name as applicable for the client calls. Please look into the log files. You will find the information. Thanks.

                • 5. Re: java.lang.IllegalStateException: No EJB receiver available for handling
                  Wolf-Dieter Fink Master

                  Would be helpful if you show the log of the server where ejb is deployed. I suppose the name is wrong or the EJB is not correct deployed.

                  Did you say that the test 'Hello world' works and you application not?

                   

                  You may find a complex example project here

                  • 6. Re: java.lang.IllegalStateException: No EJB receiver available for handling
                    VIKRAM Y Newbie

                    Hello Fink,

                     

                    This is my server log when i deployed my .war file:

                     

                    server.log

                    -------------

                    11:38:51,717 INFO  [org.jboss.as.repository] (HttpManagementService-threads - 2) JBAS014901: Content removed from location D:\install\jboss-as-7.1.1.Final\standalone\data\content\73\a002753b3a14ed5fa4655814e4e596242f0097\content

                    11:39:06,195 INFO  [org.jboss.as.repository] (HttpManagementService-threads - 2) JBAS014900: Content added at location D:\install\jboss-as-7.1.1.Final\standalone\data\content\73\a002753b3a14ed5fa4655814e4e596242f0097\content

                    11:39:09,892 ERROR [org.jboss.remoting.remote.connection] (Remoting "sbs" read-1) JBREM000200: Remote connection failed: java.io.IOException: An existing connection was forcibly closed by the remote host

                    11:39:09,939 ERROR [org.jboss.remoting.remote.connection] (Remoting "sbs" read-1) JBREM000200: Remote connection failed: java.io.IOException: An existing connection was forcibly closed by the remote host

                    11:39:12,528 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "Vishwas-ERP.ear"

                    11:39:15,180 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "viserp-ejb.jar"

                    11:39:15,305 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean named RemoteServerUpdate in deployment unit subdeployment "viserp-ejb.jar" of deployment "Vishwas-ERP.ear" are as follows:

                     

                        java:global/Vishwas-ERP/viserp-ejb/RemoteServerUpdate!com.vis.erp.ejb.RemoteServerUpdateRemote

                        java:app/viserp-ejb/RemoteServerUpdate!com.vis.erp.ejb.RemoteServerUpdateRemote

                        java:module/RemoteServerUpdate!com.vis.erp.ejb.RemoteServerUpdateRemote

                        java:jboss/exported/Vishwas-ERP/viserp-ejb/RemoteServerUpdate!com.vis.erp.ejb.RemoteServerUpdateRemote

                        java:global/Vishwas-ERP/viserp-ejb/RemoteServerUpdate

                        java:app/viserp-ejb/RemoteServerUpdate

                        java:module/RemoteServerUpdate

                     

                    11:39:15,321 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

                    11:39:19,907 INFO  [org.jboss.as.server] (HttpManagementService-threads - 2) JBAS018559: Deployed "Vishwas-ERP.ear"

                     

                    Thanks.

                    • 7. Re: java.lang.IllegalStateException: No EJB receiver available for handling
                      Wolf-Dieter Fink Master

                      The deployed name and the lookup looks correct.

                      Where do you pack the jboss-ejb-client.xml in the EAR. AFAIK it need to be at top level META-INF

                      • 8. Re: java.lang.IllegalStateException: No EJB receiver available for handling
                        VIKRAM Y Newbie

                        yes jboss-ejb-client.xml placed in META-INF folder of my war file.

                        • 9. Re: java.lang.IllegalStateException: No EJB receiver available for handling
                          Wolf-Dieter Fink Master

                          Please move it to the top-level META-INF (in the EAR file)

                          • 10. Re: java.lang.IllegalStateException: No EJB receiver available for handling
                            VIKRAM Y Newbie

                            I solved the problem. But i got another problem. My application is as fallows:

                             

                            .ear app in server jboss 7.1.1

                            -----------------------------------------

                            viserp-ejb.jar containts ejb3, hibernate 3.1 framework is communicate with mysql 5. So is this application works in Jboss 7.1.1. When i am deploying my .ear file the log shows following trace:

                             

                            18:26:27,861 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

                             

                            .war app in client jboss 7.1.1

                            -----------------------------------------

                            Where my web application .war contains struts 1.2, hibernate 3.1 framework is communicate with mysql 5. It works fine in jboss 7.1.1.

                             

                            Now i can able to call simple Hello world ejb3. But i can't able to call my viserp-ejb.jar ejb3. It is showing the fallowing exception:

                             

                            18:29:26,393 TRACE [org.jboss.remoting.endpoint] (ejb-client-remote-connection-reconnect-3-thread-1) Allocated tick to 4 of endpoint "vikram-nb5" <18845af> (opened Connection to /183.82.4.24:4447)

                            18:29:26,393 TRACE [org.jboss.remoting.remote] (ejb-client-remote-connection-reconnect-3-thread-1) Attempting to connect to "/183.82.4.24:4447" with options {org.xnio.Options.SASL_POLICY_NOPLAINTEXT=>false,org.xnio.Options.SASL_DISALLOWED_MECHANISMS=>[JBOSS-LOCAL-USER],org.xnio.Options.SASL_POLICY_NOANONYMOUS=>false,org.xnio.Options.SSL_STARTTLS=>true,org.xnio.Options.SSL_ENABLED=>true}

                            18:29:31,403 ERROR [stderr] (http--127.0.0.1-8080-3) java.lang.IllegalStateException: No EJB receiver available for handling [appName:Vishwas-ERP,modulename:viserp-ejb,distinctname:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@741e88

                             

                            18:29:31,403 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:584)

                             

                            18:29:31,403 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:119)

                             

                            18:29:31,413 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)

                             

                            18:29:31,413 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)

                             

                            18:29:31,413 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)

                             

                            18:29:31,423 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)

                             

                            18:29:31,423 ERROR [stderr] (http--127.0.0.1-8080-3)     at $Proxy17.updateServer(Unknown Source)

                             

                            18:29:31,423 ERROR [stderr] (http--127.0.0.1-8080-3)     at samplejava.EJB.getDeskTop(EJB.java:63)

                             

                            18:29:31,423 ERROR [stderr] (http--127.0.0.1-8080-3)     at com.vis.erp.action.system.updateserver.UpdateServerFlag.getUpdateServerFlag(UpdateServerFlag.java:1562)

                             

                            18:29:31,433 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.jsp.WEB_002dINF.jsp.system.updateserver.updateServerViewPage_jsp._jspService(updateServerViewPage_jsp.java:88)

                             

                            18:29:31,433 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

                             

                            18:29:31,433 ERROR [stderr] (http--127.0.0.1-8080-3)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

                             

                            18:29:31,433 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)

                             

                            18:29:31,433 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)

                             

                            18:29:31,433 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)

                             

                            18:29:31,433 ERROR [stderr] (http--127.0.0.1-8080-3)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

                             

                            18:29:31,443 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

                             

                            18:29:31,443 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                             

                            18:29:31,443 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840)

                             

                            18:29:31,443 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:622)

                             

                            18:29:31,443 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:560)

                             

                            18:29:31,443 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:488)

                             

                            18:29:31,453 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)

                             

                            18:29:31,453 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)

                             

                            18:29:31,453 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)

                             

                            18:29:31,453 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

                             

                            18:29:31,453 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)

                             

                            18:29:31,453 ERROR [stderr] (http--127.0.0.1-8080-3)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

                             

                            18:29:31,453 ERROR [stderr] (http--127.0.0.1-8080-3)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

                             

                            18:29:31,463 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

                             

                            18:29:31,463 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                             

                            18:29:31,463 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

                             

                            18:29:31,463 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

                             

                            18:29:31,463 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

                             

                            18:29:31,463 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

                             

                            18:29:31,463 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                             

                            18:29:31,463 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                             

                            18:29:31,473 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

                             

                            18:29:31,473 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

                             

                            18:29:31,473 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

                             

                            18:29:31,473 ERROR [stderr] (http--127.0.0.1-8080-3)     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

                             

                            18:29:31,473 ERROR [stderr] (http--127.0.0.1-8080-3)     at java.lang.Thread.run(Thread.java:619)

                             

                            18:29:33,453 TRACE [org.jboss.remoting.remote] (Remoting "vikram-nb5" read-1) Setting read listener to org.jboss.remoting3.remote.ClientConnectionOpenListener$Greeting@14ac3cb

                            18:29:33,453 TRACE [org.jboss.remoting.remote.client] (Remoting "vikram-nb5" read-1) Received java.nio.HeapByteBuffer[pos=23 lim=8192 cap=8192]

                            18:29:33,453 TRACE [org.jboss.remoting.remote.client] (Remoting "vikram-nb5" read-1) Client received greeting

                            18:29:33,453 TRACE [org.jboss.remoting.remote.client] (Remoting "vikram-nb5" read-1) Client received server name: SBS.VISHWASSBS.local

                            18:29:33,453 TRACE [org.jboss.remoting.remote.client] (Remoting "vikram-nb5" read-1) Client sending capabilities request

                            18:29:33,463 TRACE [org.jboss.remoting.remote] (Remoting "vikram-nb5" read-1) Setting read listener to org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities@17c66f0

                            18:29:33,463 TRACE [org.jboss.remoting.remote.connection] (Remoting "vikram-nb5" read-1) Sent message java.nio.HeapByteBuffer[pos=16 lim=16 cap=8192] (direct)

                            18:29:33,463 TRACE [org.jboss.remoting.remote.connection] (Remoting "vikram-nb5" read-1) Flushed channel (direct)

                            18:29:33,473 TRACE [org.jboss.remoting.remote.client] (Remoting "vikram-nb5" read-1) Client received capabilities response

                            18:29:33,473 TRACE [org.jboss.remoting.remote.client] (Remoting "vikram-nb5" read-1) Client received capability: version 1

                            18:29:33,473 TRACE [org.jboss.remoting.remote.client] (Remoting "vikram-nb5" read-1) Client received capability: remote endpoint name "sbs"

                            18:29:33,473 TRACE [org.jboss.remoting.remote.client] (Remoting "vikram-nb5" read-1) Client received capability: SASL mechanism JBOSS-LOCAL-USER

                            18:29:33,473 TRACE [org.jboss.remoting.remote.client] (Remoting "vikram-nb5" read-1) Client received capability: SASL mechanism DIGEST-MD5

                            18:29:33,483 TRACE [org.jboss.remoting.remote.client] (Remoting "vikram-nb5" read-1) SASL mechanism DIGEST-MD5 added to allowed set

                            18:29:33,483 TRACE [org.jboss.remoting.remote.client] (Remoting "vikram-nb5" read-1) Client initiating authentication using mechanism DIGEST-MD5

                            18:29:33,493 TRACE [org.jboss.remoting.remote.connection] (Remoting "vikram-nb5" task-4) Sent message java.nio.HeapByteBuffer[pos=12 lim=12 cap=8192] (direct)

                            18:29:33,493 TRACE [org.jboss.remoting.remote.connection] (Remoting "vikram-nb5" task-4) Flushed channel (direct)

                            18:29:33,493 TRACE [org.jboss.remoting.remote] (Remoting "vikram-nb5" task-4) Setting read listener to org.jboss.remoting3.remote.ClientConnectionOpenListener$Authentication@151313a

                            18:29:33,503 TRACE [org.jboss.remoting.remote.client] (Remoting "vikram-nb5" read-1) Client received authentication challenge

                            18:29:33,503 TRACE [org.jboss.remoting.remote.client] (Remoting "vikram-nb5" task-1) Client sending authentication response

                            18:29:33,503 TRACE [org.jboss.remoting.remote.connection] (Remoting "vikram-nb5" task-1) Sent message java.nio.HeapByteBuffer[pos=282 lim=282 cap=8192] (direct)

                            18:29:33,503 TRACE [org.jboss.remoting.remote.connection] (Remoting "vikram-nb5" task-1) Flushed channel (direct)

                            18:29:33,513 TRACE [org.jboss.remoting.remote.client] (Remoting "vikram-nb5" read-1) Client received authentication complete

                            18:29:33,513 TRACE [org.jboss.remoting.endpoint] (Remoting "vikram-nb5" task-2) Registered successful result org.jboss.remoting3.remote.ClientConnectionOpenListener$Authentication$2$1@1771302

                            18:29:33,513 TRACE [org.jboss.remoting.remote] (Remoting "vikram-nb5" task-2) Setting read listener to org.jboss.remoting3.remote.RemoteReadListener@80fb85

                             

                             

                            So please tell me where i am getting wrong. Thanks.

                            • 11. Re: java.lang.IllegalStateException: No EJB receiver available for handling
                              Wolf-Dieter Fink Master

                              I'm a bit confused

                               

                              Does the move of the jboss-ejb-client.xml solve the first problem?

                               

                              And what is the current problem then because we talked about that you are not able to call the EJB inside teh module viserp-ejb ot the Vishwas-ERP.ear.

                              And now the problem looks still the same?

                              • 12. Re: java.lang.IllegalStateException: No EJB receiver available for handling
                                VIKRAM Y Newbie

                                Does the move of the jboss-ejb-client.xml solve the first problem?

                                no. I didn't changed anything. Created another simple Hello World ejb3 stateless session bean in viserp-ejb.jar and added to Vishwas-ERP.ear and given a trial to call the new Hello World ejb3 slsb. It was successfully invoked hello world slsb object.

                                 

                                And what is the current problem then because we talked about that you are not able to call the EJB inside teh module viserp-ejb ot the Vishwas-ERP.ear.

                                And now the problem looks still the same?

                                in viserp-ejb.jar which contains 2 slsb's.

                                 

                                1) TestEJB (Hello World ejb slsb)

                                2) RemoteServerUpdate (Hibernate 3.1 integrated ejb slsb)

                                 

                                I can call TestEJB successfully but the RemoteServerUpdate is geving exceptions which is mentioned above.

                                 

                                Thanks.

                                • 13. Re: java.lang.IllegalStateException: No EJB receiver available for handling
                                  Wolf-Dieter Fink Master

                                  I'm confused.

                                  If there are two EJB's inside the same jar there must be a difference. As I saw you have a 'exported' JNDI entry for the RemoteServerUpdate which is needed.

                                  So could you check that you have done all in the same way?

                                   

                                  Maybe attach ear's standalone.xml's and the sources might make things more clear

                                  • 14. Re: java.lang.IllegalStateException: No EJB receiver available for handling
                                    VIKRAM Y Newbie

                                    Hi wolf & jaikiran,

                                     

                                    Sorry for misleading you. Now i came to know what is the problems i am facing. After making several modifications to the RemoteServerUpdate SLSB i found the problems are with hibernate configurations. In my application i am using hibernate 3.1. When i am calling the RemoteServerUpdate it tries to create SessionFactories where i am getting the fallowing excetions:

                                     

                                    12:55:30,859 WARN  [org.hibernate.tuple.PojoEntityTuplizer] (EJB default - 1) could not create proxy factory for:com.vis.erp.common.system.Roles: org.hibernate.HibernateException: CGLIB Enhancement failed: com.vis.erp.common.system.Roles

                                        at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:132) [hibernate3.jar:]

                                        at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:41) [hibernate3.jar:]

                                        at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:161) [hibernate3.jar:]

                                        at org.hibernate.tuple.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:131) [hibernate3.jar:]

                                        at org.hibernate.tuple.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55) [hibernate3.jar:]

                                        at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64) [hibernate3.jar:]

                                        at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:257) [hibernate3.jar:]

                                        at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:412) [hibernate3.jar:]

                                        at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108) [hibernate3.jar:]

                                        at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55) [hibernate3.jar:]

                                        at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:216) [hibernate3.jar:]

                                        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176) [hibernate3.jar:]

                                        at com.vis.erp.custom.UserConfiguartion.getUserConfiguartion(UserConfiguartion.java:71) [viserp-ejb.jar:]

                                        at com.vis.erp.hibernate.SessionFactories.getFactories(SessionFactories.java:44) [viserp-ejb.jar:]

                                        at com.vis.erp.ejb.RemoteServerUpdate.updateServer(RemoteServerUpdate.java:56) [viserp-ejb.jar:]

                                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_31]

                                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_31]

                                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_31]

                                        at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_31]

                                        at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                                        at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                                        at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                                        at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

                                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                                        at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                                        at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                                        at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                                        at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                                        at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                                        at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:304) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                                        at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                                        at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:80) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                                        at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                                        at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                                        at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                                        at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:43) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                                        at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                                        at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                                        at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                                        at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.invokeMethod(MethodInvocationMessageHandler.java:302) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                                        at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.access$200(MethodInvocationMessageHandler.java:64) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                                        at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler$1.run(MethodInvocationMessageHandler.java:196) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                                        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_31]

                                        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_31]

                                        at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_31]

                                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]

                                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]

                                        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]

                                        at org.jboss.threads.JBossThread.run(JBossThread.java:122)

                                    Caused by: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null

                                        at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:237) [cglib-2.1.3.jar:]

                                        at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377) [cglib-2.1.3.jar:]

                                        at net.sf.cglib.proxy.Enhancer.createClass(Enhancer.java:317) [cglib-2.1.3.jar:]

                                        at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:126) [hibernate3.jar:]

                                        ... 60 more

                                    Caused by: java.lang.reflect.InvocationTargetException

                                        at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source) [:1.6.0_31]

                                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_31]

                                        at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_31]

                                        at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:384) [cglib-2.1.3.jar:]

                                        at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219) [cglib-2.1.3.jar:]

                                        ... 63 more

                                    Caused by: java.lang.SecurityException: class "com.vis.erp.common.system.Roles$$EnhancerByCGLIB$$a0fa30bb_2"'s signer information does not match signer information of other classes in the same package

                                        at java.lang.ClassLoader.checkCerts(ClassLoader.java:806) [rt.jar:1.6.0_31]

                                        at java.lang.ClassLoader.preDefineClass(ClassLoader.java:487) [rt.jar:1.6.0_31]

                                        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:625) [rt.jar:1.6.0_31]

                                        at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_31]

                                        ... 68 more

                                     

                                    my hibernate config file is

                                    ------------------------------------

                                    <session-factory>

                                        <property name="connection.username">user</property>

                                     

                                        <property name="connection.url">

                                            jdbc:mysql://localhost:3306/

                                        </property>

                                        <property name="dialect">

                                            org.hibernate.dialect.MySQLDialect

                                        </property>

                                        <property name="connection.password">password</property>

                                        <property name="connection.driver_class">

                                            com.mysql.jdbc.Driver

                                        </property>

                                            <property name="hibernate.cglib.use_reflection_optimizer">false</property>

                                        <property name="show_sql">true</property>

                                        <property name="connection.autocommit">false</property>

                                        <property name="hibernate.cache.use_query_cache">true</property>

                                        <property name="hbm2ddl.auto">update</property>

                                        <property name="default_schema">dbname</property>

                                        <property name="jdbc.batch_size">20</property>

                                        <property name="hibernate.cache.use_second_level_cache">true</property>

                                        <property name="hibernate.cache.provider_class">org.hibernate.cache.OSCacheProvider</property>

                                    </session-factory>

                                     

                                    I think due to this problem i cant able to call RemoteServerUpdate SLSB.

                                     

                                    Now I want to can we configure and use hibernate 3.1 & ejb3 with jboss 7.1.1?

                                     

                                    If yes can you people suggest me how we can do that? I am very confused with this problem. I already tries to excluding jboss 7.1.1 provided hibernate 4 module. But no success. How can get rid of this signer information does not match signer information of other classes in the same package. Please help me.

                                     

                                     

                                    Thanks.

                                    1 2 Previous Next