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.

Bug 107514 - Codegeneration issues inMobile Client to Webapplication
Summary: Codegeneration issues inMobile Client to Webapplication
Status: RESOLVED DUPLICATE of bug 107513
Alias: None
Product: javame
Classification: Unclassified
Component: Web Services (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Michal Skvor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-20 20:50 UTC by pcmreddy
Modified: 2007-06-20 20:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pcmreddy 2007-06-20 20:50:57 UTC
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.
Comment 1 Lukas Hasik 2007-06-20 20:54:08 UTC

*** This issue has been marked as a duplicate of 107513 ***