Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 63088 invoked from network); 4 Oct 2010 22:40:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Oct 2010 22:40:54 -0000 Received: (qmail 97572 invoked by uid 500); 4 Oct 2010 22:40:54 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 97548 invoked by uid 500); 4 Oct 2010 22:40:53 -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 97540 invoked by uid 99); 4 Oct 2010 22:40:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Oct 2010 22:40:53 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Oct 2010 22:40:53 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o94MeXZ7004097 for ; Mon, 4 Oct 2010 22:40:33 GMT Message-ID: <14955745.539091286232033012.JavaMail.jira@thor> Date: Mon, 4 Oct 2010 18:40:33 -0400 (EDT) From: "Andreas Veithen (JIRA)" To: issues@cxf.apache.org Subject: [jira] Updated: (CXF-3034) StaxUtils.copy fails on pure DOM comment node In-Reply-To: <27185805.539071286231912569.JavaMail.jira@thor> 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-3034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andreas Veithen updated CXF-3034: --------------------------------- Attachment: StaxUtilsCopyTest.java > StaxUtils.copy fails on pure DOM comment node > --------------------------------------------- > > Key: CXF-3034 > URL: https://issues.apache.org/jira/browse/CXF-3034 > Project: CXF > Issue Type: Bug > Components: Core > Reporter: Andreas Veithen > Priority: Minor > Attachments: StaxUtilsCopyTest.java > > > When StaxUtils.copy is used with an XMLStreamReader created from a DOM tree containing a comment node, it will fail with a NullPointerException: > java.lang.NullPointerException > at com.ctc.wstx.sw.BufferingXmlWriter.verifyCommentContent(BufferingXmlWriter.java:1467) > at com.ctc.wstx.sw.BufferingXmlWriter.writeComment(BufferingXmlWriter.java:591) > at com.ctc.wstx.sw.BaseStreamWriter.writeComment(BaseStreamWriter.java:513) > at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:477) > at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:452) > Note that this only occurs with a pure DOM implementation, not with SAAJ. The reason is that in SAAJ, a comment node also implements org.w3c.dom.Text. > A test case can be found in attachment. The issue occurs with current trunk (r1004461). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.