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 "Shameera Rathnayaka (JIRA)" <ji...@apache.org> on 2011/09/06 13:26:09 UTC
[jira] [Created] (AXIS2-5137) Server get malfunctioning when pass
null to map
Server get malfunctioning when pass null to map
------------------------------------------------
Key: AXIS2-5137
URL: https://issues.apache.org/jira/browse/AXIS2-5137
Project: Axis2
Issue Type: Bug
Components: adb, codegen, kernel
Affects Versions: 1.7.0
Environment: Os Ubuntu 10.04 ,
IDE IntelliJ Idea 10.0.2
Reporter: Shameera Rathnayaka
Priority: Critical
This is my service class
---------------------------------------------------------------------------------------
public class MultiArgsTestService {
public String some(String arg1, Map arg2, Double arg3, Object[] arg4) {
System.out.println(arg3);
return "Passed";
}
}
This is my client side code
------------------------------------
public class MultiArgClient {
public static void main(String[] args) throws Exception {
MultiArgsTestServiceStub stub = new MultiArgsTestServiceStub();
MultiArgsTestServiceStub.Some some = new MultiArgsTestServiceStub.Some();
MultiArgsTestServiceStub.Map1 map1 = new MultiArgsTestServiceStub.Map1();
some.setArg1("Test");
some.setArg2(null);
some.setArg3(33.0);
some.setArg4(new Object[]{});
System.out.println(stub.some(some).get_return());
}
}
when i run this code, it should be print 33.0" but it print null in server side
i changed some.setArg2(null); to some.setArg2(map1); and run it, then it works and print the "33.0" in server side
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Resolved] (AXIS2-5137) Server get malfunctioning when pass
null to map
Posted by "Sagara Gunathunga (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sagara Gunathunga resolved AXIS2-5137.
---------------------------------------
Resolution: Fixed
Fix Version/s: 1.7.0
Thanks Shameera for pointing out this and the fix available on r1166610.
> Server get malfunctioning when pass null to map
> ------------------------------------------------
>
> Key: AXIS2-5137
> URL: https://issues.apache.org/jira/browse/AXIS2-5137
> Project: Axis2
> Issue Type: Bug
> Components: adb, codegen, kernel
> Affects Versions: 1.7.0
> Environment: Os Ubuntu 10.04 ,
> IDE IntelliJ Idea 10.0.2
> Reporter: Shameera Rathnayaka
> Priority: Critical
> Fix For: 1.7.0
>
>
> This is my service class
> ---------------------------------------------------------------------------------------
> public class MultiArgsTestService {
> public String some(String arg1, Map arg2, Double arg3, Object[] arg4) {
> System.out.println(arg3);
> return "Passed";
> }
> }
> This is my client side code
> ------------------------------------
> public class MultiArgClient {
> public static void main(String[] args) throws Exception {
> MultiArgsTestServiceStub stub = new MultiArgsTestServiceStub();
> MultiArgsTestServiceStub.Some some = new MultiArgsTestServiceStub.Some();
> MultiArgsTestServiceStub.Map1 map1 = new MultiArgsTestServiceStub.Map1();
> some.setArg1("Test");
> some.setArg2(null);
> some.setArg3(33.0);
> some.setArg4(new Object[]{});
> System.out.println(stub.some(some).get_return());
> }
> }
> when i run this code, it should be print 33.0" but it print null in server side
> i changed some.setArg2(null); to some.setArg2(map1); and run it, then it works and print the "33.0" in server side
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Commented] (AXIS2-5137) Server get malfunctioning when pass
null to map
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13100255#comment-13100255 ]
Hudson commented on AXIS2-5137:
-------------------------------
Integrated in Axis2 #980 (See [https://builds.apache.org/job/Axis2/980/])
Fixed AXIS2-5137 - set Map parameter nillable="true" in WSDL.
sagara :
Files :
* /axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/java2wsdl/DefaultSchemaGenerator.java
> Server get malfunctioning when pass null to map
> ------------------------------------------------
>
> Key: AXIS2-5137
> URL: https://issues.apache.org/jira/browse/AXIS2-5137
> Project: Axis2
> Issue Type: Bug
> Components: adb, codegen, kernel
> Affects Versions: 1.7.0
> Environment: Os Ubuntu 10.04 ,
> IDE IntelliJ Idea 10.0.2
> Reporter: Shameera Rathnayaka
> Priority: Critical
> Fix For: 1.7.0
>
>
> This is my service class
> ---------------------------------------------------------------------------------------
> public class MultiArgsTestService {
> public String some(String arg1, Map arg2, Double arg3, Object[] arg4) {
> System.out.println(arg3);
> return "Passed";
> }
> }
> This is my client side code
> ------------------------------------
> public class MultiArgClient {
> public static void main(String[] args) throws Exception {
> MultiArgsTestServiceStub stub = new MultiArgsTestServiceStub();
> MultiArgsTestServiceStub.Some some = new MultiArgsTestServiceStub.Some();
> MultiArgsTestServiceStub.Map1 map1 = new MultiArgsTestServiceStub.Map1();
> some.setArg1("Test");
> some.setArg2(null);
> some.setArg3(33.0);
> some.setArg4(new Object[]{});
> System.out.println(stub.some(some).get_return());
> }
> }
> when i run this code, it should be print 33.0" but it print null in server side
> i changed some.setArg2(null); to some.setArg2(map1); and run it, then it works and print the "33.0" in server side
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Commented] (AXIS2-5137) Server get malfunctioning when pass
null to map
Posted by "Shameera Rathnayaka (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13100203#comment-13100203 ]
Shameera Rathnayaka commented on AXIS2-5137:
--------------------------------------------
This is because nillable="true" attribute is missing in map parameter element. After setting this value i could resolve this issue.
> Server get malfunctioning when pass null to map
> ------------------------------------------------
>
> Key: AXIS2-5137
> URL: https://issues.apache.org/jira/browse/AXIS2-5137
> Project: Axis2
> Issue Type: Bug
> Components: adb, codegen, kernel
> Affects Versions: 1.7.0
> Environment: Os Ubuntu 10.04 ,
> IDE IntelliJ Idea 10.0.2
> Reporter: Shameera Rathnayaka
> Priority: Critical
>
> This is my service class
> ---------------------------------------------------------------------------------------
> public class MultiArgsTestService {
> public String some(String arg1, Map arg2, Double arg3, Object[] arg4) {
> System.out.println(arg3);
> return "Passed";
> }
> }
> This is my client side code
> ------------------------------------
> public class MultiArgClient {
> public static void main(String[] args) throws Exception {
> MultiArgsTestServiceStub stub = new MultiArgsTestServiceStub();
> MultiArgsTestServiceStub.Some some = new MultiArgsTestServiceStub.Some();
> MultiArgsTestServiceStub.Map1 map1 = new MultiArgsTestServiceStub.Map1();
> some.setArg1("Test");
> some.setArg2(null);
> some.setArg3(33.0);
> some.setArg4(new Object[]{});
> System.out.println(stub.some(some).get_return());
> }
> }
> when i run this code, it should be print 33.0" but it print null in server side
> i changed some.setArg2(null); to some.setArg2(map1); and run it, then it works and print the "33.0" in server side
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org