jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alarcher <antoinelarc...@gmail.com>
Subject OCM Sample code error
Date Tue, 25 Nov 2008 10:54:05 GMT

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.


Mime
View raw message