Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 66780 invoked from network); 29 Oct 2006 02:45:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Oct 2006 02:45:18 -0000 Received: (qmail 13160 invoked by uid 500); 29 Oct 2006 02:45:29 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 12829 invoked by uid 500); 29 Oct 2006 02:45:28 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 12818 invoked by uid 99); 29 Oct 2006 02:45:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Oct 2006 19:45:28 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Oct 2006 19:45:14 -0700 Received: by brutus.apache.org (Postfix, from userid 33) id 0AB7F7142DC; Sat, 28 Oct 2006 19:44:08 -0700 (PDT) From: bugzilla@apache.org To: dev@ant.apache.org Subject: DO NOT REPLY [Bug 40839] New: - fails with NPE when compiling with eclipse ecj 3.1.x Message-ID: X-Bugzilla-Reason: AssignedTo Date: Sat, 28 Oct 2006 19:44:08 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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=40839 Summary: fails with NPE when compiling with eclipse ecj 3.1.x Product: Ant Version: 1.7.0Beta3 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Core tasks AssignedTo: dev@ant.apache.org ReportedBy: caster@gentoo.org Executing on any sources with ant 1.7 and ecj 3.1 (taken from eclipse 3.1.2) results in (-debug): Apache Ant version 1.7.0Beta3 compiled on October 29 2006 Buildfile: build.xml Adding reference: ant.PropertyHelper Detected Java version: 1.5 in: /opt/sun-jdk-1.5.0.08/jre Detected OS: Linux Adding reference: ant.ComponentHelper Setting ro project property: trigger.include -> true Setting ro project property: build.compiler -> org.eclipse.jdt.core.JDTCompilerAdapter Setting ro project property: ant.file -> /home/caster/gentoo/ant/tst/build.xml setting java.net.useSystemProxies to true Adding reference: ant.projectHelper Adding reference: ant.parsing.context Adding reference: ant.targets parsing buildfile /home/caster/gentoo/ant/tst/build.xml with URI = file:/home/caster/gentoo/ant/tst/build.xml Setting ro project property: ant.project.name -> test Adding reference: test Setting ro project property: ant.file.test -> /home/caster/gentoo/ant/tst/build.xml Project base dir set to: /home/caster/gentoo/ant/tst +Target: +Target: compile +Target: prepare +Target: clean Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor Adding reference: ant.executor Build sequence for target(s) `compile' is [compile] Complete build sequence is [compile, prepare, clean, ] compile: [antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found. fileset: Setup scanner in dir /home/caster/gentoo/ant/tst/src with patternSet{ includes: [Class1.java:if->trigger.include] excludes: [] } [javac] Class1.java added as Class1.class doesn't exist. [javac] Compiling 1 source file to /home/caster/gentoo/ant/tst/classes [javac] Using JDT compiler dropping /opt/sun-jdk-1.5.0.08/jre/jre/lib/rt.jar from path as it doesn't exist dropping /opt/sun-jdk-1.5.0.08/Classes/jce.jar from path as it doesn't exist dropping /opt/sun-jdk-1.5.0.08/Classes/jsse.jar from path as it doesn't exist dropping /opt/sun-jdk-1.5.0.08/jre/lib/core.jar from path as it doesn't exist dropping /opt/sun-jdk-1.5.0.08/jre/lib/graphics.jar from path as it doesn't exist dropping /opt/sun-jdk-1.5.0.08/jre/lib/security.jar from path as it doesn't exist dropping /opt/sun-jdk-1.5.0.08/jre/lib/server.jar from path as it doesn't exist dropping /opt/sun-jdk-1.5.0.08/jre/lib/xml.jar from path as it doesn't exist dropping /opt/sun-jdk-1.5.0.08/Classes/classes.jar from path as it doesn't exist dropping /opt/sun-jdk-1.5.0.08/Classes/ui.jar from path as it doesn't exist BUILD FAILED /home/caster/gentoo/ant/tst/build.xml:5: java.lang.NullPointerException at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115) at org.apache.tools.ant.Task.perform(Task.java:342) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1291) at org.apache.tools.ant.Project.executeTarget(Project.java:1260) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1143) at org.apache.tools.ant.Main.runBuild(Main.java:698) at org.apache.tools.ant.Main.startAnt(Main.java:199) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:298) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) Caused by: java.lang.NullPointerException at org.apache.tools.ant.types.AbstractFileSet.setupDirectoryScanner(AbstractFileSet.java:467) at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:429) at org.apache.tools.ant.types.FileSet.iterator(FileSet.java:69) at org.apache.tools.ant.types.resources.Union.getCollection(Union.java:105) at org.apache.tools.ant.types.resources.Union.getCollection(Union.java:88) at org.apache.tools.ant.types.resources.BaseResourceCollectionContainer.cacheCollection(BaseResourceCollectionContainer.java:244) at org.apache.tools.ant.types.resources.BaseResourceCollectionContainer.toString(BaseResourceCollectionContainer.java:229) at org.apache.tools.ant.types.Path.toString(Path.java:333) at org.apache.tools.ant.types.Commandline$Argument.setPath(Commandline.java:135) at org.eclipse.jdt.core.JDTCompilerAdapter.setupJavacCommand(JDTCompilerAdapter.java:144) at org.eclipse.jdt.core.JDTCompilerAdapter.execute(JDTCompilerAdapter.java:56) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:995) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:819) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:281) 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:585) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) ... 11 more --- Nested Exception --- java.lang.NullPointerException at org.apache.tools.ant.types.AbstractFileSet.setupDirectoryScanner(AbstractFileSet.java:467) at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:429) at org.apache.tools.ant.types.FileSet.iterator(FileSet.java:69) at org.apache.tools.ant.types.resources.Union.getCollection(Union.java:105) at org.apache.tools.ant.types.resources.Union.getCollection(Union.java:88) at org.apache.tools.ant.types.resources.BaseResourceCollectionContainer.cacheCollection(BaseResourceCollectionContainer.java:244) at org.apache.tools.ant.types.resources.BaseResourceCollectionContainer.toString(BaseResourceCollectionContainer.java:229) at org.apache.tools.ant.types.Path.toString(Path.java:333) at org.apache.tools.ant.types.Commandline$Argument.setPath(Commandline.java:135) at org.eclipse.jdt.core.JDTCompilerAdapter.setupJavacCommand(JDTCompilerAdapter.java:144) at org.eclipse.jdt.core.JDTCompilerAdapter.execute(JDTCompilerAdapter.java:56) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:995) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:819) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:281) 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:585) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) at org.apache.tools.ant.Task.perform(Task.java:342) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1291) at org.apache.tools.ant.Project.executeTarget(Project.java:1260) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1143) at org.apache.tools.ant.Main.runBuild(Main.java:698) at org.apache.tools.ant.Main.startAnt(Main.java:199) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:298) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) Total time: 0 seconds Happens with both beta3 and latest svn (468820). What's interesting, ecj 3.2 works fine. But since it's different branch and not just bugfix of 3.1, I believe it's still worth fixing. Also, ant 1.6.5 works with both ecj 3.1 and 3.2 which suggests the problem is in ant, not ecj? -- 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