chapter12.hibernate.InfinispanTest

Hibernate JIRA | Joseph Ottinger | 2 months ago
  1. 0

    With configuration: <?xml version="1.0"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <!-- Database connection settings --> <property name="hibernate.ogm.datastore.provider"> org.hibernate.ogm.datastore.infinispan.impl.InfinispanDatastoreProvider </property> <!-- defines which JTA Transaction we plan to use --> <!--property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossStandAloneJtaPlatform" --> <property name="hibernate.search.default.indexBase">./lucene-ispn"</property> <mapping class="chapter12.Person"/> </session-factory> </hibernate-configuration> getting a sessionfactory fails with the following stack trace: org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: org.testng.TestNGException: Cannot instantiate class chapter12.hibernate.InfinispanTest at org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:40) at org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:377) at org.testng.internal.ClassHelper.createInstance(ClassHelper.java:290) at org.testng.internal.ClassImpl.getDefaultInstance(ClassImpl.java:125) at org.testng.internal.ClassImpl.getInstances(ClassImpl.java:190) at org.testng.internal.TestNGClassFinder.<init>(TestNGClassFinder.java:130) at org.testng.TestRunner.initMethods(TestRunner.java:424) at org.testng.TestRunner.init(TestRunner.java:247) at org.testng.TestRunner.init(TestRunner.java:217) at org.testng.TestRunner.<init>(TestRunner.java:161) at org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRunner.java:556) at org.testng.SuiteRunner.init(SuiteRunner.java:168) at org.testng.SuiteRunner.<init>(SuiteRunner.java:117) at org.testng.TestNG.createSuiteRunner(TestNG.java:1319) at org.testng.TestNG.createSuiteRunners(TestNG.java:1306) at org.testng.TestNG.runSuitesLocally(TestNG.java:1160) at org.testng.TestNG.run(TestNG.java:1064) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:159) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:99) at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:106) ... 9 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:29) ... 29 more Caused by: java.lang.NoClassDefFoundError: org/hibernate/resource/transaction/TransactionCoordinatorBuilder at org.hibernate.ogm.boot.impl.OgmServiceRegistryInitializer.contribute(OgmServiceRegistryInitializer.java:71) at org.hibernate.boot.registry.StandardServiceRegistryBuilder.applyServiceContributors(StandardServiceRegistryBuilder.java:305) at org.hibernate.boot.registry.StandardServiceRegistryBuilder.build(StandardServiceRegistryBuilder.java:273) at chapter12.hibernate.BaseHibernateOGMTest.<init>(BaseHibernateOGMTest.java:43) at chapter12.hibernate.InfinispanTest.<init>(InfinispanTest.java:10) ... 34 more Caused by: java.lang.ClassNotFoundException: org.hibernate.resource.transaction.TransactionCoordinatorBuilder at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 39 more I've also included the JPA implementation of the OGM configuration and it has no problem. There is a org.hibernate.resource.transaction.spi.TransactionCoordinatorBuilder class, which makes me think there's an incorrect bit of data in the Hibernate SessionFactory configuration somewhere.

    Hibernate JIRA | 2 months ago | Joseph Ottinger
    chapter12.hibernate.InfinispanTest
  2. 0

    javafx.fxml.LoadException: in Neatbeans

    Stack Overflow | 10 months ago | user3649361
    javafx.fxml.LoadException: /C:/Users/bjoshi/workspace/SampleApp/build/classes/ch/Buildsapp/Main/BuildsView.fxml:8
  3. 0

    Java NoClassDefFoundError when running jar containing library jar

    Stack Overflow | 4 years ago | Walker
    java.lang.NoClassDefFoundError: com/test/lib/MyLibraryClass at com.mytest.MyMain.&lt;init&gt;(Unknown Source)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NoClassDefFoundError on ThreadFactoryBuilder when running a Spark program in Intellij

    Stack Overflow | 2 years ago | javadba
    java.lang.NoClassDefFoundError: com/google/common/util/concurrent/ThreadFactoryBuilder at org.apache.spark.util.Utils$.&lt;init&gt;(Utils.scala:648) at org.apache.spark.util.Utils$.&lt;clinit&gt;(Utils.scala) at org.apache.spark.SparkContext.&lt;init&gt;(SparkContext.scala:179) at org.apache.spark.SparkContext.&lt;init&gt;(SparkContext.scala:119) at org.apache.spark.SparkContext.&lt;init&gt;(SparkContext.scala:134) at org.apache.spark.api.java.JavaSparkContext.&lt;init&gt;(JavaSparkContext.scala:62)
  6. 0

    HBase completebulkload returns exception

    Stack Overflow | 4 years ago | HXCaine
    java.lang.NoClassDefFoundError: com/google/common/util/concurrent/ThreadFactoryBuilder

  1. archenroot 1 times, last 1 week ago
  2. tyson925 5 times, last 2 weeks ago
  3. tzrlk 1 times, last 2 weeks ago
  4. musketyr 1 times, last 2 weeks ago
  5. kjhdofjosvs 3 times, last 3 weeks ago
63 more registered users
32 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

    org.hibernate.resource.transaction.TransactionCoordinatorBuilder

    at java.net.URLClassLoader.findClass()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    3. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    4 frames
  3. org.hibernate.ogm
    OgmServiceRegistryInitializer.contribute
    1. org.hibernate.ogm.boot.impl.OgmServiceRegistryInitializer.contribute(OgmServiceRegistryInitializer.java:71)
    1 frame
  4. org.hibernate.boot
    StandardServiceRegistryBuilder.build
    1. org.hibernate.boot.registry.StandardServiceRegistryBuilder.applyServiceContributors(StandardServiceRegistryBuilder.java:305)
    2. org.hibernate.boot.registry.StandardServiceRegistryBuilder.build(StandardServiceRegistryBuilder.java:273)
    2 frames
  5. chapter12.hibernate
    InfinispanTest.<init>
    1. chapter12.hibernate.BaseHibernateOGMTest.<init>(BaseHibernateOGMTest.java:43)
    2. chapter12.hibernate.InfinispanTest.<init>(InfinispanTest.java:10)
    2 frames
  6. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    4 frames
  7. TestNG
    TestNG.run
    1. org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:29)
    2. org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:40)
    3. org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:377)
    4. org.testng.internal.ClassHelper.createInstance(ClassHelper.java:290)
    5. org.testng.internal.ClassImpl.getDefaultInstance(ClassImpl.java:125)
    6. org.testng.internal.ClassImpl.getInstances(ClassImpl.java:190)
    7. org.testng.internal.TestNGClassFinder.<init>(TestNGClassFinder.java:130)
    8. org.testng.TestRunner.initMethods(TestRunner.java:424)
    9. org.testng.TestRunner.init(TestRunner.java:247)
    10. org.testng.TestRunner.init(TestRunner.java:217)
    11. org.testng.TestRunner.<init>(TestRunner.java:161)
    12. org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRunner.java:556)
    13. org.testng.SuiteRunner.init(SuiteRunner.java:168)
    14. org.testng.SuiteRunner.<init>(SuiteRunner.java:117)
    15. org.testng.TestNG.createSuiteRunner(TestNG.java:1319)
    16. org.testng.TestNG.createSuiteRunners(TestNG.java:1306)
    17. org.testng.TestNG.runSuitesLocally(TestNG.java:1160)
    18. org.testng.TestNG.run(TestNG.java:1064)
    18 frames
  8. org.apache.maven
    TestNGProvider.invoke
    1. org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77)
    2. org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:159)
    3. org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:99)
    4. org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:106)
    4 frames