部署PersistenceUnit时出错:IllegalArgumentException期望集合类型[boolean]

时间:2014-12-10 08:06:43

标签: java hibernate jpa jboss


自从一周后,我将我的耳朵部署到JBoss EAP 6.2.0

时出现此错误
19:48:56,355 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 79) MSC000001: Failed to start service jboss.persistenceunit."Weare-0.1-dev.ear/WeAreEjb.jar#weareUnit": org.jboss.msc.service.StartException in service jboss.persistenceunit."Weare-0.1-dev.ear/WeAreEjb.jar#weareUnit": java.lang.IllegalArgumentException: Expecting collection type [boolean]
    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:103) [jboss-as-jpa-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
    at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
    at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.1.Final-redhat-1.jar:2.1.1.Final-redhat-1]
**Caused by: java.lang.IllegalArgumentException: Expecting collection type [boolean]**
    at org.hibernate.ejb.metamodel.AttributeFactory.determineCollectionType(AttributeFactory.java:902)
    at org.hibernate.ejb.metamodel.AttributeFactory$PluralAttributeMetadataImpl.<init>(AttributeFactory.java:756)
    at org.hibernate.ejb.metamodel.AttributeFactory$PluralAttributeMetadataImpl.<init>(AttributeFactory.java:737)
    at org.hibernate.ejb.metamodel.AttributeFactory.determineAttributeMetadata(AttributeFactory.java:520)
    at org.hibernate.ejb.metamodel.AttributeFactory.buildAttribute(AttributeFactory.java:100)
    at org.hibernate.ejb.metamodel.MetadataContext.wrapUp(MetadataContext.java:207)
    at org.hibernate.ejb.metamodel.MetamodelImpl.buildMetamodel(MetamodelImpl.java:83)
    at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:106)
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899)
    at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:76)
    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:200) [jboss-as-jpa-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$600(PersistenceUnitServiceImpl.java:57) [jboss-as-jpa-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:99) [jboss-as-jpa-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
    ... 4 more

我已经记录了这些课程:
org.hibernate作为
org.jboss.jpa
org.jboss.service.msc

最初使用日志级别ERROR,然后是TRACE,以ALL结尾,但是在日志文件中没有此错误的痕迹......有人能告诉我哪些其他类对记录此异常有用吗?

我相信org.hibernate就足够了,因为hibernate类会引发异常......

0 个答案:

没有答案