ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wunderlich, Patrick" <>
Subject [Junit] <formatter type="xml" /> throws NullPointerException
Date Fri, 21 Oct 2005 10:57:15 GMT
Hey Ant users and friends!
I've a strange problem using the junit ant task.
Everything works fine, but when i add <formatter type="xml" />
i get following Exception:
    [junit] Exception in thread "main" java.lang.NullPointerException
    [junit]     at
    [junit]     at
    [junit]     at
    [junit]     at
    [junit]     at
    [junit]     at

=== code snippet form XMLJUnitResultFormatter ===

private void formatOutput(String type, String output) {
    Element nested = doc.createElement(type);

=== code snippet form XMLJUnitResultFormatter ===
"doc" is null! There seems to be a problem with xml processing...
I've tested this with JDK 1.4.2_08 and 1.5.0_04 under WinXP.
Ant-Version: 1.6.5
Any hints?
Kind Regards,
Patrick Wunderlich (Germany)

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message