java.lang.UnsupportedOperationException: null

JDK Bug System | Webbug Group | 9 months ago
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    FULL PRODUCT VERSION : C:\Windows\System32>java -version java version "1.8.0_101" Java(TM) SE Runtime Environment (build 1.8.0_101-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode) ADDITIONAL OS VERSION INFORMATION : C:\Windows\System32>ver Microsoft Windows [Version 6.1.7601] A DESCRIPTION OF THE PROBLEM : This appears to be related to the fix for JDK bug The above seems to have been fixed but has caused this UnsupportedOperationException to occaisionally occur. We have not been able to firmly identify the root cause yet but believe it is due to the garbage collection of weak-references. java.lang.UnsupportedOperationException: null at java.util.Collections$UnmodifiableMap.remove(Unknown Source) ~[na:1.8.0_101] at java.util.jar.Attributes.remove(Unknown Source) ~[na:1.8.0_101] at com.sun.deploy.cache.CachedJarFile.getManifest(Unknown Source) ~[na:na] at$JarLoader$2.getManifest(Unknown Source) ~[na:na] at Source) ~[na:1.8.0_101] at$100(Unknown Source) ~[na:1.8.0_101] at$ Source) ~[na:1.8.0_101] at$ Source) ~[na:1.8.0_101] at Method) ~[na:1.8.0_101] at Source) ~[na:1.8.0_101] at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source) ~[na:na] at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_101] at com.sun.jnlp.JNLPClassLoader.loadClass(Unknown Source) ~[na:na] at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_101] Has occurred once in QA (but has not been reproducible), and 2 customers have reported it too since upgrading to 8u101. REGRESSION. Last worked in version 8u91 STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : We are still working to reproduce - will update this if/when we can. We believe the cause is related to garbage collection of the weak-reference (CachedJarFile.manifestRef). EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - CachedJarFile.getManifest should successfully return the manifest, not throw an exception. ACTUAL - java.lang.UnsupportedOperationException: null at java.util.Collections$UnmodifiableMap.remove(Unknown Source) ~[na:1.8.0_101] ERROR MESSAGES/STACK TRACES THAT OCCUR : See above. REPRODUCIBILITY : This bug can be reproduced occasionally. ---------- BEGIN SOURCE ---------- Still working on this. ---------- END SOURCE ---------- CUSTOMER SUBMITTED WORKAROUND : Looking at preventing the garbage collection of the manifestRef by establishing a hard-link to it.

    JDK Bug System | 9 months ago | Webbug Group
    java.lang.UnsupportedOperationException: null
  2. 0

    Pretty Url or GET requests with Icefaces

    Icesoft | 9 years ago | jacob.alvarez
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Mule - Removing a given key from a map in Groovy component

    Stack Overflow | 1 year ago | Balwant Chauhan

    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


      at java.util.Collections$UnmodifiableMap.remove()
    2. Java RT
      1. java.util.Collections$UnmodifiableMap.remove(Unknown Source)[na:1.8.0_101]
      1 frame