4 Replies Latest reply on Oct 21, 2009 7:21 AM by T Vpl

    Exception while creating AuditReader

    Kaizer S Newbie

      Hi,

      I'm getting the following exception on trying to create a AuditReader.

      Exception in thread "main" java.lang.VerifyError: (class: org/hibernate/envers/reader/AuditReaderImpl, method: createQuery signature: ()Lorg/hibernate/envers/query/AuditQueryCreator;) Wrong return type in function
      at org.hibernate.envers.AuditReaderFactory.get(AuditReaderFactory.java:62)

      The code I've written is -

      EntityManagerFactory emf = Persistence.createEntityManagerFactory("ConsolePU");
      EntityManager em = emf.createEntityManager();
      EntityTransaction tx = em.getTransaction();
      tx.begin();
      AuditReader reader = AuditReaderFactory.get(em);


      I'm using hibernate-envers-3.4.0-SNAPSHOT.jar.
      What could be wrong?

      Thanks.

      Regards
      Kaizer