Return-Path: Delivered-To: apmail-incubator-chemistry-dev-archive@minotaur.apache.org Received: (qmail 83588 invoked from network); 18 Aug 2009 08:55:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Aug 2009 08:55:18 -0000 Received: (qmail 86672 invoked by uid 500); 18 Aug 2009 08:55:37 -0000 Delivered-To: apmail-incubator-chemistry-dev-archive@incubator.apache.org Received: (qmail 86631 invoked by uid 500); 18 Aug 2009 08:55:37 -0000 Mailing-List: contact chemistry-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chemistry-dev@incubator.apache.org Delivered-To: mailing list chemistry-dev@incubator.apache.org Received: (qmail 86621 invoked by uid 99); 18 Aug 2009 08:55:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 08:55:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 08:55:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1B422234C044 for ; Tue, 18 Aug 2009 01:55:15 -0700 (PDT) Message-ID: <889192793.1250585715097.JavaMail.jira@brutus> Date: Tue, 18 Aug 2009 01:55:15 -0700 (PDT) From: "Daniel Lichtenberger (JIRA)" To: chemistry-dev@incubator.apache.org Subject: [jira] Commented: (CMIS-47) AtomPub: Empty responses on Glassfish 2.1 In-Reply-To: <2087892027.1249912695246.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on 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.