org.apache.openjpa.persistence.ArgumentException

An error occurred while parsing the query filter "select h from JobHistory h where h.jobStatusCode = :jobStatusCode order by h.jobHistoryId". Error message: The name "JobHistory" is not a recognized entity or identifier. Perhaps you meant JobHistory, which is a close match. Known entity names: [ReportPrint, FileHistory, ReportHistory, ReportTemplate, JobHistory, FileGeneration, JobMessage] [See nested exception: batch.exception.BatchEjbException: batch.exception.DaoException: <openjpa-1.1.1-SNAPSHOT-r422266:807362 nonfatal user error>org.apache.openjpa.persistence.ArgumentException: An error occurred while parsing the query filter "select h from JobHistory h where h.jobStatusCode = :jobStatusCode order by h.jobHistoryId". Error message: The name "JobHistory" is not a recognized entity or identifier. Perhaps you meant JobHistory, which is a close match. Known entity names: [ReportPrint, FileHistory, ReportHistory, ReportTemplate, JobHistory, FileGeneration, JobMessage]]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

  • via Unknown by 761360,
  • Stack trace

    • org.apache.openjpa.persistence.ArgumentException: An error occurred while parsing the query filter "select h from JobHistory h where h.jobStatusCode = :jobStatusCode order by h.jobHistoryId". Error message: The name "JobHistory" is not a recognized entity or identifier. Perhaps you meant JobHistory, which is a close match. Known entity names: [ReportPrint, FileHistory, ReportHistory, ReportTemplate, JobHistory, FileGeneration, JobMessage] [See nested exception: batch.exception.BatchEjbException: batch.exception.DaoException: <openjpa-1.1.1-SNAPSHOT-r422266:807362 nonfatal user error>org.apache.openjpa.persistence.ArgumentException: An error occurred while parsing the query filter "select h from JobHistory h where h.jobStatusCode = :jobStatusCode order by h.jobHistoryId". Error message: The name "JobHistory" is not a recognized entity or identifier. Perhaps you meant JobHistory, which is a close match. Known entity names: [ReportPrint, FileHistory, ReportHistory, ReportTemplate, JobHistory, FileGeneration, JobMessage]] at batch.job.BatchJob.execute(BatchJob.java:47) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) Caused by: batch.exception.BatchEjbException: batch.exception.DaoException: <openjpa-1.1.1-SNAPSHOT-r422266:807362 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: An error occurred while parsing the query filter "select h from JobHistory h where h.jobStatusCode = :jobStatusCode order by h.jobHistoryId". Error message: The name "JobHistory" is not a recognized entity or identifier. Perhaps you meant JobHistory, which is a close match. Known entity names: [ReportPrint, FileHistory, ReportHistory, ReportTemplate, JobHistory, FileGeneration, JobMessage] at batch.ejb.BatchEjb.findJobHistoryByJobStatusCode(BatchEjb.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.