[ 
https://wso2.org/jira/browse/WSAS-627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=25391#action_25391
 ] 

Kinshuk Dutta commented on WSAS-627:
------------------------------------

Hi I am also getting this error please find below the erroe snippet:
org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: 
Unexpected subelement status
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
        at 
com.pfizer.edmr.services.activities.SalesCustomerActivityServicesStub.fromOM(SalesCustomerActivityServicesStub.java:12326)
        at 
com.pfizer.edmr.services.activities.SalesCustomerActivityServicesStub.getCallDetails(SalesCustomerActivityServicesStub.java:981)
        at 
com.pfizer.edmr.services.activities.client.SalesCustomerActivityClient.main(SalesCustomerActivityClient.java:91)
Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: 
Unexpected subelement status
        at 
com.pfizer.edmr.services.activities.SalesCustomerActivityServicesStub$CallActivityDetailsBO$Factory.parse(SalesCustomerActivityServicesStub.java:12043)
        at 
com.pfizer.edmr.services.activities.SalesCustomerActivityServicesStub$GetCallDetailsResponse$Factory.parse(SalesCustomerActivityServicesStub.java:2279)
        at 
com.pfizer.edmr.services.activities.SalesCustomerActivityServicesStub.fromOM(SalesCustomerActivityServicesStub.java:12292)
        ... 2 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement 
status
        at 
com.pfizer.edmr.services.activities.SalesCustomerActivityServicesStub$CallActivityDetailsBO$Factory.parse(SalesCustomerActivityServicesStub.java:12037)
        ... 4 more


I was trying to call this service from a client wher all this stubs were 
generated. As mentioned by "Matt" this WSDL was autogenerated using eclipse as 
well as the client was also auto generated. But then...
If i track the REQUEST soap and RESPONSE soap using TCP/IP Monitor I am able to 
see the complete result and which is perfect but from console I am always 
getting this error.

> Tryit fails with org.apache.axis2.databinding.ADBException: Unexpected 
> subelement if the schema contains element references
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WSAS-627
>                 URL: https://wso2.org/jira/browse/WSAS-627
>             Project: WSO2 WSAS
>          Issue Type: Bug
>    Affects Versions: Nightly, 2.1
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Keith Godwin Chapman
>            Priority: High
>         Attachments: calculatorService.aar
>
>
> Tryit fails with the following exception if the schema in wsdl contains 
> element references.
> org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: 
> Unexpected subelement division
>       at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
>       at 
> org.charitha.CalculatorServiceMessageReceiverInOut.fromOM(CalculatorServiceMessageReceiverInOut.java:409)
>       at 
> org.charitha.CalculatorServiceMessageReceiverInOut.invokeBusinessLogic(CalculatorServiceMessageReceiverInOut.java:42)
>         at 
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)
> at 
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
> at 
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
> at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at 
> org.wso2.adminui.AdminUIServletFilter.doFilter(AdminUIServletFilter.java:142)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
> at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: 
> Unexpected subelement division
>       at org.charitha.Division$Factory.parse(Division.java:524)
> at 
> org.charitha.CalculatorServiceMessageReceiverInOut.fromOM(CalculatorServiceMessageReceiverInOut.java:368)
> ... 25 more
> The following is an extract from the schema.
> <xsd:schema targetNamespace="http://charitha.org";>
> <wsdl:documentation>The following schmea element uses ref 
> attribute</wsdl:documentation>
> <xsd:element name="division">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element ref="k"/>
> <xsd:element ref="l"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="k" type="xsd:double"/>
> <xsd:element name="l" type="xsd:double"/>
> Steps to reproduce:
> ============
> 1. Deploy the attached service
> 2. Go to service management page and select 'Calculatorservice'
> 3. Click on tryit
> You will see input elements as tns_k and tns_l
> 4. Enter valid input values and click on division

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
Wsas-java-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev

Reply via email to