You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "David Calavera (JIRA)" <ji...@apache.org> on 2008/09/18 17:18:44 UTC

[jira] Closed: (ABDERA-191) Intermittent zero-length response when retrieving Service Document

     [ https://issues.apache.org/jira/browse/ABDERA-191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Calavera closed ABDERA-191.
---------------------------------

    Resolution: Fixed
      Assignee: David Calavera

> 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
>            Assignee: David Calavera
>         Attachments: zero-length-service-document.patch
>
>
> See this thread.
> http://mail-archives.apache.org/mod_mbox/incubator-abdera-user/200807.mbox/%3c23fce8e60807310923h7ab4f424n416471b6dd860e0d@mail.gmail.com%3e
> 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.