Announcement Announcement Module
Collapse
No announcement yet.
SoapFaultClientException.getSoapFault().getFaultDe ta: Attempted read on closed stream Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SoapFaultClientException.getSoapFault().getFaultDe ta: Attempted read on closed stream

    Hello,


    We try to access FaultDetail from (SoapFaultClientException) outside the scope of method WebServiceTemplate.marshalSendAndReceive and we got the exception "com.ctc.wstx.exc.WstxIOException: Attempted read on closed stream".

    (outside scope means after method marshalSendAndReceive() returns).


    Is it the reason why we got "Attempted read on closed stream" Exception ? (All stream are closed just before marshalSendAndReceive() method returns ?)



    Thanks in advance for your response.


    regards,
    jfdesmar


    Spring-ws release : 2.0.2

    SoapFaultClientException sfce = (SoapFaultClientException) e;
    SoapFaultDetail soapFaultDetail = (sfce).getSoapFault().getFaultDetail();



    org.springframework.ws.soap.axiom.AxiomSoapFaultEx ception: Could not access fault: com.ctc.w
    stx.exc.WstxIOException: Attempted read on closed stream.; nested exception is org.apache.axiom.om.OMException: com.
    ctc.wstx.exc.WstxIOException: Attempted read on closed stream.
    at org.springframework.ws.soap.axiom.AxiomSoapFault.g etFaultDetail(AxiomSoapFault.java:57)




    Caused by: org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Attempted read on closed stream.
    at org.apache.axiom.om.impl.builder.StAXOMBuilder.nex t(StAXOMBuilder.java:293)
    at org.apache.axiom.om.impl.llom.OMElementImpl.getNex tOMSibling(OMElementImpl.java:337)
    at org.apache.axiom.om.impl.traverse.OMChildrenQNameI terator.next(OMChildrenQNameIterator.java:118)
    at org.apache.axiom.om.impl.llom.OMElementImpl.getFir stChildWithName(OMElementImpl.java:275)
    at org.apache.axiom.soap.impl.llom.soap11.SOAP11Fault Impl.getDetail(SOAP11FaultImpl.java:140)
    at org.springframework.ws.soap.axiom.AxiomSoapFault.g etFaultDetail(AxiomSoapFault.java:53)
    ... 52 more
    Caused by: com.ctc.wstx.exc.WstxIOException: Attempted read on closed stream.
    at com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamS canner.java:708)
    at com.ctc.wstx.sr.BasicStreamReader.next(BasicStream Reader.java:1086)
    at org.apache.axiom.om.impl.builder.StAXOMBuilder.par serNext(StAXOMBuilder.java:672)
    at org.apache.axiom.om.impl.builder.StAXOMBuilder.nex t(StAXOMBuilder.java:214)
    ... 57 more
    Caused by: java.io.IOException: Attempted read on closed stream.
    at org.apache.commons.httpclient.AutoCloseInputStream .isReadAllowed(AutoCloseInputStream.java:183)
    at org.apache.commons.httpclient.AutoCloseInputStream .read(AutoCloseInputStream.java:126)
    at org.springframework.ws.transport.TransportInputStr eam.read(TransportInputStream.java:81)
    at com.ctc.wstx.io.UTF8Reader.loadMore(UTF8Reader.jav a:365)
    at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:11 0)
    at com.ctc.wstx.io.MergedReader.read(MergedReader.jav a:101)
    at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource .java:84)
    at com.ctc.wstx.io.BranchingReaderSource.readInto(Bra nchingReaderSource.java:57)
    at com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent( StreamScanner.java:1046)
    at com.ctc.wstx.sr.StreamScanner.parseLocalName2(Stre amScanner.java:1796)
    at com.ctc.wstx.sr.StreamScanner.parseLocalName(Strea mScanner.java:1756)
    at com.ctc.wstx.sr.BasicStreamReader.handleStartElem( BasicStreamReader.java:2914)
    at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(Bas icStreamReader.java:2848)
    at com.ctc.wstx.sr.BasicStreamReader.next(BasicStream Reader.java:1019)
Working...
X