[ 
https://issues.apache.org/jira/browse/AXIS2-5967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17087516#comment-17087516
 ] 

Veeraraghavan Raman commented on AXIS2-5967:
--------------------------------------------

Hello Robert,

Please find the new trace below

Caused by: org.apache.axiom.om.OMException: Failed to fetch the MIME part 
content

                at 
org.apache.axiom.attachments.PartImpl.fetch(PartImpl.java:201)

                at 
org.apache.axiom.attachments.PartImpl.getContent(PartImpl.java:152)

                at 
org.apache.axiom.attachments.PartImpl.getInputStream(PartImpl.java:248)

                at 
org.apache.axiom.attachments.PartDataSource.getInputStream(PartDataSource.java:44)

                at 
javax.activation.DataHandler.getInputStream(DataHandler.java:238)

                at 
com.businessobjects.dsws.federator.Federator.createOutputFiles(Federator.java:418)

                at 
com.businessobjects.dsws.federator.Federator.replicateMTOM(Federator.java:372)

                at 
com.businessobjects.framework.federation.slave.internal.FederationClient.replicate(FederationClient.java:432)

                ... 12 more

Caused by: java.io.IOException: Attempted read on closed stream.

                at 
org.apache.http.conn.EofSensorInputStream.isReadAllowed(EofSensorInputStream.java:107)

                at 
org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:133)

                at java.io.FilterInputStream.read(FilterInputStream.java:143)

                at 
org.apache.axiom.om.util.DetachableInputStream.read(DetachableInputStream.java:147)

                at 
org.apache.james.mime4j.io.BufferedLineReaderInputStream.fillBuffer(BufferedLineReaderInputStream.java:111)

                at 
org.apache.james.mime4j.io.MimeBoundaryInputStream.fillBuffer(MimeBoundaryInputStream.java:223)

                at 
org.apache.james.mime4j.io.MimeBoundaryInputStream.read(MimeBoundaryInputStream.java:157)

                at 
org.apache.james.mime4j.io.BufferedLineReaderInputStream.fillBuffer(BufferedLineReaderInputStream.java:111)

                at 
org.apache.james.mime4j.io.BufferedLineReaderInputStream.read(BufferedLineReaderInputStream.java:158)

                at 
org.apache.james.mime4j.io.LineReaderInputStreamAdaptor.read(LineReaderInputStreamAdaptor.java:67)

                at 
org.apache.axiom.blob.OverflowableBlobImpl.readFrom(OverflowableBlobImpl.java:288)

                at 
org.apache.axiom.blob.OverflowableBlobImpl.readFrom(OverflowableBlobImpl.java:326)

                at 
org.apache.axiom.attachments.PartImpl.fetch(PartImpl.java:198)

 

> Attempted read on closed stream. on 
> ------------------------------------
>
>                 Key: AXIS2-5967
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5967
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.6.4
>            Reporter: Veeraraghavan Raman
>            Priority: Critical
>
> Hello Axis2 team,
>  
> While using the API to read the file chunks., we get the error "
> 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:107)
> "
>  
> We are currently using axis2 1.6.4, for our feature. the complete stack trace 
> is given below. We also use MTOM. Can you please let us know if there is a 
> fix already available. We have also tried the approaches 
>  
> *Approach 1* : disable the chunking mechanism.
>                         This I have tried by setting of below code. But Still 
> not working we are getting the same error.
> Options options = new Options();
> options.setProperty(HTTPConstants.CHUNKED, "false");
> this.getStub()._getServiceClient().setOverrideOptions(options);
>  
> *Approach 2* : disabling the MTOM option which mentioned in the link : 
> [https://jira.apache.org/jira/browse/AXIS2-5487]
>                       Still it is not working we are getting the same error. 
> Also disable the MTOM options from service.xml which is there in the 
> federation services.
>  
> but still the issue is unresolved. Kindly get back to us with the solution, 
> as this is a critical issue with our customers.
> Thanks,
> Veera
>  
>  
>                org.apache.axiom.attachments.PartImpl||IOException occurred 
> after reading 3877 bytes in 1 chunks
> 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:107)
>                at java.io.FilterInputStream.read(FilterInputStream.java:143)
>                at 
> org.apache.axiom.om.util.DetachableInputStream.read(DetachableInputStream.java:147)
>                at 
> org.apache.james.mime4j.io.BufferedLineReaderInputStream.fillBuffer(BufferedLineReaderInputStream.java:111)
>                at 
> org.apache.james.mime4j.io.MimeBoundaryInputStream.fillBuffer(MimeBoundaryInputStream.java:223)
>                at 
> org.apache.james.mime4j.io.MimeBoundaryInputStream.read(MimeBoundaryInputStream.java:157)
>                at 
> org.apache.james.mime4j.io.BufferedLineReaderInputStream.fillBuffer(BufferedLineReaderInputStream.java:111)
>                at 
> org.apache.james.mime4j.io.BufferedLineReaderInputStream.read(BufferedLineReaderInputStream.java:158)
>                at 
> org.apache.james.mime4j.io.LineReaderInputStreamAdaptor.read(LineReaderInputStreamAdaptor.java:67)
>                at 
> org.apache.axiom.attachments.DebugInputStream.read(DebugInputStream.java:98)
>                at 
> org.apache.axiom.blob.MemoryBlobOutputStream.readFrom(MemoryBlobOutputStream.java:78)
>                at 
> org.apache.axiom.blob.MemoryBlobImpl.readFrom(MemoryBlobImpl.java:64)
>                at 
> org.apache.axiom.attachments.PartImpl.fetch(PartImpl.java:198)
>                at 
> org.apache.axiom.attachments.PartImpl.getContent(PartImpl.java:152)
>                at 
> org.apache.axiom.attachments.PartImpl.getInputStream(PartImpl.java:248)
>                at 
> org.apache.axiom.attachments.PartDataSource.getInputStream(PartDataSource.java:44)
>                at 
> javax.activation.DataHandler.getInputStream(DataHandler.java:238)
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to