java.lang.UnsupportedOperationException

Jenkins JIRA | Oleg Nenashev | 8 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.UnsupportedOperationException
  2. 0

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

    Google Groups | 8 months ago | mmake...@gmail.com (JIRA)
    java.lang.UnsupportedOperationException
  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.UnsupportedOperationException
  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.UnsupportedOperationException
  6. 0

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

    jenkins-ci.org | 4 months ago
    java.lang.UnsupportedOperationException

    2 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.UnsupportedOperationException

      No message provided

      at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove()
    2. Java RT
      CopyOnWriteArrayList$COWIterator.remove
      1. java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:1176)
      1 frame
    3. Hudson
      PluginServletFilter.cleanUp
      1. hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:162)
      1 frame
    4. jenkins.model
      Jenkins.cleanUp
      1. jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:3292)
      2. jenkins.model.Jenkins.cleanUp(Jenkins.java:2945)
      2 frames
    5. Hudson
      UnixLifecycle.restart
      1. hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70)
      1 frame
    6. jenkins.model
      Jenkins$27.run
      1. jenkins.model.Jenkins$27.run(Jenkins.java:3901)
      1 frame