-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException when JPQL UPDATE assignment operation omits optional identification variable #2184
Comments
I could recreate the issue. Below is the Person entity we have by referencing the entity present in Jakarta Data.
Here is the code where we executed the JPQL query:
This resulted in the following exception stack, which is the same as described in the issue:
|
I am working on this issue |
Maybe try latest snapshot from https://jakarta.oss.sonatype.org/content/groups/staging/org/eclipse/persistence/eclipselink/5.0.0-SNAPSHOT/ which contains #2224 . |
We checked with latest snapshot, but the test is still failing. |
we need the new stacktrace here |
@lukasj - Please find the stacktrace:
Exception Description: Syntax error parsing [UPDATE Person SET firstName=:newFirstName WHERE id(this)=:ssn]. |
…ional identification variable eclipse-ee4j#2184 - fix Signed-off-by: Radek Felcman <[email protected]>
…ional identification variable eclipse-ee4j#2184 - bug fix (main + tests) Signed-off-by: Radek Felcman <[email protected]>
…ional identification variable eclipse-ee4j#2184 - bug fix (main + tests) Signed-off-by: Radek Felcman <[email protected]>
The test is failing in Open Liberty. We will do another round of testing after integrating snapshot. Please refer the stacktrace:
|
…ional identification variable eclipse-ee4j#2184 - bug fix (main + tests) Signed-off-by: Radek Felcman <[email protected]>
…ipse-ee4j#2192 issues JPQL SELECT not allowing entity attribute without optional entity identification variable eclipse-ee4j#2182 - bug fix (main + tests) NullPointerException when JPQL UPDATE assignment operation omits optional identification variable eclipse-ee4j#2184 - bug fix (main + tests) Unable to omit optional entity identification variable from arguments to built-in aggregate functions eclipse-ee4j#2192 - bug fix (main + tests) Signed-off-by: Radek Felcman <[email protected]>
…e-ee4j#2192, eclipse-ee4j#2247 issues JPQL SELECT not allowing entity attribute without optional entity identification variable eclipse-ee4j#2182 - bug fix (main + tests) NullPointerException when JPQL UPDATE assignment operation omits optional identification variable eclipse-ee4j#2184 - bug fix (main + tests) Unable to omit optional entity identification variable from arguments to built-in aggregate functions eclipse-ee4j#2192 - bug fix (main + tests) Arithmetic expressions in SELECT clause broken when entity identifier variable omitted eclipse-ee4j#2247 - bug fix (main + tests) Signed-off-by: Radek Felcman <[email protected]>
JPQL SELECT not allowing entity attribute without optional entity identification variable #2182 - bug fix (main + tests) NullPointerException when JPQL UPDATE assignment operation omits optional identification variable #2184 - bug fix (main + tests) Unable to omit optional entity identification variable from arguments to built-in aggregate functions #2192 - bug fix (main + tests) Arithmetic expressions in SELECT clause broken when entity identifier variable omitted #2247 - bug fix (main + tests) Signed-off-by: Radek Felcman <[email protected]>
The JPQL UPDATE query
UPDATE Person SET firstName=:newFirstName WHERE id(this)=:ssn
which optionally omits the entity identification variable (for consistency with JDQL) gets NullPointerException out of EclipseLink.The text was updated successfully, but these errors were encountered: