axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacques Poulin <jacques.pou...@gmail.com>
Subject Problem with long-distance web service
Date Wed, 05 Oct 2011 02:15:19 GMT
Hi,

I'm using the Codegen wizard in Eclipse to build an Axis2 web service
(1.6.1).

I deploy the .aar to a Tomcat server I've got on my Lan, and I use another
machine within the same Lan to call that service.  I can let it run for
days, it works flawlessly.  Note that the service returns a large response,
something like 150K.

I then deploy the service to a remote server.  When I say remote, I mean I'm
in Canada, and I'm calling the service in Australia.

For some reason, I get this error all the time, can anyone help ? :

org.apache.axis2.AxisFault: [was class java.io.IOException] Attempted read
from closed stream.
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at
ca.jpti.webservice.dbwrapperservice.DBWrapperStub.fromOM(DBWrapperStub.java:4274)
        at
ca.jpti.webservice.dbwrapperservice.DBWrapperStub.getLeagues(DBWrapperStub.java:859)
        at ca.jpti.scraper.data.League$leaguesThread.run(League.java:297)
        at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.RuntimeException: [was class java.io.IOException]
Attempted read from closed stream.
        at
com.ctc.wstx.util.ExceptionUtil.throwRuntimeException(ExceptionUtil.java:18)
        at
com.ctc.wstx.sr.StreamScanner.throwLazyError(StreamScanner.java:731)
        at
com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3657)
        at
com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:809)
        at
com.ctc.wstx.sr.BasicStreamReader.getElementText(BasicStreamReader.java:679)
        at
org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.getElementText(XMLStreamReaderWrapper.java:100)
        at
org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.getElementText(XMLStreamReaderWrapper.java:100)
        at
org.apache.axiom.om.impl.SwitchingWrapper.getElementText(SwitchingWrapper.java:953)
        at
javax.xml.stream.util.StreamReaderDelegate.getElementText(StreamReaderDelegate.java:100)
        at
org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.getElementText(XMLStreamReaderWrapper.java:100)
        at
org.apache.axiom.util.stax.debug.XMLStreamReaderValidator.getElementText(XMLStreamReaderValidator.java:76)
        at
ca.jpti.webservice.dbwrapperservice.GetLeaguesResponse$Factory.parse(GetLeaguesResponse.java:421)
        at
ca.jpti.webservice.dbwrapperservice.DBWrapperStub.fromOM(DBWrapperStub.java:4142)
        ... 3 more
Caused by: java.io.IOException: Attempted read from closed stream.
        at
org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream.java:169)
        at java.io.FilterInputStream.read(FilterInputStream.java:133)
        at
org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:108)
        at java.io.FilterInputStream.read(FilterInputStream.java:133)
        at
org.apache.axiom.om.util.DetachableInputStream.read(DetachableInputStream.java:147)
        at java.io.FilterInputStream.read(FilterInputStream.java:133)
        at java.io.PushbackInputStream.read(PushbackInputStream.java:186)
        at java.io.FilterInputStream.read(FilterInputStream.java:107)
        at com.ctc.wstx.io.UTF8Reader.loadMore(UTF8Reader.java:365)
        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:992)
        at
com.ctc.wstx.sr.BasicStreamReader.readTextSecondary(BasicStreamReader.java:4628)
        at
com.ctc.wstx.sr.BasicStreamReader.readCoalescedText(BasicStreamReader.java:4126)
        at
com.ctc.wstx.sr.BasicStreamReader.finishToken(BasicStreamReader.java:3701)
        at
com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3649)
        ... 13 more

Mime
View raw message