Threads hangs on XMLOutputter(Format) 2004-04-08 - By Tim.Adler@(protected)
Back Hello everybody!
I'm using JDOM in a multithreaded analysis environment, to create an XML-structure from my analysis-result. I would like to use the Pretty Format for that, but I got a problem:
I use this very simple (not finished) code to convert my result:
private String convertToXml(AnalysisResultSet ars) throws IOException { Namespace ns Namespace.getNamespace(GLOBALS.XML_PREFIX,GLOBALS.XML_NAMESPACE); Element root = new Element("analysis-result",ns); DocType docType = new DocType("analysis-result","analysis-result.dtd"); Document doc = new Document(root,docType); Format f = Format.getPrettyFormat(); XMLOutputter out = new XMLOutputter(f); <-- ---- ---- ----- hangs here return out.outputString(doc); }
The Threads starts hanging in the marked line, whenver I use the contructor WITH Format. When I use one without, it works fine. Does anybody got an idea on this? I was thinking about some Thread-monitor that blocks the Fornat-access, but there is nothing synchronized in there. I'm clueless.
Thx for any help! __ ____ ____ ____ ____ ____ ____ ______ Tim Adler, Abt. SDA1 Adress Management Solutions AZ | Direct Carl-Bertelsmann Stra�e 161s D-33311 G�tersloh
Tel.: 05241/ 80 - 89574 tim.adler@(protected) __ ____ ____ ____ ____ ____ ____ ____ ____ ____ To control your jdom-interest membership: http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@(protected) .com
|
|