axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Rueger (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-5503) Axis 2 1.6.2. issues with nil="1" attribute in the request
Date Thu, 10 Oct 2013 08:40:42 GMT

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

Christoph Rueger commented on AXIS2-5503:
-----------------------------------------

We have the exact same problem.
Requests which worked in 1.5.3. are failing now because of Exceptions _fieldXXX cannot be
null!!_

WSDL:
{code}
<xsd:element name="Level" type="xsd:int" minOccurs="0" nillable="true" maxOccurs="1"/>
{code}

*Java code:*
1. not calling _request.setLevel_ at all, seems to automatically set the value to 0

2. setting to Integer.MIN_VALUE

{code}
request.setLevel(Integer.MIN_VALUE);
{code}

This leads to the exception above. 

*Stacktrace*
{code}
Caused by: org.apache.axis2.databinding.ADBException: Level cannot be null!!
	at eu.plenty_test_drive.synesty.plenty.api.soap.version106.PlentySoapRequest_GetItemCategoryCatalog.serialize(PlentySoapRequest_GetItemCategoryCatalog.java:193)
	at eu.plenty_test_drive.synesty.plenty.api.soap.version106.PlentySoapRequest_GetItemCategoryCatalog.serialize(PlentySoapRequest_GetItemCategoryCatalog.java:152)
	at eu.plenty_test_drive.synesty.plenty.api.soap.version106.GetItemCategoryCatalog.serialize(GetItemCategoryCatalog.java:125)
	at eu.plenty_test_drive.synesty.plenty.api.soap.version106.GetItemCategoryCatalog.serialize(GetItemCategoryCatalog.java:81)
	at org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:90)
	at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerialize(OMSourcedElementImpl.java:638)
	at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:563)
	at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:846)
	at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:267)
	at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:229)
	at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:188)
	at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
	... 71 common frames omitted
{code}


Expected behavior:
We just don't want to set the _level_ at all, so I would expect that it gets not transmitted
at all. Also a 0 is wrong. 


> Axis 2 1.6.2. issues with nil="1" attribute in the request
> ----------------------------------------------------------
>
>                 Key: AXIS2-5503
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5503
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>            Reporter: phanikumar
>
> Dear All.
> Currenly i am using axis 2 1.4.1 for generating server side stubs
> Now we are actually  planning to migrate to axis 2 1.6.2
> But the problem is
> after generating the stubs, when i see the differenct between stubs of
> axis 2 1.4.1 and  axis 2 1.6.2 below condition is generated(in axis 2
> 1.6.2) as part of stub generation
>  nillableValue =
> reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
>                                     if ("true".equals(nillableValue)
> || "1".equals(nillableValue)){
>                                         throw new
> org.apache.axis2.databinding.ADBException("The element:
> "+"custShortName" +"  cannot be null");
>                                     }
> When i was tested, my request are failing because of this condtion
> generating for all values in XSD with the below sample request
> <urn1:bookName xsi:nil="1"/>(in Axis 2 1.6.2)
> can u pelase let me know this is problem with axis 2 1.6.2..if yes,
> can u pelase share the bug number and all
> can u pelase revert me ASAP
> Thanks in advance
> Thanks
> Phani



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message