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 "Sharat (JIRA)" <ji...@apache.org> on 2014/06/20 11:35:24 UTC

[jira] [Commented] (AXIS2-5655) Stubs created in Axis2-1.5.1 is not compatible with Latest axis2-1.6.2 (No backward compatibility from 1.6.2 to 1.5.1)

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

Sharat commented on AXIS2-5655:
-------------------------------

Hi Andreas,

Is there anyway we can upgrade the axis2 to 1.6.2 and somehow reuse the generated stub which is created by axis2 1.5.1 ? 
We have more than 250 client stubs which we can not create again with latest axis2. Still we want to upgrade the axis2 to latest version. Please do let us know.

Thanks,
Sharat

> Stubs created in Axis2-1.5.1 is not compatible with Latest axis2-1.6.2 (No backward compatibility from 1.6.2 to 1.5.1)
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5655
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5655
>             Project: Axis2
>          Issue Type: Bug
>          Components: client-api, codegen, kernel
>    Affects Versions: 1.6.2
>         Environment: Windows 7 , Java, WSDL
>            Reporter: Sharat
>            Priority: Blocker
>              Labels: patch
>             Fix For: 1.5.1
>
>   Original Estimate: 30h
>  Remaining Estimate: 30h
>
> We updated the axis2 version from 1.5.1 to 1.6.2. 
> There are more than 200 stubs created in axis2-1.5.1 version. Our goal is to use axis2.1.6.2 version with old(1.5.1) generated stub. 
> The old stub uses MTOMAwareXMLStreamWriter class everywhere, but this class is removed in axis2 1.6.2 version. 
> Am getting below error when I try to use axis2 1.6.2 version with old stubs to make service call. 
> Exception in thread "main" java.lang.AbstractMethodError: com.dlh.zambas.japi.service.conversation.wrappers.NewInstanceWithProperties.serialize(Ljavax/xml/namespace/QName;Ljavax/xml/stream/XMLStreamWriter;)V
> 	at org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:90)
> 	at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerialize(OMSourcedElementImpl.java:742)
> 	at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:563)
> 	at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:790)
> 	at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:271)
> 	at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:233)
> 	at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:165)
> 	at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
> 	at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
> 	at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
> The reason is   
> public abstract void serialize(QName paramQName, OMFactory paramOMFactory, MTOMAwareXMLStreamWriter paramMTOMAwareXMLStreamWriter)
>     throws XMLStreamException, ADBException;
> above method is not there in ADBBean and MTOMAwareXMLStreamWriter class is removed in 1.6.2.
> So is there any way we can use old generated stubs with latest axis2 ? If so please guide us how. 
> If we can not use, is there any patch we can apply to make this work ? We don't want to regenerate stubs using latest axis2 due to business requirements. 
> Thanks in Advance,
> Sharat
> Amadeus Labs



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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