axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "hari (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (AXIS2-4483) CLONE -org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement
Date Wed, 02 Sep 2009 07:26:32 GMT

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

hari edited comment on AXIS2-4483 at 9/2/09 12:24 AM:
------------------------------------------------------

Hi,

We are getting the following error 

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement
extra
	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
	at com.test.service.employee.EmployeeDocWrapAxisStub.fromOM(EmployeeDocWrapAxisStub.java:8751)
	at com.test.service.employee.EmployeeDocWrapAxisStub.ping(EmployeeDocWrapAxisStub.java:763)
	at com.test.client.TestClient.invokePing(TestClient.java:144)
	at com.test.client.TestClient.main(TestClient.java:105)
Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: Unexpected subelement
extra
	at com.test.service.employee.PingResponse$Factory.parse(PingResponse.java:823)
	at com.test.service.employee.PingResponseE$Factory.parse(PingResponseE.java:419)
	at com.test.service.employee.EmployeeDocWrapAxisStub.fromOM(EmployeeDocWrapAxisStub.java:8283)
	... 3 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement extra
	at com.test.service.employee.PingResponse$Factory.parse(PingResponse.java:817)

SOAPResponse :

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://employee.service.test.com"><soapenv:Header></soapenv:Header><soapenv:Body><ns0:pingResponse><ns0:pingReturn><ns0:extra
xsi:nil="true"/><ns0:status>test</ns0:status><ns0:statusCode xsi:nil="true"/><ns0:statusMessage>Service
is up and running : Test</ns0:statusMessage></ns0:pingReturn></ns0:pingResponse></soapenv:Body></soapenv:Envelope>


Issue while conversion of SoapResponse to OMElement :

 while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
                                
  if (reader.isStartElement() && new javax.xml.namespace.QName("http://employee.service.test.com","pingReturn").equals(reader.getName())){
    // THROWING EXCEPTION HERE                            
    object.setPingReturn(com.test.service.employee.PingResponse.Factory.parse(reader));


We downloaded the adb jars from the below link , problem still persist
http://people.apache.org/repo/m2-snapshot-repository/org/apache/ws/commons/axiom/axiom-api/1.2.9-SNAPSHOT/


      was (Author: pamidi_hari):
    Hi,

We are getting the following error 

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement
extra
	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
	at com.test.service.employee.EmployeeDocWrapAxisStub.fromOM(EmployeeDocWrapAxisStub.java:8751)
	at com.test.service.employee.EmployeeDocWrapAxisStub.ping(EmployeeDocWrapAxisStub.java:763)
	at com.apple.client.TestClient.invokePing(TestClient.java:144)
	at com.apple.client.TestClient.main(TestClient.java:105)
Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: Unexpected subelement
extra
	at com.test.service.employee.PingResponse$Factory.parse(PingResponse.java:823)
	at com.test.service.employee.PingResponseE$Factory.parse(PingResponseE.java:419)
	at com.test.service.employee.EmployeeDocWrapAxisStub.fromOM(EmployeeDocWrapAxisStub.java:8283)
	... 3 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement extra
	at com.test.service.employee.PingResponse$Factory.parse(PingResponse.java:817)

SOAPResponse :

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://employee.service.test.com"><soapenv:Header></soapenv:Header><soapenv:Body><ns0:pingResponse><ns0:pingReturn><ns0:extra
xsi:nil="true"/><ns0:status>test</ns0:status><ns0:statusCode xsi:nil="true"/><ns0:statusMessage>Service
is up and running : Test</ns0:statusMessage></ns0:pingReturn></ns0:pingResponse></soapenv:Body></soapenv:Envelope>


Issue while conversion of SoapResponse to OMElement :

 while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
                                
  if (reader.isStartElement() && new javax.xml.namespace.QName("http://employee.service.test.com","pingReturn").equals(reader.getName())){
    // THROWING EXCEPTION HERE                            
    object.setPingReturn(com.test.service.employee.PingResponse.Factory.parse(reader));


We downloaded the adb jars from the below link , problem still persist
http://people.apache.org/repo/m2-snapshot-repository/org/apache/ws/commons/axiom/axiom-api/1.2.9-SNAPSHOT/

  
> CLONE -org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected
subelement 
> ----------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4483
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4483
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.4
>            Reporter: hari
>            Assignee: Andreas Veithen
>            Priority: Critical
>             Fix For: 1.6
>
>         Attachments: EmployeeDocWrapAxis.wsdl
>
>
> 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.


Mime
View raw message