Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 11627 invoked from network); 13 Jun 2007 15:31:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jun 2007 15:31:51 -0000 Received: (qmail 32066 invoked by uid 500); 13 Jun 2007 15:31:51 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 31893 invoked by uid 500); 13 Jun 2007 15:31:50 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 31882 invoked by uid 99); 13 Jun 2007 15:31:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 08:31:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 08:31:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3E971714159 for ; Wed, 13 Jun 2007 08:31:26 -0700 (PDT) Message-ID: <24252131.1181748686254.JavaMail.jira@brutus> Date: Wed, 13 Jun 2007 08:31:26 -0700 (PDT) From: "Srinath Perera (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-2796) NullPointerException in ADB serialization of optional attribute In-Reply-To: <11648537.1181652506465.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-2796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Srinath Perera resolved AXIS2-2796. ----------------------------------- Resolution: Fixed This was not a Code gen bug. problem was soap action was set as incoming action at client side instead of outgoing action. I Placed a check set values differently for client and server and that seem to fix it. > NullPointerException in ADB serialization of optional attribute > --------------------------------------------------------------- > > Key: AXIS2-2796 > URL: https://issues.apache.org/jira/browse/AXIS2-2796 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: adb > Affects Versions: 1.2 > Environment: WinXP, Sun JDK 1.4.2_13, WebLogic 8.1.6 > Reporter: Oleg Ananiev > Assignee: Amila Chinthaka Suriarachchi > Priority: Blocker > Attachments: jira.zip > > > I have a complex type in WSDL with attribute marked as use="optional". I am using ADB serialization, "contract-first" - I generate Java from WSDL using WSDL2Java. When I do not set this attribute explicitly in my service (its value is null), I am getting NullPointerException. When this attribute is populated, everything works ok > I am porting my app from Axis2 1.1.1 to 1.2. I have re-generated all my Java "stubs" using WSDL2Java 1.2. Apart of that, no code changes were done. Same code/WSDL works fine with 1.1.1 > The exception originates with the following stack trace: > doWriteAttr():468, com.ctc.wstx.sw.BaseNsStreamWriter > writeAttribute():230, com.ctc.wstx.sw.BaseNsStreamWriter > writeAttribute():134, org.apache.axiom.om.impl.MTOMXMLStreamWriter > serializeStartpart():385, org.apache.axiom.om.impl.util.OMSerializerUtil > serializeStartpart():168, org.apache.axiom.om.impl.util.OMSerializerUtil > internalSerialize():762, org.apache.axiom.om.impl.llom.OMElementImpl > internalSerialize():750, org.apache.axiom.om.impl.llom.OMElementImpl > internalSerialize():766, org.apache.axiom.om.impl.llom.OMElementImpl > internalSerialize():564, org.apache.axiom.om.impl.llom.OMSourcedElementImpl > internalSerialize():750, org.apache.axiom.om.impl.llom.OMElementImpl > internalSerialize():554, org.apache.axiom.om.impl.llom.OMSourcedElementImpl > internalSerialize():766, org.apache.axiom.om.impl.llom.OMElementImpl > internalSerialize():750, org.apache.axiom.om.impl.llom.OMElementImpl > internalSerialize():207, org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl > internalSerialize():750, org.apache.axiom.om.impl.llom.OMElementImpl > serialize():342, org.apache.axiom.om.impl.llom.OMNodeImpl > toString():907, org.apache.axiom.om.impl.llom.OMElementImpl > invoke():98, org.apache.axis2.handlers.soapmonitor.SOAPMonitorHandler > invoke():383, org.apache.axis2.engine.Phase > invoke():203, org.apache.axis2.engine.AxisEngine > send():433, org.apache.axis2.engine.AxisEngine > receive():48, org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver > receive():144, org.apache.axis2.engine.AxisEngine > processHTTPPostRequest():279, org.apache.axis2.transport.http.HTTPTransportUtils > doPost():116, org.apache.axis2.transport.http.AxisServlet > service():760, javax.servlet.http.HttpServlet > service():853, javax.servlet.http.HttpServlet > run():1077, weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction > invokeServlet():465, weblogic.servlet.internal.ServletStubImpl > doFilter():28, weblogic.servlet.internal.TailFilter > doFilter():27, weblogic.servlet.internal.FilterChainImpl > doFilter():216, com.planetj.servlet.filter.compression.CompressingFilter > doFilter():27, weblogic.servlet.internal.FilterChainImpl > run():7053, weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction > doAs():321, weblogic.security.acl.internal.AuthenticatedSubject > runAs():121, weblogic.security.service.SecurityManager > invokeServlet():3902, weblogic.servlet.internal.WebAppServletContext > execute():2773, weblogic.servlet.internal.ServletRequestImpl > execute():224, weblogic.kernel.ExecuteThread > run():183, weblogic.kernel.ExecuteThread -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org