Return-Path: Delivered-To: apmail-incubator-wink-dev-archive@minotaur.apache.org Received: (qmail 52085 invoked from network); 6 Nov 2009 22:52:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Nov 2009 22:52:54 -0000 Received: (qmail 35225 invoked by uid 500); 6 Nov 2009 22:52:54 -0000 Delivered-To: apmail-incubator-wink-dev-archive@incubator.apache.org Received: (qmail 35169 invoked by uid 500); 6 Nov 2009 22:52:54 -0000 Mailing-List: contact wink-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: wink-dev@incubator.apache.org Delivered-To: mailing list wink-dev@incubator.apache.org Received: (qmail 35159 invoked by uid 99); 6 Nov 2009 22:52:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2009 22:52:54 +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; Fri, 06 Nov 2009 22:52:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 76112234C045 for ; Fri, 6 Nov 2009 14:52:32 -0800 (PST) Message-ID: <704068129.1257547952469.JavaMail.jira@brutus> Date: Fri, 6 Nov 2009 22:52:32 +0000 (UTC) From: "Mike Rheinheimer (JIRA)" To: wink-dev@incubator.apache.org Subject: [jira] Reopened: (WINK-229) JAXBXmlProvider should tolerate user jaxb contexts In-Reply-To: <710076624.1257462212379.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/WINK-229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Rheinheimer reopened WINK-229: ----------------------------------- Need to also submit fix for Jettison provider. Fix and test will be very similar. > JAXBXmlProvider should tolerate user jaxb contexts > -------------------------------------------------- > > Key: WINK-229 > URL: https://issues.apache.org/jira/browse/WINK-229 > Project: Wink > Issue Type: Bug > Components: Common > Affects Versions: 1.1 > Reporter: Mike Rheinheimer > Fix For: 1.1 > > Attachments: WINK-229.patch > > > Ran into a sample that had an extra creator method in the ObjectFactory that returned a JAXBElement. When this method exists, and the jaxbcontext is created using the String signature in a user's JAXB context resolver, the unmarshaller will call the ObjectFactory method that returns the JAXBElement, and thus the provider will return a JAXBElement, which may not be the desired object for the resource -- this would result in an IllegalArgumentException: argument type mismatch when calling the resource method. > See patch, with test. It'll make sense. > Also, we don't have a good set of tests for the JAXBXmlProvider. The one included here in the patch is a good one to use for additional JAXB tests. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.