Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1596

NPE in GroovyClassLoader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-RC-1
    • 1.0
    • None
    • None
    • groovy svn head
    • Patch

    Description

      I was trying out my native launcher's ability to use other jvm than the one pointed to by java home. The feature seems to have stopped working - groovy throws an NPE from GroovyClassLoader when using that option.
      Attached is a patch that removes the NPE so the real exception can be seen.

      I am not sure whether this is a bug in the native launcher or in the groovy java code. It is fairly easy to reproduce - copy the groovy.exe (or platform equivalent executable) to the bin dir or groovy executable and say something like this:

      bin\groovy.exe -jh c:\programs\Java\jdk1.5.0_09 -v

      The error produced (after fixing the NPE) is:

      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, c:\programs\Java\jdk1.5.0_09: c:\programs\Java\jdk1.5.0_09 (Access is denied)

      1 error

      Any ideas? How can I get the whole stack trace? -d does not seem to cut it.

      Attachments

        1. gcldiff.txt
          0.7 kB

        Activity

          People

            blackdrag Jochen Theodorou
            antti.karanta@napa.fi Antti Karanta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: