ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26222] New: - NPE in Locator.getResourceSource() when running <junit> task from under Eclipse 3.0 M6
Date Sat, 17 Jan 2004 20:52:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26222>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26222

NPE in Locator.getResourceSource() when running <junit> task from under Eclipse 3.0
M6

           Summary: NPE in Locator.getResourceSource() when running <junit>
                    task from under Eclipse 3.0 M6
           Product: Ant
           Version: 1.6.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: alexey.verkhovsky@amdocs.com


1. Started with Eclipse's default Ant 1.5. Created a launch configuration for 
some build.xml. Executed junit task - no problem.

2. Replaced Ant 1.5 with 1.60 (official release). Created exactly same launch 
configuration. Executed junit task - NullPointerException.

3. Same Ant 1.6 executes same build.xml successfully from command line.

Debugged Ant invoked from under eclipse. NPE is thrown in this location:

Locator.getResourceSource(ClassLoader, String) line: 108
LoaderUtils.getResourceSource(ClassLoader, String) line: 147
JUnitTask.addClasspathEntry(String) line: 1113
JUnitTask.init() line: 620

Reason is that JUnitTask, LoaderUtils and Locator - all these classes are 
loaded on the bootstrap classloader (i.e., they all get a null back from 
this.getClass().getClassLoader()).

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message