Return-Path: Delivered-To: apmail-incubator-chemistry-dev-archive@minotaur.apache.org Received: (qmail 32759 invoked from network); 2 Feb 2011 12:27:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Feb 2011 12:27:17 -0000 Received: (qmail 26913 invoked by uid 500); 2 Feb 2011 12:27:17 -0000 Delivered-To: apmail-incubator-chemistry-dev-archive@incubator.apache.org Received: (qmail 26788 invoked by uid 500); 2 Feb 2011 12:27:14 -0000 Mailing-List: contact chemistry-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chemistry-dev@incubator.apache.org Delivered-To: mailing list chemistry-dev@incubator.apache.org Received: (qmail 26775 invoked by uid 99); 2 Feb 2011 12:27:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Feb 2011 12:27:14 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of florian.mueller@alfresco.com designates 207.126.144.113 as permitted sender) Received: from [207.126.144.113] (HELO eu1sys200aog102.obsmtp.com) (207.126.144.113) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 02 Feb 2011 12:27:05 +0000 Received: from source ([88.151.129.3]) by eu1sys200aob102.postini.com ([207.126.147.11]) with SMTP ID DSNKTUlNg4Vuze20uenDab+anGjdCet6BRU+@postini.com; Wed, 02 Feb 2011 12:26:45 UTC Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.alfresco.com (Postfix) with ESMTP id 384E4C0C0A1; Wed, 2 Feb 2011 12:26:43 +0000 (GMT) X-Virus-Scanned: amavisd-new at unx-d-manc4.tc.ifeltd.com Received: from zimbra.alfresco.com ([127.0.0.1]) by localhost (zimbra.alfresco.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jo7umdpe+PT7; Wed, 2 Feb 2011 12:26:42 +0000 (GMT) Received: from Florian-Mullers-MacBook-Pro-2.local (unknown [194.75.202.163]) (Authenticated sender: florian.mueller) by zimbra.alfresco.com (Postfix) with ESMTP id ABFAAC0C096; Wed, 2 Feb 2011 12:26:42 +0000 (GMT) Message-ID: <4D494D77.4010000@alfresco.com> Date: Wed, 02 Feb 2011 12:26:31 +0000 From: =?UTF-8?B?RmxvcmlhbiBNw7xsbGVy?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: R.WILBERT@akka.eu CC: chemistry-dev@incubator.apache.org Subject: Re: Parsing exception while creating image References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, From the stack trace I conclude that the document creation was successful but the server (or something between the client and the server) closed the connection before the data about this new document completely arrived at the client side. There is probably not much we can do in OpenCMIS. It's either a server or an infrastructure issue. Can you tell us how big your images are and how long the creation process takes until you see this exception? - Florian On 02/02/2011 11:32, R.WILBERT@akka.eu wrote: > Hi again ! > > I have an issue creating an image in Alfresco and generating a thumbnail for it. I have a rule on the space I create the image to, which executes a javascript to create the thumbnail. With Atom Binding I have the following exception, with no error on Alfresco side : > > Caused by: org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Parsing exception! > at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:458) > at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.createDocument(ObjectServiceImpl.java:116) > at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:612) > at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:96) > ... 78 more > Caused by: javax.xml.bind.UnmarshalException > - with linked exception: > [com.ctc.wstx.exc.WstxIOException: Connection reset] > at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:397) > at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:335) > at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312) > at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.unmarshalElement(AtomPubParser.java:348) > at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parseElement(AtomPubParser.java:305) > at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parseEntry(AtomPubParser.java:251) > at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parse(AtomPubParser.java:93) > at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:456) > ... 82 more > Caused by: com.ctc.wstx.exc.WstxIOException: Connection reset > at com.ctc.wstx.sr.StreamScanner.constructFromIOE(StreamScanner.java:631) > at com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1054) > at com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1061) > at com.ctc.wstx.sr.StreamScanner.getNextCharFromCurrent(StreamScanner.java:807) > at com.ctc.wstx.sr.BasicStreamReader.readEndElem(BasicStreamReader.java:3137) > at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2775) > at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1048) > at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:188) > at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:333) > ... 88 more > Caused by: java.net.SocketException: Connection reset > at java.net.SocketInputStream.read(SocketInputStream.java:168) > at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) > at java.io.BufferedInputStream.read1(BufferedInputStream.java:258) > at java.io.BufferedInputStream.read(BufferedInputStream.java:317) > at sun.net.www.http.ChunkedInputStream.fastRead(ChunkedInputStream.java:221) > 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:2391) > at com.ctc.wstx.io.BaseReader.readBytes(BaseReader.java:155) > at com.ctc.wstx.io.UTF8Reader.loadMore(UTF8Reader.java:368) > at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:111) > at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:87) > at com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57) > at com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1051) > ... 95 more > > With WS binding...I couldn't try it because I use CXF on my projet. > > Is this a basic timeout ? I think it could be related to rendition data but I didn't get further into this idea. > > This does NOT happen when I create a non-image document. > > This happens with 0.2-incubating and 0.3-incubating-SNAPSHOT > > thanks > >