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

javax.script.ScriptEngineManager not initializing properly [macosx]

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 8
    • 8
    • core-libs
    • None

      test failing on macosx as per trace below. The class exists, is built and is included in rt.jar
      but is not initializing correctly.

      ------------------------------------------------------------------------------------

      command: compile /private/tmp/jprt/P1/051347.jcg-int/s/jdk/test/javax/script/GetInterfaceTest.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.046

      ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.NoClassDefFoundError: Could not initialize class apple.applescript.AppleScriptEngineFactory
      REASON: Assumed action based on file name: run main GetInterfaceTest
      TIME: 0.004 seconds
      messages:
      command: main GetInterfaceTest
      reason: Assumed action based on file name: run main GetInterfaceTest
      elapsed time (seconds): 0.004
      STDERR:
      java.lang.NoClassDefFoundError: Could not initialize class apple.applescript.AppleScriptEngineFactory
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:264)
      at sun.misc.Service$LazyIterator.next(Service.java:288)
      at javax.script.ScriptEngineManager.initEngines(ScriptEngineManager.java:127)
      at javax.script.ScriptEngineManager.access$000(ScriptEngineManager.java:55)
      at javax.script.ScriptEngineManager$1.run(ScriptEngineManager.java:98)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.script.ScriptEngineManager.init(ScriptEngineManager.java:96)
      at javax.script.ScriptEngineManager.<init>(ScriptEngineManager.java:69)
      at GetInterfaceTest.main(GetInterfaceTest.java:34)
      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 com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:698)
      at java.lang.Thread.run(Thread.java:722)

      JavaTest Message: Test threw exception: java.lang.NoClassDefFoundError
      JavaTest Message: shutting down test

            Unassigned Unassigned
            michaelm Michael McMahon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: