Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8143609

Deadlock between sun.net.www.protocol.jar.JarFileFactory and java.nio.charset

XMLWordPrintable

    • x86
    • linux_suse_sles_11

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :

      "Pool-dm_0-163":
      at sun.nio.cs.AbstractCharsetProvider.charsetForName(AbstractCharsetProvider.java:159)
      - waiting to lock <0xffffffff5e2515a8> (a sun.nio.cs.ext.ExtendedCharsets)
      at java.nio.charset.Charset.lookupExtendedCharset(Charset.java:452)
      at java.nio.charset.Charset.lookup2(Charset.java:476)
      at java.nio.charset.Charset.lookup(Charset.java:464)
      at java.nio.charset.Charset.isSupported(Charset.java:505)
      at java.lang.StringCoding.lookupCharset(StringCoding.java:99)
      at java.lang.StringCoding.decode(StringCoding.java:185)
      at java.lang.String.<init>(String.java:426)
      at java.lang.String.<init>(String.java:491)
      at java.io.UnixFileSystem.canonicalize0(Native Method)
      at java.io.UnixFileSystem.canonicalize(UnixFileSystem.java:172)
      at java.io.File.getCanonicalPath(File.java:618)
      at java.io.FilePermission$1.run(FilePermission.java:215)
      at java.io.FilePermission$1.run(FilePermission.java:203)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.io.FilePermission.init(FilePermission.java:203)
      at java.io.FilePermission.<init>(FilePermission.java:277)
      at sun.net.www.protocol.file.FileURLConnection.getPermission(FileURLConnection.java:225)
      at sun.net.www.protocol.jar.JarFileFactory.getPermission(JarFileFactory.java:156)
      at sun.net.www.protocol.jar.JarFileFactory.getCachedJarFile(JarFileFactory.java:126)
      at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:81)
      - locked <0xffffffff5e34ce30> (a sun.net.www.protocol.jar.JarFileFactory)
      at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
      at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:150)
      at java.net.URL.openStream(URL.java:1038)


      "ROA-addApp_3-2_/topo":
      at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:80)
      - waiting to lock <0xffffffff5e34ce30> (a sun.net.www.protocol.jar.JarFileFactory)
      at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
      at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:150)
      at java.net.URL.openStream(URL.java:1038)
      at java.lang.ClassLoader.getSystemResourceAsStream(ClassLoader.java:1328)
      at java.lang.Class.getResourceAsStream(Class.java:2221)
      at sun.nio.cs.ext.SJIS_0213$1.run(SJIS_0213.java:81)
      at sun.nio.cs.ext.SJIS_0213$1.run(SJIS_0213.java:79)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.nio.cs.ext.SJIS_0213.<clinit>(SJIS_0213.java:78)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:348)
      at sun.nio.cs.AbstractCharsetProvider.lookup(AbstractCharsetProvider.java:142)
      at sun.nio.cs.AbstractCharsetProvider.access$000(AbstractCharsetProvider.java:45)
      at sun.nio.cs.AbstractCharsetProvider$1.next(AbstractCharsetProvider.java:183)
      - locked <0xffffffff5e2515a8> (a sun.nio.cs.ext.ExtendedCharsets)
      at sun.nio.cs.AbstractCharsetProvider$1.next(AbstractCharsetProvider.java:173)
      at java.nio.charset.Charset.put(Charset.java:539)
      at java.nio.charset.Charset.access$200(Charset.java:271)
      at java.nio.charset.Charset$3.run(Charset.java:581)
      at java.nio.charset.Charset$3.run(Charset.java:573)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.nio.charset.Charset.availableCharsets(Charset.java:572)
      at org.springframework.http.converter.StringHttpMessageConverter.<init>(StringHttpMessageConverter.java:52)
      at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerExceptionResolver.<init>(AnnotationMethodHandlerExceptionResolver.java:95)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:422)

      REGRESSION. Last worked in version 8u65


      REPRODUCIBILITY :
      This bug can be reproduced rarely.

            psonal Pallavi Sonal (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: