-1

在此处输入图像描述我创建了一个从 Web 服务中提取 json 数据的作业。它可以在我的 PC 上运行,但当我将其导出到我的开发人员时却不行。服务器(Ubuntu 服务器 x64)。请帮助我。

错误

“原因:sun.org.mozilla.javascript.EvaluatorException:编译脚本时遇到代码生成错误:为方法生成的字节码超过 64K 限制。(#1)”

JSON格式

"[{ "firstName": "John", "lastName": "Smith", "age": 25, "address": { "streetAddress": "21 2nd Street", "city": "New York", " state": "NY", "postalCode": xxxxx }, "phoneNumber": [ { "type": "home", "number": "xxx xxx-xxxx" }, { "type": "fax", " number": "xxx xxx-xxxx" } ] }, { "firstName": "John", "lastName": "david", "age": 28, "address": { "streetAddress": "23 2nd Street" , "city": "New York", "state": "NY", "postalCode": xxxxx }, "phoneNumber": [ { "type": "home", "number": "xxx xxx-xxxx" }, { "type": "fax", "number": "xxx xxx-xxxx" } ] }, { "firstName": "Jondy", "lastName": "rodes", "age": 25, "address": { "streetAddress": "21 2nd Street", "city": "Kenucky", "state": "KY", "postalCode": xxxxx }, "phoneNumber": [ { "type": "home",“号码”:“xxx xxx-xxxx”},{“类型”:“传真”,“号码”:“xxx xxx-xxxx”}]}]”

4

2 回答 2

1

在此处查看此论坛帖子:

http://forums.pentaho.com/showthread.php?89304-Job-runs-fine-in-Spoon-but-not-in-Kettle-Exceeds-64K-in-Json-Input-step

建议似乎是使用 javascript 步骤然后关闭优化选项。

于 2013-03-07T08:18:34.500 回答
1

64k limit problem with jvm lower versions. Upgrade your java to 1.7 version. Problem will be solve.

于 2014-06-28T06:05:25.013 回答