XML Writer Bug When no data sent to that node

Hi,

I think we found a bug in the XML Writer.

If the graph has two routes and one route has an XML Writer at the end of it, if that route does not recieve any data, the graph fails with an error message.

ERROR [XML_WRITER3] - Error during creating XML file java.lang.NullPointerException
at org.jetel.component.XmlWriter.execute(XmlWriter.java:582)
at org.jetel.graph.Node.run(Node.java:379)
at java.lang.Thread.run(Thread.java:595)
ERROR [WatchDog] - Graph execution finished with error ERROR [WatchDog] - Node XML_WRITER3 finished with status: ERROR caused by: null DEBUG [WatchDog] - Node XML_WRITER3 error details:
java.lang.NullPointerException
at org.jetel.component.XmlWriter.execute(XmlWriter.java:582)
at org.jetel.graph.Node.run(Node.java:379)
at java.lang.Thread.run(Thread.java:595)
ERROR [WatchDog] - !!! Phase finished with error - stopping graph run !!!

This should end gracefully and not fail.

Is this a known bug or is this new?

Hello,
thanks for report. I’ve opened the issue for it ( http://bug.cloveretl.org/view.php?id=1134)

Hi,

Do we have a fix date as this is quite urgent.

Thanks

This problem should be fixed in CloverETL version 2.6 - released on Mon, Dec 5th 2008.