You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Srinath Perera (JIRA)" <ji...@apache.org> on 2007/06/13 17:31:26 UTC

[jira] Resolved: (AXIS2-2796) NullPointerException in ADB serialization of optional attribute

     [ 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