4 Replies Latest reply on Jun 13, 2007 6:05 AM by Kevin Conner

    an error occured when I use esb to invoke the ejb through we

    Sean Xiao Newbie

      Web can invoke web services on ESB.
      ESB can invoke web services on Back-End.(Back-End is deployed on another server)

      But when we try to call web services on Back-End via ESB from Web, something unexpected happened.
      The following are the console information from ESB server:
      The version of the sofrwares are as follows:
      JBoss AS 4.2.0 GA
      Jbossesb 4.2MR2


      10:55:16,578 INFO [STDOUT] HelloWorld Hit! hello
      10:55:16,578 INFO [STDOUT] esb web service
      10:55:16,984 INFO [STDOUT] invoke MyAction.execute------
      10:55:16,984 INFO [STDOUT] get from client:hello
      10:55:16,984 INFO [STDOUT] check the user......
      10:55:16,984 INFO [STDOUT] invoke services...
      10:55:17,140 INFO [STDOUT] before invokeorg.jboss.ws.core.jaxrpc.client.CallImpl@b18b90
      10:55:17,250 ERROR [STDERR] java.rmi.RemoteException: Call invocation failed; nested exception is:
      java.io.IOException: Could not transmit message
      10:55:17,250 ERROR [STDERR] at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:526)
      10:55:17,250 ERROR [STDERR] at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:276)
      10:55:17,250 ERROR [STDERR] at com.cvicse.esb.MyAction.getfromserver(MyAction.java:73)
      10:55:17,250 ERROR [STDERR] at com.cvicse.esb.MyAction.execute(MyAction.java:31)
      10:55:17,250 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      10:55:17,250 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      10:55:17,250 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      10:55:17,250 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      10:55:17,265 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.processMethods(ActionProcessorMethodInfo.java:102)
      10:55:17,265 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.OverriddenActionLifecycleProcessor.process(OverriddenActionLifecycleProcessor.java:74)
      10:55:17,265 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:253)
      10:55:17,265 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.MessageAwareListener$1.run(MessageAwareListener.java:301)
      10:55:17,265 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      10:55:17,265 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      10:55:17,265 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      10:55:17,265 ERROR [STDERR] Caused by: java.io.IOException: Could not transmit message
      10:55:17,265 ERROR [STDERR] at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:192)
      10:55:17,265 ERROR [STDERR] at org.jboss.ws.core.client.SOAPRemotingConnection.invoke(SOAPRemotingConnection.java:77)
      10:55:17,265 ERROR [STDERR] at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:322)
      10:55:17,265 ERROR [STDERR] at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:507)
      10:55:17,265 ERROR [STDERR] ... 14 more
      10:55:17,265 ERROR [STDERR] Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker.
      10:55:17,265 ERROR [STDERR] at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:332)
      10:55:17,265 ERROR [STDERR] at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:135)
      10:55:17,265 ERROR [STDERR] at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
      10:55:17,265 ERROR [STDERR] at org.jboss.remoting.Client.invoke(Client.java:1550)
      10:55:17,265 ERROR [STDERR] at org.jboss.remoting.Client.invoke(Client.java:530)
      10:55:17,281 ERROR [STDERR] at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:171)
      10:55:17,281 ERROR [STDERR] ... 17 more
      10:55:17,281 ERROR [STDERR] Caused by: org.jboss.ws.WSException: Invalid HTTP server response [404] - /EchoBeanServiceService/EchoBeanService
      10:55:17,281 ERROR [STDERR] at org.jboss.ws.core.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:72)
      10:55:17,281 ERROR [STDERR] at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:472)
      10:55:17,281 ERROR [STDERR] at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:304)
      10:55:17,281 ERROR [STDERR] ... 22 more
      10:55:17,281 INFO [STDOUT] get from the ejb server:null
      10:55:17,281 WARN [ActionProcessingPipeline] Unexpected exception caught while processing the action pipeline
      org.jboss.soa.esb.actions.ActionProcessingException: Unexpected invocation target exception from processor
      at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.processMethods(ActionProcessorMethodInfo.java:123)
      at org.jboss.soa.esb.listeners.message.OverriddenActionLifecycleProcessor.process(OverriddenActionLifecycleProcessor.java:74)
      at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:253)
      at org.jboss.soa.esb.listeners.message.MessageAwareListener$1.run(MessageAwareListener.java:301)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.NullPointerException
      at com.cvicse.esb.MyAction.execute(MyAction.java:33)
      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.soa.esb.listeners.message.ActionProcessorMethodInfo.processMethods(ActionProcessorMethodInfo.java:102)
      ... 6 more
      10:55:17,281 ERROR [STDERR] MyAction error invoke
      10:55:17,312 ERROR [STDERR] java.lang.NullPointerException
      10:55:17,312 ERROR [STDERR] at java.net.URI$Parser.parse(URI.java:3010)
      10:55:17,312 ERROR [STDERR] at java.net.URI.(URI.java:578)
      10:55:17,312 ERROR [STDERR] at org.jboss.internal.soa.esb.addressing.helpers.CallHelper.fromXML(CallHelper.java:150)
      10:55:17,312 ERROR [STDERR] at org.jboss.internal.soa.esb.message.format.xml.HeaderImpl.fromXML(HeaderImpl.java:99)
      10:55:17,312 ERROR [STDERR] at org.jboss.internal.soa.esb.message.format.xml.MessageImpl.fromXML(MessageImpl.java:183)
      10:55:17,312 ERROR [STDERR] at org.jboss.soa.esb.util.Util.deserialize(Util.java:214)
      10:55:17,312 ERROR [STDERR] at org.jboss.internal.soa.esb.couriers.JmsCourier.pickup(JmsCourier.java:356)
      10:55:17,312 ERROR [STDERR] at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup(TwoWayCourierImpl.java:223)
      10:55:17,312 ERROR [STDERR] at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup(TwoWayCourierImpl.java:205)
      10:55:17,312 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.MessageDeliveryAdapter.attemptDelivery(MessageDeliveryAdapter.java:216)
      10:55:17,312 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.MessageDeliveryAdapter.deliver(MessageDeliveryAdapter.java:147)
      10:55:17,312 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.MessageDeliveryAdapter.deliverSync(MessageDeliveryAdapter.java:109)
      10:55:17,312 ERROR [STDERR] at com.cvicse.esb.ESBWebservice.sayHello(ESBWebservice.java:32)
      10:55:17,312 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      10:55:17,312 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      10:55:17,312 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      10:55:17,312 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      10:55:17,312 ERROR [STDERR] at org.jboss.ws.core.server.ServiceEndpointInvokerJSE.invokeServiceEndpointInstance(ServiceEndpointInvokerJSE.java:104)
      10:55:17,312 ERROR [STDERR] at org.jboss.ws.core.server.AbstractServiceEndpointInvoker.invoke(AbstractServiceEndpointInvoker.java:207)
      10:55:17,328 ERROR [STDERR] at org.jboss.ws.core.server.ServiceEndpoint.processRequest(ServiceEndpoint.java:212)
      10:55:17,328 ERROR [STDERR] at org.jboss.ws.core.server.ServiceEndpointManager.processRequest(ServiceEndpointManager.java:448)
      10:55:17,328 ERROR [STDERR] at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114)
      10:55:17,328 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      10:55:17,328 ERROR [STDERR] at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75)
      10:55:17,328 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      10:55:17,328 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      10:55:17,328 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      10:55:17,328 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      10:55:17,328 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      10:55:17,328 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      10:55:17,328 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      10:55:17,328 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      10:55:17,328 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      10:55:17,328 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      10:55:17,328 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      10:55:17,328 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      10:55:17,328 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      10:55:17,328 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      10:55:17,328 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
      10:55:17,328 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      10:55:17,328 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
      10:55:17,328 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      10:55:17,328 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      10:55:17,328 ERROR [JmsCourier] Object in JMS message is not a Serializeable
      java.io.IOException: org.jboss.soa.esb.UnmarshalException: java.lang.NullPointerException
      at org.jboss.soa.esb.util.Util.deserialize(Util.java:219)
      at org.jboss.internal.soa.esb.couriers.JmsCourier.pickup(JmsCourier.java:356)
      at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup(TwoWayCourierImpl.java:223)
      at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup(TwoWayCourierImpl.java:205)
      at org.jboss.soa.esb.listeners.message.MessageDeliveryAdapter.attemptDelivery(MessageDeliveryAdapter.java:216)
      at org.jboss.soa.esb.listeners.message.MessageDeliveryAdapter.deliver(MessageDeliveryAdapter.java:147)
      at org.jboss.soa.esb.listeners.message.MessageDeliveryAdapter.deliverSync(MessageDeliveryAdapter.java:109)
      at com.cvicse.esb.ESBWebservice.sayHello(ESBWebservice.java:32)
      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.ws.core.server.ServiceEndpointInvokerJSE.invokeServiceEndpointInstance(ServiceEndpointInvokerJSE.java:104)
      at org.jboss.ws.core.server.AbstractServiceEndpointInvoker.invoke(AbstractServiceEndpointInvoker.java:207)
      at org.jboss.ws.core.server.ServiceEndpoint.processRequest(ServiceEndpoint.java:212)
      at org.jboss.ws.core.server.ServiceEndpointManager.processRequest(ServiceEndpointManager.java:448)
      at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      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:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:595)
      10:55:17,437 INFO [STDOUT] invoke MyAction.execute------
      10:55:17,437 INFO [STDOUT] get from client:hello
      10:55:17,437 INFO [STDOUT] check the user......
      10:55:17,437 INFO [STDOUT] invoke services...
      10:55:17,593 INFO [STDOUT] before invokeorg.jboss.ws.core.jaxrpc.client.CallImpl@ac3f94
      10:55:17,671 ERROR [STDERR] java.rmi.RemoteException: Call invocation failed; nested exception is:
      java.io.IOException: Could not transmit message
      10:55:17,687 ERROR [STDERR] at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:526)
      10:55:17,687 ERROR [STDERR] at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:276)
      10:55:17,687 ERROR [STDERR] at com.cvicse.esb.MyAction.getfromserver(MyAction.java:73)
      10:55:17,687 ERROR [STDERR] at com.cvicse.esb.MyAction.execute(MyAction.java:31)
      10:55:17,687 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      10:55:17,687 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      10:55:17,687 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      10:55:17,687 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      10:55:17,687 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.processMethods(ActionProcessorMethodInfo.java:102)
      10:55:17,687 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.OverriddenActionLifecycleProcessor.process(OverriddenActionLifecycleProcessor.java:74)
      10:55:17,687 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:253)
      10:55:17,687 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.MessageAwareListener$1.run(MessageAwareListener.java:301)
      10:55:17,687 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      10:55:17,687 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      10:55:17,687 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      10:55:17,687 ERROR [STDERR] Caused by: java.io.IOException: Could not transmit message
      10:55:17,687 ERROR [STDERR] at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:192)
      10:55:17,687 ERROR [STDERR] at org.jboss.ws.core.client.SOAPRemotingConnection.invoke(SOAPRemotingConnection.java:77)
      10:55:17,687 ERROR [STDERR] at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:322)
      10:55:17,687 ERROR [STDERR] at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:507)
      10:55:17,687 ERROR [STDERR] ... 14 more
      10:55:17,687 ERROR [STDERR] Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker.
      10:55:17,687 ERROR [STDERR] at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:332)
      10:55:17,703 ERROR [STDERR] at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:135)
      10:55:17,703 ERROR [STDERR] at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
      10:55:17,703 ERROR [STDERR] at org.jboss.remoting.Client.invoke(Client.java:1550)
      10:55:17,703 ERROR [STDERR] at org.jboss.remoting.Client.invoke(Client.java:530)
      10:55:17,703 ERROR [STDERR] at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:171)
      10:55:17,703 ERROR [STDERR] ... 17 more
      10:55:17,703 ERROR [STDERR] Caused by: org.jboss.ws.WSException: Invalid HTTP server response [404] - /EchoBeanServiceService/EchoBeanService
      10:55:17,703 ERROR [STDERR] at org.jboss.ws.core.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:72)
      10:55:17,703 ERROR [STDERR] at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:472)
      10:55:17,703 ERROR [STDERR] at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:304)
      10:55:17,703 ERROR [STDERR] ... 22 more
      10:55:17,703 INFO [STDOUT] get from the ejb server:null
      10:55:17,703 WARN [ActionProcessingPipeline] Unexpected exception caught while processing the action pipeline
      org.jboss.soa.esb.actions.ActionProcessingException: Unexpected invocation target exception from processor
      at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.processMethods(ActionProcessorMethodInfo.java:123)
      at org.jboss.soa.esb.listeners.message.OverriddenActionLifecycleProcessor.process(OverriddenActionLifecycleProcessor.java:74)
      at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:253)
      at org.jboss.soa.esb.listeners.message.MessageAwareListener$1.run(MessageAwareListener.java:301)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.NullPointerException
      at com.cvicse.esb.MyAction.execute(MyAction.java:33)
      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.soa.esb.listeners.message.ActionProcessorMethodInfo.processMethods(ActionProcessorMethodInfo.java:102)
      ... 6 more
      10:55:17,703 ERROR [STDERR] MyAction error invoke
      10:55:17,734 ERROR [STDERR] java.lang.NullPointerException
      10:55:17,734 ERROR [STDERR] at java.net.URI$Parser.parse(URI.java:3010)
      10:55:17,734 ERROR [STDERR] at java.net.URI.(URI.java:578)
      10:55:17,734 ERROR [STDERR] at org.jboss.internal.soa.esb.addressing.helpers.CallHelper.fromXML(CallHelper.java:150)
      10:55:17,734 ERROR [STDERR] at org.jboss.internal.soa.esb.message.format.xml.HeaderImpl.fromXML(HeaderImpl.java:99)
      10:55:17,734 ERROR [STDERR] at org.jboss.internal.soa.esb.message.format.xml.MessageImpl.fromXML(MessageImpl.java:183)
      10:55:17,750 ERROR [STDERR] at org.jboss.soa.esb.util.Util.deserialize(Util.java:214)
      10:55:17,750 ERROR [STDERR] at org.jboss.internal.soa.esb.couriers.JmsCourier.pickup(JmsCourier.java:356)
      10:55:17,750 ERROR [STDERR] at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup(TwoWayCourierImpl.java:223)
      10:55:17,750 ERROR [STDERR] at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup(TwoWayCourierImpl.java:205)
      10:55:17,750 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.MessageDeliveryAdapter.attemptDelivery(MessageDeliveryAdapter.java:216)
      10:55:17,750 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.MessageDeliveryAdapter.deliver(MessageDeliveryAdapter.java:147)
      10:55:17,750 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.MessageDeliveryAdapter.deliverSync(MessageDeliveryAdapter.java:109)
      10:55:17,750 ERROR [STDERR] at com.cvicse.esb.ESBWebservice.sayHello(ESBWebservice.java:32)
      10:55:17,750 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      10:55:17,750 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      10:55:17,750 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      10:55:17,750 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      10:55:17,750 ERROR [STDERR] at org.jboss.ws.core.server.ServiceEndpointInvokerJSE.invokeServiceEndpointInstance(ServiceEndpointInvokerJSE.java:104)
      10:55:17,750 ERROR [STDERR] at org.jboss.ws.core.server.AbstractServiceEndpointInvoker.invoke(AbstractServiceEndpointInvoker.java:207)
      10:55:17,750 ERROR [STDERR] at org.jboss.ws.core.server.ServiceEndpoint.processRequest(ServiceEndpoint.java:212)
      10:55:17,750 ERROR [STDERR] at org.jboss.ws.core.server.ServiceEndpointManager.processRequest(ServiceEndpointManager.java:448)
      10:55:17,750 ERROR [STDERR] at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114)
      10:55:17,750 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      10:55:17,750 ERROR [STDERR] at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75)
      10:55:17,750 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      10:55:17,750 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      10:55:17,765 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      10:55:17,765 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      10:55:17,765 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      10:55:17,765 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      10:55:17,765 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      10:55:17,765 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      10:55:17,765 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      10:55:17,765 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      10:55:17,765 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      10:55:17,765 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      10:55:17,765 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      10:55:17,765 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      10:55:17,765 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
      10:55:17,765 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      10:55:17,765 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
      10:55:17,765 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      10:55:17,781 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      10:55:17,781 ERROR [JmsCourier] Object in JMS message is not a Serializeable
      java.io.IOException: org.jboss.soa.esb.UnmarshalException: java.lang.NullPointerException
      at org.jboss.soa.esb.util.Util.deserialize(Util.java:219)
      at org.jboss.internal.soa.esb.couriers.JmsCourier.pickup(JmsCourier.java:356)
      at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup(TwoWayCourierImpl.java:223)
      at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup(TwoWayCourierImpl.java:205)
      at org.jboss.soa.esb.listeners.message.MessageDeliveryAdapter.attemptDelivery(MessageDeliveryAdapter.java:216)
      at org.jboss.soa.esb.listeners.message.MessageDeliveryAdapter.deliver(MessageDeliveryAdapter.java:147)
      at org.jboss.soa.esb.listeners.message.MessageDeliveryAdapter.deliverSync(MessageDeliveryAdapter.java:109)
      at com.cvicse.esb.ESBWebservice.sayHello(ESBWebservice.java:32)
      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.ws.core.server.ServiceEndpointInvokerJSE.invokeServiceEndpointInstance(ServiceEndpointInvokerJSE.java:104)
      at org.jboss.ws.core.server.AbstractServiceEndpointInvoker.invoke(AbstractServiceEndpointInvoker.java:207)
      at org.jboss.ws.core.server.ServiceEndpoint.processRequest(ServiceEndpoint.java:212)
      at org.jboss.ws.core.server.ServiceEndpointManager.processRequest(ServiceEndpointManager.java:448)
      at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      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:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:595)
      10:55:17,781 INFO [STDOUT] org.jboss.soa.esb.listeners.message.MessageDeliverException: Failed to deliver message to Service [FirstServiceESBTest:SimpleListenerTest]. Check for errors.
      10:55:17,781 INFO [STDOUT] org.jboss.soa.esb.listeners.message.MessageDeliverException: Failed to deliver message to Service [FirstServiceESBTest:SimpleListenerTest]. Check for errors.
      10:55:17,781 INFO [STDOUT] at org.jboss.soa.esb.listeners.message.MessageDeliveryAdapter.deliver(MessageDeliveryAdapter.java:156)
      10:55:17,781 INFO [STDOUT] at org.jboss.soa.esb.listeners.message.MessageDeliveryAdapter.deliverSync(MessageDeliveryAdapter.java:109)
      10:55:17,781 INFO [STDOUT] at com.cvicse.esb.ESBWebservice.sayHello(ESBWebservice.java:32)
      10:55:17,781 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      10:55:17,781 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      10:55:17,781 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      10:55:17,796 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
      10:55:17,796 INFO [STDOUT] at org.jboss.ws.core.server.ServiceEndpointInvokerJSE.invokeServiceEndpointInstance(ServiceEndpointInvokerJSE.java:104)
      10:55:17,796 INFO [STDOUT] at org.jboss.ws.core.server.AbstractServiceEndpointInvoker.invoke(AbstractServiceEndpointInvoker.java:207)
      10:55:17,796 INFO [STDOUT] at org.jboss.ws.core.server.ServiceEndpoint.processRequest(ServiceEndpoint.java:212)
      10:55:17,796 INFO [STDOUT] at org.jboss.ws.core.server.ServiceEndpointManager.processRequest(ServiceEndpointManager.java:448)
      10:55:17,796 INFO [STDOUT] at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114)
      10:55:17,796 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      10:55:17,796 INFO [STDOUT] at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75)
      10:55:17,796 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      10:55:17,796 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      10:55:17,796 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      10:55:17,796 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      10:55:17,796 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      10:55:17,796 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      10:55:17,796 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      10:55:17,796 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      10:55:17,796 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      10:55:17,796 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      10:55:17,796 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      10:55:17,796 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      10:55:17,796 INFO [STDOUT] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      10:55:17,796 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      10:55:17,812 INFO [STDOUT] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
      10:55:17,812 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      10:55:17,812 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
      10:55:17,812 INFO [STDOUT] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      10:55:17,812 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)

        • 1. Re: an error occured when I use esb to invoke the ejb throug
          Mark Little Master

          Can you try with the trunk, i.e., check out ESB via anonsvn and try again with that code? Although some of the code your stack trace touches hasn't changed in a while, some of it has. Just looking at the trunk code:

          10:55:17,281 ERROR [STDERR] MyAction error invoke
          10:55:17,312 ERROR [STDERR] java.lang.NullPointerException
          10:55:17,312 ERROR [STDERR] at java.net.URI$Parser.parse(URI.java:3010)
          10:55:17,312 ERROR [STDERR] at java.net.URI.(URI.java:578)
          10:55:17,312 ERROR [STDERR] at org.jboss.internal.soa.esb.addressing.helpers.CallHelper.fromXML(CallHelper.java:150)
          


          indicates that the RelatesTo component of the message header is invalid (null). I've updated the code so we trap that (we should have). So although this won't fix your problem, it'll at least get handled more gracefully.

          If you can try with the latest trunk and this still problem still happens, then let us know.

          • 2. Re: an error occured when I use esb to invoke the ejb throug
            Kevin Conner Master

             

            "sdwfxsf" wrote:
            10:55:17,281 ERROR [STDERR] Caused by: org.jboss.ws.WSException: Invalid HTTP server response [404] - /EchoBeanServiceService/EchoBeanService


            The other issue is that your webservice was not running at the expected location. Check your webservice and configuration.


            • 3. Re: an error occured when I use esb to invoke the ejb throug
              Sean Xiao Newbie

              Thanks for your help,this problem has been solved.At first I can't access to the web service,from the internet it is said that I should add two lines:
              System.setProperty("http.proxyHost", "host");
              System.setProperty("http.proxyPort", "port").
              So I add these and can access web service.

              This time someone tell me it's not right and delete the two.When I deleted these,it's OK.It maks me puzzled.

              • 4. Re: an error occured when I use esb to invoke the ejb throug
                Kevin Conner Master

                These properties should only be required if you do not have direct access to the webservice and have to go via a web proxy.