legsem / legstar

Automatically exported from code.google.com/p/legstar
0 stars 2 forks source link

XmlToHostTransformer drains input stream in debug mode #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a binding for a COBOL copybook
2. Set DEBUG tracing on
3. Run the generated XmlToHostTransformer passing an Input stream

What is the expected output? What do you see instead?

Instead of getting a Java object, the JAXB parsing fails with a "stream 
closed" exception. This is because in debug mode the stream is read for 
pretty printing of the incoming XML and then closed.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by fady.mou...@gmail.com on 23 Apr 2009 at 4:47

GoogleCodeExporter commented 9 years ago
Removed pretty printing XML in debug mode.

Original comment by fady.mou...@gmail.com on 28 May 2009 at 10:46

GoogleCodeExporter commented 9 years ago

Original comment by fady.mou...@gmail.com on 30 May 2009 at 11:59