[jboss-user] [JBossWS] - NullPointerException with a WS request

sandypm0 do-not-reply at jboss.com
Fri Aug 24 17:33:04 EDT 2007


I am using Jboss-4.0.5 and JbossWS-1.2.1. I get this error, and it occurs now and then. 80% of the time it works and 20% of the time it throws the following error.


  | 2007-08-24 17:09:41,540 ERROR [org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper] Err
  | or creating SOAPFault message
  | java.lang.NullPointerException
  |         at com.sun.org.apache.xerces.internal.dom.NodeImpl.toString(Unknown Sour
  | ce)
  |         at org.jboss.ws.soap.NodeImpl.toString(NodeImpl.java:561)
  |         at java.lang.String.valueOf(String.java:1475)
  |         at org.jboss.lang.JBossStringBuilder.append(JBossStringBuilder.java:116)
  |         at org.jboss.ws.soap.SOAPContentElement.appendChild(SOAPContentElement.j
  | ava:713)
  |         at org.jboss.ws.soap.SOAPElementImpl.addChildElement(SOAPElementImpl.jav
  | a:221)
  |         at org.jboss.ws.soap.SOAPContentElement.addChildElement(SOAPContentEleme
  | nt.java:441)
  |         at org.jboss.ws.soap.SOAPFaultImpl.setFaultCode(SOAPFaultImpl.java:253)
  |         at org.jboss.ws.soap.SOAPBodyImpl.addFault(SOAPBodyImpl.java:133)
  |         at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.toSOAPMessage(SOAPFaultE
  | xceptionHelper.java:214)
  |         at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.exceptionToFaultMessage(
  | SOAPFaultExceptionHelper.java:188)
  |         at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.jav
  | a:223)
  |         at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(Service
  | EndpointManager.java:355)
  |         at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointSe
  | rvlet.java:115)
  |         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  |         at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointS
  | ervlet.java:76)
  |         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  |         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
  | icationFilterChain.java:252)
  |         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
  | ilterChain.java:173)
  |         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
  | lter.java:96)
  |         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
  | icationFilterChain.java:202)
  |         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
  | ilterChain.java:173)
  |         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
  | alve.java:213)
  |         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
  | alve.java:178)
  |         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
  | yAssociationValve.java:175)
  |         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
  | torBase.java:524)
  |         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
  | e.java:74)
  |         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
  | ava:126)
  |         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
  | ava:105)
  |         at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConne
  | ctionValve.java:156)
  |         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
  | ve.java:107)
  |         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
  | a:148)
  |         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
  | :869)
  |         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
  | rocessConnection(Http11BaseProtocol.java:664)
  |         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
  | int.java:527)
  |         at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
  | kerThread.java:112)
  |         at java.lang.Thread.run(Thread.java:797)
  | 2007-08-24 17:09:41,541 ERROR [org.jboss.ws.server.StandardEndpointServlet] Erro
  | r processing web service request
  | Servlet.service
  | () for servlet AutoLendingServlet threw exception
  | javax.xml.rpc.JAXRPCException: Cannot create SOAPFault message for: javax.xml.rp
  | c.soap.SOAPFaultException: java.lang.NullPointerException
  |         at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.exceptionToFaultMessage(
  | SOAPFaultExceptionHelper.java:194)
  |         at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.jav
  | a:223)
  |         at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(Service
  | EndpointManager.java:355)
  |         at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointSe
  | rvlet.java:115)
  |         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  |         at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointS
  | ervlet.java:76)
  |         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  |         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
  | icationFilterChain.java:252)
  |         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
  | ilterChain.java:173)
  |         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
  | lter.java:96)
  |         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
  | icationFilterChain.java:202)
  |         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
  | ilterChain.java:173)
  |         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
  | alve.java:213)
  |         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
  | alve.java:178)
  |         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
  | yAssociationValve.java:175)
  |         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
  | torBase.java:524)
  |         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
  | e.java:74)
  |         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
  | ava:126)
  |         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
  | ava:105)
  |         at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConne
  | ctionValve.java:156)
  |         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
  | ve.java:107)
  |         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
  | a:148)
  |         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
  | :869)
  |         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
  | rocessConnection(Http11BaseProtocol.java:664)
  |         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
  | int.java:527)
  |         at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
  | kerThread.java:112)
  |         at java.lang.Thread.run(Thread.java:797)
  | 

The Client side is registering the SOAP request which was sent down to the server, and everything looks OK. Is there any known issue regarding this?



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077941#4077941

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077941



More information about the jboss-user mailing list