Skip to content
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

Error after B06 : Internal Exception: java.lang.IndexOutOfBoundsException #30789

Open
ajaypaul-ibm opened this issue Feb 13, 2025 · 1 comment

Comments

@ajaypaul-ibm
Copy link
Contributor

Getting IndexOutOfBoundsException after upgrading to EclipseLink 5.0.0-B06
JPQL

UPDATE House o SET o.garage=?2, o.area=o.area+?3, o.kitchen.length=o.kitchen.length+?4, o.numBedrooms=?5 WHERE (o.parcelId=?1)

Exception

Exception [EclipseLink-6168] (Eclipse Persistence Services - 5.0.0-B06.v202502011023-b917c302c409eeca1a2c4002bd8b725a004ea7f6): org.eclipse.persistence.exceptions.QueryException
Exception Description: Query failed to prepare, unexpected error occurred: [java.lang.IndexOutOfBoundsException: Index 3 out of bounds for length 3].
Internal Exception: java.lang.IndexOutOfBoundsException: Index 3 out of bounds for length 3
Query: UpdateAllQuery(referenceClass=House jpql="UPDATE House o SET o.garage=?2, o.area=o.area+?3, o.kitchen.length=o.kitchen.length+?4, o.numBedrooms=?5 WHERE (o.parcelId=?1)")
	at org.eclipse.persistence.exceptions.QueryException.prepareFailed(QueryException.java:1604)
	at org.eclipse.persistence.queries.DatabaseQuery.checkPrepare(DatabaseQuery.java:715)
	at org.eclipse.persistence.queries.DatabaseQuery.checkPrepare(DatabaseQuery.java:645)
	at org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:196)
	at org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:120)
	at org.eclipse.persistence.internal.jpa.EJBQueryImpl.<init>(EJBQueryImpl.java:107)
	at org.eclipse.persistence.internal.jpa.EJBQueryImpl.<init>(EJBQueryImpl.java:91)
	at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1846)
@anija-anil
Copy link
Contributor

See EclipseLink Issue :2362

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants