Return-Path: Delivered-To: apmail-incubator-chemistry-dev-archive@minotaur.apache.org Received: (qmail 25133 invoked from network); 10 Aug 2009 14:00:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Aug 2009 14:00:32 -0000 Received: (qmail 18842 invoked by uid 500); 10 Aug 2009 14:00:39 -0000 Delivered-To: apmail-incubator-chemistry-dev-archive@incubator.apache.org Received: (qmail 18777 invoked by uid 500); 10 Aug 2009 14:00:39 -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 18767 invoked by uid 99); 10 Aug 2009 14:00:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 14:00:39 +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; Mon, 10 Aug 2009 14:00:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C8FAB234C044 for ; Mon, 10 Aug 2009 07:00:14 -0700 (PDT) Message-ID: <1761426764.1249912814813.JavaMail.jira@brutus> Date: Mon, 10 Aug 2009 07:00:14 -0700 (PDT) From: "Daniel Lichtenberger (JIRA)" To: chemistry-dev@incubator.apache.org Subject: [jira] Updated: (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: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.