5 Replies Latest reply: Dec 21, 2011 9:31 AM by spyhunter99 RSS

NullPointerException in CXF

aaronbly Newbie

I am trying to track down an issue I am having in JBoss 6. I have a version that doesn't have CXF integrated into it and I have an application that makes a web service call to another application and everything works just fine. The response comes back correctly.

 

Now when I deploy the same application to a JBoss 6 with CXF integrated into it things don't work.

 

The request is made and is processed on the other application just fine...But when the application hands over the response CXF chokes on it with a NullPointerException.

 

I am hoping someone can tell me why CXF would choke when the service runs fine everywhere else.

 

Please help if you can.

 

Stack trace of the error below:

 

2011-07-26 13:28:03,458 WARN  [org.apache.cxf.phase.PhaseInterceptorChain] (http-0.0.0.0-8080-2) Interceptor for {ASPoWS.GetPO/wsdl}ASPoWS.GetPO#{.ASPoWS.GetPO/wsdl}GetPO has thrown exception, unwinding now: java.lang.NullPointerException
at java.lang.String.contains(String.java:2104)
at org.apache.cxf.helpers.DOMUtils.findAllElementsByTagNameNS(DOMUtils.java:624) [:2.3.1]
at org.apache.cxf.helpers.DOMUtils.findAllElementsByTagNameNS(DOMUtils.java:629) [:2.3.1]
at org.apache.cxf.helpers.DOMUtils.findAllElementsByTagNameNS(DOMUtils.java:629) [:2.3.1]
at org.apache.cxf.helpers.DOMUtils.findAllElementsByTagNameNS(DOMUtils.java:629) [:2.3.1]
at org.apache.cxf.helpers.DOMUtils.findAllElementsByTagNameNS(DOMUtils.java:617) [:2.3.1]
at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:153) [:2.3.1]
at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:60) [:2.3.1]
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255) [:2.3.1]
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:755) [:2.3.1]
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2332) [:2.3.1]
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2192) [:2.3.1]
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:2036) [:2.3.1]
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) [:2.3.1]
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:696) [:2.3.1]
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) [:2.3.1]
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255) [:2.3.1]
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516) [:2.3.1]
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313) [:2.3.1]
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265) [:2.3.1]
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) [:2.3.1]
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124) [:2.3.1]
at $Proxy132.getPO(Unknown Source) at gov.inl.externalws.client.wrapper.nextaxiom.GetPOWrapper.getPO(GetPOWrapper.java:61) [:]
at gov.inl.inlpows.INLPoWSImpl.getPO(INLPoWSImpl.java:57) [:]
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:597)
at org.jboss.wsf.common.invocation.AbstractInvocationHandlerJSE.invoke(AbstractInvocationHandlerJSE.java:102) [:1.4.1.GA]
at org.jboss.wsf.stack.cxf.AbstractInvoker._invokeInternal(AbstractInvoker.java:164) [:3.4.1.GA]
at org.jboss.wsf.stack.cxf.AbstractInvoker.invoke(AbstractInvoker.java:112) [:3.4.1.GA]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58) [:2.3.1]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:139)
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:38) [:2.3.1]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106) [:2.3.1]
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255) [:2.3.1]
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:113) [:2.3.1]
at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:99) [:2.3.1]
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:461) [:2.3.1]
at org.jboss.wsf.stack.cxf.ServletControllerExt.invoke(ServletControllerExt.java:172) [:3.4.1.GA]
at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:58) [:3.4.1.GA]
at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:156) [:3.4.1.GA]
at org.jboss.wsf.stack.cxf.CXFNonSpringServletExt.invoke(CXFNonSpringServletExt.java:91) [:3.4.1.GA]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:180) [:2.3.1]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:104) [:2.3.1]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [:1.0.0.Final]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159) [:2.3.1]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:262) [:1.1.0.Final]
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:131) [:6.0.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:111) [:6.0.0.Final]
at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]
at java.lang.Thread.run(Thread.java:619)

2011-07-26 13:28:03,693 ERROR [STDERR] (http-0.0.0.0-8080-2) javax.xml.ws.soap.SOAPFaultException: Fault string, and possibly fault code, not set

2011-07-26 13:28:03,693 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146)

2011-07-26 13:28:03,759 ERROR [STDERR] (http-0.0.0.0-8080-2)  at $Proxy132.getPO(Unknown Source)

2011-07-26 13:28:03,759 ERROR [STDERR] (http-0.0.0.0-8080-2)  at gov.inl.externalws.client.wrapper.nextaxiom.GetPOWrapper.getPO(GetPOWrapper.java:61)

2011-07-26 13:28:03,765 ERROR [STDERR] (http-0.0.0.0-8080-2)  at gov.inl.inlpows.INLPoWSImpl.getPO(INLPoWSImpl.java:57)

2011-07-26 13:28:03,767 ERROR [STDERR] (http-0.0.0.0-8080-2)  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2011-07-26 13:28:03,771 ERROR [STDERR] (http-0.0.0.0-8080-2)  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

2011-07-26 13:28:03,774 ERROR [STDERR] (http-0.0.0.0-8080-2)  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

2011-07-26 13:28:03,781 ERROR [STDERR] (http-0.0.0.0-8080-2)  at java.lang.reflect.Method.invoke(Method.java:597)

2011-07-26 13:28:03,784 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.wsf.common.invocation.AbstractInvocationHandlerJSE.invoke(AbstractInvocationHandlerJSE.java:102)

2011-07-26 13:28:03,788 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.wsf.stack.cxf.AbstractInvoker._invokeInternal(AbstractInvoker.java:164)

2011-07-26 13:28:03,792 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.wsf.stack.cxf.AbstractInvoker.invoke(AbstractInvoker.java:112)

2011-07-26 13:28:03,799 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)

2011-07-26 13:28:03,803 ERROR [STDERR] (http-0.0.0.0-8080-2)  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

2011-07-26 13:28:03,807 ERROR [STDERR] (http-0.0.0.0-8080-2)  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

2011-07-26 13:28:03,813 ERROR [STDERR] (http-0.0.0.0-8080-2)  at java.util.concurrent.FutureTask.run(FutureTask.java:138)

2011-07-26 13:28:03,817 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)

2011-07-26 13:28:03,820 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)

2011-07-26 13:28:03,824 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)

2011-07-26 13:28:03,831 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:113)

2011-07-26 13:28:03,835 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:97)

2011-07-26 13:28:03,838 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:461)

2011-07-26 13:28:03,842 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.wsf.stack.cxf.ServletControllerExt.invoke(ServletControllerExt.java:172)

2011-07-26 13:28:03,849 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:57)

2011-07-26 13:28:03,852 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:156)

2011-07-26 13:28:03,856 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.wsf.stack.cxf.CXFNonSpringServletExt.invoke(CXFNonSpringServletExt.java:90)

2011-07-26 13:28:03,860 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179)

2011-07-26 13:28:03,866 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:103)

2011-07-26 13:28:03,870 ERROR [STDERR] (http-0.0.0.0-8080-2)  at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

2011-07-26 13:28:03,873 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159)

2011-07-26 13:28:03,881 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)

2011-07-26 13:28:03,884 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

2011-07-26 13:28:03,888 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

2011-07-26 13:28:03,892 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

2011-07-26 13:28:03,898 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)

2011-07-26 13:28:03,902 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)

2011-07-26 13:28:03,906 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)

2011-07-26 13:28:03,906 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)

2011-07-26 13:28:03,906 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)

2011-07-26 13:28:03,906 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

2011-07-26 13:28:03,907 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

2011-07-26 13:28:03,907 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

2011-07-26 13:28:03,907 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

2011-07-26 13:28:03,907 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)

2011-07-26 13:28:03,907 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)

2011-07-26 13:28:03,908 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

2011-07-26 13:28:03,908 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)

2011-07-26 13:28:03,908 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)

2011-07-26 13:28:03,909 ERROR [STDERR] (http-0.0.0.0-8080-2)  at java.lang.Thread.run(Thread.java:619)

2011-07-26 13:28:03,909 ERROR [STDERR] (http-0.0.0.0-8080-2) Caused by: java.lang.NullPointerException

2011-07-26 13:28:03,910 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.endpoint.ClientImpl.processResult(ClientImpl.java:572)

2011-07-26 13:28:03,910 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:543)

2011-07-26 13:28:03,921 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)

2011-07-26 13:28:03,921 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)

2011-07-26 13:28:03,922 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)

2011-07-26 13:28:03,930 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)

2011-07-26 13:28:03,930 ERROR [STDERR] (http-0.0.0.0-8080-2)  at $Proxy132.getPO(Unknown Source)

2011-07-26 13:28:03,930 ERROR [STDERR] (http-0.0.0.0-8080-2)  at gov.inl.externalws.client.wrapper.nextaxiom.GetPOWrapper.getPO(GetPOWrapper.java:61)

2011-07-26 13:28:03,943 ERROR [STDERR] (http-0.0.0.0-8080-2)  at gov.inl.inlpows.INLPoWSImpl.getPO(INLPoWSImpl.java:57)

2011-07-26 13:28:03,943 ERROR [STDERR] (http-0.0.0.0-8080-2)  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2011-07-26 13:28:03,955 ERROR [STDERR] (http-0.0.0.0-8080-2)  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

2011-07-26 13:28:03,955 ERROR [STDERR] (http-0.0.0.0-8080-2)  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

2011-07-26 13:28:03,955 ERROR [STDERR] (http-0.0.0.0-8080-2)  at java.lang.reflect.Method.invoke(Method.java:597)

2011-07-26 13:28:03,965 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.wsf.common.invocation.AbstractInvocationHandlerJSE.invoke(AbstractInvocationHandlerJSE.java:102)

2011-07-26 13:28:03,965 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.wsf.stack.cxf.AbstractInvoker._invokeInternal(AbstractInvoker.java:164)

2011-07-26 13:28:03,965 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.wsf.stack.cxf.AbstractInvoker.invoke(AbstractInvoker.java:112)

2011-07-26 13:28:03,977 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)

2011-07-26 13:28:03,977 ERROR [STDERR] (http-0.0.0.0-8080-2)  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

2011-07-26 13:28:03,989 ERROR [STDERR] (http-0.0.0.0-8080-2)  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

2011-07-26 13:28:03,989 ERROR [STDERR] (http-0.0.0.0-8080-2)  at java.util.concurrent.FutureTask.run(FutureTask.java:139)

2011-07-26 13:28:03,990 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:38)

2011-07-26 13:28:04,002 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)

2011-07-26 13:28:04,002 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)

2011-07-26 13:28:04,003 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:113)

2011-07-26 13:28:04,023 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:99)

2011-07-26 13:28:04,024 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:461)

2011-07-26 13:28:04,024 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.wsf.stack.cxf.ServletControllerExt.invoke(ServletControllerExt.java:172)

2011-07-26 13:28:04,024 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:58)

2011-07-26 13:28:04,024 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:156)

2011-07-26 13:28:04,032 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.wsf.stack.cxf.CXFNonSpringServletExt.invoke(CXFNonSpringServletExt.java:91)

2011-07-26 13:28:04,032 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:180)

2011-07-26 13:28:04,047 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:104)

2011-07-26 13:28:04,047 ERROR [STDERR] (http-0.0.0.0-8080-2)  at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

2011-07-26 13:28:04,047 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159)

2011-07-26 13:28:04,060 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)

2011-07-26 13:28:04,060 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

2011-07-26 13:28:04,072 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

2011-07-26 13:28:04,072 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

2011-07-26 13:28:04,073 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)

2011-07-26 13:28:04,081 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)

2011-07-26 13:28:04,082 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:262)

2011-07-26 13:28:04,093 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)

2011-07-26 13:28:04,094 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)

2011-07-26 13:28:04,094 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:131)

2011-07-26 13:28:04,105 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

2011-07-26 13:28:04,105 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

2011-07-26 13:28:04,114 ERROR [STDERR] (http-0.0.0.0-8080-2)  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:111)

2011-07-26 13:28:04,114 ERROR [STDERR] (http-0.0.0.0-8080-2)  ... 6 more

2011-07-26 13:28:04,114 INFO  [STDOUT] (http-0.0.0.0-8080-2) returning to client.

  • 1. Re: NullPointerException in CXF
    aaronbly Newbie

    I was able to turn on the logging for the interceptor and here is the response back from the other application:

     

    --------------------------------------
    15:31:17,170 INFO  [org.apache.cxf.interceptor.LoggingInInterceptor] Inbound Mes
    sage
    ----------------------------
    ID: 1
    Response-Code: 200
    Encoding: UTF-8
    Content-Type: text/xml;charset=UTF-8
    Headers: {content-type=[text/xml;charset=UTF-8], connection=[Keep-Alive], Date=[Tue, 26 Jul 2011 21:31:15 GMT], Content-Length=[1100], Keep-alive=[timeout=15, max=99], Server=[Oracle-Application-Server-10g/10.1.3.5.0 Oracle-HTTP-Server]}
    Payload: <?xml version="1.0" encoding="UTF-8"?> <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Header><nxa:NextAxiomResponse xmlns:nxa="http://www.nextaxiom.com/soapservice"><Header contractName="GetPO" packageName="ASPoWS" contractId="INL_736_35C8D3XE" processId="7404" timeOutsideOfNXA="10" totalDataSizeFlowedInComposite="13503"><HSSession urlSpec="http://asmd24:7778/AssetSuite/NextAxiomServer" acctName="INL_Utilities" accountType="APPLICATION"></HSSession></Header><ExecutionStatus result="Success"></ExecutionStatus></nxa:NextAxiomResponse></soap-env:Header><soap-env:Body><GetPOResult xmlns="http://www.nextaxiom.com/soapservice/xsd1"><PO><purchaseOrderNbr>00000309</purchaseOrderNbr><poType>S</poType><poStatus>CANCELED</poStatus><statusDate>20010516
    </statusDate><agent>SL4</agent><vendorCode>0292681</vendorCode><blnktMaxValueFx>
    0</blnktMaxValueFx><blnktMinValueFx>0</blnktMinValueFx><blnktMaxQty>0</blnktMaxQ
    ty><bpoLineLimitFx>0</bpoLineLimitFx><poTotalTaxFx>0</poTotalTaxFx><poMaxFrtFx>0
    </poMaxFrtFx></PO></GetPOResult></soap-env:Body></soap-env:Envelope>

     

     

    So I am not sure what it is referring to for NullPointerException.

     

    Please help.

  • 2. Re: NullPointerException in CXF
    Alessio Soldano Master

    aaronbly wrote:

     

    I am trying to track down an issue I am having in JBoss 6. I have a version that doesn't have CXF integrated into it and I have an application that makes a web service call to another application and everything works just fine. The response comes back correctly.

     

    Now when I deploy the same application to a JBoss 6 with CXF integrated into it things don't work.

    You might want to start by comparing the messages sent and received when using the 2 different app server versions on the client side.

     

    Besides that, the exception appears to be due to an header with null namespace URI. Apache CXF should probably self-protect from that (you can most probably create a jira for this @Apache).

  • 3. Re: NullPointerException in CXF
    aaronbly Newbie

    I assume that this error is occuring in reading the SOAP Header and not the HTTP Header, correct?

     

     

    Thanks for your reply.

  • 4. Re: NullPointerException in CXF
    Alessio Soldano Master

    Sure

  • 5. Re: NullPointerException in CXF
    spyhunter99 Novice

    I've ran into similar issues with the native stack. Esscentially, it came down to a serialization issue from the code that was generated from 3.1.1, specifically within the ObjectFactory. If the xml element's name is different from the name of the type as defined in the wsdl/xsd, then this issue occurs. I'm not sure if it was fixed in later versions or not. At least when I ran into this, it was a version specific issue when generating the classes, not at runtime. The different versions of the runtime behaved the same for me.