Return-Path: Delivered-To: apmail-incubator-chemistry-dev-archive@minotaur.apache.org Received: (qmail 29641 invoked from network); 18 Aug 2009 10:18:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Aug 2009 10:18:17 -0000 Received: (qmail 22996 invoked by uid 500); 18 Aug 2009 10:18:36 -0000 Delivered-To: apmail-incubator-chemistry-dev-archive@incubator.apache.org Received: (qmail 22964 invoked by uid 500); 18 Aug 2009 10:18:36 -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 22954 invoked by uid 99); 18 Aug 2009 10:18: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 10:18: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 10:18:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C9E22234C044 for ; Tue, 18 Aug 2009 03:18:14 -0700 (PDT) Message-ID: <262468296.1250590694822.JavaMail.jira@brutus> Date: Tue, 18 Aug 2009 03:18:14 -0700 (PDT) From: "Florent Guillaume (JIRA)" To: chemistry-dev@incubator.apache.org Subject: [jira] Resolved: (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 ] 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.