org.apache.openjpa.persistence.PersistenceException: null

roller-user | Marcos Soler | 6 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

    Error deploying Roller on a plesk page

    roller-user | 6 years ago | Marcos Soler
    org.apache.openjpa.persistence.PersistenceException: null
  2. 0

    Fwd: Error deploying Roller on a plesk page

    roller-user | 6 years ago | Marcos Soler
    org.apache.openjpa.persistence.PersistenceException: null
  3. 0

    Error deploying Roller on a plesk page

    roller-user | 6 years ago | Marcos Soler
    org.apache.openjpa.persistence.PersistenceException: null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Fwd: Error deploying Roller on a plesk page

    roller-user | 6 years ago | Marcos Soler
    org.apache.openjpa.persistence.PersistenceException: null
  6. 0

    We have the NPE shown below in a reproducible testcase (ZIP attached to JIRA ...). We've reduced our complex intended target domain model (about 200+ Entities) to a simpler model with only 3 classes which illustrate the problem: You'll find attached a test project with a first entity which has a a OneToMany (with an ElementJoinColumns, but that shouldn't matter?) to a second entity has a ManyToOne to a third entity. The middle entity has a Composite ID Class including a ManyToOne as a key, which according to http://openjpa.apache.org/builds/1.2.0/apache-openjpa-1.2.0/docs/manual/ref_guide_pc_oid.html#ref_guide_pc_oid_entitypk is supported, so this seems a bug in OpenJPA's mapping algos, somehow? <openjpa-1.2.1-r752877:753278 nonfatal general error> org.apache.openjpa.persistence.PersistenceException: null at org.apache.openjpa.kernel.QueryImpl.compileForCompilation(QueryImpl.java:610) at org.apache.openjpa.kernel.QueryImpl.compileForExecutor(QueryImpl.java:667) at org.apache.openjpa.kernel.QueryImpl.getOperation(QueryImpl.java:1492) at org.apache.openjpa.kernel.DelegatingQuery.getOperation(DelegatingQuery.java:123) at org.apache.openjpa.persistence.QueryImpl.execute(QueryImpl.java:243) at org.apache.openjpa.persistence.QueryImpl.getResultList(QueryImpl.java:294) at testcase.TestMappingProblem.doTest(TestMappingProblem.java:42) at testcase.TestMappingProblem.testIt(TestMappingProblem.java:20) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) Caused by: java.lang.NullPointerException at org.apache.openjpa.jdbc.meta.MappingInfo.mergeJoinColumn(MappingInfo.java:1400) at org.apache.openjpa.jdbc.meta.MappingInfo.createJoins(MappingInfo.java:1206) at org.apache.openjpa.jdbc.meta.MappingInfo.createForeignKey(MappingInfo.java:968) at org.apache.openjpa.jdbc.meta.ValueMappingInfo.getTypeJoin(ValueMappingInfo.java:104) at org.apache.openjpa.jdbc.meta.strats.RelationFieldStrategy.map(RelationFieldStrategy.java:157) at org.apache.openjpa.jdbc.meta.FieldMapping.setStrategy(FieldMapping.java:121) at org.apache.openjpa.jdbc.meta.RuntimeStrategyInstaller.installStrategy(RuntimeStrategyInstaller.java:80) at org.apache.openjpa.jdbc.meta.FieldMapping.resolveMapping(FieldMapping.java:454) at org.apache.openjpa.jdbc.meta.FieldMapping.resolve(FieldMapping.java:419) at org.apache.openjpa.jdbc.meta.ClassMapping.resolveNonRelationMappings(ClassMapping.java:869) at org.apache.openjpa.jdbc.meta.MappingRepository.prepareMapping(MappingRepository.java:339) at org.apache.openjpa.meta.MetaDataRepository.preMapping(MetaDataRepository.java:662) at org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:549) at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:308) at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:363) at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getClassMetaData(JPQLExpressionBuilder.java:159) at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.resolveClassMetaData(JPQLExpressionBuilder.java:139) at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:225) at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:195) at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateType(JPQLExpressionBuilder.java:188) at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.access$600(JPQLExpressionBuilder.java:69) at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder$ParsedJPQL.populate(JPQLExpressionBuilder.java:1756) at org.apache.openjpa.kernel.jpql.JPQLParser.populate(JPQLParser.java:56) at org.apache.openjpa.kernel.ExpressionStoreQuery.populateFromCompilation(ExpressionStoreQuery.java:153) at org.apache.openjpa.kernel.QueryImpl.newCompilation(QueryImpl.java:658) at org.apache.openjpa.kernel.QueryImpl.compilationFromCache(QueryImpl.java:639) at org.apache.openjpa.kernel.QueryImpl.compileForCompilation(QueryImpl.java:605) ... 33 more

    Apache's JIRA Issue Tracker | 8 years ago | Yann
    org.apache.openjpa.persistence.PersistenceException: null

  1. MoYapro 2 times, last 11 months ago
2 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. java.lang.NullPointerException

    No message provided

    at org.apache.openjpa.lib.conf.Configurations.configureInstance()
  2. OpenJPA Aggregate Jar
    EntityManagerFactoryImpl.createEntityManager
    1. org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:425)
    2. org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:375)
    3. org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java:102)
    4. org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:79)
    5. org.apache.openjpa.conf.OpenJPAConfigurationImpl.newBrokerInstance(OpenJPAConfigurationImpl.java:557)
    6. org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.newBrokerInstance(JDBCConfigurationImpl.java:693)
    7. org.apache.openjpa.kernel.AbstractBrokerFactory.newBrokerImpl(AbstractBrokerFactory.java:416)
    8. org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.newBrokerImpl(JDBCBrokerFactory.java:121)
    9. org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:174)
    10. org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:142)
    11. org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:190)
    12. org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:143)
    13. org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:55)
    13 frames
  3. org.apache.roller
    ContinuousWorkerThread.run
    1. org.apache.roller.weblogger.business.jpa.JPAPersistenceStrategy.getThreadLocalEntityManager(JPAPersistenceStrategy.java:252)
    2. org.apache.roller.weblogger.business.jpa.JPAPersistenceStrategy.getEntityManager(JPAPersistenceStrategy.java:239)
    3. org.apache.roller.weblogger.business.jpa.JPAPersistenceStrategy.release(JPAPersistenceStrategy.java:148)
    4. org.apache.roller.weblogger.business.jpa.JPAWebloggerImpl.release(JPAWebloggerImpl.java:106)
    5. org.apache.roller.weblogger.business.runnable.WorkerThread.run(WorkerThread.java:78)
    6. org.apache.roller.weblogger.business.runnable.ContinuousWorkerThread.run(ContinuousWorkerThread.java:76)
    6 frames