1 Reply Latest reply on Feb 28, 2010 11:23 AM by amin1977

    java.lang.ArrayStoreException: org.hibernate.envers.event.AuditEventListener

      Hi All

       

      I'm back looking at envers. I added the following using Spring:

       

         <entry key="post-update" value-ref="entityVersioning"/>

         <entry key="post-update" value-ref="entityVersioning"/>

         <entry key="post-delete" value-ref="entityVersioning"/>

         <entry key="pre-collection-update" value-ref="entityVersioning"/>

         <entry key="pre-collection-remove" value-ref="entityVersioning"/>

         <entry key="pre-collection-recreate" value-ref="entityVersioning"/>

       

       

      Adding the pre-collection-recreate gives me the following exception:

       

      Caused by: java.lang.ArrayStoreException: org.hibernate.envers.event.AuditEventListener

      at org.hibernate.cfg.Configuration.setListener(Configuration.java:1776)

      I am using the following maven dependencies:
      hibernate-core 3.5.0-beta 4
      hibernate-entitymanager 3.5.0-beta 4
      hibernate-annotations 3.5.0-beta-4
      hibernate-envers 3.5.0 beta 3
      I'm looked on the web and by the sounds of things it's a compatibility issue.  Is it possible if someone could just point me in the right direction. Have I got the wrong dependencies?
      Cheers
      Amin