Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 16687 invoked from network); 3 Jul 2002 10:46:24 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 3 Jul 2002 10:46:24 -0000 Received: (qmail 29698 invoked by uid 97); 3 Jul 2002 10:46:22 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 29682 invoked by uid 97); 3 Jul 2002 10:46:21 -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 29665 invoked by uid 98); 3 Jul 2002 10:46:21 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: From: "Miles, Lee" To: "'ant-user@jakarta.apache.org'" Subject: nullpointer error when setting filesetmanifest property Date: Wed, 3 Jul 2002 11:46:07 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I have been using the task and have come across the following problem. When I set filesetmanifest="merge" or filesetmanifest="mergewithoutmain" I get a null pointer error and the build halts. I have been using the following build file:- problem.xml ----------- The manifest file itself originally had automatically generated content from retroguard (class obfuscator) which I thought may have been the problem, I therefore replaced this file with the following minimal content but the problem still occurs:- MANIFEST.MF ----------- Manifest-Version: 1.0 Built-By: conor Created-By: Apache Ant 1.5alpha When I run it I get the following nullpointer exception. I have tried this with beta2 and beta3 but it still occurs. Using -debug or -verbose does not seem to give any more clues. distribute: fileset: Setup scanner in dir C:\disc\MyStuff\J2ME_Wireless\obfuscate\NuttyNK\ob fuscate\exploded with patternSet{ includes: [] excludes: [] } [jar] Updating jar since the current jar has no manifest [jar] Building jar: C:\disc\MyStuff\J2ME_Wireless\obfuscate\NuttyNK\try\pr everified.jar fileset: Setup scanner in dir C:\disc\MyStuff\J2ME_Wireless\obfuscate\NuttyNK\ob fuscate\exploded with patternSet{ includes: [] excludes: [] } [jar] adding directory META-INF/ [jar] adding directory NuttyNK/ [jar] Found manifest to merge in file C:\disc\MyStuff\J2ME_Wireless\obfusc ate\NuttyNK\obfuscate\exploded\META-INF\MANIFEST.MF BUILD FAILED java.lang.NullPointerException at java.io.Reader.(Reader.java:64) at java.io.InputStreamReader.(InputStreamReader.java:89) at java.io.InputStreamReader.(InputStreamReader.java:61) at org.apache.tools.ant.taskdefs.Jar.filesetManifest(Jar.java:442) at org.apache.tools.ant.taskdefs.Jar.zipFile(Jar.java:406) at org.apache.tools.ant.taskdefs.Zip.addFiles(Zip.java:501) at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java:369) at org.apache.tools.ant.Task.perform(Task.java:317) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:334) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:368) at org.apache.tools.ant.Task.perform(Task.java:317) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:334) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.Project.executeTargets(Project.java:1250) at org.apache.tools.ant.Main.runBuild(Main.java:606) at org.apache.tools.ant.Main.start(Main.java:195) at org.apache.tools.ant.Main.main(Main.java:234) Total time: 8 seconds java.lang.NullPointerException at java.io.Reader.(Reader.java:64) at java.io.InputStreamReader.(InputStreamReader.java:89) at java.io.InputStreamReader.(InputStreamReader.java:61) at org.apache.tools.ant.taskdefs.Jar.filesetManifest(Jar.java:442) at org.apache.tools.ant.taskdefs.Jar.zipFile(Jar.java:406) at org.apache.tools.ant.taskdefs.Zip.addFiles(Zip.java:501) at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java:369) at org.apache.tools.ant.Task.perform(Task.java:317) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:334) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:368) at org.apache.tools.ant.Task.perform(Task.java:317) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:334) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.Project.executeTargets(Project.java:1250) at org.apache.tools.ant.Main.runBuild(Main.java:606) at org.apache.tools.ant.Main.start(Main.java:195) at org.apache.tools.ant.Main.main(Main.java:234) Hopefully someone can point me in the right direction on this. Thanks in advance Lee ********************************************************************** Information in this email is confidential and may be privileged. It is intended for the addressee only. If you have received it in error, please notify the sender immediately and delete it from your system. You should not otherwise copy it, retransmit it or use or disclose its contents to anyone. Thank you for your co-operation. ********************************************************************** -- To unsubscribe, e-mail: For additional commands, e-mail: