Hi again,
and thanks for your reply Jan,
the problem occurs when I call the init() function wherever it is placed. I
have try many different positions for that function but it fails. The last
test I made was the following:
Project p = new Project();
p.init();
...BUT NOTHING AGAIN :-( . Ιs it p
> 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.
Your task doesnt have a reference to your project, therefore
task.getProject() returns null
Try setting the project reference
task.setProject(project);
task.execute();
Maybe you want to have a look at Leafcutter
https://leafcutter.dev.java.net/
Jan
> -Ursprüngliche Nachricht
/export/apps/tpbuild/trdproc/swhandler/dev/modules/swhandler.comp.SWDealSink/build.xml
>
> the ant outputs the same
>
> load-project-metadata:
> fileset: Setup scanner in dir
> /export/apps/tpbuild/trdproc/_infrastructure/lib
> with patternSet{
> includes: [libraries
/trdproc/swhandler/dev/.tmp/project-metadata.xml is
oldest target file
But if I remove the target file then the exception disappears.
This problem happens on Solaris but doesn't happen on windows.
<[EMAIL PROTECTED]>
07.03.2008 10:38
Please respond to
"Ant Users List"
Can you post the snippet around the ?
Jan
> -Ursprüngliche Nachricht-
> Von: Alexander Pavlenko [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 7. März 2008 08:25
> An: Ant Users List
> Betreff: NullPointerException
>
> Please advise, why can this happen?
>
> java.lang.NullPointerExcep