You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.NoClassDefFoundError: javax/transaction/xa/Xid
at com.sleepycat.je.dbi.DatabaseImpl.<init>(DatabaseImpl.java:173)
at com.sleepycat.je.dbi.DbTree.<init>(DbTree.java:254)
at com.sleepycat.je.dbi.EnvironmentImpl.<init>(EnvironmentImpl.java:476)
at com.sleepycat.je.dbi.EnvironmentImpl.<init>(EnvironmentImpl.java:340)
at com.sleepycat.je.dbi.DbEnvPool.getEnvironment(DbEnvPool.java:195)
at com.sleepycat.je.Environment.makeEnvironmentImpl(Environment.java:229)
at com.sleepycat.je.Environment.<init>(Environment.java:211)
at com.sleepycat.je.Environment.<init>(Environment.java:165)
at org.archive.settings.file.PrefixFinderTest.testStoredSortedMap(PrefixFinderTest.java:85)
Caused by: java.lang.ClassNotFoundException: javax.transaction.xa.Xid
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:93)
... 37 more
This class does still exist in jdk11:
$ jshell
| Welcome to JShell -- Version 11.0.3
| For an introduction type: /help intro
jshell> javax.transaction.xa.Xid.MAXBQUALSIZE
$1 ==> 64
I don't understand the root cause but on a hunch found commenting out this line in pom.xml fixes the error:
However, using the systemClassLoader means that we inherit
maven's CLASSPATH while running our test code. This is a
problem since maven uses an earlier version of
commons-lang than we do.
I think it'd be very unlikely that maven would today still using an older version of commons-lang than heritrix but haven't checked that.
The text was updated successfully, but these errors were encountered:
ato
added a commit
that referenced
this issue
Aug 2, 2019
Under openjdk 11.0.3 several bdb related unit tests error:
with this stacktrace:
This class does still exist in jdk11:
I don't understand the root cause but on a hunch found commenting out this line in pom.xml fixes the error:
The pom has a comment explaining:
I think it'd be very unlikely that maven would today still using an older version of commons-lang than heritrix but haven't checked that.
The text was updated successfully, but these errors were encountered: