Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » java.lang.IllegalStateException: Could not load the JPQL parser class.(Could not load the JPQL parser class.)
java.lang.IllegalStateException: Could not load the JPQL parser class. [message #1809367] Mon, 15 July 2019 06:34
Prakash Suvarna is currently offline Prakash SuvarnaFriend
Messages: 1
Registered: July 2019
Junior Member
Hello All,

I am using eclipselink 2.6.7.WAS for my project. After deploying the ear while trying to access the application I am getting the following exception:

[7/9/19 23:00:01:464 IST] 000000d7 SystemOut O [EL Severe]: 2019-07-09 23:00:01.463--ServerSession(98483763)--java.lang.IllegalStateException: Could not load the JPQL parser class.
at org.eclipse.persistence.internal.sessions.AbstractSession.buildDefaultQueryBuilder(AbstractSession.java:471)
at org.eclipse.persistence.internal.sessions.AbstractSession.getQueryBuilder(AbstractSession.java:424)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:141)
at org.eclipse.persistence.internal.jpa.JPAQuery.processJPQLQuery(JPAQuery.java:223)
at org.eclipse.persistence.internal.jpa.JPAQuery.prepare(JPAQuery.java:184)
at org.eclipse.persistence.queries.DatabaseQuery.prepareInternal(DatabaseQuery.java:631)
at org.eclipse.persistence.internal.sessions.AbstractSession.processJPAQuery(AbstractSession.java:4378)
at org.eclipse.persistence.internal.sessions.AbstractSession.processJPAQueries(AbstractSession.java:4338)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:602)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:822)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:779)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:255)
at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:753)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getAbstractSession(EntityManagerFactoryDelegate.java:207)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:307)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:337)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:318)
at com.ibm.ws.jpa.runtime.JPA21Runtime.createEntityManagerInstance(JPA21Runtime.java:165)
at com.ibm.ws.jpa.management.JPAEMPool.getEntityManager(JPAEMPool.java:176)
at com.ibm.ws.jpa.management.JPATxEntityManager.getEMInvocationInfo(JPATxEntityManager.java:291)
at com.ibm.ws.jpa.management.JPATxEntityManager.getEMInvocationInfo(JPATxEntityManager.java:203)
at com.ibm.ws.jpa.management.JPAEntityManager.createQuery(JPAEntityManager.java:334)
at com.dai.acp.dao.impl.BaseJpaDAO.findSingleByFilter(BaseJpaDAO.java:184)
at com.dai.acp.dao.impl.JobInfoDaoImpl.getJobInfoByName(JobInfoDaoImpl.java:25)
at com.dai.acp.dao.interfaces.EJSLocal0SLJobInfoDaoImpl_f1b99e76.getJobInfoByName(EJSLocal0SLJobInfoDaoImpl_f1b99e76.java)
at com.dai.acp.business.service.JobInfoServiceBean.getJobInfoByName(JobInfoServiceBean.java:47)
at com.dai.acp.businessclient.service.EJSLocal0SLJobInfoServiceBean_c00cfd65.getJobInfoByName(EJSLocal0SLJobInfoServiceBean_c00cfd65.java)
at com.dai.acp.business.jobs.DeleteEventJob.execute(DeleteEventJob.java:69)
at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: java.lang.ClassCastException: org.eclipse.persistence.internal.jpa.jpql.HermesParser incompatible with org.eclipse.persistence.queries.JPAQueryBuilder
at org.eclipse.persistence.internal.sessions.AbstractSession.buildDefaultQueryBuilder(AbstractSession.java:468)
... 29 more

[7/9/19 23:00:01:464 IST] 000000d7 BaseJpaDAO E Exception [EclipseLink-28019] (Eclipse Persistence Services - 2.6.7.WAS-v20180710-6c446ab): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Deployment of PersistenceUnit [acpXADS] failed. Close all factories for this PersistenceUnit.
Internal Exception: java.lang.IllegalStateException: Could not load the JPQL parser class.

Someone please help if you have encountered the same issue.

Thank you.

Regards,
Prakash
Previous Topic:NullPointerException from getAttribute()
Next Topic:Optimization batch reading collection after invalidation
Goto Forum:
  


Current Time: Wed Aug 21 04:18:33 GMT 2019

Powered by FUDForum. Page generated in 0.01973 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top