You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "kexianda (JIRA)" <ji...@apache.org> on 2015/08/18 10:33:47 UTC

[jira] [Updated] (PIG-4659) Fix unit test failures in org.apache.pig.test.TestScriptLanguageJavaScript

     [ https://issues.apache.org/jira/browse/PIG-4659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

kexianda updated PIG-4659:
--------------------------
    Attachment: PIG-4659.patch

Hi [~mohitsabharwal],
PIG-4659.patch is attached. Please help review the code. 

p.s.
this patch file is based on PIG-4655.patch.

Thanks,
Xianda


> Fix unit test failures in org.apache.pig.test.TestScriptLanguageJavaScript
> --------------------------------------------------------------------------
>
>                 Key: PIG-4659
>                 URL: https://issues.apache.org/jira/browse/PIG-4659
>             Project: Pig
>          Issue Type: Sub-task
>          Components: spark
>            Reporter: kexianda
>            Assignee: kexianda
>             Fix For: spark-branch
>
>         Attachments: PIG-4659.patch
>
>
> Failed testcase: org.apache.pig.test.TestScriptLanguageJavaScript.testTC
> Error Message:
> can't evaluate main: main();
> Stacktrace
> java.lang.RuntimeException: can't evaluate main: main();
> 	at org.apache.pig.scripting.js.JsScriptEngine.jsEval(JsScriptEngine.java:135)
> 	at org.apache.pig.scripting.js.JsScriptEngine.main(JsScriptEngine.java:223)
> 	at org.apache.pig.scripting.ScriptEngine.run(ScriptEngine.java:300)
> 	at org.apache.pig.test.TestScriptLanguageJavaScript.testTC(TestScriptLanguageJavaScript.java:149)
> Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "getNumberRecords" of null



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)