org.apache.openjpa.persistence.ArgumentException: Fields "....Person.firstName, ....model.Person.lastName" 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.

openjpa-users | Frank Schwarz | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    orm.xml / element-collection / trunk

    openjpa-users | 8 years ago | Frank Schwarz
    org.apache.openjpa.persistence.ArgumentException: Fields "....Person.firstName, ....model.Person.lastName" 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.
  2. 0

    Using both OpneJPA and Hibernate in OSGI environment

    Stack Overflow | 3 years ago | Hasitha Aravinda
    org.apache.openjpa.persistence.ArgumentException: A JDBC Driver or DataSource class name must be specified in the ConnectionDriverName property. Available properties in configuration are "org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl@442ce698".
  3. 0

    Error while creating JBPM knowledgesession

    Stack Overflow | 3 years ago | ramesh
    org.apache.openjpa.persistence.ArgumentException: A JDBC Driver or DataSource class name must be specified in the ConnectionDriverName property.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Getting error while creating JPA producer endpoint

    Stack Overflow | 3 years ago | Raju
    org.apache.openjpa.persistence.ArgumentException: This configuration disallows runtime optimization, but the following listed types were not enhanced at build time or at class load time with a javaagent: " com.labs.Book".
  6. 0

    Exception regarding runtime optimization using openJPA MySQL

    Stack Overflow | 3 years ago | Greg
    org.apache.openjpa.persistence.ArgumentException: This configuration disallows runtime optimization, but the following listed types were not enhanced at build time or at class load time with a javaagent: " de.hol.persistable.entities.Person".

    9 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.openjpa.persistence.ArgumentException

      Fields "....Person.firstName, ....model.Person.lastName" 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.

      at org.apache.openjpa.persistence.PersistenceMetaDataFactory.validateStrategies()
    2. OpenJPA Aggregate Jar
      EntityManagerFactoryImpl.createEntityManager
      1. org.apache.openjpa.persistence.PersistenceMetaDataFactory.validateStrategies(PersistenceMetaDataFactory.java:399)
      2. org.apache.openjpa.persistence.PersistenceMetaDataFactory.load(PersistenceMetaDataFactory.java:205)
      3. org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:474)
      4. org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:294)
      5. org.apache.openjpa.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:286)
      6. org.apache.openjpa.jdbc.meta.MappingTool.getMapping(MappingTool.java:676)
      7. org.apache.openjpa.jdbc.meta.MappingTool.buildSchema(MappingTool.java:748)
      8. org.apache.openjpa.jdbc.meta.MappingTool.run(MappingTool.java:646)
      9. org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.synchronizeMappings(JDBCBrokerFactory.java:153)
      10. org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.newBrokerImpl(JDBCBrokerFactory.java:119)
      11. org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:196)
      12. org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:142)
      13. org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:197)
      14. org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:150)
      15. org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:61)
      15 frames
    3. oopex.openjpa2.jpa2
      CollectionOfPrimitivesMain.main
      1. oopex.openjpa2.jpa2.relationships.CollectionOfPrimitivesMain.insert(CollectionOfPrimitivesMain.java:69)
      2. oopex.openjpa2.jpa2.relationships.CollectionOfPrimitivesMain.main(CollectionOfPrimitivesMain.java:49)
      2 frames