java.lang.RuntimeException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

If you're using multiple frameworks on your project, check if this is not a problem between mismatched versions of javassist between them.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Java JPA Hibernate Connection Issue
    via Stack Overflow by Hubertokf
    ,
  • Maven cannot build Java 8
    via Stack Overflow by Emerald214
    ,
  • GitHub comment 96#216885285
    via GitHub by josemduarte
    ,
  • Build fails : https://collaboration-bamboo.internal.atlassian.com/browse/CONFFUNC-WDHMASTERCHROME1400-2/log {code} build 07-Oct-2015 02:34:05 [INFO] Unpacking class files from com.atlassian.confluence.plugins.search:confluence-search-webdriver:test-jar:tests:2.2.5 build 07-Oct-2015 02:34:05 [WARNING] File already exists, will overwrite /opt/bamboo-agent/bamboo-agent-home/xml-data/build-dir/CONFFUNC-WDHMASTERCHROME1400-COREBATCH1/confluence-build/confluence-test-runner/confluence-multi-test/target/test-classes/META-INF/MANIFEST.MF build 07-Oct-2015 02:34:05 [INFO] ------------------------------------------------------------------------ build 07-Oct-2015 02:34:05 [INFO] Reactor Summary: build 07-Oct-2015 02:34:05 [INFO] build 07-Oct-2015 02:34:05 [INFO] Confluence Multi Acceptance Test Runner ............ FAILURE [ 10.636 s] build 07-Oct-2015 02:34:05 [INFO] Confluence Web Driver Test Runner .................. SKIPPED build 07-Oct-2015 02:34:05 [INFO] ------------------------------------------------------------------------ build 07-Oct-2015 02:34:05 [INFO] BUILD FAILURE build 07-Oct-2015 02:34:05 [INFO] ------------------------------------------------------------------------ build 07-Oct-2015 02:34:05 [INFO] Total time: 22.824 s build 07-Oct-2015 02:34:05 [INFO] Finished at: 2015-10-07T02:34:05+00:00 build 07-Oct-2015 02:34:06 [INFO] Final Memory: 186M/568M build 07-Oct-2015 02:34:06 [INFO] ------------------------------------------------------------------------ build 07-Oct-2015 02:34:06 [ERROR] Failed to execute goal com.atlassian.maven.plugins:unpack-testjar:1.4:unpack-tests (default) on project confluence-multi-test: Unable to unpack test dependencies: invalid constant type: 18 -> [Help 1] build 07-Oct-2015 02:34:06 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.maven.plugins:unpack-testjar:1.4:unpack-tests (default) on project confluence-multi-test: Unable to unpack test dependencies build 07-Oct-2015 02:34:06 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) build 07-Oct-2015 02:34:06 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) build 07-Oct-2015 02:34:06 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) build 07-Oct-2015 02:34:06 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) build 07-Oct-2015 02:34:06 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) build 07-Oct-2015 02:34:06 at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) build 07-Oct-2015 02:34:06 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) build 07-Oct-2015 02:34:06 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355) build 07-Oct-2015 02:34:06 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) build 07-Oct-2015 02:34:06 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) build 07-Oct-2015 02:34:06 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216) build 07-Oct-2015 02:34:06 at org.apache.maven.cli.MavenCli.main(MavenCli.java:160) build 07-Oct-2015 02:34:06 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) build 07-Oct-2015 02:34:06 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) build 07-Oct-2015 02:34:06 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) build 07-Oct-2015 02:34:06 at java.lang.reflect.Method.invoke(Method.java:497) build 07-Oct-2015 02:34:06 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) build 07-Oct-2015 02:34:06 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) build 07-Oct-2015 02:34:06 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) build 07-Oct-2015 02:34:06 at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) build 07-Oct-2015 02:34:06 Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to unpack test dependencies build 07-Oct-2015 02:34:06 at com.atlassian.maven.plugins.unpacktests.UnpackTestsMojo.execute(UnpackTestsMojo.java:76) build 07-Oct-2015 02:34:06 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132) build 07-Oct-2015 02:34:06 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) build 07-Oct-2015 02:34:06 ... 19 more build 07-Oct-2015 02:34:06 Caused by: java.io.IOException: invalid constant type: 18 build 07-Oct-2015 02:34:06 at javassist.bytecode.ConstPool.readOne(ConstPool.java:1090) build 07-Oct-2015 02:34:06 at javassist.bytecode.ConstPool.read(ConstPool.java:1033) build 07-Oct-2015 02:34:06 at javassist.bytecode.ConstPool.<init>(ConstPool.java:149) build 07-Oct-2015 02:34:06 at javassist.bytecode.ClassFile.read(ClassFile.java:737) build 07-Oct-2015 02:34:06 at javassist.bytecode.ClassFile.<init>(ClassFile.java:108) build 07-Oct-2015 02:34:06 at org.scannotation.AnnotationDB.scanClass(AnnotationDB.java:343) build 07-Oct-2015 02:34:06 at com.atlassian.maven.plugins.unpacktests.UnpackTestsMojo.scanClassAnnotations(UnpackTestsMojo.java:122) build 07-Oct-2015 02:34:06 at com.atlassian.maven.plugins.unpacktests.UnpackTestsMojo.unpackJar(UnpackTestsMojo.java:99) build 07-Oct-2015 02:34:06 at com.atlassian.maven.plugins.unpacktests.UnpackTestsMojo.execute(UnpackTestsMojo.java:72) build 07-Oct-2015 02:34:06 ... 21 more build 07-Oct-2015 02:34:06 [ERROR] build 07-Oct-2015 02:34:06 [ERROR] Re-run Maven using the -X switch to enable full debug logging. {code} Something related to java8 and scannotations, code 18 is invoke dynamic introduced in java7 : http://stackoverflow.com/questions/30313255/reflections-java-8-invalid-constant-type
    via by Steve Lancashire [Atlassian],
  • Build fails : https://collaboration-bamboo.internal.atlassian.com/browse/CONFFUNC-WDHMASTERCHROME1400-2/log {code} build 07-Oct-2015 02:34:05 [INFO] Unpacking class files from com.atlassian.confluence.plugins.search:confluence-search-webdriver:test-jar:tests:2.2.5 build 07-Oct-2015 02:34:05 [WARNING] File already exists, will overwrite /opt/bamboo-agent/bamboo-agent-home/xml-data/build-dir/CONFFUNC-WDHMASTERCHROME1400-COREBATCH1/confluence-build/confluence-test-runner/confluence-multi-test/target/test-classes/META-INF/MANIFEST.MF build 07-Oct-2015 02:34:05 [INFO] ------------------------------------------------------------------------ build 07-Oct-2015 02:34:05 [INFO] Reactor Summary: build 07-Oct-2015 02:34:05 [INFO] build 07-Oct-2015 02:34:05 [INFO] Confluence Multi Acceptance Test Runner ............ FAILURE [ 10.636 s] build 07-Oct-2015 02:34:05 [INFO] Confluence Web Driver Test Runner .................. SKIPPED build 07-Oct-2015 02:34:05 [INFO] ------------------------------------------------------------------------ build 07-Oct-2015 02:34:05 [INFO] BUILD FAILURE build 07-Oct-2015 02:34:05 [INFO] ------------------------------------------------------------------------ build 07-Oct-2015 02:34:05 [INFO] Total time: 22.824 s build 07-Oct-2015 02:34:05 [INFO] Finished at: 2015-10-07T02:34:05+00:00 build 07-Oct-2015 02:34:06 [INFO] Final Memory: 186M/568M build 07-Oct-2015 02:34:06 [INFO] ------------------------------------------------------------------------ build 07-Oct-2015 02:34:06 [ERROR] Failed to execute goal com.atlassian.maven.plugins:unpack-testjar:1.4:unpack-tests (default) on project confluence-multi-test: Unable to unpack test dependencies: invalid constant type: 18 -> [Help 1] build 07-Oct-2015 02:34:06 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.maven.plugins:unpack-testjar:1.4:unpack-tests (default) on project confluence-multi-test: Unable to unpack test dependencies build 07-Oct-2015 02:34:06 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) build 07-Oct-2015 02:34:06 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) build 07-Oct-2015 02:34:06 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) build 07-Oct-2015 02:34:06 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) build 07-Oct-2015 02:34:06 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) build 07-Oct-2015 02:34:06 at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) build 07-Oct-2015 02:34:06 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) build 07-Oct-2015 02:34:06 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355) build 07-Oct-2015 02:34:06 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) build 07-Oct-2015 02:34:06 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) build 07-Oct-2015 02:34:06 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216) build 07-Oct-2015 02:34:06 at org.apache.maven.cli.MavenCli.main(MavenCli.java:160) build 07-Oct-2015 02:34:06 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) build 07-Oct-2015 02:34:06 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) build 07-Oct-2015 02:34:06 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) build 07-Oct-2015 02:34:06 at java.lang.reflect.Method.invoke(Method.java:497) build 07-Oct-2015 02:34:06 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) build 07-Oct-2015 02:34:06 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) build 07-Oct-2015 02:34:06 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) build 07-Oct-2015 02:34:06 at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) build 07-Oct-2015 02:34:06 Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to unpack test dependencies build 07-Oct-2015 02:34:06 at com.atlassian.maven.plugins.unpacktests.UnpackTestsMojo.execute(UnpackTestsMojo.java:76) build 07-Oct-2015 02:34:06 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132) build 07-Oct-2015 02:34:06 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) build 07-Oct-2015 02:34:06 ... 19 more build 07-Oct-2015 02:34:06 Caused by: java.io.IOException: invalid constant type: 18 build 07-Oct-2015 02:34:06 at javassist.bytecode.ConstPool.readOne(ConstPool.java:1090) build 07-Oct-2015 02:34:06 at javassist.bytecode.ConstPool.read(ConstPool.java:1033) build 07-Oct-2015 02:34:06 at javassist.bytecode.ConstPool.<init>(ConstPool.java:149) build 07-Oct-2015 02:34:06 at javassist.bytecode.ClassFile.read(ClassFile.java:737) build 07-Oct-2015 02:34:06 at javassist.bytecode.ClassFile.<init>(ClassFile.java:108) build 07-Oct-2015 02:34:06 at org.scannotation.AnnotationDB.scanClass(AnnotationDB.java:343) build 07-Oct-2015 02:34:06 at com.atlassian.maven.plugins.unpacktests.UnpackTestsMojo.scanClassAnnotations(UnpackTestsMojo.java:122) build 07-Oct-2015 02:34:06 at com.atlassian.maven.plugins.unpacktests.UnpackTestsMojo.unpackJar(UnpackTestsMojo.java:99) build 07-Oct-2015 02:34:06 at com.atlassian.maven.plugins.unpacktests.UnpackTestsMojo.execute(UnpackTestsMojo.java:72) build 07-Oct-2015 02:34:06 ... 21 more build 07-Oct-2015 02:34:06 [ERROR] build 07-Oct-2015 02:34:06 [ERROR] Re-run Maven using the -X switch to enable full debug logging. {code} Something related to java8 and scannotations, code 18 is invoke dynamic introduced in java7 : http://stackoverflow.com/questions/30313255/reflections-java-8-invalid-constant-type
    via by Steve Lancashire [Atlassian],
    • java.lang.RuntimeException: Error while reading file:/...path to project/target/classes/ at org.hibernate.ejb.packaging.NativeScanner.getFilesInJar(NativeScanner.java:195)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:506)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:861)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] Caused by: java.io.IOException: invalid constant type: 18 at javassist.bytecode.ConstPool.readOne(ConstPool.java:1113)[javassist-3.15.0-GA.jar:na] at javassist.bytecode.ConstPool.read(ConstPool.java:1056)[javassist-3.15.0-GA.jar:na] at javassist.bytecode.ConstPool.<init>(ConstPool.java:150)[javassist-3.15.0-GA.jar:na] at javassist.bytecode.ClassFile.read(ClassFile.java:765)[javassist-3.15.0-GA.jar:na] at javassist.bytecode.ClassFile.<init>(ClassFile.java:109)[javassist-3.15.0-GA.jar:na] at org.hibernate.ejb.packaging.AbstractJarVisitor.checkAnnotationMatching(AbstractJarVisitor.java:246)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.packaging.AbstractJarVisitor.executeJavaElementFilter(AbstractJarVisitor.java:212)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.packaging.AbstractJarVisitor.addElement(AbstractJarVisitor.java:173)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.packaging.ExplodedJarVisitor.getClassNamesInTree(ExplodedJarVisitor.java:126)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.packaging.ExplodedJarVisitor.getClassNamesInTree(ExplodedJarVisitor.java:134)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.packaging.ExplodedJarVisitor.getClassNamesInTree(ExplodedJarVisitor.java:134)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.packaging.ExplodedJarVisitor.getClassNamesInTree(ExplodedJarVisitor.java:134)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.packaging.ExplodedJarVisitor.doProcessElements(ExplodedJarVisitor.java:92)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.packaging.AbstractJarVisitor.getMatchingEntries(AbstractJarVisitor.java:149)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.packaging.NativeScanner.getFilesInJar(NativeScanner.java:192)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] ... 3 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    29 more bugmates