openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RĂ¼diger Herrmann <rherrm...@innoopract.com>
Subject Re: JPA: adding entities to EntityManagerFactory programmatically
Date Wed, 28 May 2008 23:05:28 GMT
If it is more convenient, I can also send the example projects, 
which consists of two classes, hsqldb.jar and the openJPA jars 
(which I can leave aside)

Here goes the stack trace:

Exception in thread "main" <openjpa-1.0.2-r420667:627158 fatal user 
error> org.apache.openjpa.persistence.ArgumentException: The type 
"class org.example.openjpatest.Person" has not been enhanced.
	at 
org.apache.openjpa.meta.ClassMetaData.resolveMeta(ClassMetaData.java:1639)
	at 
org.apache.openjpa.meta.ClassMetaData.resolve(ClassMetaData.java:1613)
	at 
org.apache.openjpa.meta.MetaDataRepository.processBuffer(MetaDataRepository.java:675)
	at 
org.apache.openjpa.meta.MetaDataRepository.resolveMeta(MetaDataRepository.java:575)
	at 
org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:500)
	at 
org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:302)
	at 
org.apache.openjpa.kernel.AttachManager.attach(AttachManager.java:237)
	at 
org.apache.openjpa.kernel.AttachManager.attach(AttachManager.java:101)
	at org.apache.openjpa.kernel.BrokerImpl.attach(BrokerImpl.java:3160)
	at 
org.apache.openjpa.kernel.DelegatingBroker.attach(DelegatingBroker.java:1142)
	at 
org.apache.openjpa.persistence.EntityManagerImpl.merge(EntityManagerImpl.java:665)
	at 
org.example.openjpatest.NoEnhancerExample.main(NoEnhancerExample.java:22)


Pinaki Poddar wrote:
> Hi,
>   Can you post the entire stack trace?
> 
> 

Mime
View raw message