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 32437] New: - NullPointerException when setting core class loader
Date Mon, 29 Nov 2004 22:26:21 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32437>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32437

           Summary: NullPointerException when setting core class loader
           Product: Ant
           Version: 1.6.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: robert.dockins@tufts.edu


I'm using the Ant API to embed Ant into an application I am writing.  When
setting the core class loader for an ant project which has been set
parentFirst(false), a null pointer exception occurs in DefBase.createLoader.  A
short test case is attached.  The exception stack trace follows.  To run the
test case copy ant.jar, ant-launcher.jar and ant-contrib-1.0b.jar into the
directory and run test.sh.  Note this exception is not unique to the For task;
I've tried a number.

java.lang.NullPointerException
        at org.apache.tools.ant.taskdefs.DefBase.createLoader(DefBase.java:132)
        at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:169)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at testprob.testCase(testprob.java:60)
        at testprob.main(testprob.java:33)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message