NullPointerException - SoapSerializer.writeMessage(SoapSerializer.java:46)
--------------------------------------------------------------------------

                 Key: XFIRE-798
                 URL: http://jira.codehaus.org/browse/XFIRE-798
             Project: XFire
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.2.3
         Environment: Websphere 5.1
            Reporter: Jethro Bakker
         Assigned To: Dan Diephouse


Our webservice receives the following message:

<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/2001/envelope/"; .......

The default faulthandler detects a wrong soapversion:

DefaultFaultHandler- Fault occurred!
org.codehaus.xfire.fault.XFireFault: Invalid SOAP version: 
http://schemas.xmlsoap.org/soap/2001/envelope/

and tries to send the fault to the client:

DefaultFaultHandler- Could not send fault and then the nullpointer occurs.

DefaultFaultHandler- Could not send fault.
java.lang.NullPointerException
        at 
org.codehaus.xfire.soap.SoapSerializer.writeMessage(SoapSerializer.java:46)
        at 
org.codehaus.xfire.transport.http.HttpChannel.writeWithoutAttachments(HttpChannel.java:56)
        at 
org.codehaus.xfire.transport.http.XFireServletChannel.sendViaServlet(XFireServletChannel.java:84)
        at 
org.codehaus.xfire.transport.http.XFireServletChannel.send(XFireServletChannel.java:43)
        at org.codehaus.xfire.fault.FaultSender.invoke(FaultSender.java:37)
        at 
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at 
org.codehaus.xfire.handler.DefaultFaultHandler.sendFault(DefaultFaultHandler.java:88)
        at 
org.codehaus.xfire.handler.DefaultFaultHandler.invoke(DefaultFaultHandler.java:51)
        at 
org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:77)
        at 
org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
        at 
org.codehaus.xfire.transport.http.XFireServletController.invoke(XFireServletController.java:279)
        at 
org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:121)
        at 
org.codehaus.xfire.spring.remoting.XFireServletControllerAdapter.handleRequest(XFireServletControllerAdapter.java:63)
        at 
org.codehaus.xfire.spring.remoting.XFireExporter.handleRequest(XFireExporter.java:44)
        at 
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
        at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684)
        at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
        at 
org.springframework.web.servlet.FrameworkServlet.serviceWrapper(FrameworkServlet.java:386)
        at 
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:355)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to