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 "Oleg Ananiev (JIRA)" <ji...@apache.org> on 2007/06/12 14:48:26 UTC

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

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
            Priority: Blocker


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


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

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503890 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-2796:
-----------------------------------------------------

tried a sample program with your wsdl and it worked. can you send me a sample server and a client code which I can use to reproduce the problem?

> 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
>            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


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

Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eran Chinthaka resolved AXIS2-2796.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3

Problem seems to be resolved as per last comment from the reporter. 

> 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
>             Fix For: 1.3
>
>         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


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

Posted by "Oleg Ananiev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Ananiev updated AXIS2-2796:
--------------------------------

    Attachment: jira.zip

Attached files that demonstrate the problem: WSDL/XSD, generated files + code snippet that shows how the code is being executed.

The problematic attribute is alarmType in ProbableCause type

> 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
>            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


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

Posted by "Srinath Perera (JIRA)" <ji...@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


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

Posted by "Oleg Ananiev (JIRA)" <ji...@apache.org>.
    [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


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

Posted by "Oleg Ananiev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503866 ] 

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

I have tried to run the same code with Axiom 1.2.4 and Axis 1.1.1 and got the same error. Using both Axis 1.1.1 and Axiom 1.2.2 solves the problem. It might be the case that the problem is in Axiom.

> 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
>            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


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

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe reassigned AXIS2-2796:
----------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> 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


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

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504286 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-2796:
-----------------------------------------------------

Are you using Mtom?

> 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


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

Posted by "Oleg Ananiev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504292 ] 

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

I am not using MTOM (at least I am not aware of it).
I also noted the MTOM reference in stack trace, it was quite strange for me.

BTW, I have created a simple service and deployed it under standard Axis2 service, and it works for me. I am trying now to deploy it under my "original" server (running under WebLogic) to see if it works. If it does not - we will have to look for differences



> 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


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

Posted by "Srinath Perera (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srinath Perera reopened AXIS2-2796:
-----------------------------------


I closed this by a mistake .. sorry! .. reopening

> 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