You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by tdakanalisw <td...@gmail.com> on 2008/05/28 19:19:29 UTC

NullPointerException in PropertyHelper.setProperty

Hi, I don't know if I am in the right forum. I have the following problem. I
have create a Web Service which transforms a file from html to xml. When I
call that WS I get the following error:

java.lang.NullPointerException at java.util.Hashtable.put(Unknown Source)
at org.apache.tools.ant.PropertyHelper.setProperty(PropertyHelper.java:330)
at org.apache.tools.ant.Project.setPropertyInternal(Project.java:568)
at org.apache.tools.ant.Project.setSystemProperties(Project.java:913)
at org.apache.tools.ant.Project.initProperties(Project.java:307)
at org.apache.tools.ant.Project.init(Project.java:295)

That error occurs when the the following piece of code is executed:

ProjectHelper helper = ProjectHelper.getProjectHelper();
p.addReference("ant.projectHelper", helper);
p.fireBuildStarted();
--->here is the error
p.init();
helper.parse(p, buildFile);
p.executeTarget(p.getDefaultTarget());
p.fireBuildFinished(null);

Could you help me to solve that problem?? Thanks in advance!
-- 
View this message in context: http://www.nabble.com/NullPointerException-in-PropertyHelper.setProperty-tp17517725p17517725.html
Sent from the Ant - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: NullPointerException in PropertyHelper.setProperty

Posted by tdakanalisw <td...@gmail.com>.
Hi,

the problem has been solved with the 1.7.1 beta version. Thanks a lot for
your valuable help!!!



Stefan Bodewig wrote:
> 
> On Wed, 28 May 2008, tdakanalisw <td...@gmail.com> wrote:
> 
>> Hi, I don't know if I am in the right forum. I have the following
>> problem. I have create a Web Service which transforms a file from
>> html to xml. When I call that WS I get the following error:
>> 
>> java.lang.NullPointerException at java.util.Hashtable.put(Unknown
>> Source) at
>> org.apache.tools.ant.PropertyHelper.setProperty(PropertyHelper.java:330)
>> at
>> org.apache.tools.ant.Project.setPropertyInternal(Project.java:568)
>> at
>> org.apache.tools.ant.Project.setSystemProperties(Project.java:913)
>> at org.apache.tools.ant.Project.initProperties(Project.java:307) at
>> org.apache.tools.ant.Project.init(Project.java:295)
> 
> Might be this one
> <https://issues.apache.org/bugzilla/show_bug.cgi?id=41594>
> which is supposed to be fixed in 1.7.1beta (see
> <http://svn.apache.org/viewvc/ant/core/tags/ANT_171_B1/src/main/org/apache/tools/ant/PropertyHelper.java?r1=495340&r2=506547>)
> 
> Could you please try the beta and confirm that the problem disappears
> (or tell us that it doesn't).
> 
> Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/NullPointerException-in-PropertyHelper.setProperty-tp17517725p17544152.html
Sent from the Ant - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: NullPointerException in PropertyHelper.setProperty

Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 28 May 2008, tdakanalisw <td...@gmail.com> wrote:

> Hi, I don't know if I am in the right forum. I have the following
> problem. I have create a Web Service which transforms a file from
> html to xml. When I call that WS I get the following error:
> 
> java.lang.NullPointerException at java.util.Hashtable.put(Unknown
> Source) at
> org.apache.tools.ant.PropertyHelper.setProperty(PropertyHelper.java:330)
> at
> org.apache.tools.ant.Project.setPropertyInternal(Project.java:568)
> at
> org.apache.tools.ant.Project.setSystemProperties(Project.java:913)
> at org.apache.tools.ant.Project.initProperties(Project.java:307) at
> org.apache.tools.ant.Project.init(Project.java:295)

Might be this one <https://issues.apache.org/bugzilla/show_bug.cgi?id=41594>
which is supposed to be fixed in 1.7.1beta (see
<http://svn.apache.org/viewvc/ant/core/tags/ANT_171_B1/src/main/org/apache/tools/ant/PropertyHelper.java?r1=495340&r2=506547>)

Could you please try the beta and confirm that the problem disappears
(or tell us that it doesn't).

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org