local transport - AxisFault generated when running the transport in debug log 
level
-----------------------------------------------------------------------------------

                 Key: AXIS2-4931
                 URL: https://issues.apache.org/jira/browse/AXIS2-4931
             Project: Axis2
          Issue Type: Bug
    Affects Versions: nightly
         Environment: Ubuntu 10.04
Sun JDK 1.6
            Reporter: Heshan Suriyaarachchi
             Fix For: nightly


Hi, 

I am testing[1] the Axis2 local transport against Synapse's NHttp transport. I 
came across the following issue, when the debug log level was enabled. 

2011-01-18 12:16:40,883 [-] [HttpServerWorker-1] DEBUG TransportUtils 
createSOAPEnvelope using Builder (class org.apache.axis2.builder.SOAPBuilder) 
selected from type (text/xml)
2011-01-18 12:16:40,940 [-] [HttpServerWorker-1]  INFO LogMediator To: 
http://localhost:8280/services/TestProxy, WSAction: urn:getQuote, SOAPAction: 
urn:getQuote, ReplyTo: http://www.w3.org/2005/08/addressing/anonymous, 
MessageID: urn:uuid:11d86a0a-a943-44aa-b0a3-db91d81f73e7, Direction: request, 
Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Header 
xmlns:wsa="http://www.w3.org/2005/08/addressing";><wsa:To>http://localhost:8280/services/TestProxy</wsa:To><wsa:MessageID>urn:uuid:11d86a0a-a943-44aa-b0a3-db91d81f73e7</wsa:MessageID><wsa:Action>urn:getQuote</wsa:Action></soapenv:Header><soapenv:Body><m0:getQuote
 
xmlns:m0="http://services.samples";><m0:request><m0:symbol>IBM</m0:symbol></m0:request></m0:getQuote></soapenv:Body></soapenv:Envelope>
2011-01-18 12:16:40,954 [-] [HttpServerWorker-1]  INFO TimeoutHandler This 
engine will expire all callbacks after : 86400 seconds, irrespective of the 
timeout action, after the specified or optional timeout
2011-01-18 12:16:59,474 [-] [HttpServerWorker-1] DEBUG LocalTransportSender 
Sending - <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Header 
xmlns:wsa="http://www.w3.org/2005/08/addressing"; /><soapenv:Body><m0:getQuote 
xmlns:m0="http://services.samples";><m0:request><m0:symbol>IBM</m0:symbol></m0:request></m0:getQuote></soapenv:Body></soapenv:Envelope>
2011-01-18 12:17:15,539 [-] [HttpServerWorker-1] ERROR Axis2Sender Unexpected 
error during sending message out
org.apache.axis2.AxisFault: Trying to write END_DOCUMENT when document has no 
root (ie. trying to output empty document).
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at 
org.apache.axis2.transport.TransportUtils.writeMessage(TransportUtils.java:296)
        at 
org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:78)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
        at 
org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:191)
        at 
org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:174)
        at 
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
        at 
org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:403)
        at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:57)
        at 
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:232)
        at 
org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:256)
        at 
org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:59)
        at 
org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:173)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
        at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
        at 
org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:413)
        at 
org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:264)
        at 
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:58)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: javax.xml.stream.XMLStreamException: Trying to write END_DOCUMENT 
when document has no root (ie. trying to output empty document).
        at 
com.ctc.wstx.sw.BaseStreamWriter.throwOutputError(BaseStreamWriter.java:1473)
        at 
com.ctc.wstx.sw.BaseStreamWriter.reportNwfStructure(BaseStreamWriter.java:1502)
        at 
com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:1663)
        at com.ctc.wstx.sw.BaseStreamWriter.close(BaseStreamWriter.java:288)
        at 
org.apache.axiom.util.stax.wrapper.XMLStreamWriterWrapper.close(XMLStreamWriterWrapper.java:46)
        at 
org.apache.axiom.om.impl.MTOMXMLStreamWriter.close(MTOMXMLStreamWriter.java:188)
        at 
org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:197)
        at 
org.apache.axis2.transport.TransportUtils.writeMessage(TransportUtils.java:293)
        ... 19 more
2011-01-18 12:17:15,545 [-] [HttpServerWorker-1]  WARN EndpointContext Endpoint 
: ep1 will be marked SUSPENDED as it failed
2011-01-18 12:17:15,546 [-] [HttpServerWorker-1]  WARN EndpointContext 
Suspending endpoint : ep1 - current suspend duration is : 30000ms - Next retry 
after : Tue Jan 18 12:17:45 IST 2011

[1] - https://issues.apache.org/jira/browse/SYNAPSE-719

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to