pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xuefu Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PIG-2006) Regression: NPE when Pig processes an empty script file
Date Sat, 23 Apr 2011 17:34:05 GMT

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

Xuefu Zhang updated PIG-2006:
-----------------------------

    Attachment: PIG-2006-1.patch

Fix the failing test case.

> Regression: NPE when Pig processes an empty script file
> -------------------------------------------------------
>
>                 Key: PIG-2006
>                 URL: https://issues.apache.org/jira/browse/PIG-2006
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>             Fix For: 0.9.0
>
>         Attachments: PIG-2006-1.patch, PIG-2006.patch
>
>
> If a pig script file is empty and supplied as input for Pig (using -f option), an NPE
is thrown. Stacktrace:
> java.lang.NullPointerException
>         at java.util.regex.Matcher.getTextLength(Matcher.java:1140)
>         at java.util.regex.Matcher.reset(Matcher.java:291)
>         at java.util.regex.Matcher.<init>(Matcher.java:211)
>         at java.util.regex.Pattern.matcher(Pattern.java:888)
>         at org.apache.pig.scripting.ScriptEngine$SupportedScriptLang.accepts(ScriptEngine.java:89)
>         at org.apache.pig.scripting.ScriptEngine.getSupportedScriptLang(ScriptEngine.java:163)
>         at org.apache.pig.Main.determineScriptType(Main.java:892)
>         at org.apache.pig.Main.run(Main.java:378)
>         at org.apache.pig.Main.main(Main.java:108)
> This seems related Jython support in 0.9.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message