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

b82: Can't load any apps in non-english locale on Win32/Solaris

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      I'm running Win2K SP2, but there are similar problems on Solaris (with
      non-english locale).
      Set user locale (Control Panel/Regional Settings/General tab)
      to any non-english locale (I've tried Russian and Japanese)
      and try to run any application (SwingSet2, for example) on Merlin b82 with
      java -jar SwingSet2.jar
      Exception in thread "main" java.lang.NoClassDefFoundError: SwingSet2

      Try to run the applet:
      appletviewer SwingSet2.html
      Can't find bundle for base name sun.awt.windows.awtLocalization, locale ru_RU
      Using default MenuItem font

      java.lang.StackOverflowError
              at java.io.FilePermission$1.run(FilePermission.java:211)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.io.FilePermission.init(FilePermission.java:206)
              at java.io.FilePermission.<init>(FilePermission.java:256)
              at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
              at java.io.File.isDirectory(File.java:701)
              at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
      .java:68)
              at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
      nection.java:151)
              at sun.applet.AppletClassLoader.resourceExists(AppletClassLoader.java:32
      2)
              at sun.applet.AppletClassLoader.findResources(AppletClassLoader.java:338
      )
              at java.lang.ClassLoader.getResources(ClassLoader.java:786)
              at sun.misc.Service$LazyIterator.hasNext(Service.java:242)
              at java.nio.charset.Charset.lookup(Charset.java:301)
              at java.nio.charset.Charset.isSupported(Charset.java:324)
              at java.lang.StringCoding.lookupCharset(StringCoding.java:81)
              at java.lang.StringCoding.encode(StringCoding.java:353)
              at java.lang.StringCoding.encode(StringCoding.java:370)
              at java.lang.String.getBytes(String.java:576)
              at java.io.Win32FileSystem.canonicalize(Native Method)
              at java.io.File.getCanonicalPath(File.java:516)
              at java.io.FilePermission$1.run(FilePermission.java:212)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.io.FilePermission.init(FilePermission.java:206)
              at java.io.FilePermission.<init>(FilePermission.java:256)
              at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
              at java.io.File.isDirectory(File.java:701)
              at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
      .java:68)
              at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
      nection.java:151)
              at sun.applet.AppletClassLoader.resourceExists(AppletClassLoader.java:32
      2)
              at sun.applet.AppletClassLoader.findResources(AppletClassLoader.java:338
      )
              at java.lang.ClassLoader.getResources(ClassLoader.java:786)
              at sun.misc.Service$LazyIterator.hasNext(Service.java:242)
              at java.nio.charset.Charset.lookup(Charset.java:301)
              at java.nio.charset.Charset.isSupported(Charset.java:324)
              at java.lang.StringCoding.lookupCharset(StringCoding.java:81)
              at java.lang.StringCoding.encode(StringCoding.java:353)
              at java.lang.StringCoding.encode(StringCoding.java:370)
              at java.lang.String.getBytes(String.java:576)
              at java.io.Win32FileSystem.canonicalize(Native Method)
              at java.io.File.getCanonicalPath(File.java:516)
              at java.io.FilePermission$1.run(FilePermission.java:212)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.io.FilePermission.init(FilePermission.java:206)
              at java.io.FilePermission.<init>(FilePermission.java:256)
              at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
              at java.io.File.isDirectory(File.java:701)
              at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
      .java:68)
              at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
      nection.java:151)
              at sun.applet.AppletClassLoader.resourceExists(AppletClassLoader.java:32
      2)
              at sun.applet.AppletClassLoader.findResources(AppletClassLoader.java:338
      )
              at java.lang.ClassLoader.getResources(ClassLoader.java:786)..
      ...

      Both examples work fine if locale is English.

      They also work fine with b81 even with non-english locale.
                                                                                                                                                           
      ###@###.### 2001-10-04

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mr Mark Reinhold
              Reporter:
              tdv Dmitri Trembovetski (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: