openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Sutherland <jamess...@yahoo.com>
Subject agent error
Date Tue, 13 May 2008 19:57:21 GMT

I'm trying to getting a very simple model working in OpenJPA 1.0.2 in JSE
1.5.

The same test works in both EclipseLink and Hibernate JPA.

In trying to set the agent, I get the error:

If I don't set the agent I get similar errors.

    [java] <openjpa-1.0.2-r420667:627158 fatal user error>
org.apache.openjpa.util.MetaDataException: Fields
"org.polepos.teams.jpa.data.JPAIndexedPilot.firstName,
org.polepos.teams.jpa.data.JPAIndexedPilot.licenseID,
org.polepos.teams.jpa.data.JPAIndexedPilot.name,
org.polepos.teams.jpa.data.JPAIndexedPilot.points" are not a default
persistent type, and do not have any annotations indicating their
persistence strategy.  If you do not want these fields to be persisted,
annotate them with @Transient.
    [java]     at
org.apache.openjpa.persistence.PersistenceMetaDataFactory.validateStrategies(PersistenceMetaDataFactory.java:399)
    [java]     at
org.apache.openjpa.persistence.PersistenceMetaDataFactory.load(PersistenceMetaDataFactory.java:205)
    [java]     at
org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:433)
    [java]     at
org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:288)
    [java]     at
org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:241)
    [java]     at
org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:212)
    [java]     at
org.apache.openjpa.enhance.PCClassFileTransformer.transform(PCClassFileTransformer.java:127)
    [java]     at
sun.instrument.TransformerManager.transform(TransformerManager.java:122)
    [java]     at
sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:155)
    [java]     at java.lang.ClassLoader.defineClass1(Native Method)
    [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    [java]     at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    [java]     at
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    [java]     at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    [java]     at java.security.AccessController.doPrivileged(Native Method)
    [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    [java]     at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    [java]     at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    [java]     at org.polepos.teams.jpa.JPATeam.drivers(JPATeam.java:59)

-----
---
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
-- 
View this message in context: http://www.nabble.com/agent-error-tp17217032p17217032.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Mime
View raw message