Community
Participate
Working Groups
Build Identifier: Version: 4.1.0 Build id: I20110805-1200 When creating a "named query" with invalid query statement, JPA validation will stop working with exceptions: Exception 1: JPA Validator finished validating: file... Exception 2: java.lang.NullPointerException at org.eclipse.jpt.jpa.core.internal.jpql.JpaJpqlQueryHelper.buildProblem(JpaJpqlQueryHelper.java:135) at org.eclipse.jpt.jpa.core.internal.jpql.JpaJpqlQueryHelper.validate(JpaJpqlQueryHelper.java:232) at org.eclipse.jpt.jpa.core.internal.jpa2.context.java.GenericJavaNamedQuery2_0.validateQuery_(GenericJavaNamedQuery2_0.java:101) at org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaQuery.validateQuery(AbstractJavaQuery.java:221) Full stack trace is attached. Reproducible: Always Steps to Reproduce: 1. Create a named query for an entity 2. Go to JPA Details -> Queries and add a named query 3. Input query statement like "blabla" and save it
Created attachment 203488 [details] stack trace
I am able to reproduce on 4.2 base. I cannot reproduce on 3.8.
The fix for this is the same as bug 357948, so I am marking it as a duplicate. *** This bug has been marked as a duplicate of bug 357948 ***