axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <axis-...@ws.apache.org>
Subject [jira] [Commented] (AXIS-2875) Axis not buildable with Java 1.6
Date Tue, 18 Sep 2012 14:59:08 GMT

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

Andreas Veithen commented on AXIS-2875:
---------------------------------------

There is one remaining issue with Java 1.6. ComplexEchoServiceTestCase#test2ComplexEchoServiceEcho21
fails with the following error:

org.xml.sax.SAXException: No deserializer for {http://www.w3.org/2001/XMLSchema}anyType
        at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:320)
        at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1052)
        at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:158)
        at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
        at org.apache.axis.client.Call.invoke(Call.java:2467)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at test.wsdl.echo.ComplexEchoServiceSoapBindingStub.echo2(ComplexEchoServiceSoapBindingStub.java:255)
        at test.wsdl.echo.ComplexEchoServiceTestCase.test2ComplexEchoServiceEcho21(ComplexEchoServiceTestCase.java:105)

This seems to be related by a difference in behavior when selecting the XML type for test.wsdl.echo.NamedValue[],
as can be seen in the following debug logs.

Java 1.5:

15:48:36,735 [305967@qtp-25358555-3] DEBUG org.apache.axis.encoding.SerializationContext -
Start serializing element; elemQName={http://types.echo.services}value; xmlType={http://www.w3.org/2001/XMLSchema}anyType;
javaClass=class java.lang.Object; sendNull=null; sendType=null; value=[Ltest.wsdl.echo.NamedValue;@299629
15:48:36,735 [305967@qtp-25358555-3] DEBUG org.apache.axis.encoding.SerializationContext -
Getting serializer for javaType=class [Ltest.wsdl.echo.NamedValue; and xmlType=null
15:48:36,735 [305967@qtp-25358555-3] DEBUG org.apache.axis.encoding.SerializationContext -
Serializer is org.apache.axis.encoding.ser.ArraySerializer@b2175
15:48:36,735 [305967@qtp-25358555-3] DEBUG org.apache.axis.encoding.SerializationContext -
Actual XML type is {http://types.echo.services}ArrayOfNamedValue
15:48:36,735 [305967@qtp-25358555-3] DEBUG org.apache.axis.encoding.SerializationContext -
Start element {http://types.echo.services}value
15:48:36,735 [305967@qtp-25358555-3] DEBUG org.apache.axis.encoding.SerializationContext -
Adding xsi:type attribute for type {http://types.echo.services}ArrayOfNamedValue

Java 1.6:

16:48:38,309 [371070192@qtp-15735326-3] DEBUG org.apache.axis.encoding.SerializationContext
- Start serializing element; elemQName={http://types.echo.services}value; xmlType={http://www.w3.org/2001/XMLSchema}anyType;
javaClass=class java.lang.Object; sendNull=null; sendType=null; value=[Ltest.wsdl.echo.NamedValue;@5afaa824
16:48:38,309 [371070192@qtp-15735326-3] DEBUG org.apache.axis.encoding.SerializationContext
- Getting serializer for javaType=class [Ltest.wsdl.echo.NamedValue; and xmlType=null
16:48:38,309 [371070192@qtp-15735326-3] DEBUG org.apache.axis.encoding.SerializationContext
- Serializer is org.apache.axis.encoding.ser.ArraySerializer@15b57dcb
16:48:38,309 [371070192@qtp-15735326-3] DEBUG org.apache.axis.encoding.SerializationContext
- Actual XML type is {http://types.echo.services}>MyElement2Response
16:48:38,309 [371070192@qtp-15735326-3] DEBUG org.apache.axis.encoding.SerializationContext
- Start element {http://types.echo.services}value

                
> Axis not buildable with Java 1.6
> --------------------------------
>
>                 Key: AXIS-2875
>                 URL: https://issues.apache.org/jira/browse/AXIS-2875
>             Project: Axis
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Andreas Veithen
>            Assignee: Andreas Veithen
>            Priority: Minor
>             Fix For: 1.4.1
>
>
> Axis currently can't be built with Java 1.6. The reason is that Axis implements an older
version of the SAAJ specs, but Java 1.6 contains the latest SAAJ version.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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