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 "Shahar Kedar (JIRA)" <ji...@apache.org> on 2006/11/01 10:43:17 UTC

[jira] Commented: (AXIS2-1519) empty arrays are not parsed correctly by Axis client

    [ http://issues.apache.org/jira/browse/AXIS2-1519?page=comments#action_12446185 ] 
            
Shahar Kedar commented on AXIS2-1519:
-------------------------------------

Hi Amila,

I'm not using an Axis2 generated skeleton. I can attach the Service Class implementation if it will help.
Anyhow, I think that the RPCMessageReceiver is creating this SOAP message, so maybe the problem is there.

Thanks,
Shahar.


> empty arrays are not parsed correctly by Axis client
> ----------------------------------------------------
>
>                 Key: AXIS2-1519
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1519
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: om
>         Environment: Windows XP Pro
>            Reporter: Shahar Kedar
>         Attachments: inSoapMessage.xml, outSoapMessage.xml, ServiceManager.wsdl
>
>
> My webservice sometimes returns an empty array of some object (which is properly declared in the WSDL). In those cases, the Axis2 generated client fails to parse to SOAP message. I'm getting the following error message:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement getServiceSessionsResponse
>             at org.apache.ws.axis2.SessionManagerStub.fromOM(SessionManagerStub.java:8176)
>             at org.apache.ws.axis2.SessionManagerStub.getServiceSessions(SessionManagerStub.java:269)
>             at org.apache.ws.axis2.SessionManagerTest.testgetServiceSessions(SessionManagerTest.java:33)
>             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>             at java.lang.reflect.Method.invoke(Method.java:324)
>             at junit.framework.TestCase.runTest(TestCase.java:154)
>             at junit.framework.TestCase.runBare(TestCase.java:127)
>             at junit.framework.TestResult$1.protect(TestResult.java:106)
>             at junit.framework.TestResult.runProtected(TestResult.java:124)
>             at junit.framework.TestResult.run(TestResult.java:109)
>             at junit.framework.TestCase.run(TestCase.java:118)
>             at junit.framework.TestSuite.runTest(TestSuite.java:208)
>             at junit.framework.TestSuite.run(TestSuite.java:203)
>             at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
>             at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>             at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
>             at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
>             at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>             at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> Caused by: java.lang.RuntimeException: Unexpected subelement getServiceSessionsResponse
>             at org.apache.ws.axis2.SessionManagerStub$GetServiceSessionsResponse$Factory.parse(SessionManagerStub.java:4937)
>             at org.apache.ws.axis2.SessionManagerStub.fromOM(SessionManagerStub.java:8086)
>             ... 20 more

-- 
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