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 "Kinichiro Inoguchi (JIRA)" <ji...@apache.org> on 2006/11/18 08:32:37 UTC

[jira] Created: (AXIS2-1746) POJO client call failed with "Unexpected subelement"

POJO client call failed with "Unexpected subelement"
----------------------------------------------------

                 Key: AXIS2-1746
                 URL: http://issues.apache.org/jira/browse/AXIS2-1746
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: rpc
         Environment: Axis2 1.1 release
            Reporter: Kinichiro Inoguchi


I created stub by WSDL2JAVA tool, and call that service.
Client program failed with "Unexpected subelement".

I think mismatch of javabeans' namespace is an issue.
Top level element of javabeans should belongs to parent's namespace, should not ?

<I generated stub like this>
C:\work>%AXIS2_HOME%\bin\wsdl2java -uri http://localhost:8080/axis2/services/TestPojoService?wsdl -o test
Using AXIS2_HOME:   C:\work\axis2-1.1
Using JAVA_HOME:    C:\j2sdk1.4.2_04
C:\work>

<stack trace>
java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement ret20
	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14552)
	at myservice.service.TestPojoServiceStub.getBean(TestPojoServiceStub.java:152)
	at TestClient.main(TestClient.java:15)
Caused by: java.lang.RuntimeException: Unexpected subelement ret20
	at myservice.service.TestPojoServiceStub$DataBean1$Factory.parse(TestPojoServiceStub.java:9455)
	at myservice.service.TestPojoServiceStub$GetBeanResponse$Factory.parse(TestPojoServiceStub.java:4570)
	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14546)
	... 2 more
Exception in thread "main" 


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

        

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


[jira] Resolved: (AXIS2-1746) POJO client call failed with "Unexpected subelement"

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe resolved AXIS2-1746.
--------------------------------------

    Resolution: Fixed

fixed in 1.1 branch

> POJO client call failed with "Unexpected subelement"
> ----------------------------------------------------
>
>                 Key: AXIS2-1746
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1746
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: rpc
>         Environment: Axis2 1.1 release
>            Reporter: Kinichiro Inoguchi
>         Assigned To: Deepal Jayasinghe
>            Priority: Blocker
>         Attachments: client_src.zip, service_src.zip, ShipmentStatusService.aar, Src.zip, TestPojoService.aar
>
>
> I created stub by WSDL2JAVA tool, and call that service.
> Client program failed with "Unexpected subelement".
> I think mismatch of javabeans' namespace is an issue.
> Top level element of javabeans should belongs to parent's namespace, should not ?
> <I generated stub like this>
> C:\work>%AXIS2_HOME%\bin\wsdl2java -uri http://localhost:8080/axis2/services/TestPojoService?wsdl -o test
> Using AXIS2_HOME:   C:\work\axis2-1.1
> Using JAVA_HOME:    C:\j2sdk1.4.2_04
> C:\work>
> <stack trace>
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14552)
> 	at myservice.service.TestPojoServiceStub.getBean(TestPojoServiceStub.java:152)
> 	at TestClient.main(TestClient.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub$DataBean1$Factory.parse(TestPojoServiceStub.java:9455)
> 	at myservice.service.TestPojoServiceStub$GetBeanResponse$Factory.parse(TestPojoServiceStub.java:4570)
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14546)
> 	... 2 more
> Exception in thread "main" 

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

        

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


[jira] Commented: (AXIS2-1746) POJO client call failed with "Unexpected subelement"

Posted by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1746?page=comments#action_12455472 ] 
            
Kinichiro Inoguchi commented on AXIS2-1746:
-------------------------------------------

This issue blocks "POJO in POJO" response, I hope this will be solved in 1.1.1

> POJO client call failed with "Unexpected subelement"
> ----------------------------------------------------
>
>                 Key: AXIS2-1746
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1746
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: rpc
>         Environment: Axis2 1.1 release
>            Reporter: Kinichiro Inoguchi
>         Assigned To: Deepal Jayasinghe
>         Attachments: client_src.zip, service_src.zip, TestPojoService.aar
>
>
> I created stub by WSDL2JAVA tool, and call that service.
> Client program failed with "Unexpected subelement".
> I think mismatch of javabeans' namespace is an issue.
> Top level element of javabeans should belongs to parent's namespace, should not ?
> <I generated stub like this>
> C:\work>%AXIS2_HOME%\bin\wsdl2java -uri http://localhost:8080/axis2/services/TestPojoService?wsdl -o test
> Using AXIS2_HOME:   C:\work\axis2-1.1
> Using JAVA_HOME:    C:\j2sdk1.4.2_04
> C:\work>
> <stack trace>
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14552)
> 	at myservice.service.TestPojoServiceStub.getBean(TestPojoServiceStub.java:152)
> 	at TestClient.main(TestClient.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub$DataBean1$Factory.parse(TestPojoServiceStub.java:9455)
> 	at myservice.service.TestPojoServiceStub$GetBeanResponse$Factory.parse(TestPojoServiceStub.java:4570)
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14546)
> 	... 2 more
> Exception in thread "main" 

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

        

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


[jira] Commented: (AXIS2-1746) POJO client call failed with "Unexpected subelement"

Posted by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1746?page=comments#action_12450999 ] 
            
Kinichiro Inoguchi commented on AXIS2-1746:
-------------------------------------------

Response message of this service is like below.
You can see this by http://localhost:8080/axis2/rest/TestPojoService/getBean?inParam=1

(1) belongs to parent's namespace ("http://service.myService/xsd")
(2) should belongs to "http://data1.myService/xsd" ?
(3) should belongs to "http://data2.myService/xsd" ?

Namespace convention between (1) and (2),(3) seems different.

<ns:getBeanResponse xmlns:ns="http://service.myService/xsd">
  <ns:return>  *=== (1)this element (DataBean1) belongs to parent's namespace
    <ret01 xmlns="http://data1.myService/xsd">hello</ret01> 
    <ret01array1 xmlns="http://data1.myService/xsd">hello</ret01array1> 
    <ret01array2 xmlns="http://data1.myService/xsd">hello</ret01array2> 
    ...
    <ret09 xmlns="http://data1.myService/xsd">2006-11-18T09:35:18.687Z</ret09> 
    <ret09array1 xmlns="http://data1.myService/xsd">2006-11-18T09:35:18.687Z</ret09array1> 
    <ret09array2 xmlns="http://data1.myService/xsd">2006-11-18T09:35:18.687Z</ret09array2> 
    <ax24:ret20 xmlns:ax24="http://data2.myService/xsd">  *=== (2)this element (DataBean2) 
      <ret01 xmlns="http://data2.myService/xsd">hello</ret01> 
      <ret01array1 xmlns="http://data2.myService/xsd">hello</ret01array1> 
      <ret01array2 xmlns="http://data2.myService/xsd">hello</ret01array2> 
      ...
      <ret09 xmlns="http://data2.myService/xsd">2006-11-18T09:35:18.687Z</ret09> 
      <ret09array1 xmlns="http://data2.myService/xsd">2006-11-18T09:35:18.687Z</ret09array1> 
      <ret09array2 xmlns="http://data2.myService/xsd">2006-11-18T09:35:18.687Z</ret09array2> 
      <ax25:ret20 xmlns:ax25="http://data3.myService/xsd">  *=== (3)this element (DataBean3) 
        <ret01 xmlns="http://data3.myService/xsd">hello</ret01> 
        <ret01array1 xmlns="http://data3.myService/xsd">hello</ret01array1> 
        <ret01array2 xmlns="http://data3.myService/xsd">hello</ret01array2> 
        ...
        <ret09 xmlns="http://data3.myService/xsd">2006-11-18T09:35:18.687Z</ret09> 
        <ret09array1 xmlns="http://data3.myService/xsd">2006-11-18T09:35:18.687Z</ret09array1> 
        <ret09array2 xmlns="http://data3.myService/xsd">2006-11-18T09:35:18.687Z</ret09array2> 
      </ax25:ret20>
...

> POJO client call failed with "Unexpected subelement"
> ----------------------------------------------------
>
>                 Key: AXIS2-1746
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1746
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: rpc
>         Environment: Axis2 1.1 release
>            Reporter: Kinichiro Inoguchi
>         Attachments: client_src.zip, service_src.zip, TestPojoService.aar
>
>
> I created stub by WSDL2JAVA tool, and call that service.
> Client program failed with "Unexpected subelement".
> I think mismatch of javabeans' namespace is an issue.
> Top level element of javabeans should belongs to parent's namespace, should not ?
> <I generated stub like this>
> C:\work>%AXIS2_HOME%\bin\wsdl2java -uri http://localhost:8080/axis2/services/TestPojoService?wsdl -o test
> Using AXIS2_HOME:   C:\work\axis2-1.1
> Using JAVA_HOME:    C:\j2sdk1.4.2_04
> C:\work>
> <stack trace>
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14552)
> 	at myservice.service.TestPojoServiceStub.getBean(TestPojoServiceStub.java:152)
> 	at TestClient.main(TestClient.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub$DataBean1$Factory.parse(TestPojoServiceStub.java:9455)
> 	at myservice.service.TestPojoServiceStub$GetBeanResponse$Factory.parse(TestPojoServiceStub.java:4570)
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14546)
> 	... 2 more
> Exception in thread "main" 

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

        

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


Re: [jira] Commented: (AXIS2-1746) POJO client call failed with "Unexpected subelement"

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Kinichiro ;

Thx very much.

Deepal

>    [ https://issues.apache.org/jira/browse/AXIS2-1746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462196 ] 
>
>Kinichiro Inoguchi commented on AXIS2-1746:
>-------------------------------------------
>
>I verified this issue is fixed with axis2-1.1.1-SNAPSHOT.zip(04-Jan-2007 03:00).
>Thanks.
>
>  
>
>>POJO client call failed with "Unexpected subelement"
>>----------------------------------------------------
>>
>>                Key: AXIS2-1746
>>                URL: https://issues.apache.org/jira/browse/AXIS2-1746
>>            Project: Apache Axis 2.0 (Axis2)
>>         Issue Type: Bug
>>         Components: rpc
>>        Environment: Axis2 1.1 release
>>           Reporter: Kinichiro Inoguchi
>>        Assigned To: Deepal Jayasinghe
>>           Priority: Blocker
>>        Attachments: client_src.zip, service_src.zip, ShipmentStatusService.aar, Src.zip, TestPojoService.aar
>>
>>
>>I created stub by WSDL2JAVA tool, and call that service.
>>Client program failed with "Unexpected subelement".
>>I think mismatch of javabeans' namespace is an issue.
>>Top level element of javabeans should belongs to parent's namespace, should not ?
>><I generated stub like this>
>>C:\work>%AXIS2_HOME%\bin\wsdl2java -uri http://localhost:8080/axis2/services/TestPojoService?wsdl -o test
>>Using AXIS2_HOME:   C:\work\axis2-1.1
>>Using JAVA_HOME:    C:\j2sdk1.4.2_04
>>C:\work>
>><stack trace>
>>java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement ret20
>>	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14552)
>>	at myservice.service.TestPojoServiceStub.getBean(TestPojoServiceStub.java:152)
>>	at TestClient.main(TestClient.java:15)
>>Caused by: java.lang.RuntimeException: Unexpected subelement ret20
>>	at myservice.service.TestPojoServiceStub$DataBean1$Factory.parse(TestPojoServiceStub.java:9455)
>>	at myservice.service.TestPojoServiceStub$GetBeanResponse$Factory.parse(TestPojoServiceStub.java:4570)
>>	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14546)
>>	... 2 more
>>Exception in thread "main" 
>>    
>>
>
>  
>

-- 
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"



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


[jira] Commented: (AXIS2-1746) POJO client call failed with "Unexpected subelement"

Posted by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-1746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462196 ] 

Kinichiro Inoguchi commented on AXIS2-1746:
-------------------------------------------

I verified this issue is fixed with axis2-1.1.1-SNAPSHOT.zip(04-Jan-2007 03:00).
Thanks.

> POJO client call failed with "Unexpected subelement"
> ----------------------------------------------------
>
>                 Key: AXIS2-1746
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1746
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: rpc
>         Environment: Axis2 1.1 release
>            Reporter: Kinichiro Inoguchi
>         Assigned To: Deepal Jayasinghe
>            Priority: Blocker
>         Attachments: client_src.zip, service_src.zip, ShipmentStatusService.aar, Src.zip, TestPojoService.aar
>
>
> I created stub by WSDL2JAVA tool, and call that service.
> Client program failed with "Unexpected subelement".
> I think mismatch of javabeans' namespace is an issue.
> Top level element of javabeans should belongs to parent's namespace, should not ?
> <I generated stub like this>
> C:\work>%AXIS2_HOME%\bin\wsdl2java -uri http://localhost:8080/axis2/services/TestPojoService?wsdl -o test
> Using AXIS2_HOME:   C:\work\axis2-1.1
> Using JAVA_HOME:    C:\j2sdk1.4.2_04
> C:\work>
> <stack trace>
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14552)
> 	at myservice.service.TestPojoServiceStub.getBean(TestPojoServiceStub.java:152)
> 	at TestClient.main(TestClient.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub$DataBean1$Factory.parse(TestPojoServiceStub.java:9455)
> 	at myservice.service.TestPojoServiceStub$GetBeanResponse$Factory.parse(TestPojoServiceStub.java:4570)
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14546)
> 	... 2 more
> Exception in thread "main" 

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

        

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


[jira] Assigned: (AXIS2-1746) POJO client call failed with "Unexpected subelement"

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1746?page=all ]

Deepal Jayasinghe reassigned AXIS2-1746:
----------------------------------------

    Assignee: Deepal Jayasinghe

> POJO client call failed with "Unexpected subelement"
> ----------------------------------------------------
>
>                 Key: AXIS2-1746
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1746
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: rpc
>         Environment: Axis2 1.1 release
>            Reporter: Kinichiro Inoguchi
>         Assigned To: Deepal Jayasinghe
>         Attachments: client_src.zip, service_src.zip, TestPojoService.aar
>
>
> I created stub by WSDL2JAVA tool, and call that service.
> Client program failed with "Unexpected subelement".
> I think mismatch of javabeans' namespace is an issue.
> Top level element of javabeans should belongs to parent's namespace, should not ?
> <I generated stub like this>
> C:\work>%AXIS2_HOME%\bin\wsdl2java -uri http://localhost:8080/axis2/services/TestPojoService?wsdl -o test
> Using AXIS2_HOME:   C:\work\axis2-1.1
> Using JAVA_HOME:    C:\j2sdk1.4.2_04
> C:\work>
> <stack trace>
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14552)
> 	at myservice.service.TestPojoServiceStub.getBean(TestPojoServiceStub.java:152)
> 	at TestClient.main(TestClient.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub$DataBean1$Factory.parse(TestPojoServiceStub.java:9455)
> 	at myservice.service.TestPojoServiceStub$GetBeanResponse$Factory.parse(TestPojoServiceStub.java:4570)
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14546)
> 	... 2 more
> Exception in thread "main" 

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

        

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


[jira] Commented: (AXIS2-1746) POJO client call failed with "Unexpected subelement"

Posted by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1746?page=comments#action_12460489 ] 
            
Kinichiro Inoguchi commented on AXIS2-1746:
-------------------------------------------

I checked this issue with latest nightly (axis2-1.1.1-SNAPSHOT.zip  22-Dec-2006 05:03),
but problem still remain.
This issue blocks "POJO in POJO" response, I hope this will be solved in 1.1.1
Thanks.

> POJO client call failed with "Unexpected subelement"
> ----------------------------------------------------
>
>                 Key: AXIS2-1746
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1746
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: rpc
>         Environment: Axis2 1.1 release
>            Reporter: Kinichiro Inoguchi
>         Assigned To: Deepal Jayasinghe
>         Attachments: client_src.zip, service_src.zip, ShipmentStatusService.aar, Src.zip, TestPojoService.aar
>
>
> I created stub by WSDL2JAVA tool, and call that service.
> Client program failed with "Unexpected subelement".
> I think mismatch of javabeans' namespace is an issue.
> Top level element of javabeans should belongs to parent's namespace, should not ?
> <I generated stub like this>
> C:\work>%AXIS2_HOME%\bin\wsdl2java -uri http://localhost:8080/axis2/services/TestPojoService?wsdl -o test
> Using AXIS2_HOME:   C:\work\axis2-1.1
> Using JAVA_HOME:    C:\j2sdk1.4.2_04
> C:\work>
> <stack trace>
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14552)
> 	at myservice.service.TestPojoServiceStub.getBean(TestPojoServiceStub.java:152)
> 	at TestClient.main(TestClient.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub$DataBean1$Factory.parse(TestPojoServiceStub.java:9455)
> 	at myservice.service.TestPojoServiceStub$GetBeanResponse$Factory.parse(TestPojoServiceStub.java:4570)
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14546)
> 	... 2 more
> Exception in thread "main" 

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

        

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


[jira] Updated: (AXIS2-1746) POJO client call failed with "Unexpected subelement"

Posted by "Sajith Salim (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1746?page=all ]

Sajith Salim updated AXIS2-1746:
--------------------------------

    Attachment: Src.zip
                ShipmentStatusService.aar

Attached is the aar and source files for the shipment status web service

> POJO client call failed with "Unexpected subelement"
> ----------------------------------------------------
>
>                 Key: AXIS2-1746
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1746
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: rpc
>         Environment: Axis2 1.1 release
>            Reporter: Kinichiro Inoguchi
>         Assigned To: Deepal Jayasinghe
>         Attachments: client_src.zip, service_src.zip, ShipmentStatusService.aar, Src.zip, TestPojoService.aar
>
>
> I created stub by WSDL2JAVA tool, and call that service.
> Client program failed with "Unexpected subelement".
> I think mismatch of javabeans' namespace is an issue.
> Top level element of javabeans should belongs to parent's namespace, should not ?
> <I generated stub like this>
> C:\work>%AXIS2_HOME%\bin\wsdl2java -uri http://localhost:8080/axis2/services/TestPojoService?wsdl -o test
> Using AXIS2_HOME:   C:\work\axis2-1.1
> Using JAVA_HOME:    C:\j2sdk1.4.2_04
> C:\work>
> <stack trace>
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14552)
> 	at myservice.service.TestPojoServiceStub.getBean(TestPojoServiceStub.java:152)
> 	at TestClient.main(TestClient.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub$DataBean1$Factory.parse(TestPojoServiceStub.java:9455)
> 	at myservice.service.TestPojoServiceStub$GetBeanResponse$Factory.parse(TestPojoServiceStub.java:4570)
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14546)
> 	... 2 more
> Exception in thread "main" 

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

        

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


[jira] Commented: (AXIS2-1746) POJO client call failed with "Unexpected subelement"

Posted by "Santhosh Kumar Nullipady (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1746?page=comments#action_12455969 ] 
            
Santhosh Kumar Nullipady commented on AXIS2-1746:
-------------------------------------------------



Hi,

  I also get the same error while running the client.I have tried with
axis2 latest nightly build(1.1.1 SNAPSHOT),but still I get the error 
     
   java.lang.RuntimeException: Unexpected subelement return. 

  Please let me know when this bug will be fixed.

Regards
Santhosh Kumar N


> POJO client call failed with "Unexpected subelement"
> ----------------------------------------------------
>
>                 Key: AXIS2-1746
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1746
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: rpc
>         Environment: Axis2 1.1 release
>            Reporter: Kinichiro Inoguchi
>         Assigned To: Deepal Jayasinghe
>         Attachments: client_src.zip, service_src.zip, ShipmentStatusService.aar, Src.zip, TestPojoService.aar
>
>
> I created stub by WSDL2JAVA tool, and call that service.
> Client program failed with "Unexpected subelement".
> I think mismatch of javabeans' namespace is an issue.
> Top level element of javabeans should belongs to parent's namespace, should not ?
> <I generated stub like this>
> C:\work>%AXIS2_HOME%\bin\wsdl2java -uri http://localhost:8080/axis2/services/TestPojoService?wsdl -o test
> Using AXIS2_HOME:   C:\work\axis2-1.1
> Using JAVA_HOME:    C:\j2sdk1.4.2_04
> C:\work>
> <stack trace>
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14552)
> 	at myservice.service.TestPojoServiceStub.getBean(TestPojoServiceStub.java:152)
> 	at TestClient.main(TestClient.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub$DataBean1$Factory.parse(TestPojoServiceStub.java:9455)
> 	at myservice.service.TestPojoServiceStub$GetBeanResponse$Factory.parse(TestPojoServiceStub.java:4570)
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14546)
> 	... 2 more
> Exception in thread "main" 

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

        

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


[jira] Updated: (AXIS2-1746) POJO client call failed with "Unexpected subelement"

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe updated AXIS2-1746:
-------------------------------------

    Priority: Blocker  (was: Major)

I fixed this few months ago , but it has shown up again. I think we need to fix the issue b4 1.1.1

Thanks
Deepal

> POJO client call failed with "Unexpected subelement"
> ----------------------------------------------------
>
>                 Key: AXIS2-1746
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1746
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: rpc
>         Environment: Axis2 1.1 release
>            Reporter: Kinichiro Inoguchi
>         Assigned To: Deepal Jayasinghe
>            Priority: Blocker
>         Attachments: client_src.zip, service_src.zip, ShipmentStatusService.aar, Src.zip, TestPojoService.aar
>
>
> I created stub by WSDL2JAVA tool, and call that service.
> Client program failed with "Unexpected subelement".
> I think mismatch of javabeans' namespace is an issue.
> Top level element of javabeans should belongs to parent's namespace, should not ?
> <I generated stub like this>
> C:\work>%AXIS2_HOME%\bin\wsdl2java -uri http://localhost:8080/axis2/services/TestPojoService?wsdl -o test
> Using AXIS2_HOME:   C:\work\axis2-1.1
> Using JAVA_HOME:    C:\j2sdk1.4.2_04
> C:\work>
> <stack trace>
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14552)
> 	at myservice.service.TestPojoServiceStub.getBean(TestPojoServiceStub.java:152)
> 	at TestClient.main(TestClient.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub$DataBean1$Factory.parse(TestPojoServiceStub.java:9455)
> 	at myservice.service.TestPojoServiceStub$GetBeanResponse$Factory.parse(TestPojoServiceStub.java:4570)
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14546)
> 	... 2 more
> Exception in thread "main" 

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

        

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


[jira] Updated: (AXIS2-1746) POJO client call failed with "Unexpected subelement"

Posted by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1746?page=all ]

Kinichiro Inoguchi updated AXIS2-1746:
--------------------------------------

    Attachment: TestPojoService.aar
                service_src.zip
                client_src.zip

I attached aar and its source, and client source.

> POJO client call failed with "Unexpected subelement"
> ----------------------------------------------------
>
>                 Key: AXIS2-1746
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1746
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: rpc
>         Environment: Axis2 1.1 release
>            Reporter: Kinichiro Inoguchi
>         Attachments: client_src.zip, service_src.zip, TestPojoService.aar
>
>
> I created stub by WSDL2JAVA tool, and call that service.
> Client program failed with "Unexpected subelement".
> I think mismatch of javabeans' namespace is an issue.
> Top level element of javabeans should belongs to parent's namespace, should not ?
> <I generated stub like this>
> C:\work>%AXIS2_HOME%\bin\wsdl2java -uri http://localhost:8080/axis2/services/TestPojoService?wsdl -o test
> Using AXIS2_HOME:   C:\work\axis2-1.1
> Using JAVA_HOME:    C:\j2sdk1.4.2_04
> C:\work>
> <stack trace>
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14552)
> 	at myservice.service.TestPojoServiceStub.getBean(TestPojoServiceStub.java:152)
> 	at TestClient.main(TestClient.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub$DataBean1$Factory.parse(TestPojoServiceStub.java:9455)
> 	at myservice.service.TestPojoServiceStub$GetBeanResponse$Factory.parse(TestPojoServiceStub.java:4570)
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14546)
> 	... 2 more
> Exception in thread "main" 

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

        

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


[jira] Commented: (AXIS2-1746) POJO client call failed with "Unexpected subelement"

Posted by "Sajith Salim (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1746?page=comments#action_12455963 ] 
            
Sajith Salim commented on AXIS2-1746:
-------------------------------------

Hello

The same issue occured for me also. We converted our java class into WSDL., generated the client stub using that wsdl.

Initially i used axis2 1.1 version. Today i tried with the latest nightly build (axis2-1.1.1-SNAPSHOT.zip ) also...

Any idea when this will get resolved?

Please find attached the aar files and the generated stub

Best Regards
Sajith

> POJO client call failed with "Unexpected subelement"
> ----------------------------------------------------
>
>                 Key: AXIS2-1746
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1746
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: rpc
>         Environment: Axis2 1.1 release
>            Reporter: Kinichiro Inoguchi
>         Assigned To: Deepal Jayasinghe
>         Attachments: client_src.zip, service_src.zip, TestPojoService.aar
>
>
> I created stub by WSDL2JAVA tool, and call that service.
> Client program failed with "Unexpected subelement".
> I think mismatch of javabeans' namespace is an issue.
> Top level element of javabeans should belongs to parent's namespace, should not ?
> <I generated stub like this>
> C:\work>%AXIS2_HOME%\bin\wsdl2java -uri http://localhost:8080/axis2/services/TestPojoService?wsdl -o test
> Using AXIS2_HOME:   C:\work\axis2-1.1
> Using JAVA_HOME:    C:\j2sdk1.4.2_04
> C:\work>
> <stack trace>
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14552)
> 	at myservice.service.TestPojoServiceStub.getBean(TestPojoServiceStub.java:152)
> 	at TestClient.main(TestClient.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement ret20
> 	at myservice.service.TestPojoServiceStub$DataBean1$Factory.parse(TestPojoServiceStub.java:9455)
> 	at myservice.service.TestPojoServiceStub$GetBeanResponse$Factory.parse(TestPojoServiceStub.java:4570)
> 	at myservice.service.TestPojoServiceStub.fromOM(TestPojoServiceStub.java:14546)
> 	... 2 more
> Exception in thread "main" 

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

        

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