Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 46407 invoked from network); 8 Feb 2002 19:49:53 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 8 Feb 2002 19:49:53 -0000 Received: (qmail 9022 invoked by uid 97); 8 Feb 2002 19:49:48 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 8999 invoked by uid 97); 8 Feb 2002 19:49:47 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 8981 invoked from network); 8 Feb 2002 19:49:47 -0000 Message-ID: <3C642BE5.11391B54@oracle.com> Date: Fri, 08 Feb 2002 11:49:57 -0800 From: Zhendi Su Organization: Oracle Corporation X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: ant-user@jakarta.apache.org Subject: javac NullPointerException--please help Content-Type: multipart/mixed; boundary="------------F6390B6B125EA6E0A3894A4E" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --------------F6390B6B125EA6E0A3894A4E Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I am trying to compile a package under a common root. Since I don't want the compile to recompile all the files over and over, I only specified the root directory in my srcdir attribute and then used include/exclude filters, as suggested in the user manual. My javac task is as follows: When I ran ant, however, it gave me an error: [javac] java.lang.NullPointerException [javac] at sun.tools.java.Package.getSourceFile(Package.java, Compiled Code) [javac] at sun.tools.javac.BatchEnvironment.loadDefinition(BatchEnvironment.java, Compiled Code) [javac] at sun.tools.java.Environment.loadDefinition(Environment.java, Compiled Code) [javac] at sun.tools.java.Environment.loadDefinition(Environment.java, Compiled Code) [javac] at sun.tools.java.Environment.loadDefinition(Environment.java, Compiled Code) [javac] at sun.tools.java.ClassDeclaration.getClassDefinitionNoCheck(ClassDeclaration.java, Compiled Code) [javac] at sun.tools.java.Imports.resolve(Imports.java, Compiled Code) [javac] at sun.tools.javac.SourceClass.basicCheck(SourceClass.java, Compiled Code) [javac] at sun.tools.java.ClassDeclaration.getClassDefinition(ClassDeclaration.java, Compiled Code) [javac] at sun.tools.javac.Main.compile(Main.java, Compiled Code) [javac] at java.lang.reflect.Method.invoke(Native Method) [javac] at org.apache.tools.ant.taskdefs.compilers.Javac12.execute(Javac12.java, Compiled Code) [javac] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java, Compiled Code) [javac] at org.apache.tools.ant.Task.perform(Task.java, Compiled Code) [javac] at org.apache.tools.ant.Target.execute(Target.java, Compiled Code) [javac] at org.apache.tools.ant.Target.performTasks(Target.java, Compiled Code) [javac] at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled Code) [javac] at org.apache.tools.ant.Project.executeTargets(Project.java, Compiled Code) [javac] at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code) [javac] at org.apache.tools.ant.Main.start(Main.java, Compiled Code) [javac] at org.apache.tools.ant.Main.main(Main.java, Compiled Code) [javac] error: An exception has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi). [javac] 1 error [javac] Compile failed, messages should have been provided. The interesting thing is, if I modified my javac task and moved the "oracle/apps/okc" part to the srcdir, the compiler recompiles all the files each time, but never gave me an error like the above. Can someone please give me some pointers? I am pretty clueless to this problem... Zhendi Su --------------F6390B6B125EA6E0A3894A4E Content-Type: text/plain; charset=us-ascii -- To unsubscribe, e-mail: For additional commands, e-mail: --------------F6390B6B125EA6E0A3894A4E--