第二行导致下面列出的例外。这段代码实际上可以在测试服务器上运行,但是在我的盒子上爆炸了。任何人都可以提供解决这个问题的线索吗?
TypedQuery<ed> _TypedQuery = _EntityManager.createQuery(_CriteriaQuery);
List<ed> _edList = _TypedQuery.getResultList();
异常
org.apache.openjpa.persistence.PersistenceException: null
at org.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:1017) ~[openjpa-2.2.0.jar:2.2.0]
at org.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:916) ~[openjpa-2.2.0.jar:2.2.0]
at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.load(JDBCStoreManager.java:1012) ~[openjpa-2.2.0.jar:2.2.0]
at org.apache.openjpa.jdbc.sql.AbstractResult.load(AbstractResult.java:280) ~[openjpa-2.2.0.jar:2.2.0]
at org.apache.openjpa.jdbc.sql.SelectImpl$SelectResult.load(SelectImpl.java:2381) ~[openjpa-2.2.0.jar:2.2.0]
at org.apache.openjpa.jdbc.sql.AbstractResult.load(AbstractResult.java:274) ~[openjpa-2.2.0.jar:2.2.0]
at org.apache.openjpa.jdbc.kernel.InstanceResultObjectProvider.getResultObject(InstanceResultObjectProvider.java:60) ~[openjpa-2.2.0.jar:2.2.0]
at org.apache.openjpa.kernel.QueryImpl$PackingResultObjectProvider.getResultObject(QueryImpl.java:2075) ~[openjpa-2.2.0.jar:2.2.0]
at org.apache.openjpa.lib.rop.EagerResultList.<init>(EagerResultList.java:36) ~[openjpa-2.2.0.jar:2.2.0]
at org.apache.openjpa.kernel.QueryImpl.toResult(QueryImpl.java:1251) ~[openjpa-2.2.0.jar:2.2.0]
at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:1007) ~[openjpa-2.2.0.jar:2.2.0]
at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:863) ~[openjpa-2.2.0.jar:2.2.0]
at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:794) ~[openjpa-2.2.0.jar:2.2.0]
at org.apache.openjpa.kernel.DelegatingQuery.execute(DelegatingQuery.java:542) ~[openjpa-2.2.0.jar:2.2.0]
at org.apache.openjpa.persistence.QueryImpl.execute(QueryImpl.java:286) ~[openjpa-2.2.0.jar:2.2.0]
at org.apache.openjpa.persistence.QueryImpl.getResultList(QueryImpl.java:302) ~[openjpa-2.2.0.jar:2.2.0]
答案 0 :(得分:1)
我会记录我对这个问题的所有解决方案。
这是第一个决议。线索是here。我升级了Open JPA从2.2.0到2.2.2&amp;例外消失了,所以看来 这是一个错误。
这又发生了一次。我缺少cglib.2.2.3.zip和/或 CGLIB的节点p-2.2.3.jar。