1 Reply Latest reply on Jul 15, 2009 2:47 AM by Adam Warski

    addValueToMiddleTable - error on deployment

    Chris Simons Expert

      All - I've been using Envers 1.1.0GA and Hibernate 3.2.6.GA (I need to upgrade, I know) with success for sometime.

      Recently I @Versioned a new entity that, unlike other entities, is throwing an error on deployment.

      Specifically:

      11:53:33,656 WARN [ServiceController] Problem starting service persistence.units:ear=trunk.ear,jar=trunk.jar,unitName=trunk
      java.lang.NullPointerException
       at org.jboss.envers.configuration.metadata.CollectionMetadataGenerator.addValueToMiddleTable(CollectionMetadataGenerator.java:347)
       at org.jboss.envers.configuration.metadata.CollectionMetadataGenerator.addWithMiddleTable(CollectionMetadataGenerator.java:274)
       at org.jboss.envers.configuration.metadata.CollectionMetadataGenerator.addCollection(CollectionMetadataGenerator.java:124)



      I've @Unversioned all of the collections/lists in the entity, and I don't see what else could be causing this issue.

      Any ideas?

      Thanks.