Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0m1
    • Fix Version/s: 2.0.0RC1
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      From the mailing list:

      I have eclipse 3.5.1 with the groovy plugin snapshot from 10/28.
      
      I have a small groovy script that I'm trying to run with the eclipse debugger (by clicking Debug As -> Groovy Script on the context menu in the script window).
      
      However, when I do this, the debugger halts in the guts of the class loader, and when I resume it produces this exception:
      
      Exception in thread "main" java.lang.NoClassDefFoundError: 3/5/1/plugins/org/codehaus/groovy_1/7/0/xx-20091028-2000-e35/conf/groovy-starter/conf
      Caused by: java.lang.ClassNotFoundException: 3.5.1.plugins.org.codehaus.groovy_1.7.0.xx-20091028-2000-e35.conf.groovy-starter.conf
             at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
             at java.security.AccessController.doPrivileged(Native Method)
             at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
             at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
             at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
             at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
             at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
      

      I believe this has something to do with how arguments are computed for the script launcher.

        Activity

        Hide
        Eric Tiffany added a comment -

        I reported this issue, and I failed to mention that I am running on MacOS. It turns out that the default VM args specified in the debug configuration pane were not quoted, and I have a space in my eclipse path. So I simply put double quotes around the args and I got past this exception. Here is what I have now:

        -Dgroovy.starter.conf="/Applications/eclipse 3.5.1/plugins/org.codehaus.groovy_1.7.0.xx-20091028-2000-e35/conf/groovy-starter.conf" -Dgroovy.home="/Applications/eclipse 3.5.1/plugins/org.codehaus.groovy_1.7.0.xx-20091028-2000-e35"

        Show
        Eric Tiffany added a comment - I reported this issue, and I failed to mention that I am running on MacOS. It turns out that the default VM args specified in the debug configuration pane were not quoted, and I have a space in my eclipse path. So I simply put double quotes around the args and I got past this exception. Here is what I have now: -Dgroovy.starter.conf="/Applications/eclipse 3.5.1/plugins/org.codehaus.groovy_1.7.0.xx-20091028-2000-e35/conf/groovy-starter.conf" -Dgroovy.home="/Applications/eclipse 3.5.1/plugins/org.codehaus.groovy_1.7.0.xx-20091028-2000-e35"
        Hide
        Andrew Eisenberg added a comment -

        I had a feeling it was something with unquoted spaces. Thanks for posting the fix, saves me from tracking down exactly where this might have occurred.

        Show
        Andrew Eisenberg added a comment - I had a feeling it was something with unquoted spaces. Thanks for posting the fix, saves me from tracking down exactly where this might have occurred.
        Hide
        Andrew Eisenberg added a comment -

        Fix for this has been committed and will be available in the next dev build. After the snapshot is available, please verify that this is working for you now.

        Show
        Andrew Eisenberg added a comment - Fix for this has been committed and will be available in the next dev build. After the snapshot is available, please verify that this is working for you now.
        Hide
        Andrew Eisenberg added a comment -

        Will make sure that launching is working properly for RC1.

        Show
        Andrew Eisenberg added a comment - Will make sure that launching is working properly for RC1.
        Andrew Eisenberg made changes -
        Field Original Value New Value
        Fix Version/s 2.0.0RC1 [ 15956 ]
        Assignee James E. Ervin [ jervin ] Andrew Eisenberg [ werdna ]
        Remaining Estimate 0 minutes [ 0 ]
        Original Estimate 0 minutes [ 0 ]
        Hide
        Andrew Eisenberg added a comment -

        Believed fixed now. Please re-open or create new bug if you experience any more problems.

        Show
        Andrew Eisenberg added a comment - Believed fixed now. Please re-open or create new bug if you experience any more problems.
        Andrew Eisenberg made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Andrew Eisenberg made changes -
        Component/s Run/Debug [ 13153 ]

          People

          • Assignee:
            Andrew Eisenberg
            Reporter:
            Andrew Eisenberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: