Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failures occur when building with Java 8 #38

Closed
brettwooldridge opened this issue Dec 3, 2014 · 0 comments
Closed

Test failures occur when building with Java 8 #38

brettwooldridge opened this issue Dec 3, 2014 · 0 comments

Comments

@brettwooldridge
Copy link
Contributor

For example:

Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.508 sec <<< FAILURE!
testAcquiringConnectionAfterRecoveryDoesNotMarkAsFailed(bitronix.tm.JdbcFailedPoolTest)  Time elapsed: 0.504 sec  <<< ERROR!
java.lang.ExceptionInInitializerError
    at bitronix.tm.resource.jdbc.JdbcPooledConnection.getConnectionHandle(JdbcPooledConnection.java:433)
    at bitronix.tm.resource.jdbc.JdbcPooledConnection.getConnectionHandle(JdbcPooledConnection.java:312)
    at bitronix.tm.resource.common.XAPool.getConnectionHandle(XAPool.java:189)
    at bitronix.tm.resource.jdbc.PoolingDataSource.startRecovery(PoolingDataSource.java:336)
    at bitronix.tm.recovery.IncrementalRecoverer.recover(IncrementalRecoverer.java:54)
    at bitronix.tm.JdbcFailedPoolTest.testAcquiringConnectionAfterRecoveryDoesNotMarkAsFailed(JdbcFailedPoolTest.java:56)
    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:483)
    at junit.framework.TestCase.runTest(TestCase.java:168)
    at junit.framework.TestCase.runBare(TestCase.java:134)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:243)
    at junit.framework.TestSuite.run(TestSuite.java:238)
    at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
    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:483)
    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: bitronix.tm.internal.BitronixRuntimeException: error initializing JdbcProxyFactory
    at bitronix.tm.resource.jdbc.proxy.JdbcProxyFactory$Initializer.initialize(JdbcProxyFactory.java:82)
    at bitronix.tm.resource.jdbc.proxy.JdbcProxyFactory$Initializer.access$000(JdbcProxyFactory.java:60)
    at bitronix.tm.resource.jdbc.proxy.JdbcProxyFactory.<clinit>(JdbcProxyFactory.java:39)
    ... 31 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException: invalid constant type: 18
    at bitronix.tm.resource.jdbc.proxy.JdbcJavassistProxyFactory.createProxyCallableStatementClass(JdbcJavassistProxyFactory.java:183)
    at bitronix.tm.resource.jdbc.proxy.JdbcJavassistProxyFactory.<init>(JdbcJavassistProxyFactory.java:74)
    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:408)
    at java.lang.Class.newInstance(Class.java:438)
    at bitronix.tm.resource.jdbc.proxy.JdbcProxyFactory$Initializer.initialize(JdbcProxyFactory.java:80)
    ... 33 more
Caused by: java.lang.RuntimeException: java.io.IOException: invalid constant type: 18
    at javassist.CtClassType.getClassFile2(CtClassType.java:203)
    at javassist.CtClassType.subtypeOf(CtClassType.java:303)
    at javassist.CtClassType.subtypeOf(CtClassType.java:318)
    at javassist.CtClassType.subtypeOf(CtClassType.java:318)
    at javassist.compiler.MemberResolver.compareSignature(MemberResolver.java:247)
    at javassist.compiler.MemberResolver.lookupMethod(MemberResolver.java:119)
    at javassist.compiler.MemberResolver.lookupMethod(MemberResolver.java:96)
    at javassist.compiler.TypeChecker.atMethodCallCore(TypeChecker.java:704)
    at javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:681)
    at javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:156)
    at javassist.compiler.ast.CallExpr.accept(CallExpr.java:45)
    at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:241)
    at javassist.compiler.CodeGen.compileExpr(CodeGen.java:228)
    at javassist.compiler.CodeGen.atReturnStmnt2(CodeGen.java:597)
    at javassist.compiler.JvstCodeGen.atReturnStmnt(JvstCodeGen.java:424)
    at javassist.compiler.CodeGen.atStmnt(CodeGen.java:362)
    at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
    at javassist.compiler.CodeGen.atStmnt(CodeGen.java:350)
    at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
    at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:291)
    at javassist.compiler.Javac.compileBody(Javac.java:222)
    at javassist.CtBehavior.setBody(CtBehavior.java:401)
    at javassist.CtBehavior.setBody(CtBehavior.java:375)
    at bitronix.tm.resource.jdbc.proxy.JdbcJavassistProxyFactory.generateProxyClass(JdbcJavassistProxyFactory.java:260)
    at bitronix.tm.resource.jdbc.proxy.JdbcJavassistProxyFactory.createProxyCallableStatementClass(JdbcJavassistProxyFactory.java:180)
    ... 40 more
Caused by: java.io.IOException: invalid constant type: 18
    at javassist.bytecode.ConstPool.readOne(ConstPool.java:1090)
    at javassist.bytecode.ConstPool.read(ConstPool.java:1033)
    at javassist.bytecode.ConstPool.<init>(ConstPool.java:149)
    at javassist.bytecode.ClassFile.read(ClassFile.java:737)
    at javassist.bytecode.ClassFile.<init>(ClassFile.java:108)
    at javassist.CtClassType.getClassFile2(CtClassType.java:190)
    ... 64 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant