Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
0.8
Description
Thrift JS client cannot read map of structures
https://issues.apache.org/jira/browse/THRIFT-1238
I think this issus still not fixed. Here is a example
enum AutoAttribute {
POWER = 0,
MANIPULATE = 1,
APPEARANCE = 2,
DURABILITY = 3,
}
struct UserAutoDTO {
1: required string autoId,
2: required string autoName,
3: required string color,
4: required map<AutoAttribute, double> currentAttribute,
}
the client is scala(java), and service side is nodejs.
[2012-04-05 08:02:41.547] [INFO] console - input.rstack:
[2012-04-05 08:02:41.548] [INFO] console - undefined
[2012-04-05 08:02:41.549] [INFO] console - input.rpos:
[2012-04-05 08:02:41.549] [INFO] console - undefined
/web/node_modules/thrift/lib/thrift/server.js:50
throw e;
^
TypeError: Cannot read property 'length' of undefined
at Object.read (/web/gen-nodejs/auto_types.js:1670:29)
Attachments
Attachments
Issue Links
- is related to
-
THRIFT-1238 Thrift JS client cannot read map of structures
- Closed