-
Notifications
You must be signed in to change notification settings - Fork 592
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
EclipseLink NullPointerException Cannot read field "index" because "key" is null #28078
Comments
See EclipseLink Issue : 2195 |
FYI @njr-11 @Riva-Tholoor-Philip I was unable to recreate. I also un-commented and ran the original test and it works from Jakarta Data as well. My recreation attempt: KyleAure@1483d53 |
…hat it is fixed
Oh, I didn't realize it worked via Jakarta Data now, too. Then yes, EclipseLink must have fixed it already. I just tried it locally as well and given that worked, and I requested a build to confirm that its working there as well. I set up the PR to automatically close this issue. |
…low more of test to run
When I attempted to re-enable this under #29200 I discovered that it's an intermittent issue that appears to happen when the test |
Thanks @njr-11 |
Reopening issue. The PR accidentally automatically closed this, it is still an issue that needs to be resolved. |
remove release:24.0.0.9 label (this OLGH is incorrectly in the fix pack metadata) |
Describe the bug
The JPQL query
SELECT o FROM Account o WHERE (o.accountId=?1)
fails when supplied with anAccountId
that is an embeddable id for the entity.EclipseLink converts this to SQL:
SELECT BALANCE, BANKNAME, CHECKING, OWNER, ACCOUNTNUM, ROUTINGNUM FROM WLPAccount WHERE ((ACCOUNTNUM = ?) AND (ROUTINGNUM = ?))
which looks fine, but it gets an error processing the result:
NullPointerException: Cannot read field "index" because "key" is null
.Steps to Reproduce
Uncomment these lines of code and run the test:
open-liberty/dev/io.openliberty.data.internal_fat_jpa/test-applications/DataJPATestApp/src/test/jakarta/data/jpa/web/DataJPATestServlet.java
Lines 2048 to 2053 in 8fdfcb7
Expected behavior
JPQL query should succeed and return the data.
Diagnostic information:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: