Intermittent zero-length response when retrieving Service Document ------------------------------------------------------------------
Key: ABDERA-191 URL: https://issues.apache.org/jira/browse/ABDERA-191 Project: Abdera Issue Type: Bug Affects Versions: 0.5.0 Environment: Ubuntu 7.10 / Fedora Core 6 java version "1.5.0_13" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05) Java HotSpot(TM) Server VM (build 1.5.0_13-b05, mixed mode) and java version "1.6.0_03" Java(TM) SE Runtime Environment (build 1.6.0_03-b05) Java HotSpot(TM) Server VM (build 1.6.0_03-b05, mixed mode) Tomcat 5.5.26 and Tomcat 5.0.30 Reporter: James Abley See this thread. http://mail-archives.apache.org/mod_mbox/incubator-abdera-user/200807.mbox/[EMAIL PROTECTED] I'm now seeing the problem in other environments. I'm still not sure why it's happening and why it's not reproducible. It could be a Stax implementation issue rather than Abdera issue. Attaching a speculative patch. Without knowing why it's happening, it's hard to say whether this is a definitive fix. Index: /home/jabley/work/eclipse/main/abdera/parser/src/main/java/org/apache/abdera/parser/stax/StaxStreamWriter.java =================================================================== --- /home/jabley/work/eclipse/main/abdera/parser/src/main/java/org/apache/abdera/parser/stax/StaxStreamWriter.java (revision 681442) +++ /home/jabley/work/eclipse/main/abdera/parser/src/main/java/org/apache/abdera/parser/stax/StaxStreamWriter.java (working copy) @@ -113,6 +113,7 @@ public StreamWriter endDocument() { try { writer.writeEndDocument(); + writer.flush(); if (autoclose) writer.close(); } catch(XMLStreamException e) { throw new RuntimeException(e); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.