[ 
https://issues.apache.org/jira/browse/AXIS2-2796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504301
 ] 

Oleg Ananiev commented on AXIS2-2796:
-------------------------------------

Looks like I found the problem.
I upgraded to 1.2 but kept axis2.xml that I was using in 1.1.1. Somehow, when I 
changed it to the default one supplied with 1.2, my service started to work.

I am not sure what is the difference between the two files but maybe you should 
consider mentioning it in the release notes

Best regards,
Oleg



> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to