java.lang.reflect.InvocationTargetException

jenkins-ci.org | 4 months ago
  1. 0

    [JIRA] [core] (JENKINS-33729) Jenkins 2.0 cannot restart after massive plugin installation

    Google Groups | 8 months ago | o.v.nenashev@gmail.com (JIRA)
    java.lang.reflect.InvocationTargetException
  2. 0

    [JIRA] [core] (JENKINS-33845) Jenkins 1.654 cannot restart safely

    Google Groups | 8 months ago | mmake...@gmail.com (JIRA)
    java.lang.reflect.InvocationTargetException
  3. 0

    Reproduction steps: 1) Select many plugins for upgrade 2) Update them with "restart after installation option" Expected behavior: * Jenkins installs plugins and restarts Actual behavior: * Jenkins shuts down the web UI * Jenkins does not restart due to "Caused by: java.lang.UnsupportedOperationException at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove" * Jenkins cannot open the UI anymore due to the exception from getActiveInstance() Log: {noformat} Mar 22, 2016 5:38:30 PM hudson.model.UpdateCenter$UpdateCenterConfiguration download INFO: Downloading JUnit Plugin Mar 22, 2016 5:38:30 PM jenkins.model.Jenkins$27 run INFO: Restart in 10 seconds Mar 22, 2016 5:38:40 PM jenkins.model.Jenkins$27 run SEVERE: Restarting VM as requested by anonymous Mar 22, 2016 5:38:40 PM jenkins.model.Jenkins cleanUp INFO: Stopping Jenkins Mar 22, 2016 5:38:40 PM jenkins.model.Jenkins$22 onAttained INFO: Started termination Mar 22, 2016 5:38:40 PM com.cloudbees.opscenter.context.Messaging$Local close INFO: Messaging Stopped Mar 22, 2016 5:38:40 PM jenkins.model.Jenkins$22 onAttained INFO: Completed termination Mar 22, 2016 5:38:40 PM jenkins.model.Jenkins _cleanUpDisconnectComputers INFO: Starting node disconnection Mar 22, 2016 5:38:41 PM jenkins.model.Jenkins _cleanUpShutdownPluginManager INFO: Stopping plugin manager Mar 22, 2016 5:38:41 PM jenkins.model.Jenkins _cleanUpPersistQueue INFO: Persisting build queue Mar 22, 2016 5:38:41 PM jenkins.model.Jenkins _cleanUpAwaitDisconnects INFO: Waiting for node disconnection completion Mar 22, 2016 5:38:41 PM jenkins.model.Jenkins _cleanUpPluginServletFilters SEVERE: Failed to stop filters java.lang.UnsupportedOperationException at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:1176) at hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:162) at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:3292) at jenkins.model.Jenkins.cleanUp(Jenkins.java:2945) at hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70) at jenkins.model.Jenkins$27.run(Jenkins.java:3901) Mar 22, 2016 5:38:41 PM jenkins.model.Jenkins cleanUp INFO: Jenkins stopped Mar 22, 2016 5:38:41 PM jenkins.model.Jenkins$27 run WARNING: Failed to restart Jenkins java.lang.RuntimeException: Unexpected issues encountered during cleanUp: null at jenkins.model.Jenkins.cleanUp(Jenkins.java:2960) at hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70) at jenkins.model.Jenkins$27.run(Jenkins.java:3901) Caused by: java.lang.UnsupportedOperationException at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:1176) at hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:162) at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:3292) at jenkins.model.Jenkins.cleanUp(Jenkins.java:2945) ... 2 more Mar 22, 2016 5:38:41 PM org.eclipse.jetty.util.log.JavaUtilLog warn WARNING: Error while serving http://172.30.0.217:8080/adjuncts/b616bb17/lib/layout/menu_right_arrow.png java.lang.reflect.InvocationTargetException 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:497) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:324) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:167) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:100) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:403) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) .... at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.0-alpha-5-SNAPSHOT.jar!/lib/layout/layout.jelly:161:89: <j:invokeStatic> method getActiveInstance threw exception: Jenkins has not been started, or was already shut down at org.kohsuke.stapler.jelly.JellyRequestDispatcher.forward(JellyRequestDispatcher.java:60) at hudson.util.HudsonIsRestarting.doDynamic(HudsonIsRestarting.java:45) ... 65 more Caused by: org.apache.commons.jelly.JellyTagException: jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.0-alpha-5-SNAPSHOT.jar!/lib/layout/layout.jelly:161:89: <j:invokeStatic> method getActiveInstance threw exception: Jenkins has not been started, or was already shut down at org.apache.commons.jelly.tags.core.InvokeStaticTag.doTag(InvokeStaticTag.java:148) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:95) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53) at org.kohsuke.stapler.jelly.JellyRequestDispatcher.forward(JellyRequestDispatcher.java:55) .... {noformat}

    Jenkins JIRA | 8 months ago | Oleg Nenashev
    java.lang.reflect.InvocationTargetException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Reproduction steps: 1) Select many plugins for upgrade 2) Update them with "restart after installation option" Expected behavior: * Jenkins installs plugins and restarts Actual behavior: * Jenkins shuts down the web UI * Jenkins does not restart due to "Caused by: java.lang.UnsupportedOperationException at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove" * Jenkins cannot open the UI anymore due to the exception from getActiveInstance() Log: {noformat} Mar 22, 2016 5:38:30 PM hudson.model.UpdateCenter$UpdateCenterConfiguration download INFO: Downloading JUnit Plugin Mar 22, 2016 5:38:30 PM jenkins.model.Jenkins$27 run INFO: Restart in 10 seconds Mar 22, 2016 5:38:40 PM jenkins.model.Jenkins$27 run SEVERE: Restarting VM as requested by anonymous Mar 22, 2016 5:38:40 PM jenkins.model.Jenkins cleanUp INFO: Stopping Jenkins Mar 22, 2016 5:38:40 PM jenkins.model.Jenkins$22 onAttained INFO: Started termination Mar 22, 2016 5:38:40 PM com.cloudbees.opscenter.context.Messaging$Local close INFO: Messaging Stopped Mar 22, 2016 5:38:40 PM jenkins.model.Jenkins$22 onAttained INFO: Completed termination Mar 22, 2016 5:38:40 PM jenkins.model.Jenkins _cleanUpDisconnectComputers INFO: Starting node disconnection Mar 22, 2016 5:38:41 PM jenkins.model.Jenkins _cleanUpShutdownPluginManager INFO: Stopping plugin manager Mar 22, 2016 5:38:41 PM jenkins.model.Jenkins _cleanUpPersistQueue INFO: Persisting build queue Mar 22, 2016 5:38:41 PM jenkins.model.Jenkins _cleanUpAwaitDisconnects INFO: Waiting for node disconnection completion Mar 22, 2016 5:38:41 PM jenkins.model.Jenkins _cleanUpPluginServletFilters SEVERE: Failed to stop filters java.lang.UnsupportedOperationException at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:1176) at hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:162) at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:3292) at jenkins.model.Jenkins.cleanUp(Jenkins.java:2945) at hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70) at jenkins.model.Jenkins$27.run(Jenkins.java:3901) Mar 22, 2016 5:38:41 PM jenkins.model.Jenkins cleanUp INFO: Jenkins stopped Mar 22, 2016 5:38:41 PM jenkins.model.Jenkins$27 run WARNING: Failed to restart Jenkins java.lang.RuntimeException: Unexpected issues encountered during cleanUp: null at jenkins.model.Jenkins.cleanUp(Jenkins.java:2960) at hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70) at jenkins.model.Jenkins$27.run(Jenkins.java:3901) Caused by: java.lang.UnsupportedOperationException at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:1176) at hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:162) at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:3292) at jenkins.model.Jenkins.cleanUp(Jenkins.java:2945) ... 2 more Mar 22, 2016 5:38:41 PM org.eclipse.jetty.util.log.JavaUtilLog warn WARNING: Error while serving http://172.30.0.217:8080/adjuncts/b616bb17/lib/layout/menu_right_arrow.png java.lang.reflect.InvocationTargetException 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:497) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:324) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:167) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:100) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:403) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) .... at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.0-alpha-5-SNAPSHOT.jar!/lib/layout/layout.jelly:161:89: <j:invokeStatic> method getActiveInstance threw exception: Jenkins has not been started, or was already shut down at org.kohsuke.stapler.jelly.JellyRequestDispatcher.forward(JellyRequestDispatcher.java:60) at hudson.util.HudsonIsRestarting.doDynamic(HudsonIsRestarting.java:45) ... 65 more Caused by: org.apache.commons.jelly.JellyTagException: jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.0-alpha-5-SNAPSHOT.jar!/lib/layout/layout.jelly:161:89: <j:invokeStatic> method getActiveInstance threw exception: Jenkins has not been started, or was already shut down at org.apache.commons.jelly.tags.core.InvokeStaticTag.doTag(InvokeStaticTag.java:148) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:95) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53) at org.kohsuke.stapler.jelly.JellyRequestDispatcher.forward(JellyRequestDispatcher.java:55) .... {noformat}

    Jenkins JIRA | 8 months ago | Oleg Nenashev
    java.lang.reflect.InvocationTargetException
  6. 0

    [JENKINS-33845] Jenkins 1.654 cannot restart safely - Jenkins JIRA

    jenkins-ci.org | 4 months ago
    java.lang.reflect.InvocationTargetException

  1. davidvanlaatum 4 times, last 5 months ago
  2. bmacedo 8 times, last 2 weeks ago
  3. aldrinleal 1 times, last 1 month ago
  4. ajinkya_w 96 times, last 2 months ago
  5. davidvanlaatum 4 times, last 2 months ago
17 more registered users
77 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.reflect.InvocationTargetException

    No message provided

    at sun.reflect.NativeMethodAccessorImpl.invoke0()
  2. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  3. Stapler
    Stapler.service
    1. org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:324)
    2. org.kohsuke.stapler.Function.bindAndInvoke(Function.java:167)
    3. org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:100)
    4. org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:403)
    5. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
    6. org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
    7. org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
    8. org.kohsuke.stapler.Stapler.service(Stapler.java:238)
    8 frames
  4. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    1 frame