Dynamic Dispatch Client - Null Pointer Exception while constructing SOAPResponse
--------------------------------------------------------------------------------

                 Key: AXIS2-4515
                 URL: https://issues.apache.org/jira/browse/AXIS2-4515
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: client-api
    Affects Versions: 1.5
            Reporter: prabu venkat


I am developing a dynamic dispatch client using jaxws apis. I am able to see 
the soap request sent and the response received (tcpmon; transcript below).  
However, I get a null pointer exception when, I think, the response SOAPMessage 
is constructed. I am using: SOAPBinding.SOAP11HTTP_BINDING, 
Service.Mode.MESSAGE, SOAPConstants.SOAP_1_1_PROTOCOL for the service/port, 
message mode and the factory protocol.

-*-
java.lang.NullPointerException
        at com.ctc.wstx.util.SymbolTable.findSymbol(SymbolTable.java:385)
        at com.ctc.wstx.sr.StreamScanner.parseLocalName(StreamScanner.java:1745)
        at 
com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2912)
        at 
com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2846)
        at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
        at 
com.sun.xml.internal.ws.util.xml.XMLStreamReaderFilter.next(XMLStreamReaderFilter.java:81)
        at 
com.sun.istack.internal.XMLStreamReaderToContentHandler.bridge(XMLStreamReaderToContentHandler.java:178)
        at 
com.sun.xml.internal.ws.message.stream.StreamMessage.writePayloadTo(StreamMessage.java:358)
        at 
com.sun.xml.internal.ws.message.stream.StreamMessage.writeTo(StreamMessage.java:448)
        at 
com.sun.xml.internal.ws.message.AbstractMessageImpl.readAsSOAPMessage(AbstractMessageImpl.java:182)
        at 
com.sun.xml.internal.ws.client.dispatch.SOAPMessageDispatch.toReturnValue(SOAPMessageDispatch.java:81)
        at 
com.sun.xml.internal.ws.client.dispatch.SOAPMessageDispatch.toReturnValue(SOAPMessageDispatch.java:57)
        at 
com.sun.xml.internal.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:191)
        at 
com.sun.xml.internal.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:195)
        at 
no.uib.bccs.esysbio.common.ui.beans.ServiceTreeOperationObject.launchOperation(ServiceTreeOperationObject.java:387)

-*request*-
POST /services/BLAST HTTP/1.1
Content-type: text/xml;charset="utf-8"
Content-length: 312
Accept: text/xml, multipart/related, text/html, image/gif, image/jpeg, *; q=.2, 
*/*; q=.2
Soapaction: ""
User-Agent: JAX-WS RI 2.1.6 in JDK 6
Cache-Control: no-cache
Pragma: no-cache
Host: api.bioinfo.no:3334
Connection: keep-alive

<?xml version='1.0' encoding='UTF-8'?>
   <SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>
      <SOAP-ENV:Body>
         <tns0:GetAvailableDatabases xmlns:tns0="http://www.bccs.uib.no/Blast";>
            <tns0:DatabaseType>protein</tns0:DatabaseType>
         </tns0:GetAvailableDatabases>
      </SOAP-ENV:Body>
   </SOAP-ENV:Envelope>

-*response*-
HTTP/1.1 200 OK
Date: Mon, 05 Oct 2009 16:24:06 GMT
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=C13F9A0C370C63963978C249FF07773A; Path=/axis2
Content-Type: text/xml;charset=utf-8
Via: 1.1 api.bioinfo.no:3334
Connection: close
Transfer-Encoding: chunked

1c8
<?xml version='1.0' encoding='utf-8'?>
   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
      <soapenv:Header />
      <soapenv:Body>
         <GetAvailableDatabasesResponse xmlns="http://www.bccs.uib.no/Blast";>
            <Database>
               <Name>cod_all_080503 protein predictions</Name>
               <Type>protein</Type>
            </Database>
            <Database>
               <Name>cod_all_081218 protein predictions</Name>
               <Type>protein</Type>
            </Database>
         </GetAvailableDatabasesResponse>
      </soapenv:Body>
   </soapenv:Envelope>0


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to