axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepal Jayasinghe (JIRA)" <>
Subject [jira] Commented: (AXIS2-2464) java.lang.RuntimeException: Unexpected subelement value
Date Sun, 10 Jun 2007 17:56:26 GMT


Deepal Jayasinghe commented on AXIS2-2464:

I did the following stpes and I got it working.
- deploy your service
- generate ADB client for that
- Invoke the sevrice and get the following reponse

<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:soapenv="">
         <ns:getResultsResponse xmlns:ns="">
            <ns:return type="com.widget.soap.service.helper.Results">
               <beginRow xmlns="">1</beginRow>
               <data xmlns="" type="com.widget.soap.service.helper.Data">
                  <metadataArray type="com.widget.soap.service.helper.ColumnMetadata">
                     <columnClassName xmlns:xsi=""
xsi:nil="true" />
                     <columnDataType xmlns:xsi=""
xsi:nil="true" />
                     <columnName xmlns:xsi=""
xsi:nil="true" />
                     <getColumnLabel xmlns:xsi=""
xsi:nil="true" />
                     <tableName xmlns:xsi="" xsi:nil="true"
                     <virtualDatabaseName xmlns:xsi=""
xsi:nil="true" />
                     <virtualDatabaseVersion xmlns:xsi=""
xsi:nil="true" />
                  <rows type="com.widget.soap.service.helper.Row">
                     <cells type="com.widget.soap.service.helper.Cell">
                     <cells type="com.widget.soap.service.helper.Cell">
                     <cells type="com.widget.soap.service.helper.Cell">
                        <value type="java.lang.Integer" />
                     <cells type="com.widget.soap.service.helper.Cell">
                        <value>Some really big value...</value>
               <endRow xmlns="">3</endRow>
               <hasData xmlns="">false</hasData>
               <updateCount xmlns="">-1</updateCount>

I got the same exception and when I was debuging the code I realized that I have the wrong
jar in the class path (sjxsp-1.6.jar) , once I used the corrcet jar I got the correct reponse.
So please makr sure you have the correct jar in the class path

>  java.lang.RuntimeException: Unexpected subelement value
> --------------------------------------------------------
>                 Key: AXIS2-2464
>                 URL:
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb, client-api, codegen, databinding, wsdl
>    Affects Versions: 1.1.1
>         Environment: Windows XP
>            Reporter: Ted Jones
>            Assignee: Deepal Jayasinghe
>         Attachments: MyService.aar, MyWebservice.jar, MyWebService.wsdl, sampleMessage.txt
> Using generated WSDL from POJOs and the ADB, the client stub is generating an "java.lang.RuntimeException:
Unexpected subelement value" exception. The issue seems stem from the targetnamespace defined
in the wsdl not being used for an element within my POJO.
> Here is email thread regarding this issue:
> My WSDL and a sample response document is attached.

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:
For additional commands, e-mail:

View raw message