cancel
Showing results for 
Search instead for 
Did you mean: 

strange CMIS errors

aweber1nj
Champ in-the-making
Champ in-the-making
I'm seeing these stack traces sporadically.  It does not seem to be on the same object every time, so I can't really figure out what's wrong.  Could it be a network glitch?  If so, how do we improve this (retries or something?)?
org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Parsing exception!
   at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:531)
   at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getObjectInternal(AbstractAtomPubService.java:779)
   at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.getObject(ObjectServiceImpl.java:510)
   at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObject(SessionImpl.java:393)

Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[com.ctc.wstx.exc.WstxIOException: Premature EOF]
   at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:426)
   at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:362)
   at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:339)
   at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.unmarshalElement(AtomPubParser.java:392)
   at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parseElement(AtomPubParser.java:349)
   at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parseEntry(AtomPubParser.java:295)
   at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parse(AtomPubParser.java:123)
   at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:529)
   … 9 more
Caused by: com.ctc.wstx.exc.WstxIOException: Premature EOF
   at com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:683)
   at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1086)
   at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:192)
   at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:360)
   … 15 more
Caused by: java.io.IOException: Premature EOF
   at sun.net.www.http.ChunkedInputStream.fastRead(ChunkedInputStream.java:234)
   at sun.net.www.http.ChunkedInputStream.read(ChunkedInputStream.java:662)
   at java.io.FilterInputStream.read(FilterInputStream.java:116)
   at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2676)
   at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2671)
   at com.ctc.wstx.io.UTF8Reader.loadMore(UTF8Reader.java:362)
   at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:110)
   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.loadMoreFromCurrent(StreamScanner.java:1021)
   at com.ctc.wstx.sr.StreamScanner.parseLocalName2(StreamScanner.java:1771)
   at com.ctc.wstx.sr.StreamScanner.parseLocalName(StreamScanner.java:1731)
   at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2912)
   at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2846)
   at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
   … 17 more

Any ideas what this is, and how I might be able to troubleshoot it and/or avoid it?
Thanks,
AJ
2 REPLIES 2

jpotts
World-Class Innovator
World-Class Innovator
How large are the objects you are trying to persist? Is there any consistency between the file size and the occurrence of this error?

Jeff

aweber1nj
Champ in-the-making
Champ in-the-making
They're all Folders that I am fetching.

And one folder could succeed 10x, then fail, then succeed again.