启动Tomcat时的Hibernate异常(升级到hibernate-3.5.0之后)

时间:2010-06-16 15:02:51

标签: java hibernate tomcat annotations upgrade

升级到Hibernate 3.5.0后,在使用我的Web应用程序启动Tomcat实例时出现以下异常:

org.hibernate.annotations.common.AssertionFailure: Fail to process type argument in a generic declaration. Type: class sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl
 at org.hibernate.ejb.metamodel.AttributeFactory$PluralAttributeMetadataImpl.getClassFromGenericArgument(AttributeFactory.java:836)
 at org.hibernate.ejb.metamodel.AttributeFactory$PluralAttributeMetadataImpl.getClassFromGenericArgument(AttributeFactory.java:833)
 at org.hibernate.ejb.metamodel.AttributeFactory$PluralAttributeMetadataImpl.<init>(AttributeFactory.java:748)
 at org.hibernate.ejb.metamodel.AttributeFactory$PluralAttributeMetadataImpl.<init>(AttributeFactory.java:723)
 at org.hibernate.ejb.metamodel.AttributeFactory.determineAttributeMetadata(AttributeFactory.java:518)
 at org.hibernate.ejb.metamodel.AttributeFactory.buildAttribute(AttributeFactory.java:93)

由于这种情况发生在Tomcat启动时,我不知道在哪里查看我的代码以防止: - (

1 个答案:

答案 0 :(得分:1)

将该错误消息放入谷歌会向您显示任意数量的解释,包括此JIRA问题:

http://opensource.atlassian.com/projects/hibernate/browse/HHH-5098