ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <...@urbanet.ch>
Subject RE: Problem with the latest source?
Date Thu, 01 Feb 2001 17:09:03 GMT

Hello,

I had exactly the same problem with log4j builds. Actually, Sam had. Things worked fine on
my side (I use Ant 1.2 and a few months old version of xerces)  but failed with a null pointer
exception when built with Sam's automated nightly build system. See http://oss.software.ibm.com/developerworks/opensource/jakarta/proto/jakarta-log4j.html

Recently, I removed the external references in the log4j build.xml file and the problem vanished.
I think that the two problems are related as Sam's builds use the latest code from all projects.


Sorry for this crappy bug report. Ceki 

At 10:12 01.02.2001 -0500, you wrote:
>I removed the reference to another xml file that defines extra targets, and it worked.
 Are we not going to support including another xml file?
> 
>What we have in our organization is one build.xml file that I am responsible for guaranteeing
will always build and release the current code.  That build file includes a targets.xml file
that each developer can modify to do whatever they want (FTP to separate place, promote their
code, etc).  Is this no longer going to be possible?  
>-----Original Message----- 
>From: Marc Luce [mailto:marc.luce@blackbird.net] 
>Sent: Thursday, February 01, 2001 9:15 AM 
>To: 'ant-dev@jakarta.apache.org' 
>Subject: Problem with the latest source?
>
>I just grabbed the latest source and compiled it.  With this version I cannot build my
code, I get a NPE.  
>I am attaching the output of my ant command below.  I modified ant.bat to let you know
the LOCALCLASSPATH.  The version of xerces is 1.3.0.  Is this common or do I have a problem
in my build.xml? 
>"D:\jdk1.3\lib\tools.jar";"C:\WINNT\Profiles\marc\ant\lib\xerces.jar";"C:\WINNT\Profiles\marc\ant\lib\xalan.jar";"C:\WINNT\Profiles\marc\ant\lib\NetComponents.jar";"C:\WINNT\Profiles\marc\ant\lib\junit.jar";"C:\WINNT\Profiles\marc\ant\lib\jmf.jar";"C:\WINNT\Profiles\marc\ant\lib\jaxp.jar";"C:\WINNT\Profiles\marc\ant\lib\jakarta-regexp-1.2.jar";"C:\WINNT\Profiles\marc\ant\lib\jakarta-oro-2.0.2-dev-1.jar";"D:\Source\jakarta-ant\lib\parser.jar";"D:\Source\jakarta-ant\lib\optional.jar";"D:\Source\jakarta-ant\lib\NetComponents.jar";"D:\Source\jakarta-ant\lib\jaxp.jar";"D:\Source\jakarta-ant\lib\ant.jar";"."
Buildfile: build.xml 
>
>BUILD FAILED 
>
>null  java.lang.NullPointerException          at org.apache.xerces.utils.StringPool.addSymbol(StringPool.java:348)
         at org.apache.xerces.readers.DefaultEntityHandler.addExternalEntityDecl(DefaultEntityHandler.java:226)
         at org.apache.xerces.framework.XMLDTDScanner.scanEntityDecl(XMLDTDScanner.java:2799)
         at org.apache.xerces.framework.XMLDTDScanner.scanDecls(XMLDTDScanner.java:1449) 
        at org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java:1123)
         at org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentScanner.java:2197)
         at org.apache.xerces.framework.XMLDocumentScanner.access$000(XMLDocumentScanner.java:86)
         at org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XMLDocumentScanner.java:883)
         at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952)          at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)          at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:108)
         at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:85)   
      at org.apache.tools.ant.Main.runBuild(Main.java:403)          at org.apache.tools.ant.Main.main(Main.java:149)

>
><<build.xml>> <<targets.xml>>  

----
Ceki Gülcü - Independent IT Consultant                                        

av. de Rumine 5            Tel: ++41 21 351 23 15   
CH-1005 Lausanne        e-mail: cgu@urbanet.ch  or
Switzerland                     ceki_gulcu@yahoo.com


Mime
View raw message