Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 2968 invoked from network); 17 Nov 2009 01:24:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Nov 2009 01:24:02 -0000 Received: (qmail 42865 invoked by uid 500); 17 Nov 2009 01:24:02 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 42842 invoked by uid 500); 17 Nov 2009 01:24:02 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 42827 invoked by uid 99); 17 Nov 2009 01:24:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 01:24:02 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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, 17 Nov 2009 01:24:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1A66E234C1F1 for ; Mon, 16 Nov 2009 17:23:40 -0800 (PST) Message-ID: <1569607564.1258421020106.JavaMail.jira@brutus> Date: Tue, 17 Nov 2009 01:23:40 +0000 (UTC) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Resolved: (CXF-2542) DelegatingInputStream.close() causes MessageImpl.getContextualProperty throw NullPointerException In-Reply-To: <1558960166.1258393779576.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-2542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp resolved CXF-2542. ------------------------------ Resolution: Fixed Fix Version/s: 2.2.6 2.1.9 Added some NPE guards. However, you can work around it with 2.2.4/2.2.5 by calling: message.put("attachment-directory", "/tmp"); message.put("attachment-memory-threshold", new Long(1024000l)); or similar. Those are the properties it's trying to find. > DelegatingInputStream.close() causes MessageImpl.getContextualProperty throw NullPointerException > ------------------------------------------------------------------------------------------------- > > Key: CXF-2542 > URL: https://issues.apache.org/jira/browse/CXF-2542 > Project: CXF > Issue Type: Bug > Components: Core > Affects Versions: 2.2.4 > Reporter: aaron pieper > Assignee: Daniel Kulp > Fix For: 2.1.9, 2.2.6 > > Attachments: CxfBug0.java, stack-trace.txt > > > Parsing AttachmentDeserializer's attachments causes an NPE in MessageImpl.getContextualProperty sometimes. This can be fixed by adding a null check in MessageImpl's getContextualProperty method. > This problem exists in 2.2.4, it did not exist in 2.2.2. It was caused by a change in DelegatingInputStream's close behavior. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.