Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-10879

PersistenceIT random failures

    XMLWordPrintable

Details

    Description

      java.lang.NoClassDefFoundError: Could not initialize class org.infinispan.server.persistence.PersistenceIT
      

      The reason for the error is that PersistenceIT has a static final field InfinispanServerRule SERVERS, and the InfinispanServerRule constructor may throw an exception. The first time the JVM tries to initialize the PersistenceIT class, the caller gets an ExceptionInInitializerError, but further attempts get the NoClassDefFoundError instead. And since this is all inside Surefire/JUnit, the initial ExceptionInInitializerError is ignored somewhere without being logged.

      To help debugging via logs, the constructor should be trivial, and the serverDriver should only be initialized in the apply() method.

      Attachments

        Activity

          People

            dlovison@redhat.com Diego Lovison
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: