Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 7u40
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Subcomponent:

      Description

      I have a customer trying to run a javafx app on Mac OS X 10.8

      Launching is fatal - with:
      Exception in thread "main" java.lang.UnsupportedOperationException: Unknown is not supported
      at com.sun.javafx.tk.Toolkit.getDefaultToolkit(Toolkit.java:139)
      at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:194)
      at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:120)
      at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:163)
      at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:47)
      at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:115)
      at java.lang.Thread.run(Thread.java:722)


      He is using java:
      java version "1.7.0_11"
      Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
      Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)


      On a related?, note, before this fatal error happens, we also get errors from log4j:

      log4j:WARN Failed to set property [conversionPattern] to value "%d [%t] %-5p %c - %m%n".
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:245)
      at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:204)
      at org.apache.log4j.xml.DOMConfigurator.setParameter(DOMConfigurator.java:691)
      at org.apache.log4j.xml.DOMConfigurator.parseLayout(DOMConfigurator.java:568)
      at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:269)
      at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176)
      at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:191)
      at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:523)
      at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:492)
      at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1006)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:872)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778)
      at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
      at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
      at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:64)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
      at gov.va.legoEdit.LegoGUI.<clinit>(LegoGUI.java:42)
      Caused by: java.lang.AssertionError: Platform not recognized
      at sun.nio.fs.DefaultFileSystemProvider.create(DefaultFileSystemProvider.java:73)
      at java.nio.file.FileSystems$DefaultFileSystemHolder.getDefaultProvider(FileSystems.java:108)
      at java.nio.file.FileSystems$DefaultFileSystemHolder.access$000(FileSystems.java:89)
      at java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:98)
      at java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:96)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.nio.file.FileSystems$DefaultFileSystemHolder.defaultFileSystem(FileSystems.java:95)
      at java.nio.file.FileSystems$DefaultFileSystemHolder.<clinit>(FileSystems.java:90)
      at java.nio.file.FileSystems.getDefault(FileSystems.java:176)
      at sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:483)
      at sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:478)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.util.calendar.ZoneInfoFile.<clinit>(ZoneInfoFile.java:477)
      at sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:663)
      at java.util.TimeZone.getTimeZone(TimeZone.java:571)
      at java.util.TimeZone.setDefaultZone(TimeZone.java:668)
      at java.util.TimeZone.getDefaultRef(TimeZone.java:635)
      at java.util.Calendar.getInstance(Calendar.java:968)
      at org.apache.log4j.helpers.AbsoluteTimeDateFormat.<init>(AbsoluteTimeDateFormat.java:62)
      at org.apache.log4j.helpers.ISO8601DateFormat.<init>(ISO8601DateFormat.java:46)
      at org.apache.log4j.helpers.PatternParser.finalizeConverter(PatternParser.java:256)
      at org.apache.log4j.helpers.PatternParser.parse(PatternParser.java:186)
      at org.apache.log4j.PatternLayout.setConversionPattern(PatternLayout.java:450)
      ... 22 more
      log4j:WARN Failed to set property [conversionPattern] to value "%d [%t] %-5p %c - %m%n".
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:245)
      at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:204)
      at org.apache.log4j.xml.DOMConfigurator.setParameter(DOMConfigurator.java:691)
      at org.apache.log4j.xml.DOMConfigurator.parseLayout(DOMConfigurator.java:568)
      at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:269)
      at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176)
      at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:191)
      at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:523)
      at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:492)
      at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1006)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:872)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778)
      at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
      at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
      at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:64)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
      at gov.va.legoEdit.LegoGUI.<clinit>(LegoGUI.java:42)
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.util.calendar.ZoneInfoFile
      at sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:663)
      at java.util.TimeZone.getTimeZone(TimeZone.java:571)
      at java.util.TimeZone.setDefaultZone(TimeZone.java:668)
      at java.util.TimeZone.getDefaultRef(TimeZone.java:635)
      at java.util.Calendar.getInstance(Calendar.java:968)
      at org.apache.log4j.helpers.AbsoluteTimeDateFormat.<init>(AbsoluteTimeDateFormat.java:62)
      at org.apache.log4j.helpers.ISO8601DateFormat.<init>(ISO8601DateFormat.java:46)
      at org.apache.log4j.helpers.PatternParser.finalizeConverter(PatternParser.java:256)
      at org.apache.log4j.helpers.PatternParser.parse(PatternParser.java:186)
      at org.apache.log4j.PatternLayout.setConversionPattern(PatternLayout.java:450)
      ... 22 more


      Did Oracle release a Java VM that is so broken on Mac that it can't determine what platform it is?

      Any workarounds available?


        Attachments

          Activity

            People

            • Assignee:
              msladecek Martin Sládeček
              Reporter:
              vortexjfx vortex (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: