java.lang.reflect.InvocationTargetException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hello! I am using Hudson on an ARM machine using openjdk. Surprisingly everything works quite well. However if I try to use the --daemon option, then I get a traceback: hudson@debian:~$ java -jar hudson.war --daemon Forking into background to run as a daemon. Use --logfile to redirect output to a file Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at Main.main(Main.java:59) Caused by: java.lang.UnsatisfiedLinkError: jnidispatch (/com/sun/jna/linux-arm/libjnidispatch.so) not found in resource path at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:568) at com.sun.jna.Native.loadNativeLibrary(Native.java:550) at com.sun.jna.Native.<clinit>(Native.java:87) at com.sun.akuma.CLibrary.<clinit>(CLibrary.java:37) at com.sun.akuma.JavaVMArguments.currentLinux(JavaVMArguments.java:79) at com.sun.akuma.JavaVMArguments.current(JavaVMArguments.java:69) at com.sun.akuma.Daemon.daemonize(Daemon.java:77) at com.sun.akuma.Daemon.all(Daemon.java:59) ... 5 more hudson@debian:~$ java -jar hudson.war --daemon --logfile hudson.log Forking into background to run as a daemon. Use --logfile to redirect output to a file Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at Main.main(Main.java:59) Caused by: java.lang.UnsatisfiedLinkError: jnidispatch (/com/sun/jna/linux-arm/libjnidispatch.so) not found in resource path at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:568) at com.sun.jna.Native.loadNativeLibrary(Native.java:550) at com.sun.jna.Native.<clinit>(Native.java:87) at com.sun.akuma.CLibrary.<clinit>(CLibrary.java:37) at com.sun.akuma.JavaVMArguments.currentLinux(JavaVMArguments.java:79) at com.sun.akuma.JavaVMArguments.current(JavaVMArguments.java:69) at com.sun.akuma.Daemon.daemonize(Daemon.java:77) at com.sun.akuma.Daemon.all(Daemon.java:59) ... 5 more I just picked the javanet subcomponent since I had to pick one and it seemed the most appropriate. Googling for "UnsatisfiedLinkError jnidispatch" generates some potentially useful reports within other projects.
    via by mcrooney,
  • This occurs when build finishes and the archiver is activated in builds that runs in Slave node. # java -version java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build pap32dev-20070201 (SR4)) IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc-32 j9vmap3223-20070201 (JIT enabled) J9VM - 20070131_11312_bHdSMR JIT - 20070109_1805ifx1_r8 GC - 200701_09) JCL - 20070126 LOG: ==== BUILD SUCCESSFUL Total time: 16 minutes 29 seconds FATAL: hudson.util.jna.GNUCLibrary (initialization failure) java.lang.NoClassDefFoundError: hudson.util.jna.GNUCLibrary (initialization failure) at java.lang.Throwable.<init>(Throwable.java:57) at java.lang.Throwable.<init>(Throwable.java:68) at java.lang.J9VMInternals.initialize(J9VMInternals.java:123) at hudson.FilePath.readFromTar(FilePath.java:1165) at hudson.FilePath.copyRecursiveTo(FilePath.java:1071) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:103) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :372) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :360) at hudson.model.Build$RunnerImpl.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:345) at hudson.model.Run.run(Run.java:915) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:119) Caused by: java.lang.Throwable: java.lang.NoClassDefFoundError: com.sun.jna.Native (initialization failure) at java.lang.J9VMInternals.initialize(J9VMInternals.java:123) at hudson.util.jna.GNUCLibrary.<clinit>(GNUCLibrary.java:81) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:177) ... 11 more Caused by: java.lang.Throwable: java.lang.Throwable: java.lang.UnsatisfiedLinkError: jnidispatch (/com/sun/jna/aix- ppc/libjnidispatch.a) not found in resource path at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:568) at com.sun.jna.Native.loadNativeLibrary(Native.java:550) at com.sun.jna.Native.<clinit>(Native.java:87) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:177) at com.sun.jna.Pointer.<clinit>(Pointer.java:40) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:177) at java.lang.J9VMInternals.initialize(J9VMInternals.java:144) at org.tmatesoft.svn.core.internal.util.jna.SVNLinuxUtil.<clinit>(SVNLinuxUtil.java :35) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:177) at org.tmatesoft.svn.core.internal.util.jna.SVNJNAUtil.isExecutable(SVNJNAUtil.java :75) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.isExecutable(SVNFileUtil.java:107 1) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.copyFile(SVNFileUtil.java:549) at org.tmatesoft.svn.core.internal.wc.admin.SVNTranslator.translate(SVNTranslator.j ava:151) at org.tmatesoft.svn.core.internal.wc.admin.SVNTranslator.translate(SVNTranslator.j ava:123) at org.tmatesoft.svn.core.internal.wc.admin.SVNTranslator.translate(SVNTranslator.j ava:81) at org.tmatesoft.svn.core.internal.wc.admin.SVNLogRunner.runCommand(SVNLogRunner.ja va:318) at org.tmatesoft.svn.core.internal.wc.admin.SVNLog.run(SVNLog.java:221) at org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea.runLogs(SVNAdminArea.java: 560) at org.tmatesoft.svn.core.internal.wc.SVNUpdateEditor$SVNDirectoryInfo.runLogs(SVNU pdateEditor.java:1550) at org.tmatesoft.svn.core.internal.wc.SVNUpdateEditor.closeDir(SVNUpdateEditor.java :504) at org.tmatesoft.svn.core.internal.wc.SVNCancellableEditor.closeDir(SVNCancellableE ditor.java:101) at org.tmatesoft.svn.core.internal.io.svn.SVNEditModeReader.processCommand(SVNEditM odeReader.java:133) at org.tmatesoft.svn.core.internal.io.svn.SVNEditModeReader.driveEditor(SVNEditMode Reader.java:214) at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.update(SVNRepositoryImp l.java:1485) at org.tmatesoft.svn.core.wc.SVNUpdateClient.update(SVNUpdateClient.java:449) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:851) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:728) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:546) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:476) at hudson.FilePath.act(FilePath.java:515) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:469) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:418) at hudson.model.AbstractProject.checkout(AbstractProject.java:805) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:314) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:266) at hudson.model.Run.run(Run.java:895) ... 3 more
    via by berahac,
  • This occurs when build finishes and the archiver is activated in builds that runs in Slave node. # java -version java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build pap32dev-20070201 (SR4)) IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc-32 j9vmap3223-20070201 (JIT enabled) J9VM - 20070131_11312_bHdSMR JIT - 20070109_1805ifx1_r8 GC - 200701_09) JCL - 20070126 LOG: ==== BUILD SUCCESSFUL Total time: 16 minutes 29 seconds FATAL: hudson.util.jna.GNUCLibrary (initialization failure) java.lang.NoClassDefFoundError: hudson.util.jna.GNUCLibrary (initialization failure) at java.lang.Throwable.<init>(Throwable.java:57) at java.lang.Throwable.<init>(Throwable.java:68) at java.lang.J9VMInternals.initialize(J9VMInternals.java:123) at hudson.FilePath.readFromTar(FilePath.java:1165) at hudson.FilePath.copyRecursiveTo(FilePath.java:1071) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:103) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :372) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :360) at hudson.model.Build$RunnerImpl.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:345) at hudson.model.Run.run(Run.java:915) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:119) Caused by: java.lang.Throwable: java.lang.NoClassDefFoundError: com.sun.jna.Native (initialization failure) at java.lang.J9VMInternals.initialize(J9VMInternals.java:123) at hudson.util.jna.GNUCLibrary.<clinit>(GNUCLibrary.java:81) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:177) ... 11 more Caused by: java.lang.Throwable: java.lang.Throwable: java.lang.UnsatisfiedLinkError: jnidispatch (/com/sun/jna/aix- ppc/libjnidispatch.a) not found in resource path at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:568) at com.sun.jna.Native.loadNativeLibrary(Native.java:550) at com.sun.jna.Native.<clinit>(Native.java:87) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:177) at com.sun.jna.Pointer.<clinit>(Pointer.java:40) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:177) at java.lang.J9VMInternals.initialize(J9VMInternals.java:144) at org.tmatesoft.svn.core.internal.util.jna.SVNLinuxUtil.<clinit>(SVNLinuxUtil.java :35) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:177) at org.tmatesoft.svn.core.internal.util.jna.SVNJNAUtil.isExecutable(SVNJNAUtil.java :75) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.isExecutable(SVNFileUtil.java:107 1) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.copyFile(SVNFileUtil.java:549) at org.tmatesoft.svn.core.internal.wc.admin.SVNTranslator.translate(SVNTranslator.j ava:151) at org.tmatesoft.svn.core.internal.wc.admin.SVNTranslator.translate(SVNTranslator.j ava:123) at org.tmatesoft.svn.core.internal.wc.admin.SVNTranslator.translate(SVNTranslator.j ava:81) at org.tmatesoft.svn.core.internal.wc.admin.SVNLogRunner.runCommand(SVNLogRunner.ja va:318) at org.tmatesoft.svn.core.internal.wc.admin.SVNLog.run(SVNLog.java:221) at org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea.runLogs(SVNAdminArea.java: 560) at org.tmatesoft.svn.core.internal.wc.SVNUpdateEditor$SVNDirectoryInfo.runLogs(SVNU pdateEditor.java:1550) at org.tmatesoft.svn.core.internal.wc.SVNUpdateEditor.closeDir(SVNUpdateEditor.java :504) at org.tmatesoft.svn.core.internal.wc.SVNCancellableEditor.closeDir(SVNCancellableE ditor.java:101) at org.tmatesoft.svn.core.internal.io.svn.SVNEditModeReader.processCommand(SVNEditM odeReader.java:133) at org.tmatesoft.svn.core.internal.io.svn.SVNEditModeReader.driveEditor(SVNEditMode Reader.java:214) at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.update(SVNRepositoryImp l.java:1485) at org.tmatesoft.svn.core.wc.SVNUpdateClient.update(SVNUpdateClient.java:449) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:851) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:728) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:546) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:476) at hudson.FilePath.act(FilePath.java:515) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:469) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:418) at hudson.model.AbstractProject.checkout(AbstractProject.java:805) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:314) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:266) at hudson.model.Run.run(Run.java:895) ... 3 more
    via by berahac,
  • JNA.jar version issue
    via GitHub by Coding-Badly
    ,
  • 1.6.2 JNA conflict
    via GitHub by rodrigopitanga
    ,
    • java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at Main.main(Main.java:59) Caused by: java.lang.UnsatisfiedLinkError: jnidispatch (/com/sun/jna/linux-arm/libjnidispatch.so) not found in resource path at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:568) at com.sun.jna.Native.loadNativeLibrary(Native.java:550) at com.sun.jna.Native.<clinit>(Native.java:87) at com.sun.akuma.CLibrary.<clinit>(CLibrary.java:37) at com.sun.akuma.JavaVMArguments.currentLinux(JavaVMArguments.java:79) at com.sun.akuma.JavaVMArguments.current(JavaVMArguments.java:69) at com.sun.akuma.Daemon.daemonize(Daemon.java:77) at com.sun.akuma.Daemon.all(Daemon.java:59) ... 5 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,
    19 more bugmates