org.hibernate.AssertionFailure: The annotation javax.persistence.Converter does not define a parameter 'autoApply'

Hibernate JIRA | Juergen Zimmermann | 4 years ago
  1. 0

    I'm using the latest WildFly snapshot containing Hibernate 4.3.0.Beta3. However, I'm getting a CNFE for javax.persistence.Converter (see stacktrace below). This class is definitely contained in modules/system/layers/base/javax/persistence/api/main/hibernate-jpa-2.1-api-1.0.0.Draft-16.jar. Scott Marlow at https://issues.jboss.org/browse/WFLY-1444: "From the exception callstack, this looks like an issue in org.hibernate.metamodel.source.annotations.JandexHelper.getDefaultValue(JandexHelper.java:320) using the org.jboss.jandex.Index classloader to access the application converter class." Stacktrace: ... 16:45:00,362 INFO [org.hibernate.Version] HHH000412: Hibernate Core {4.3.0.Beta3} 16:45:00,362 INFO [org.hibernate.cfg.Environment] HHH000206: hibernate.properties not found 16:45:00,362 INFO [org.hibernate.cfg.Environment] HHH000021: Bytecode provider name : javassist 16:45:00,658 ERROR [org.hibernate.AssertionFailure] HHH000099: an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session): java.lang.ClassNotFoundException: javax.persistence.Converter from [Module "org.jboss.jandex:main" from local module loader @c84051 (finder: local module finder @f6a711 (roots: C:\Software\wildfly-8.0.0.Alpha2-20130602\modules,C:\Software\wildfly-8.0.0.Alpha2-20130602\modules\system\layers\base))] 16:45:00,658 ERROR [org.jboss.msc.service.fail] MSC000001: Failed to start service jboss.persistenceunit."shop2.war#de.shop.PU": org.jboss.msc.service.StartException in service jboss.persistenceunit."shop2.war#de.shop.PU": org.hibernate.AssertionFailure: The annotation javax.persistence.Converter does not define a parameter 'autoApply' at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:112) [wildfly-jpa-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_21] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21] at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21] at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final.jar:2.1.0.Final] Caused by: org.hibernate.AssertionFailure: The annotation javax.persistence.Converter does not define a parameter 'autoApply' at org.hibernate.metamodel.source.annotations.JandexHelper.getDefaultValue(JandexHelper.java:328) at org.hibernate.metamodel.source.annotations.JandexHelper.getValue(JandexHelper.java:111) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.prepareMetadataSources(EntityManagerFactoryBuilderImpl.java:391) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:224) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:186) at org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:43) at org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:55) at org.hibernate.jpa.HibernatePersistenceProvider.createContainerEntityManagerFactory(HibernatePersistenceProvider.java:142) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:214) [wildfly-jpa-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT] at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$800(PersistenceUnitServiceImpl.java:59) [wildfly-jpa-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT] at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:108) [wildfly-jpa-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT] ... 4 more Caused by: java.lang.ClassNotFoundException: javax.persistence.Converter from [Module "org.jboss.jandex:main" from local module loader @c84051 (finder: local module finder @f6a711 (roots: C:\Software\wildfly-8.0.0.Alpha2-20130602\modules,C:\Software\wildfly-8.0.0.Alpha2-20130602\modules\system\layers\base))] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196) [jboss-modules.jar:1.2.1.Final] at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444) [jboss-modules.jar:1.2.1.Final] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432) [jboss-modules.jar:1.2.1.Final] at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374) [jboss-modules.jar:1.2.1.Final] at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119) [jboss-modules.jar:1.2.1.Final] at org.hibernate.metamodel.source.annotations.JandexHelper.getDefaultValue(JandexHelper.java:320) ... 14 more

    Hibernate JIRA | 4 years ago | Juergen Zimmermann
    org.hibernate.AssertionFailure: The annotation javax.persistence.Converter does not define a parameter 'autoApply'
  2. 0

    I'm using the latest WildFly snapshot containing Hibernate 4.3.0.Beta3. However, I'm getting a CNFE for javax.persistence.Converter (see stacktrace below). This class is definitely contained in modules/system/layers/base/javax/persistence/api/main/hibernate-jpa-2.1-api-1.0.0.Draft-16.jar. Scott Marlow at https://issues.jboss.org/browse/WFLY-1444: "From the exception callstack, this looks like an issue in org.hibernate.metamodel.source.annotations.JandexHelper.getDefaultValue(JandexHelper.java:320) using the org.jboss.jandex.Index classloader to access the application converter class." Stacktrace: ... 16:45:00,362 INFO [org.hibernate.Version] HHH000412: Hibernate Core {4.3.0.Beta3} 16:45:00,362 INFO [org.hibernate.cfg.Environment] HHH000206: hibernate.properties not found 16:45:00,362 INFO [org.hibernate.cfg.Environment] HHH000021: Bytecode provider name : javassist 16:45:00,658 ERROR [org.hibernate.AssertionFailure] HHH000099: an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session): java.lang.ClassNotFoundException: javax.persistence.Converter from [Module "org.jboss.jandex:main" from local module loader @c84051 (finder: local module finder @f6a711 (roots: C:\Software\wildfly-8.0.0.Alpha2-20130602\modules,C:\Software\wildfly-8.0.0.Alpha2-20130602\modules\system\layers\base))] 16:45:00,658 ERROR [org.jboss.msc.service.fail] MSC000001: Failed to start service jboss.persistenceunit."shop2.war#de.shop.PU": org.jboss.msc.service.StartException in service jboss.persistenceunit."shop2.war#de.shop.PU": org.hibernate.AssertionFailure: The annotation javax.persistence.Converter does not define a parameter 'autoApply' at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:112) [wildfly-jpa-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_21] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21] at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21] at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final.jar:2.1.0.Final] Caused by: org.hibernate.AssertionFailure: The annotation javax.persistence.Converter does not define a parameter 'autoApply' at org.hibernate.metamodel.source.annotations.JandexHelper.getDefaultValue(JandexHelper.java:328) at org.hibernate.metamodel.source.annotations.JandexHelper.getValue(JandexHelper.java:111) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.prepareMetadataSources(EntityManagerFactoryBuilderImpl.java:391) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:224) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:186) at org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:43) at org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:55) at org.hibernate.jpa.HibernatePersistenceProvider.createContainerEntityManagerFactory(HibernatePersistenceProvider.java:142) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:214) [wildfly-jpa-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT] at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$800(PersistenceUnitServiceImpl.java:59) [wildfly-jpa-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT] at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:108) [wildfly-jpa-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT] ... 4 more Caused by: java.lang.ClassNotFoundException: javax.persistence.Converter from [Module "org.jboss.jandex:main" from local module loader @c84051 (finder: local module finder @f6a711 (roots: C:\Software\wildfly-8.0.0.Alpha2-20130602\modules,C:\Software\wildfly-8.0.0.Alpha2-20130602\modules\system\layers\base))] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196) [jboss-modules.jar:1.2.1.Final] at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444) [jboss-modules.jar:1.2.1.Final] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432) [jboss-modules.jar:1.2.1.Final] at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374) [jboss-modules.jar:1.2.1.Final] at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119) [jboss-modules.jar:1.2.1.Final] at org.hibernate.metamodel.source.annotations.JandexHelper.getDefaultValue(JandexHelper.java:320) ... 14 more

    Hibernate JIRA | 4 years ago | Juergen Zimmermann
    org.hibernate.AssertionFailure: The annotation javax.persistence.Converter does not define a parameter 'autoApply'
  3. 0

    Problems with Kundera Neo4j on JBoss EAP 6.1.1

    GitHub | 3 years ago | janinko
    com.impetus.kundera.cache.CacheException: Could not find class com.impetus.kundera.cache.ehcache.EhCacheProvider. Check whether you spelled it correctly in persistence.xml
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring loaded + jboss - NoClassDefFoundError

    GitHub | 2 years ago | pootek
    java.lang.NoClassDefFoundError: org/springsource/loaded/ri/ReflectiveInterceptor
  6. 0

    Classloading issue in EAP 6.1 - JBoss 7.2 / WAR Classes don't see EAR classes

    Stack Overflow | 3 years ago | Caccia87
    java.lang.NoClassDefFoundError: it/myapp/services/servlets/Dispatcher}|

  1. Andreas Häber 9 times, last 1 week ago
  2. Reich 8 times, last 2 weeks ago
  3. andyglick 1 times, last 1 month ago
  4. Cafecanudo 3 times, last 2 months ago
  5. pbabcsany 2 times, last 2 months ago
3 more registered users
74 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    javax.persistence.Converter from [Module "org.jboss.jandex:main" from local module loader @c84051 (finder: local module finder @f6a711 (roots: C:\Software\wildfly-8.0.0.Alpha2-20130602\modules,C:\Software\wildfly-8.0.0.Alpha2-20130602\modules\system\layers\base))]

    at org.jboss.modules.ModuleClassLoader.findClass()
  2. JBoss Modules
    ConcurrentClassLoader.loadClass
    1. org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196)[jboss-modules.jar:1.2.1.Final]
    2. org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444)[jboss-modules.jar:1.2.1.Final]
    3. org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432)[jboss-modules.jar:1.2.1.Final]
    4. org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374)[jboss-modules.jar:1.2.1.Final]
    5. org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119)[jboss-modules.jar:1.2.1.Final]
    5 frames
  3. Hibernate
    JandexHelper.getValue
    1. org.hibernate.metamodel.source.annotations.JandexHelper.getDefaultValue(JandexHelper.java:320)
    2. org.hibernate.metamodel.source.annotations.JandexHelper.getValue(JandexHelper.java:111)
    2 frames
  4. org.hibernate.jpa
    HibernatePersistenceProvider.createContainerEntityManagerFactory
    1. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.prepareMetadataSources(EntityManagerFactoryBuilderImpl.java:391)
    2. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:224)
    3. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:186)
    4. org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:43)
    5. org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:55)
    6. org.hibernate.jpa.HibernatePersistenceProvider.createContainerEntityManagerFactory(HibernatePersistenceProvider.java:142)
    6 frames
  5. JPA
    PersistenceUnitServiceImpl$1.run
    1. org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:214)[wildfly-jpa-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]
    2. org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$800(PersistenceUnitServiceImpl.java:59)[wildfly-jpa-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]
    3. org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:108)[wildfly-jpa-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]
    3 frames
  6. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[rt.jar:1.7.0_21]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[rt.jar:1.7.0_21]
    3. java.lang.Thread.run(Thread.java:722)[rt.jar:1.7.0_21]
    3 frames
  7. JBoss Threads
    JBossThread.run
    1. org.jboss.threads.JBossThread.run(JBossThread.java:122)[jboss-threads-2.1.0.Final.jar:2.1.0.Final]
    1 frame