-
Notifications
You must be signed in to change notification settings - Fork 174
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
2.7.11+: NullPointerException in ExpressionOperator.printCollection (likely concurrency issue) #1717
Comments
Issue still exists in EclipseLink 2.7.12.
The query searches multiple nullable columns for multiple words. To do so it uses Consider the search terms "word1" and "word2" then the query would look like SELECT e
FROM Entity e JOIN e.person p
WHERE
p.id = :personId
AND (
LIKE (LOWER(CONCAT(CONCAT(COALESCE(e.column1, ""), " "), COALESCE(e.column2, ""))), "%word1%")
AND
LIKE (LOWER(CONCAT(CONCAT(COALESCE(e.column1, ""), " "), COALESCE(e.column2, ""))), "%word2%")
) The query itself is generated using criteria builder. Because criteria builder does not have a varargs method for So I guess the issue is similar to issue #1867 and the fix for issue #1354 authored by @dazey3 did not catch all cases. The issue occurs irregularly so it still seems to be a concurrency issue. |
Still happens in 2.7.14 and query did not had |
Still happens in 2.7.15 |
I just created a sample project that reproduces the issue: |
@igormukhin As noted in my comment it is also possible to create the stacktrace using a query that does not use The query in question did look like:
|
We received the following NullPointerException in production:
The code in question looks like:
The NPE happens in the
for
-loop, so I guess a different Thread has setthis.argumentIndices
tonull
between theif
statement and thefor
loop.The text was updated successfully, but these errors were encountered: