Hello!  I have 2 questions.

I'm new to AXIS.  I'm writing a client for a webservice produced by someone
else.  I have a non-data binding client using the Axis plugin for
Eclipse, and it was working fine -- and then it abruptly stopped working.
Our webservice provider says it works inside their network and nothing has
change on their end.

I'm getting an IOException/closed stream error; see below for debugging
output.

Question: What would cause this to stop receiving the second chunk?  From
experimenting with a databinding client, I believe that the response below
is the complete first chunk, which then gets processed, instead of getting
the 2nd chunk and then processing the entire stream.

thanks in advance for any help,
dave

DEBUG header - << "Server: Microsoft-IIS/5.0[\r][\n]"
DEBUG header - << "Date: Thu, 17 Aug 2006 14:56:12 GMT[\r][\n]"
DEBUG header - << "CacheControl: Private[\r][\n]"
DEBUG header - << "X-Powered-By: ASP.NET[\r][\n]"
DEBUG HttpMethodBase - enter
HttpMethodBase.processResponseHeaders(HttpState, HttpConnection)
INFO  HttpMethodBase - Discarding unexpected response: HTTP/1.1 100
Continue
DEBUG HttpMethodBase - enter HttpMethodBase.readStatusLine(HttpState,
HttpConnection)
DEBUG HttpConnection - enter HttpConnection.readLine()
DEBUG HttpParser - enter HttpParser.readLine(InputStream, String)
DEBUG HttpParser - enter HttpParser.readRawLine()
DEBUG header - << "HTTP/1.1 200 OK[\r][\n]"
DEBUG HttpMethodBase - enter
HttpMethodBase.readResponseHeaders(HttpState,HttpConnection)
DEBUG HttpConnection - enter HttpConnection.getResponseInputStream()
DEBUG HttpParser - enter HeaderParser.parseHeaders(InputStream, String)
DEBUG HttpParser - enter HttpParser.readLine(InputStream, String)
DEBUG HttpParser - enter HttpParser.readRawLine()
DEBUG HttpParser - enter HttpParser.readLine(InputStream, String)
DEBUG HttpParser - enter HttpParser.readRawLine()
DEBUG HttpParser - enter HttpParser.readLine(InputStream, String)
DEBUG HttpParser - enter HttpParser.readRawLine()
DEBUG HttpParser - enter HttpParser.readLine(InputStream, String)
DEBUG HttpParser - enter HttpParser.readRawLine()
DEBUG HttpParser - enter HttpParser.readLine(InputStream, String)
DEBUG HttpParser - enter HttpParser.readRawLine()
DEBUG HttpParser - enter HttpParser.readLine(InputStream, String)
DEBUG HttpParser - enter HttpParser.readRawLine()
DEBUG HttpParser - enter HttpParser.readLine(InputStream, String)
DEBUG HttpParser - enter HttpParser.readRawLine()
DEBUG header - << "Server: Microsoft-IIS/5.0[\r][\n]"
DEBUG header - << "Date: Thu, 17 Aug 2006 14:56:12 GMT[\r][\n]"
DEBUG header - << "CacheControl: Private[\r][\n]"
DEBUG header - << "X-Powered-By: ASP.NET[\r][\n]"
DEBUG header - << "Connection: close[\r][\n]"
DEBUG header - << "Content-Type: text/xml; charset=utf-8[\r][\n]"
DEBUG HttpMethodBase - enter
HttpMethodBase.processResponseHeaders(HttpState, HttpConnection)
DEBUG HttpMethodBase - enter HttpMethodBase.readResponseBody(HttpState,
HttpConnection)
DEBUG HttpMethodBase - enter
HttpMethodBase.readResponseBody(HttpConnection)
DEBUG HttpConnection - enter HttpConnection.getResponseInputStream()
DEBUG HttpMethodBase - enter HttpMethodBase.canResponseHaveBody(int)
DEBUG HeaderElement - enter HeaderElement.parseElements(String)
DEBUG HeaderElement - enter HeaderElement.parseElements(char[])
DEBUG HeaderElement - enter HeaderElement.getParameterByName(String)
DEBUG content - << "<?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";>[\n]"
DEBUG content - << " <soapenv:Body>[\n]"
DEBUG content - << "  <ns1:insertUserDefinedResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:ns1="http://ud.webservices";>[\n]"
DEBUG content - << "   <insertUserDefinedReturn xsi:type="soapenc:string"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>&lt;UserDefined&gt;&lt;Service&gt;5001-53263&lt;/Service&gt;&lt;Type&gt;1&lt;/Type&gt;&lt;Successful&gt;1&lt;/Successful&gt;&lt;UserDefinedDetails
seq=&quot;1&quot;&gt;&lt;Id&gt;1435&lt;/Id&gt;&lt;Cid&gt;1959&lt;/Cid&gt;&lt;ChildCid&gt;1959&lt;/ChildCid&gt;&lt;FromCpt&gt;ALL&lt;/FromCpt&gt;&lt;ThruCpt&gt;ALL&lt;/ThruCpt&gt;&lt;FromIcd9&gt;250.00&lt;/FromIcd9&gt;&lt;ThruIcd9&gt;250.00&lt;/ThruIcd9&gt;&lt;DotColor&gt;R&lt;/DotColor&gt;&lt;AdviceText&gt;&lt;![CDATA[Insert%20Test]]&gt;&lt;/AdviceText&gt;&lt;/UserDefinedDetails&gt;&lt;UserDefinedDetails
seq=&quot;2&quot;&gt;&lt;Id&gt;1436&lt;/Id&gt;&lt;Cid&gt;1959&lt;/Cid&gt;&lt;ChildCid&gt;1959&lt;/ChildCid&gt;&lt;FromCpt&gt;99201&lt;/FromCpt&gt;&lt;ThruCpt&gt;9"
DEBUG StAXSOAPModelBuilder - START_ELEMENT:
{http://schemas.xmlsoap.org/soap/envelope/}Envelope:Envelope
DEBUG StAXSOAPModelBuilder - Starting to process SOAP 1.1 message
DEBUG StAXSOAPModelBuilder - Build the OMElelment EnvelopeBy the
StaxSOAPModelBuilder
DEBUG Phase - Checking pre-condition for Phase "Transport"
DEBUG Phase - Invoking phase "Transport"
DEBUG Phase - Invoking Handler 'RequestURIBasedDispatcher' in Phase
'Transport'
DEBUG Phase - Invoking Handler 'SOAPActionBasedDispatcher' in Phase
'Transport'
DEBUG Phase - Checking post-conditions for phase "Transport"
DEBUG Phase - Checking pre-condition for Phase "Security"
java.lang.RuntimeException: org.apache.axiom.om.OMException:
java.lang.RuntimeException: [was class java.io.IOException] Attempted read
on closed stream.
        at com.medaptus.Test.main(Test.java:24)
Caused by: org.apache.axiom.om.OMException: java.lang.RuntimeException:
[was class java.io.IOException] Attempted read on closed stream.
        at
        
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
        at
        
org.apache.axiom.om.impl.llom.OMElementImpl.buildNext(OMElementImpl.java:552)
        at
        
org.apache.axiom.om.impl.llom.OMElementImpl.getFirstOMChild(OMElementImpl.java:562)
        at
        
org.apache.axiom.om.impl.llom.OMElementImpl.getText(OMElementImpl.java:684)DEBUG
 Phase - Invoking phase "Security"
DEBUG Phase - Checking post-conditions for phase "Security"
DEBUG Phase - Checking pre-condition for Phase "PreDispatch"
DEBUG Phase - Invoking phase "PreDispatch"
DEBUG Phase - Checking post-conditions for phase "PreDispatch"
DEBUG Phase - Checking pre-condition for Phase "Dispatch"
DEBUG Phase - Invoking phase "Dispatch"
DEBUG Phase - Invoking Handler 'AddressingBasedDispatcher' in Phase
'Dispatch'
DEBUG Phase - Invoking Handler 'SOAPMessageBodyBasedDispatcher' in Phase
'Dispatch'
DEBUG Phase - Invoking Handler 'InstanceDispatcher' in Phase 'Dispatch'
DEBUG Phase - Checking post-conditions for phase "Dispatch"
DEBUG Phase - Checking pre-condition for Phase "OperationInPhase"
DEBUG Phase - Invoking phase "OperationInPhase"
DEBUG Phase - Checking post-conditions for phase "OperationInPhase"
DEBUG StAXSOAPModelBuilder - CHARACTERS: [
 ]
DEBUG StAXSOAPModelBuilder - START_ELEMENT:
{http://schemas.xmlsoap.org/soap/envelope/}Body:Body
DEBUG StAXSOAPModelBuilder - Build the OMElelment BodyBy the
StaxSOAPModelBuilder
DEBUG StAXSOAPModelBuilder - CHARACTERS: [
  ]
DEBUG StAXSOAPModelBuilder - START_ELEMENT:
{http://ud.webservices}insertUserDefinedResponse:insertUserDefinedResponse
DEBUG StAXSOAPModelBuilder - Build the OMElelment
insertUserDefinedResponseBy the StaxSOAPModelBuilder
DEBUG StAXSOAPModelBuilder - CHARACTERS: [
   ]
DEBUG StAXSOAPModelBuilder - START_ELEMENT:
insertUserDefinedReturn:insertUserDefinedReturn
DEBUG StAXSOAPModelBuilder - Build the OMElelment insertUserDefinedReturnBy
the StaxSOAPModelBuilder
DEBUG HttpMethodBase - Should close connection in response to directive:
close
DEBUG HttpConnection - enter HttpConnection.close()
DEBUG HttpConnection - enter HttpConnection.closeSockedAndStreams()
DEBUG HttpConnection - enter HttpConnection.releaseConnection()
DEBUG HttpConnection - Releasing connection back to connection manager.
Foo:

        at com.medaptus.Test.nonDataBindingTest(Test.java:71)
        at com.medaptus.Test.main(Test.java:22)
Caused by: java.lang.RuntimeException: [was class java.io.IOException]
Attempted read on closed stream.
        at
        
com.ctc.wstx.util.ExceptionUtil.throwRuntimeException(ExceptionUtil.java:18)
        at
        com.ctc.wstx.sr.StreamScanner.throwLazyError(StreamScanner.java:673)
        at
        
com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3471)
        at
        com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:776)
        at
        
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:146)
        ... 5 more
Caused by: java.io.IOException: Attempted read on closed stream.
        at
        
org.apache.commons.httpclient.AutoCloseInputStream.isReadAllowed(AutoCloseInputStream.java:165)
        at
        
org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:125)
        at com.ctc.wstx.io.UTF8Reader.loadMore(UTF8Reader.java:354)
        at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:110)
        at com.ctc.wstx.io.MergedReader.read(MergedReader.java:101)
        at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:84)
        at
        
com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57)
        at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:934)
        at
        
com.ctc.wstx.sr.BasicStreamReader.readTextSecondary(BasicStreamReader.java:4362)
        at
        
com.ctc.wstx.sr.BasicStreamReader.readCoalescedText(BasicStreamReader.java:3930)
        at
        
com.ctc.wstx.sr.BasicStreamReader.finishToken(BasicStreamReader.java:3509)
        at
        
com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3469)
        ... 7 more
Exception in thread "main" 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to