java.lang.reflect.InvocationTargetException

Jenkins JIRA | mcrooney | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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.

    Jenkins JIRA | 8 years ago | mcrooney
    java.lang.reflect.InvocationTargetException
  2. 0

    spark-kernel can not run on ppc64 platform

    GitHub | 2 years ago | xq2005
    akka.actor.ActorInitializationException: exception during creation
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    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

    Jenkins JIRA | 8 years ago | berahac
    java.lang.UnsatisfiedLinkError: jnidispatch (/com/sun/jna/aix- ppc/libjnidispatch.a) not found in resource path
  5. 0

    [JENKINS-3397] Slave Archiver fails with java.lang.NoClassDefFoundError: hudson.util.jna.GNUCLibrary (initialization failure) with IBM JVM 1.5 - Jenkins JIRA

    jenkins-ci.org | 8 months ago
    java.lang.UnsatisfiedLinkError: jnidispatch (/com/sun/jna/aix- ppc/libjnidispatch.a) not found in resource path

  1. gehel 13 times, last 12 months ago
23 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsatisfiedLinkError

    jnidispatch (/com/sun/jna/linux-arm/libjnidispatch.so) not found in resource path

    at com.sun.jna.Native.loadNativeLibraryFromJar()
  2. Java Native Access
    Native.<clinit>
    1. com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:568)
    2. com.sun.jna.Native.loadNativeLibrary(Native.java:550)
    3. com.sun.jna.Native.<clinit>(Native.java:87)
    3 frames
  3. com.sun.akuma
    Daemon.all
    1. com.sun.akuma.CLibrary.<clinit>(CLibrary.java:37)
    2. com.sun.akuma.JavaVMArguments.currentLinux(JavaVMArguments.java:79)
    3. com.sun.akuma.JavaVMArguments.current(JavaVMArguments.java:69)
    4. com.sun.akuma.Daemon.daemonize(Daemon.java:77)
    5. com.sun.akuma.Daemon.all(Daemon.java:59)
    5 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:616)
    4 frames
  5. Unknown
    Main.main
    1. Main.main(Main.java:59)
    1 frame