ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: NullPointerException during build file (1.7.1beta)
Date Tue, 24 Jun 2008 04:23:51 GMT
On Sun, 22 Jun 2008, tdakanalisw <> wrote:

> I have a problem when I try to run a xslt transformation with with
> saxon via an ant build (version 1.7.1beta).

You seem to be running a custom Ant task that in turn invokes the
<java> task nested into multiple levels of <antcall> tasks internally
which makes debugging this quite a bit more complex.

> I attach the logfile for examination (
> logfile.rtf ).

For the benefit of those who don't want to install OpenOffice just to
see the logfile ...

     [java] java.lang.NullPointerException
     [java] 	at
     [java] 	at

<snip reflection stuff/>

     [java] 	at

<snip reflection stuff/>

     [java] 	at

<snip reflection stuff/>

     [java] 	at

<snip reflection stuff/>

     [java] 	at converter.core.DITAConverter.DITATopdf(
     [java] 	at converter.core.WordConverter.ditatoPDF(
     [java] 	at org.atlantis_group.www.webservices.documenttransformationws.DocumentTransformationWSSkeleton.ditatoPDF(
     [java] 	at org.atlantis_group.www.webservices.documenttransformationws.DocumentTransformationWSMessageReceiverInOut.invokeBusinessLogic(
     [java] 	at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(
     [java] 	at org.apache.axis2.receivers.AbstractMessageReceiver.receive(
     [java] 	at org.apache.axis2.engine.AxisEngine.receive(
     [java] 	at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
     [java] 	at org.apache.axis2.transport.http.AxisServlet.doPost(
     [java] 	at javax.servlet.http.HttpServlet.service(
     [java] 	at javax.servlet.http.HttpServlet.service(
     [java] 	at org.mortbay.jetty.servlet.ServletHolder.handle(

<snip Jetty inside Geronimo stack trace />

     [java] 	at Source)
     [java] Caused by: java.lang.NullPointerException
     [java] 	at java.util.Hashtable.put(Unknown Source)
     [java] 	at$SysProperties.setSystem(
     [java] 	at
     [java] 	... 115 more

The line in question is the put invocation in 

                Properties p = new Properties();
                for (Enumeration e = sys.propertyNames(); e.hasMoreElements();) {
                    String name = (String) e.nextElement();
                    p.put(name, sys.getProperty(name));

I think this is the same problem we've already seen in a different
place <>.
I'll fix it in trunk, but it may be too late for 1.7.1.

Could you run your task outside of a JEE container?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message