5 Replies Latest reply on Jan 16, 2006 2:27 AM by srinivas M

    Problem accessing a web service

    Thomas Diesler Master

      These stack frames

      12:03:33,796 ERROR [ServiceEndpointInterceptor] Error from service endpoint, processing fault handler chain
      java.lang.NullPointerException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S
      tatelessSessionContainer.java:214)


      tell you, that your SLSB is beeing called. The rest is irrelvant noise.

      Then there is some problem in native code. This issue is probably not related to WS

        • 1. Re: Problem accessing a web service
          Xu Wang Newbie

          I got thhe same problem, but still don't know how to figure out...

          • 2. Re: Problem accessing a web service
            Xu Wang Newbie

            05:16:15,324 ERROR [InvokerProviderJSE] Error from service endpoint, processing fault handler chain
            java.lang.reflect.InvocationTargetException
            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.webservice.server.InvokerProviderJSE.invokeServiceEndpoint(InvokerProviderJSE.java:15
            4)
            at org.jboss.webservice.server.InvokerProvider.invokeMethod(InvokerProvider.java:238)
            at org.jboss.axis.providers.java.RPCProvider.invokeTarget(RPCProvider.java:176)
            at org.jboss.webservice.server.InvokerProviderJSE.invokeTarget(InvokerProviderJSE.java:93)
            at org.jboss.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:121)
            at org.jboss.axis.providers.java.JavaProvider.invoke(JavaProvider.java:358)
            at org.jboss.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
            at org.jboss.axis.SimpleChain.doVisiting(SimpleChain.java:160)
            at org.jboss.axis.SimpleChain.invoke(SimpleChain.java:123)
            at org.jboss.axis.handlers.soap.SOAPService.invoke(SOAPService.java:560)
            at org.jboss.webservice.server.ServerEngine.invokeInternal(ServerEngine.java:200)
            at org.jboss.webservice.server.ServerEngine.invoke(ServerEngine.java:89)
            at org.jboss.axis.transport.http.AxisServlet.doPost(AxisServlet.java:905)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
            at org.jboss.axis.transport.http.AxisServletBase.service(AxisServletBase.java:370)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:25
            2)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:20
            2)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
            at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153
            )
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protoco
            l.java:744)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
            at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
            at java.lang.Thread.run(Thread.java:595)
            Caused by: java.lang.LinkageError: loader constraints violated when linking javax/ejb/Handle class
            at java.lang.Class.getDeclaredFields0(Native Method)
            at java.lang.Class.privateGetDeclaredFields(Class.java:2232)
            at java.lang.Class.getDeclaredField(Class.java:1852)
            at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1555)
            at java.io.ObjectStreamClass.access$600(ObjectStreamClass.java:47)
            at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:381)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.io.ObjectStreamClass.(ObjectStreamClass.java:373)
            at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:268)
            at java.io.ObjectStreamClass.initProxy(ObjectStreamClass.java:464)
            at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1502)
            at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
            at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
            at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:51)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:566)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at com.groept.blackboard.businessdelegate.BBWSDelegate.coursesInit(BBWSDelegate.java:111)
            at com.groept.blackboard.businessdelegate.BBWSDelegate.getStudentCourses(BBWSDelegate.java:229)
            ... 39 more
            05:16:15,414 ERROR [ServerEngine] Server error: AxisFault
            faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
            faultSubcode:
            faultString: java.lang.reflect.InvocationTargetException
            faultActor:
            faultNode:
            faultDetail:
            {http://xml.apache.org/axis/}stackTrace: java.lang.reflect.InvocationTargetException
            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.webservice.server.InvokerProviderJSE.invokeServiceEndpoint(InvokerProviderJSE.java:15
            4)
            at org.jboss.webservice.server.InvokerProvider.invokeMethod(InvokerProvider.java:238)
            at org.jboss.axis.providers.java.RPCProvider.invokeTarget(RPCProvider.java:176)
            at org.jboss.webservice.server.InvokerProviderJSE.invokeTarget(InvokerProviderJSE.java:93)
            at org.jboss.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:121)
            at org.jboss.axis.providers.java.JavaProvider.invoke(JavaProvider.java:358)
            at org.jboss.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
            at org.jboss.axis.SimpleChain.doVisiting(SimpleChain.java:160)
            at org.jboss.axis.SimpleChain.invoke(SimpleChain.java:123)
            at org.jboss.axis.handlers.soap.SOAPService.invoke(SOAPService.java:560)
            at org.jboss.webservice.server.ServerEngine.invokeInternal(ServerEngine.java:200)
            at org.jboss.webservice.server.ServerEngine.invoke(ServerEngine.java:89)
            at org.jboss.axis.transport.http.AxisServlet.doPost(AxisServlet.java:905)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
            at org.jboss.axis.transport.http.AxisServletBase.service(AxisServletBase.java:370)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:25
            2)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:20
            2)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
            at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153
            )
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protoco
            l.java:744)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
            at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
            at java.lang.Thread.run(Thread.java:595)
            Caused by: java.lang.LinkageError: loader constraints violated when linking javax/ejb/Handle class
            at java.lang.Class.getDeclaredFields0(Native Method)
            at java.lang.Class.privateGetDeclaredFields(Class.java:2232)
            at java.lang.Class.getDeclaredField(Class.java:1852)
            at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1555)
            at java.io.ObjectStreamClass.access$600(ObjectStreamClass.java:47)
            at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:381)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:373)
            at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:268)
            at java.io.ObjectStreamClass.initProxy(ObjectStreamClass.java:464)
            at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1502)
            at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
            at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
            at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:51)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:566)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at com.groept.blackboard.businessdelegate.BBWSDelegate.coursesInit(BBWSDelegate.java:111)
            at com.groept.blackboard.businessdelegate.BBWSDelegate.getStudentCourses(BBWSDelegate.java:229)
            ... 39 more


            My Jboss is version 4.0.2, before I was using 4.0.1 and it was working well. I think I made the same configuration, but got the exceptions as above.

            • 3. Re: Problem accessing a web service
              Xu Wang Newbie

              I fixed the problem by Setting the UseJbossWebLoader back to true:

              attribute name="UseJBossWebLoader">true

              which is located at: jboss-4.0.2/server/default/deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml

              This is happening because util.jar is defined in the EAR, and some of the WEB classes (Servlets) are using classes defined at the EAR level.

              • 4. Re: Problem accessing a web service
                Jason Greene Master

                A JBossWebLoader value of false will create a new classloader per war, but that classloader should still delegate to the parent class loader (in your case the ear classloader). The only thing that changes when you set this to true is that classes in your war are added to the ear.

                So, only if you had ejb's that depeneded on classes in your war would require you to set JBossWebLoader to true.

                There was a bug in 4.0.2RC1 that would prevent this from working properly, but it was fixed in the 4.0.2 final release. Are you running the 4.0.2 final release?

                -Jason

                • 5. Problem in creating webservice
                  srinivas M Newbie

                  Hi,

                  When i am creating the webservice i am getting this error

                  faultString: java.lang.LinkageError: loader constraints violated when linking javax/ejb/Handle class; nested exception is:
                  java.lang.LinkageError: loader constraints violated when linking javax/ejb/Handle class