payara 4.1.1.171 :: ecliselink jpa问题与条件

时间:2017-09-09 05:38:53

标签: jpa eclipselink payara

在带有CASE和WHEN条件的payara JPA命名查询中导致非法参数异常。这与glassfish3一起工作正常。

EclipseLink错误ID https://bugs.eclipse.org/bugs/show_bug.cgi?id=462663

Payara Github https://github.com/payara/Payara/issues/1941

任何帮助?

例外如下

引起:java.lang.IllegalArgumentException:参数类型不匹配 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.eclipse.persistence.internal.security.PrivilegedAccessHelper.invokeConstructor(PrivilegedAccessHelper.java:471) 在org.eclipse.persistence.queries.ReportQueryResult.buildResult(ReportQueryResult.java:122) 在org.eclipse.persistence.queries.ReportQueryResult。(ReportQueryResult.java:79) 在org.eclipse.persistence.queries.ReportQuery.buildObject(ReportQuery.java:598) 在org.eclipse.persistence.queries.ReportQuery.buildObjects(ReportQuery.java:649) 在org.eclipse.persistence.queries.ReportQuery.executeDatabaseQuery(ReportQuery.java:852) 在org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:904) 在org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1134) 在org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:460) at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1222) at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2896) 在org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1857) at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1839) 在org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1804) 在org.eclipse.persistence.internal.jpa.QueryImpl.executeReadQuery(QueryImpl.java:258) 在org.eclipse.persistence.internal.jpa.QueryImpl.getResultList(QueryImpl.java:473)

0 个答案:

没有答案