Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 96099 invoked from network); 31 Aug 2009 15:18:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Aug 2009 15:18:57 -0000 Received: (qmail 57299 invoked by uid 500); 31 Aug 2009 15:18:57 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 57276 invoked by uid 500); 31 Aug 2009 15:18:57 -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 57266 invoked by uid 99); 31 Aug 2009 15:18:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Aug 2009 15:18:57 +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, 31 Aug 2009 15:18:54 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CEFD2234C046 for ; Mon, 31 Aug 2009 08:18:32 -0700 (PDT) Message-ID: <1003010225.1251731912846.JavaMail.jira@brutus> Date: Mon, 31 Aug 2009 08:18:32 -0700 (PDT) From: "Fried Hoeben (JIRA)" To: issues@cxf.apache.org Subject: [jira] Updated: (CXF-2413) Aegis ObjectType throws NullPointerException when reading value for an xs:any without xsi:type information In-Reply-To: <464145938.1251731912725.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/CXF-2413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fried Hoeben updated CXF-2413: ------------------------------ Attachment: cxf-aegis-ObjectType.patch I believe this patch fixes the issue, at least it ensure a DatabindingException is raised, instead of the NullPointerException.... > Aegis ObjectType throws NullPointerException when reading value for an xs:any without xsi:type information > ---------------------------------------------------------------------------------------------------------- > > Key: CXF-2413 > URL: https://issues.apache.org/jira/browse/CXF-2413 > Project: CXF > Issue Type: Bug > Components: Aegis Databinding > Affects Versions: 2.2.3 > Reporter: Fried Hoeben > Attachments: cxf-aegis-ObjectType.patch > > > Aegis databinding throws a NullPointerException instead of reporting that it can not read the XML it receives. > I believe the correct, intended, behavior is that it would throw a DatabindingException stating the typeQName it could not unmarshall, or maybe it should even store the content of the element it could not parse to a Java bean in an XML document. > Caused by: java.lang.NullPointerException > at org.apache.cxf.aegis.type.basic.ObjectType.readObject(ObjectType.java:104) > at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:161) > at org.apache.cxf.aegis.type.basic.ArrayType.readCollection(ArrayType.java:86) > at org.apache.cxf.aegis.type.basic.ArrayType.readObject(ArrayType.java:62) > at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:161) > at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:161) > at org.apache.cxf.aegis.type.basic.ArrayType.readCollection(ArrayType.java:86) > at org.apache.cxf.aegis.type.basic.ArrayType.readObject(ArrayType.java:62) > at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:161) > at org.apache.cxf.aegis.AegisXMLStreamDataReader.read(AegisXMLStreamDataReader.java:82) > at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:61) > ... 57 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.