English 中文(简体)
EclipseLink to Hibernate migration
原标题:EclipseLink to Hibernate migration

I m试图迁移为玻璃鱼3 + EclipseLink而建造的企业申请,与JBosss7 + Hibernate。

当我试图使我提出申请时,坚持不懈的单位不会开始,放弃这一例外。

ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.persistenceunit."app-logic.ear/domain-jpa-ejb.jar#dataspace-PU": org.jboss.msc.service.StartException in service jboss.persistenceunit."app-logic.ear/domain-jpa-ejb.jar#dataspace-PU": Failed to start service
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
        at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]
Caused by: java.lang.NullPointerException
        at org.hibernate.annotations.CacheConcurrencyStrategy.fromAccessType(CacheConcurrencyStrategy.java:52)
        at org.hibernate.cfg.AnnotationBinder.determineCacheConcurrencyStrategy(AnnotationBinder.java:1038)
        at org.hibernate.cfg.AnnotationBinder.buildCacheMock(AnnotationBinder.java:1005)
        at org.hibernate.cfg.AnnotationBinder.determineCacheSettings(AnnotationBinder.java:962)

你们怎么样? Seems weird to me, that Null PointerException is zan. 我试图检查CacheConcurrencyStrategy第52行的内容,但似乎无法放弃这种例外。

注:我不使用任何持续提供的具体说明。

增 编

最佳回答

某些图书馆更新后发现这一问题。 如果任何人会遇到同样的问题,请让我知道。 我对问题究竟是何地感兴趣。

问题回答

以前在猎物4.1中的ug子已经固定下来。 然而,我在4.2问题上存在同样的问题,即JBoss7.1和也许与你一样。

坚持不懈,我已经确定

<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>

一、导 言

<property name="hibernate.cache.use_second_level_cache"
                value="true" />

否则,我就开始发言。

Caused by: java.lang.NullPointerException
        at org.hibernate.annotations.CacheConcurrencyStrategy.fromAccessType(CacheConcurrencyStrategy.java:52)

我希望这可能有助于其他人吗?





相关问题
Multiple Hibernate instances using C3P0

I am facing a weird problem and it seems to be c3p0 related. I am starting two instances of an app in the same java vm which interact with each other. After some operations "APPARENT DEADLOCK" ...

Hibernate vs Ibatis caching

We can speed up a hibernate app easyly with 2nd level cache using infinispan or ehcache/terracotta,... but ibatis only have a simple interface to implement for caching. And hibernate knows more ...

Using annotations to implement a static join in hibernate

I m relatively new to hibernate and was wondering if someone could help me out. While I have no issues implementing a normal join on multiple columns in hibernate using the @JoinColumns tag, I m ...

Hibernate query with fetch question

I have a 2 entities in a One-To-Many relationship: OfficeView.java: public class OfficeView implements java.io.Serializable { private Integer officeId; private String addr1; private ...

hibernate interceptors : afterTransactionCompletion

I wrote a Hibernate interceptor : public class MyInterceptor extends EmptyInterceptor { private boolean isCanal=false; public boolean onSave(Object entity, Serializable arg1, Object[] arg2, String[]...

How to prevent JPA from rolling back transaction?

Methods invoked: 1. Struts Action 2. Service class method (annotated by @Transactional) 3. Xfire webservice call Everything including struts (DelegatingActionProxy) and transactions is configured ...

Hibernate/GORM: collection was not processed by flush()

I have an integration test in my Grails application that fails when I try to save an entity of type Member invitingMember.save(flush: true) This raises the following exception org.hibernate....

Hibernate Criteria API equivalent for "elements()"

Is it possible to implement the following query using Criteria API? select order from ORDER as order,ITEM as item where item.itemID like ITM_01 and item in elements(order.items)

热门标签