Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 48811 invoked from network); 14 Nov 2008 09:24:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Nov 2008 09:24:49 -0000 Received: (qmail 88164 invoked by uid 500); 14 Nov 2008 09:24:56 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 87668 invoked by uid 500); 14 Nov 2008 09:24:55 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 87657 invoked by uid 99); 14 Nov 2008 09:24:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Nov 2008 01:24:55 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.69.76.130] (HELO stalker.stu.cn.ua) (195.69.76.130) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Nov 2008 09:23:32 +0000 Received: from stalker.stu.cn.ua (localhost [127.0.0.1]) by stalker.stu.cn.ua (Postfix) with ESMTP id 80507244D8D for ; Fri, 14 Nov 2008 11:23:40 +0200 (EET) Received: by stalker.stu.cn.ua (Postfix, from userid 58) id 663EA244D88; Fri, 14 Nov 2008 11:23:40 +0200 (EET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on stalker.stu.cn.ua X-Spam-Level: Received: from lukin.localnet (al.neocom.net.ua [194.9.14.62]) by stalker.stu.cn.ua (Postfix) with ESMTP id 781C0244C89 for ; Fri, 14 Nov 2008 11:23:34 +0200 (EET) From: Aleksei Lukin To: users@jackrabbit.apache.org Subject: Re: Re: exportDocumentView() and Jaxb - help needed Date: Fri, 14 Nov 2008 11:23:32 +0200 User-Agent: KMail/1.10.3 (Linux/2.6.27-8-generic; KDE/4.1.3; i686; ; ) References: <200811132213.30506.lukin@stu.cn.ua> <29a095670811131439m5564b3bbhef213111dfa9bf63@mail.gmail.com> In-Reply-To: <29a095670811131439m5564b3bbhef213111dfa9bf63@mail.gmail.com> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_VOUHJiv3UkP6VtN" Message-Id: <200811141123.33186.lukin@stu.cn.ua> X-Virus-Scanned: ClamAV using ClamSMTP on stalker.stu.cn.ua X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=0.0 required=4.5 tests=UNPARSEABLE_RELAY autolearn=failed version=3.2.5 --Boundary-00=_VOUHJiv3UkP6VtN Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi there! Thank you for response, I attached xml that jcr_session.exportDocumentView() puts to file. Jackrabbit adds a lot of its own namespacxes but my namespace is registerd and present as xmlns:pib="http://www.e-ukraine.org/datatypes/pib" May be other namespaces are causing JAXB exception becuase JAXB does not know how to operate with? But I really do not want to put all those XSDs into my app... On Friday 14 November 2008 00:39:18 Alessandro Bologna wrote: > Could you possibly just post the (whole) XML that comes out from > jcr_session.exportDocumentView(path, output, false, false)? > It would help a lot too see what could be your issue. It could have to do > with how namespace are registered in your repository, I had once a maybe > similar issue. > > Alessandro > > On Thu, Nov 13, 2008 at 3:13 PM, Aleksei Lukin wrote: > > Hi, all! > > > > This little piece of code worked fine with jackrabbit 1.4: > > > > Unmarshaller umr = getUnmarshaller(); > > UnmarshallerHandler ctxh = umr.getUnmarshallerHandler(); > > jcr_session.exportDocumentView(path, ctxh, false, false); > > Object res = ctxh.getResult(); > > > > This little fragment allowed me fast object construction from repository > > xml representation. > > > > But now with 1.5b2 and java 1.6 native jaxb it gives NullPointerException > > somewhere inside of jaxb implementation. > > There is trace: > > > > org.xml.sax.helpers.AttributesImpl.getIndex(AttributesImpl.java:203) > > > > > > com.sun.xml.internal.bind.v2.runtime.unmarshaller.InterningXmlVisitor$Att > >ributesImpl.getIndex(InterningXmlVisitor.java:76) > > > > > > com.sun.xml.internal.bind.v2.runtime.unmarshaller.XsiNilLoader.selectLoad > >er(XsiNilLoader.java:26) > > > > > > com.sun.xml.internal.bind.v2.runtime.unmarshaller.ProxyLoader.startElemen > >t(ProxyLoader.java:17) > > > > > > com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._s > >tartElement(UnmarshallingContext.java:402) > > > > > > com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.st > >artElement(UnmarshallingContext.java:380) > > > > > > com.sun.xml.internal.bind.v2.runtime.unmarshaller.InterningXmlVisitor.sta > >rtElement(InterningXmlVisitor.java:35) > > > > > > com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startEleme > >nt(SAXConnector.java:101) > > > > > > org.apache.jackrabbit.commons.xml.Exporter.startElement(Exporter.java:438 > >) > > > > > > org.apache.jackrabbit.commons.xml.DocumentViewExporter.exportNode(Documen > >tViewExporter.java:76) .... > > Could somebody point me where to find loosed ends? I googled entire day > > and found nothing. > > I ended changing code that uses temporary XML file and it works but too > > slooooow. :( > > > > Ofcourse I filled JIRA issue but I'm not sure it is jackrabbit only bug > > and developers have time for such exotic use case. > > > > -- > > SY, Alex Lukin > > RIPE NIC HDL: LEXA1-RIPE -- SY, Alex Lukin RIPE NIC HDL: LEXA1-RIPE --Boundary-00=_VOUHJiv3UkP6VtN Content-Type: application/zip; name="smr-out.xml.zip" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smr-out.xml.zip" UEsDBBQAAAAIAIdDR/yNlXg1OAQAAJwKAAALAAAAc21yLW91dC54bWzVVtlu20YUfe9XDFjAaBFz s2RJliMHRYw+pYCBqEDfihE1kmhTJEsOvbx5KZIXo03awAHSxUjyA6pio44X+Rcu/6hnSNGyg6o1 6rwUMK3hnXO3cxfp/oPNvsfWRRS7gd/QbMP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