groovy
  1. groovy
  2. GROOVY-5354

Problems embedding groovyConsole

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 1.8.6
    • Fix Version/s: None
    • Component/s: Groovy Console
    • Labels:
      None
    • Environment:
      MATLAB MacOSX Snow Leopard
    • Number of attachments :
      0

      Description

      On Mac Snow Leopard with MATLAB releases prior to R2012a, groovy.ui.Console() gives class not found errors.
      This seems to occur on UNIX systems generally - not on Windows. The originating exception is

      java.lang.NullPointerException
      at java.util.prefs.AbstractPreferences.node(Unknown Source)
      at java.util.prefs.AbstractPreferences.node(Unknown Source)
      at java.util.prefs.Preferences.userNodeForPackage(Unknown Source)
      at java_util_prefs_Preferences$userNodeForPackage.call(Unknown Source)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)

      at groovy.ui.Console.<clinit>(Console.groovy:77)
      ... 3 more

      or
      Caused by: java.lang.NullPointerException
      at java.util.prefs.AbstractPreferences.node(AbstractPreferences.java:817)
      at java.util.prefs.AbstractPreferences.node(AbstractPreferences.java:800)
      at java.util.prefs.Preferences.userNodeForPackage(Preferences.java:358)
      at java_util_prefs_Preferences$userNodeForPackage.call(Unknown Source)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
      at groovy.ui.Console.<clinit>(Console.groovy:66)
      ... 60 more

        Activity

        Hide
        Paul King added a comment -

        What JVM version are you using?

        Show
        Paul King added a comment - What JVM version are you using?
        Hide
        ML added a comment - - edited

        @Paul

        Operating System: Mac OS X Version: 10.6.8 Build: 10K549
        Java Version: Java 1.6.0_29-b11-402-10M3616 with Apple Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode

        This is used by all MATLAB installations on the Mac (it does not ship with its own for Mac) and tests were done for several releases on the same machine.

        MathWorks support tell me this is an issue with other software too on UNIX systems. I have tried only MATLAB and Windows+MacOS so far.

        NB Line 66 vs 77 difference in groovy.ui.Console in the OP. I think I have tracked this to the use of a different Groovy release - it's line 77 for 1.8.6 but 66 for 1.6.4 which was used for some checks. For 1.8.6 that is:

        static private prefs = Preferences.userNodeForPackage(Console)

        Show
        ML added a comment - - edited @Paul Operating System: Mac OS X Version: 10.6.8 Build: 10K549 Java Version: Java 1.6.0_29-b11-402-10M3616 with Apple Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode This is used by all MATLAB installations on the Mac (it does not ship with its own for Mac) and tests were done for several releases on the same machine. MathWorks support tell me this is an issue with other software too on UNIX systems. I have tried only MATLAB and Windows+MacOS so far. NB Line 66 vs 77 difference in groovy.ui.Console in the OP. I think I have tracked this to the use of a different Groovy release - it's line 77 for 1.8.6 but 66 for 1.6.4 which was used for some checks. For 1.8.6 that is: static private prefs = Preferences.userNodeForPackage(Console)
        Hide
        Pascal Schumacher added a comment -

        Does this error still occur with newer versions of groovy or can be close this issue?

        Show
        Pascal Schumacher added a comment - Does this error still occur with newer versions of groovy or can be close this issue?
        Hide
        Pascal Schumacher added a comment -

        I'm closing this for now. If this issue still occurs with newer versions of Groovy please reopen. Thanks!

        Show
        Pascal Schumacher added a comment - I'm closing this for now. If this issue still occurs with newer versions of Groovy please reopen. Thanks!

          People

          • Assignee:
            Unassigned
            Reporter:
            ML
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: