jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Lombart" <christophe.lomb...@gmail.com>
Subject Re: OCM Sample code error
Date Wed, 26 Nov 2008 15:33:44 GMT
I will test with an empty maven repo. I will give you more info this
evening.

br,
Christophe

On Wed, Nov 26, 2008 at 12:03, alarcher <antoinelarcher@gmail.com> wrote:

>
> Christophe,
>
> Before me to install maven and so on, I noticed that the tutorial code you
> mention [1] is not the same as the one I mentionned [2] (the second uses
> @Collection annotation).
>
> The tutorial [1] works fine, whereas [2] throws the "java.lang.object"
> marshalling exception.
>
>
> [1]
>
> http://jackrabbit.apache.org/a-simple-ocm-project-with-maven-eclipse.data/5minutes.zip
> [2]
>
> http://jackrabbit.apache.org/how-to-map-associations-between-objects.data/Beans_and_collections.zip
>
>
> Regards,
> Antoine Larcher
>
>
>
> alarcher wrote:
> >
> > Thanks Christophe,
> >
> > I'm using Eclipse but not Maven : I'm going to read your link article and
> > use Maven and pom.xml in order to see if it works (I know that it should
> > be working :) ).
> >
> > I'll come back to you when I found what were wrong (probably lib
> > versions).
> >
> > Thanks again.
> >
> > Regards,
> > Antoine Larcher
> >
> >
> > Christophe Lombart wrote:
> >>
> >> 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 <antoinelarcher@gmail.com>
> 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 <antoinelarcher@gmail.com>
> >>> 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.
> >>>
> >>>
> >>
> >>
> >
> >
>
>
> --
> View this message in context:
> http://www.nabble.com/OCM-Sample-code-error-tp20678944p20698819.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message