This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build used 06/17/07 on xp with JDK 1.6 U1 How to reproduce. Create a webapplication Add a webservice "HelloWS" Add an operation "getMsg" takes "name" as parameter and returns a string. Deploy this application to Appserver. Now Create a Mobile application. Add "Mobile Client to Web Application" Select "getMsg" operation Observe the generated code has an error. Open Utility.java in webapplication. ... protected static Object readObject(DataInput in) throws IOException { short type = in.readShort(); Object result; switch (type) { case STRING_TYPE: result = ; return result; case NULL_TYPE: /* null */ return null; default: throw new IllegalArgumentException( "Unsupported return type (" + type + ")"); } } } ... Check the line "result =;" There is no value on right side. Open WebService.java in Client code observe the same. ... private static Object readObject(DataInput in) throws IOException { int type = in.readShort(); int length; Object result; switch (type) { case 1: result = ; return result; case -1: /* NULL */ return null; } throw new IllegalArgumentException("Unsupported return type (" + type + ")"); } } ... Check the line " result = ;" There is no value on right side.
As this are code generation errors making this issue as p1.
*** Issue 107514 has been marked as a duplicate of this issue. ***
This issue is showstopper for M10. Please integrate the fix into the trunk and "release60-m10" branch.
Fixed. The error was in serializer for String type in PrimitiveTypeSerializer class.
This is still reproducible in 6/26 M10 Build. Utility.jsvs in Webapplication ... case STRING_TYPE: result = ; return result; case NULL_TYPE: /* null */ ... and NewWebService.java in MobileApplication. ... switch (type) { case 1: result = ; return result; case -1: /* NULL */ return null; ...
I've verified it in 6.0M10 (build 200706262201) and the fix works for me. Please use the latest build for verification.
Verified in M10 on 6/27.