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 <[EMAIL PROTECTED]> 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. > >
