Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 65615 invoked from network); 4 Feb 2010 15:48:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Feb 2010 15:48:49 -0000 Received: (qmail 27235 invoked by uid 500); 4 Feb 2010 15:48:49 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 27209 invoked by uid 500); 4 Feb 2010 15:48:49 -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 27191 invoked by uid 99); 4 Feb 2010 15:48:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 15:48:49 +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; Thu, 04 Feb 2010 15:48:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E92A729A0018 for ; Thu, 4 Feb 2010 07:48:27 -0800 (PST) Message-ID: <2089407733.39391265298507954.JavaMail.jira@brutus.apache.org> Date: Thu, 4 Feb 2010 15:48:27 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-2626) xmlbean databinding nullpointer In-Reply-To: <441364552.339541263916374429.JavaMail.jira@brutus.apache.org> 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-2626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12829627#action_12829627 ] Sergey Beryozkin commented on CXF-2626: --------------------------------------- Hi Daniel : can you please post a very simple example which will help me to reproduce the issue. I just need a JAXRS resource with a single method which returns/accepts an XMLBeans bean (simplified as needed) thanks, Sergey > xmlbean databinding nullpointer > ------------------------------- > > Key: CXF-2626 > URL: https://issues.apache.org/jira/browse/CXF-2626 > Project: CXF > Issue Type: Bug > Components: JAX-RS, OtherDatabindings > Affects Versions: 2.2.5 > Reporter: Daniel Berg > Priority: Minor > > I ran into this little code in the xmlbeans data binding, that always seems to end up in a NullpointerException. > I have a simple webservice(as simple as they get) using previously generated xmlbean from a schema. > The write method gets called with my xmlbean and a valid writer, calls write with MessagePartInfo as null , and a nullpointer exception occurs. > {code:title=org.apache.cxf.xmlbeans.DataWriterImpl.java} > public void write(Object obj, XMLStreamWriter output) { > write(obj, null, output); > } > > public void write(Object obj, MessagePartInfo part, XMLStreamWriter output) { > try { > Class typeClass = part.getTypeClass(); > .. snip > {code} > {code:title=stack} > DataWriterImpl.write(Object, Object) line: 56 > DataBindingProvider.writeToWriter(XMLStreamWriter, Object) line: 106 > DataBindingProvider.writeTo(Object, Class, Type, Annotation[], MediaType, MultivaluedMap, OutputStream) line: 98 > JAXRSOutInterceptor.serializeMessage(Message, Response, OperationResourceInfo, boolean) line: 232 > JAXRSOutInterceptor.processResponse(Message) line: 137 > JAXRSOutInterceptor.handleMessage(Message) line: 77 > PhaseInterceptorChain.doIntercept(Message) line: 236 > OutgoingChainInterceptor.handleMessage(Message) line: 76 > PhaseInterceptorChain.doIntercept(Message) line: 236 > ChainInitiationObserver.onMessage(Message) line: 109 > ServletDestination.invoke(ServletConfig, ServletContext, HttpServletRequest, HttpServletResponse) line: 98 > ServletController.invokeDestination(HttpServletRequest, HttpServletResponse, ServletDestination) line: 394 > ServletController.invoke(HttpServletRequest, HttpServletResponse) line: 133 > CXFServlet(AbstractCXFServlet).invoke(HttpServletRequest, HttpServletResponse) line: 142 > CXFServlet(AbstractHTTPServlet).handleRequest(HttpServletRequest, HttpServletResponse) line: 179 > CXFServlet(AbstractHTTPServlet).doGet(HttpServletRequest, HttpServletResponse) line: 108 > CXFServlet(HttpServlet).service(HttpServletRequest, HttpServletResponse) line: 707 > CXFServlet(AbstractHTTPServlet).service(ServletRequest, ServletResponse) line: 159 > StubSecurityHelper$ServletServiceAction.run() line: 227 > ...snip > {code} > {code:title=jaxrs configuration} > > > > > > > classpath:/domainmodel/Flightplan.xsd > > > > > > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.