axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew B <vidal_buff...@yahoo.com>
Subject [Axis2] OMException on calling service
Date Wed, 14 Jun 2006 22:28:49 GMT
Firstly, thanks to everyone for answering my previous questions.
Now, I am trying to call an Axis2 service, which presently just contains the generated classes
(by WSDL2Java) with no business logic. 

The exception is:

17:20:32,890 ERROR [[AxisServlet]] Servlet.service() for servlet AxisServlet threw exception
org.apache.axiom.om.OMException
    at org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:265)
    at org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.hasNext(OMChildrenQNameIterator.java:75)
    at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:222)
    at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.java:76)
    at org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java:183)
    at org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:168)
    at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:153)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
.....
followed by
7:20:32,906 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been called for this response
    at org.apache.catalina.connector.Response.getWriter(Response.java:596)
    at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:186)
    at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124)
    at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117)
    at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191)
    at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115)
.....

Now, from the stack trace, it looks like it is trying to read the SOAP envelope. So, I started
up tcpmon, and the SOAP request looks like this:

POST /axis2/services/TTWSServiceService HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.3
Host: 127.0.0.1:8888
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 623
Authorization: Basic V0FMTUFSVDpXQUwxMjNNQVJU
dffb

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><TTIS
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="VW_TrailerData_Request_Schema.xsd">
    <TRAILERDATATRNRQ>
        <TRNID>1111</TRNID>
        <TRAILERDATARQ>
            <TARGETASSETS>
                <TARGETALL>Y</TARGETALL>
            </TARGETASSETS>
            <GETLATESTDATA>Y</GETLATESTDATA>
            <COMPRESS>Y</COMPRESS>
        </TRAILERDATARQ>
    </TRAILERDATATRNRQ>
</TTIS></soapenv:Body></soapenv:Envelope>

Any help is appreciated!

Thanks

 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Mime
View raw message