java.lang.reflect.InvocationTargetException

Jenkins JIRA | jkwuc89 | 6 years ago
  1. 0

    Jenkins users - Hudson *almost* starts, then 404

    nabble.com | 1 year ago
    java.lang.reflect.InvocationTargetException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    When Hudson CI is started using IBM JDK 6 via java -jar hudson.war, the following is output to the console: [Winstone 2010/10/25 08:21:40] - Error starting listener instance java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:44) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:516) at winstone.Launcher.spawnListener(Launcher.java:232) at winstone.Launcher.<init>(Launcher.java:205) at winstone.Launcher.main(Launcher.java:391) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:600) at Main.main(Main.java:200) Caused by: java.lang.NoClassDefFoundError: sun.security.x509.CertAndKeyGen at winstone.ssl.HttpsListener.<init>(HttpsListener.java:111) ... 12 more Caused by: java.lang.ClassNotFoundException: sun.security.x509.CertAndKeyGen at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77) at java.net.URLClassLoader.findClass(URLClassLoader.java:385) at java.lang.ClassLoader.loadClass(ClassLoader.java:653) at java.lang.ClassLoader.loadClass(ClassLoader.java:619) ... 13 more According to the Winstone website (http://winstone.sourceforge.net/), the following option can be used to set the KeyManagerFactory: --httpsKeyManagerType = the SSL KeyManagerFactory type (eg SunX509, IbmX509). Default is SunX509 This option (or something similar) should be supported by the Hudson CI start up to allow IBM JDK 6 startup to complete without reporting any errors.

    Jenkins JIRA | 6 years ago | jkwuc89
    java.lang.reflect.InvocationTargetException
  4. 0

    When Hudson CI is started using IBM JDK 6 via java -jar hudson.war, the following is output to the console: [Winstone 2010/10/25 08:21:40] - Error starting listener instance java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:44) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:516) at winstone.Launcher.spawnListener(Launcher.java:232) at winstone.Launcher.<init>(Launcher.java:205) at winstone.Launcher.main(Launcher.java:391) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:600) at Main.main(Main.java:200) Caused by: java.lang.NoClassDefFoundError: sun.security.x509.CertAndKeyGen at winstone.ssl.HttpsListener.<init>(HttpsListener.java:111) ... 12 more Caused by: java.lang.ClassNotFoundException: sun.security.x509.CertAndKeyGen at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77) at java.net.URLClassLoader.findClass(URLClassLoader.java:385) at java.lang.ClassLoader.loadClass(ClassLoader.java:653) at java.lang.ClassLoader.loadClass(ClassLoader.java:619) ... 13 more According to the Winstone website (http://winstone.sourceforge.net/), the following option can be used to set the KeyManagerFactory: --httpsKeyManagerType = the SSL KeyManagerFactory type (eg SunX509, IbmX509). Default is SunX509 This option (or something similar) should be supported by the Hudson CI start up to allow IBM JDK 6 startup to complete without reporting any errors.

    Jenkins JIRA | 6 years ago | jkwuc89
    java.lang.reflect.InvocationTargetException

  1. andyglick 2 times, last 5 days ago
  2. richard77 1 times, last 1 week ago
  3. musketyr 2 times, last 1 week ago
  4. michallos 2 times, last 1 week ago
  5. batwalrus76 2 times, last 1 week ago
67 more registered users
28 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.ClassNotFoundException

    sun.security.x509.CertAndKeyGen

    at java.lang.ClassNotFoundException.<init>()
  2. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77)
    2. java.net.URLClassLoader.findClass(URLClassLoader.java:385)
    3. java.lang.ClassLoader.loadClass(ClassLoader.java:653)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:619)
    4 frames
  3. winstone.ssl
    HttpsListener.<init>
    1. winstone.ssl.HttpsListener.<init>(HttpsListener.java:111)
    1 frame
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:44)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:516)
    4 frames
  5. winstone
    Launcher.main
    1. winstone.Launcher.spawnListener(Launcher.java:232)
    2. winstone.Launcher.<init>(Launcher.java:205)
    3. winstone.Launcher.main(Launcher.java:391)
    3 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:600)
    4 frames
  7. Unknown
    Main.main
    1. Main.main(Main.java:200)
    1 frame