Announcement Announcement Module
Collapse
No announcement yet.
Problem with SOAP Header Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with SOAP Header

    Hi,
    This is the header info from my request, and I am getting null pointer Exception while parsing soap header???

    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" is defined at three levels , envelope, header, secuirty , If remove from header and security it works fine? My client is sending request like this. See error below.


    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

    <wsse:Security xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" SOAP-ENV:mustUnderstand="1">
    <wsse:UsernameToken> <wsse:Username>User</wsse:Username> <wsse:Password>PWD</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>

    ERROR: 'NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.'
    Mar 12, 2008 5:58:45 PM com.sun.xml.messaging.saaj.soap.EnvelopeFactory createEnvelope
    SEVERE: SAAJ0511: Unable to create envelope from given source
    2008-03-12 17:58:45,172 DEBUG MessageTracing[receive() line 160] - Received request [SaajSoapMessage]
    2008-03-12 17:58:45,172 DEBUG SoapMessageDispatcher[processEndpointException() line 306] - Testing endpoint exception resolver [org.springframework.ws.soap.serve
    2008-03-12 17:58:45,172 DEBUG MessageDispatcherServlet[processRequest() line 493] - Could not complete request
    java.lang.NullPointerException
    at org.springframework.ws.soap.saaj.Saaj13Implementat ion.getName(Saaj13Implementation.java:67)
    at org.springframework.ws.soap.saaj.SaajSoapEnvelope. getBody(SaajSoapEnvelope.java:50)
    at org.springframework.ws.soap.AbstractSoapMessage.ge tSoapBody(AbstractSoapMessage.java:36)
    at org.springframework.ws.soap.AbstractSoapMessage.ge tPayloadSource(AbstractSoapMessage.java:46)
    at org.springframework.ws.server.endpoint.mapping.Pay loadRootAnnotationMethodEndpointMapping.getLookupK eyForMessage(PayloadRootAnnotationMethodEndpointMa
    at org.springframework.ws.server.endpoint.mapping.Abs tractMethodEndpointMapping.getEndpointInternal(Abs tractMethodEndpointMapping.java:54)
    at org.springframework.ws.server.endpoint.mapping.Abs tractEndpointMapping.getEndpoint(AbstractEndpointM apping.java:83)
    at org.springframework.ws.server.MessageDispatcher.ge tEndpoint(MessageDispatcher.java:242)
    at org.springframework.ws.server.MessageDispatcher.di spatch(MessageDispatcher.java:195)
    at org.springframework.ws.server.MessageDispatcher.re ceive(MessageDispatcher.java:162)
    at org.springframework.ws.transport.support.WebServic eMessageReceiverObjectSupport.handleConnection(Web ServiceMessageReceiverObjectSupport.java:87)
    at org.springframework.ws.transport.http.WebServiceMe ssageReceiverHandlerAdapter.handle(WebServiceMessa geReceiverHandlerAdapter.java:57)
    at org.springframework.ws.transport.http.MessageDispa tcherServlet.doService(MessageDispatcherServlet.ja va:197)
    at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:476)
    at org.springframework.web.servlet.FrameworkServlet.d oPost(FrameworkServlet.java:441)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:263)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:844)

  • #2
    upgrading Jdk5.-13 fixed the problem if any one has this problem.

    Comment

    Working...
    X