java.lang.UnsupportedOperationException

jenkins-ci.org | 9 months 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

    In the last 2-3 Jenkins updates we observe a problem restarting Jenkins instance. Reproduction steps: 1. Run Jenkins a WAR ( java -jar jenkins.war & ) 2. Safe restart Jenkins: a) Enter <jenkins url>/restart and confirm the restart b) Upgrade Jenkins via "Upgrade automatically" button c) Update plugin(s) with "restart after installation" option Expected behavior: * Jenkins (upgrades or 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 Log: {noformat} Mar 28, 2016 9:09:49 AM hudson.WebAppMain$3 run INFO: Jenkins is fully up and running Mar 28, 2016 9:13:57 AM jenkins.model.Jenkins$26 run SEVERE: Restarting VM as requested by mmaker Mar 28, 2016 9:13:57 AM jenkins.model.Jenkins cleanUp INFO: Stopping Jenkins Mar 28, 2016 9:13:57 AM jenkins.model.Jenkins$22 onAttained INFO: Started termination Mar 28, 2016 9:13:57 AM jenkins.model.Jenkins$22 onAttained INFO: Completed termination Mar 28, 2016 9:13:57 AM jenkins.model.Jenkins _cleanUpDisconnectComputers INFO: Starting node disconnection Mar 28, 2016 9:13:58 AM hudson.TcpSlaveAgentListener$ConnectionHandler run INFO: Accepted connection #1 from /10.5.1.212:59574 Mar 28, 2016 9:13:58 AM jenkins.model.Jenkins _cleanUpShutdownPluginManager INFO: Stopping plugin manager Mar 28, 2016 9:13:58 AM jenkins.model.Jenkins _cleanUpPersistQueue INFO: Persisting build queue Mar 28, 2016 9:13:58 AM jenkins.model.Jenkins _cleanUpAwaitDisconnects INFO: Waiting for node disconnection completion Mar 28, 2016 9:13:58 AM 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:3238) at jenkins.model.Jenkins.cleanUp(Jenkins.java:2891) at hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70) at jenkins.model.Jenkins$26.run(Jenkins.java:3808) Mar 28, 2016 9:13:58 AM jenkins.model.Jenkins cleanUp INFO: Jenkins stopped Mar 28, 2016 9:13:58 AM hudson.init.impl.InstallUncaughtExceptionHandler$DefaultUncaughtExceptionHandler uncaughtException SEVERE: A thread (restart thread/105) died unexpectedly due to an uncaught exception, this may leave your Jenkins in a bad way and is usually indicative of a bug in the code. java.lang.RuntimeException: Unexpected issues encountered during cleanUp: null at jenkins.model.Jenkins.cleanUp(Jenkins.java:2906) at hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70) at jenkins.model.Jenkins$26.run(Jenkins.java:3808) 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:3238) at jenkins.model.Jenkins.cleanUp(Jenkins.java:2891) ... 2 more Mar 28, 2016 9:15:48 AM org.eclipse.jetty.util.log.JavaUtilLog warn WARNING: Committed before 404 null {noformat}

    Jenkins JIRA | 1 year ago | Monique Maker
    java.lang.UnsupportedOperationException
  2. 0

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

    jenkins-ci.org | 9 months ago
    java.lang.UnsupportedOperationException
  3. 0

    [JIRA] [core] (JENKINS-33681) Jenkins fails to restart with an exception

    Google Groups | 1 year ago | michael@wyraz.de (JIRA)
    java.lang.UnsupportedOperationException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] [safe-restart] (JENKINS-33702) safeRestart fails with Authentication exception

    Google Groups | 1 year ago | Daniel.Mish@gfs.com (JIRA)
    java.lang.UnsupportedOperationException
  6. 0

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

    Google Groups | 1 year ago | o.v.nenashev@gmail.com (JIRA)
    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:3238)
      2. jenkins.model.Jenkins.cleanUp(Jenkins.java:2891)
      2 frames
    5. Hudson
      UnixLifecycle.restart
      1. hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70)
      1 frame
    6. jenkins.model
      Jenkins$26.run
      1. jenkins.model.Jenkins$26.run(Jenkins.java:3808)
      1 frame