You are viewing a plain text version of this content. The canonical link for it is here.
Posted to savan-dev@ws.apache.org by "Prakash C Rao (JIRA)" <ji...@apache.org> on 2010/05/31 11:46:36 UTC

[jira] Commented: (AXIS2-4374) org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement

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

Prakash C Rao commented on AXIS2-4374:
--------------------------------------

I too get this exception. My server code is using Axis 1.4 (Axis1 generation) and I'm trying to use Axis2 1.5.1 on the client side. I compiled Axis 1.4 generated WSDL using wsdl2java in Axis2 1.5.1 (migration from Axis1.x to Axis2.x. This information is provided in apache site to migrate from Axis1.x to Axis2.x) and I've chosen ADB to generate the stubs. 

I've enabled tcpmon and see proper request & response. I debugged the stub code and the reader doesn't point to the right element while comparing QName and throws unexpected exception in the else block (as it's pointed above). 

Is this coming because of arraytype used in WSDL or is it because my server code is using Axis 1.4 and client is using Axis2 1.5.1? I was reading a book on WSDL and it says WSDL 1.1 doesn't recommend using SOAP 1.1 arraytype or ArrayOfXXX, instead it recommends using XML Schema to define arrays (such complex types with minOccurs, maxOccurs etc).

The Axis 1.4 client side is causing out of memory issue (https://issues.apache.org/jira/browse/AXIS-2698) and as a short term solution I'm trying implement Axis2 1.5.1 only on the client side with server being still on Axis 1.4

Any help on this is really appreciated.


> org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement 
> ---------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4374
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4374
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.4
>            Reporter: Malleswara Sarma
>            Assignee: Andreas Veithen
>            Priority: Critical
>             Fix For: 1.6
>
>         Attachments: Address_type.java, company.zip, company.zip, request-response.txt
>
>
> Getting the following error 
> rg.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement address1
> 	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> 	at com.example.company.CompanyStub.fromOM(CompanyStub.java:543)
> 	at com.example.company.CompanyStub.getCompanyDetails(CompanyStub.java:183)
> 	at org.example.www.company.CallService.main(CallService.java:35)
> Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: Unexpected subelement address1
> 	at com.test.service.provider.shared.companytype._2009._02.Address_type$Factory.parse(Address_type.java:675)
> 	at com.test.service.provider.shared.companyflow._2009._02.CompanyResponse$Factory.parse(CompanyResponse.java:553)
> 	at com.example.company.GetCompanyDetailsResponse$Factory.parse(GetCompanyDetailsResponse.java:419)
> 	at com.example.company.CompanyStub.fromOM(CompanyStub.java:538)
> 	... 2 more
> Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement address1
> 	at com.test.service.provider.shared.companytype._2009._02.Address_type$Factory.parse(Address_type.java:669)
> 	... 5 more

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org