You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Daniel Lichtenberger (JIRA)" <ji...@apache.org> on 2009/08/10 15:58:15 UTC

[jira] Created: (CMIS-47) AtomPub: Empty responses on Glassfish 2.1

AtomPub: Empty responses on Glassfish 2.1
-----------------------------------------

                 Key: CMIS-47
                 URL: https://issues.apache.org/jira/browse/CMIS-47
             Project: Chemistry
          Issue Type: Bug
          Components: atompub, server
         Environment: Chemistry 0.61 (SVN), Glassfish 2.1, Linux, Java 1.6.0_14
            Reporter: Daniel Lichtenberger


I'm getting empty responses with a Chemistry-based AtomPub server on Glassfish 2.1. I'm extending AbderaServlet and use Chemistry's CMISProvider to encapsulate our own repository implementation.

The same EAR works with JBoss 4.2, and the AtomPub servlet also works with Jetty. A bit of debugging has shown that Abdera and Chemistry process the requests correctly, but the response is never actually written to the container's output stream. Explicitly flushing Chemistry's stream writer in CMISServiceResponse solved the problem  for me (see attached patch against 0.61). Flushing the stream at a later point does not work, as it seems that the StreamWriter itself is not closed or flushed properly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CMIS-47) AtomPub: Empty responses on Glassfish 2.1

Posted by "Florent Guillaume (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744207#action_12744207 ] 

Florent Guillaume commented on CMIS-47:
---------------------------------------

Thanks, I'll commit this tomorrow in the trunk.
Would it be helpful for you to have it committed in the 0.61 branch as well?

> AtomPub: Empty responses on Glassfish 2.1
> -----------------------------------------
>
>                 Key: CMIS-47
>                 URL: https://issues.apache.org/jira/browse/CMIS-47
>             Project: Chemistry
>          Issue Type: Bug
>          Components: atompub, server
>         Environment: Chemistry 0.61 (SVN), Glassfish 2.1, Linux, Java 1.6.0_14
>            Reporter: Daniel Lichtenberger
>         Attachments: CMISServiceResponse.patch
>
>
> I'm getting empty responses with a Chemistry-based AtomPub server on Glassfish 2.1. I'm extending AbderaServlet and use Chemistry's CMISProvider to encapsulate our own repository implementation.
> The same EAR works with JBoss 4.2, and the AtomPub servlet also works with Jetty. A bit of debugging has shown that Abdera and Chemistry process the requests correctly, but the response is never actually written to the container's output stream. Explicitly flushing Chemistry's stream writer in CMISServiceResponse solved the problem  for me (see attached patch against 0.61). Flushing the stream at a later point does not work, as it seems that the StreamWriter itself is not closed or flushed properly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CMIS-47) AtomPub: Empty responses on Glassfish 2.1

Posted by "Daniel Lichtenberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CMIS-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Lichtenberger updated CMIS-47:
-------------------------------------

    Attachment: CMISServiceResponse.patch

Patch against branches/0.61

> AtomPub: Empty responses on Glassfish 2.1
> -----------------------------------------
>
>                 Key: CMIS-47
>                 URL: https://issues.apache.org/jira/browse/CMIS-47
>             Project: Chemistry
>          Issue Type: Bug
>          Components: atompub, server
>         Environment: Chemistry 0.61 (SVN), Glassfish 2.1, Linux, Java 1.6.0_14
>            Reporter: Daniel Lichtenberger
>         Attachments: CMISServiceResponse.patch
>
>
> I'm getting empty responses with a Chemistry-based AtomPub server on Glassfish 2.1. I'm extending AbderaServlet and use Chemistry's CMISProvider to encapsulate our own repository implementation.
> The same EAR works with JBoss 4.2, and the AtomPub servlet also works with Jetty. A bit of debugging has shown that Abdera and Chemistry process the requests correctly, but the response is never actually written to the container's output stream. Explicitly flushing Chemistry's stream writer in CMISServiceResponse solved the problem  for me (see attached patch against 0.61). Flushing the stream at a later point does not work, as it seems that the StreamWriter itself is not closed or flushed properly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CMIS-47) AtomPub: Empty responses on Glassfish 2.1

Posted by "Florent Guillaume (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CMIS-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Florent Guillaume reassigned CMIS-47:
-------------------------------------

    Assignee: Florent Guillaume

> AtomPub: Empty responses on Glassfish 2.1
> -----------------------------------------
>
>                 Key: CMIS-47
>                 URL: https://issues.apache.org/jira/browse/CMIS-47
>             Project: Chemistry
>          Issue Type: Bug
>          Components: atompub, server
>         Environment: Chemistry 0.61 (SVN), Glassfish 2.1, Linux, Java 1.6.0_14
>            Reporter: Daniel Lichtenberger
>            Assignee: Florent Guillaume
>         Attachments: CMISServiceResponse.patch
>
>
> I'm getting empty responses with a Chemistry-based AtomPub server on Glassfish 2.1. I'm extending AbderaServlet and use Chemistry's CMISProvider to encapsulate our own repository implementation.
> The same EAR works with JBoss 4.2, and the AtomPub servlet also works with Jetty. A bit of debugging has shown that Abdera and Chemistry process the requests correctly, but the response is never actually written to the container's output stream. Explicitly flushing Chemistry's stream writer in CMISServiceResponse solved the problem  for me (see attached patch against 0.61). Flushing the stream at a later point does not work, as it seems that the StreamWriter itself is not closed or flushed properly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CMIS-47) AtomPub: Empty responses on Glassfish 2.1

Posted by "Florent Guillaume (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CMIS-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Florent Guillaume resolved CMIS-47.
-----------------------------------

    Resolution: Fixed

Committed in 0.61 branch and trunk.

> AtomPub: Empty responses on Glassfish 2.1
> -----------------------------------------
>
>                 Key: CMIS-47
>                 URL: https://issues.apache.org/jira/browse/CMIS-47
>             Project: Chemistry
>          Issue Type: Bug
>          Components: atompub, server
>         Environment: Chemistry 0.61 (SVN), Glassfish 2.1, Linux, Java 1.6.0_14
>            Reporter: Daniel Lichtenberger
>            Assignee: Florent Guillaume
>         Attachments: CMISServiceResponse.patch
>
>
> I'm getting empty responses with a Chemistry-based AtomPub server on Glassfish 2.1. I'm extending AbderaServlet and use Chemistry's CMISProvider to encapsulate our own repository implementation.
> The same EAR works with JBoss 4.2, and the AtomPub servlet also works with Jetty. A bit of debugging has shown that Abdera and Chemistry process the requests correctly, but the response is never actually written to the container's output stream. Explicitly flushing Chemistry's stream writer in CMISServiceResponse solved the problem  for me (see attached patch against 0.61). Flushing the stream at a later point does not work, as it seems that the StreamWriter itself is not closed or flushed properly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CMIS-47) AtomPub: Empty responses on Glassfish 2.1

Posted by "Daniel Lichtenberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744422#action_12744422 ] 

Daniel Lichtenberger commented on CMIS-47:
------------------------------------------

Thanks! It would be helpful to have it in 0.61 as well for me, since this is the version I'm currently using.

> AtomPub: Empty responses on Glassfish 2.1
> -----------------------------------------
>
>                 Key: CMIS-47
>                 URL: https://issues.apache.org/jira/browse/CMIS-47
>             Project: Chemistry
>          Issue Type: Bug
>          Components: atompub, server
>         Environment: Chemistry 0.61 (SVN), Glassfish 2.1, Linux, Java 1.6.0_14
>            Reporter: Daniel Lichtenberger
>            Assignee: Florent Guillaume
>         Attachments: CMISServiceResponse.patch
>
>
> I'm getting empty responses with a Chemistry-based AtomPub server on Glassfish 2.1. I'm extending AbderaServlet and use Chemistry's CMISProvider to encapsulate our own repository implementation.
> The same EAR works with JBoss 4.2, and the AtomPub servlet also works with Jetty. A bit of debugging has shown that Abdera and Chemistry process the requests correctly, but the response is never actually written to the container's output stream. Explicitly flushing Chemistry's stream writer in CMISServiceResponse solved the problem  for me (see attached patch against 0.61). Flushing the stream at a later point does not work, as it seems that the StreamWriter itself is not closed or flushed properly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.