Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 93130 invoked from network); 25 Nov 2008 21:37:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Nov 2008 21:37:05 -0000 Received: (qmail 38166 invoked by uid 500); 25 Nov 2008 21:37:14 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 38146 invoked by uid 500); 25 Nov 2008 21:37:14 -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 38135 invoked by uid 99); 25 Nov 2008 21:37:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2008 13:37:14 -0800 X-ASF-Spam-Status: No, hits=2.4 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christophe.lombart@gmail.com designates 64.233.170.188 as permitted sender) Received: from [64.233.170.188] (HELO rn-out-0910.google.com) (64.233.170.188) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2008 21:35:48 +0000 Received: by rn-out-0910.google.com with SMTP id j66so220632rne.20 for ; Tue, 25 Nov 2008 13:36:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=VXa8w7L+O2n0RA7paVqrLWkBx+E+7ellEtKf9TUkOe8=; b=YEDAJeg1Bf4A3Ki/jF3quY0vfjbo84UzD+sUVnAsDzlXjOfZ78p27oZS0Swus5Mdr1 B8aBTBLA+8imS8q9hu/baFuspN9g87Feke3OovKzZDYDeAoZNhljRQ35A7582tu2GHxs axU+QyisCP0ycvHCfkXM6cDHgdtgudicynS8s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=Z/Y8xzjsTIxgvLIKAsYQTKB/PKm5JwteCMjPWKFvyR6t3mUmXf8Mt3r0LJcrvwC2yT cNQJJsemPR4QiENlM7S0MZ4ulHk/fKva7rz/FzyxNENZ25m+Tois2lZFa6E6wsjmTq1G EBeLBVKKiqfrvNdMMKRAtMu0oHD7ky3XwdGNI= Received: by 10.100.142.4 with SMTP id p4mr2609489and.23.1227648984535; Tue, 25 Nov 2008 13:36:24 -0800 (PST) Received: by 10.100.135.1 with HTTP; Tue, 25 Nov 2008 13:36:24 -0800 (PST) Message-ID: <3b728ee90811251336r32f02790me408d4d018dc8606@mail.gmail.com> Date: Tue, 25 Nov 2008 22:36:24 +0100 From: "Christophe Lombart" To: users@jackrabbit.apache.org Subject: Re: OCM Sample code error In-Reply-To: <20686260.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14108_27603193.1227648984543" References: <20678944.post@talk.nabble.com> <3b728ee90811250837g39ecbedr387a41147422f66d@mail.gmail.com> <20686260.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_14108_27603193.1227648984543 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline This tutorial is based on maven. Check the pom.xml for the dependency versions. Are you using eclipse ? If yes, you can try the following maven command from the project root : mvn eclipse:clean eclipse:eclipse. Than, you are ready to open the tutorial project from eclipse. Try to make a run from it. More info here : http://jackrabbit.apache.org/a-simple-ocm-project-with-maven-eclipse.html Christophe On Tue, Nov 25, 2008 at 18:49, alarcher wrote: > > Thanks for your answer. > In fact no, I didn't modify the tutorial code. I experienced this kind of > trouble with my own code (only when using a @Collection as attribute of a > "mapped" bean) so I decided to download the tutorial code and executing it > in order to see if it would throw the same error. It does. > > Maybe I have to investigate around the library versions I use. > Do you mind if you give me your library versions, because it works in your > environment. > > Sorry for my english mistakes, I'm french. > > Thanks again. > > Best regards, > > Antoine Larcher > > > Christophe Lombart wrote: > > > > It works here. Did you modify the tutorial code. Here is the tutorial > > output. > > > > > > Start the tutorial ... > > Insert a press release in the repository > > Retrieve a press release from the repository > > PressRelease title : This is the first tutorial on OCM > > PressRelease author : Christophe Lombart > > ****** URLS (Collection) : > > URL : http://www.apache.org > > URL : http://jackrabbit.apache.org > > ****** URLS (Map) : > > URL : Jackrabbit - http://jackrabbit.apache.org > > > > On Tue, Nov 25, 2008 at 11:54, alarcher > wrote: > > > >> > >> Hi folks, > >> > >> I downloaded the OCM tutorial sample code > >> ( > >> > http://jackrabbit.apache.org/how-to-map-associations-between-objects.data/Beans_and_collections.zip > >> ). > >> When executing the Main class it throws the following exception : > >> > >> Insert a press release in the repository > >> Exception in thread "main" > >> org.apache.jackrabbit.ocm.exception.RepositoryException: null; nested > >> exception is > >> org.apache.jackrabbit.ocm.exception.IncorrectPersistentClassException: > >> Class > >> of type: java.lang.Object has no descriptor. > >> org.apache.jackrabbit.ocm.exception.IncorrectPersistentClassException: > >> Class > >> of type: java.lang.Object has no descriptor. > >> at > >> > >> > org.apache.jackrabbit.ocm.mapper.impl.AbstractMapperImpl.getClassDescriptorByClass(AbstractMapperImpl.java:177) > >> at > >> > >> > org.apache.jackrabbit.ocm.manager.collectionconverter.impl.DefaultCollectionConverterImpl.doInsertCollection(DefaultCollectionConverterImpl.java:109) > >> at > >> > >> > org.apache.jackrabbit.ocm.manager.collectionconverter.impl.AbstractCollectionConverterImpl.insertCollection(AbstractCollectionConverterImpl.java:80) > >> at > >> > >> > org.apache.jackrabbit.ocm.manager.objectconverter.impl.ObjectConverterImpl.insertCollectionFields(ObjectConverterImpl.java:782) > >> at > >> > >> > org.apache.jackrabbit.ocm.manager.objectconverter.impl.ObjectConverterImpl.insert(ObjectConverterImpl.java:221) > >> at > >> > >> > org.apache.jackrabbit.ocm.manager.objectconverter.impl.ObjectConverterImpl.insert(ObjectConverterImpl.java:146) > >> at > >> > >> > org.apache.jackrabbit.ocm.manager.impl.ObjectContentManagerImpl.insert(ObjectContentManagerImpl.java:406) > >> at org.apache.jackrabbit.ocm.Main.startTutorial(Main.java:53) > >> at org.apache.jackrabbit.ocm.Main.main(Main.java:123) > >> > >> > >> > >> > >> Have you ever experienced this weird behaviour ? > >> > >> By the way, if the beans only has "@Field" attributes then it's working > >> great. > >> This exception is thrown as soon as I use a "@Collection" annotation. > >> > >> > >> Thansk very much for your help, > >> > >> Antoine Larcher > >> -- > >> View this message in context: > >> http://www.nabble.com/OCM-Sample-code-error-tp20678944p20678944.html > >> Sent from the Jackrabbit - Users mailing list archive at Nabble.com. > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/OCM-Sample-code-error-tp20678944p20686260.html > Sent from the Jackrabbit - Users mailing list archive at Nabble.com. > > ------=_Part_14108_27603193.1227648984543--