Hi! I get a strange exception from time to time at start-up of my application. Sometimes the same code works without problem. What does the exception mean? I do not understand why NavPoint is not recognised as the error-message says that NavPoint is a known entity name?
SCHWERWIEGEND [org.openide.util.RequestProcessor] <openjpa-1.1.0-r422266:657916 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: An error occurred while parsing the query filter "SELECT x FROM NavPoint x WHERE x.type<>NavPointType.SystemMountain AND x.type<>NavPointType.SystemAirfield ORDER BY x.name". Error message: The name "NavPoint" is not a recognized entity or identifier. Perhaps you meant NavPoint, which is a close match. Known entity names: [NavPoint, NavPath] at org.apache.openjpa.kernel.exps.AbstractExpressionBuilder.parseException(AbstractExpressionBuilder.java:118) at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getClassMetaData(JPQLExpressionBuilder.java:177) at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.resolveClassMetaData(JPQLExpressionBuilder.java:150) 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:1754) 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.datacache.QueryCacheStoreQuery.populateFromCompilation(QueryCacheStoreQuery.java:243) at org.apache.openjpa.kernel.QueryImpl.newCompilation(QueryImpl.java:657) at org.apache.openjpa.kernel.QueryImpl.compilationFromCache(QueryImpl.java:638) at org.apache.openjpa.kernel.QueryImpl.compileForCompilation(QueryImpl.java:604) at org.apache.openjpa.kernel.QueryImpl.compileForExecutor(QueryImpl.java:666) at org.apache.openjpa.kernel.QueryImpl.compile(QueryImpl.java:573) at org.apache.openjpa.persistence.EntityManagerImpl.createNamedQuery(EntityManagerImpl.java:892) at org.apache.openjpa.persistence.EntityManagerImpl.createNamedQuery(EntityManagerImpl.java:77) at ch.simtec.jpa.JpaBasicManager.createNamedQuery(JpaBasicManager.java:48) at ch.simtec.geo.server.DatabaseManager.fillAllUsr(DatabaseManager.java:47) at ch.simtec.geo.server.PointServer$3.run(PointServer.java:99) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986) Thanks for any help, Valentin