pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhishek Agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PIG-4155) Quitting grunt shell using CTRL-D character throws exception
Date Fri, 05 Sep 2014 10:35:29 GMT

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

Abhishek Agarwal updated PIG-4155:
----------------------------------
    Status: Patch Available  (was: Open)

> Quitting grunt shell using CTRL-D character throws exception
> ------------------------------------------------------------
>
>                 Key: PIG-4155
>                 URL: https://issues.apache.org/jira/browse/PIG-4155
>             Project: Pig
>          Issue Type: Bug
>          Components: grunt
>    Affects Versions: 0.14.0
>         Environment: Hadoop 2.4.0.2.1.4.0-632
> java version "1.7.0_55"
> pig - trunk
>            Reporter: Abhishek Agarwal
>             Fix For: 0.14.0
>
>         Attachments: PIG-4155.patch
>
>
> jline returns null when CTRL-D is given as input. This results in NPE in grunt because
StringReader constructor throws NPE.
> {noformat}
> String line = super.readLine();
> String paramSubLine = pc.doParamSubstitution(new BufferedReader(new StringReader(line)));
> return paramSubLine;
> {noformat}
> {noformat}
> java.lang.NullPointerException
>         at java.io.StringReader.<init>(StringReader.java:33)
>         at org.apache.pig.Main$ConsoleReaderWithParamSub.readLine(Main.java:1057)
>         at jline.ConsoleReaderInputStream$ConsoleLineInputStream.read(ConsoleReaderInputStream.java:92)
>         at java.io.InputStream.read(InputStream.java:154)
>         at java.io.SequenceInputStream.read(SequenceInputStream.java:191)
>         at java.io.SequenceInputStream.read(SequenceInputStream.java:194)
>         at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
> {noformat}



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

Mime
View raw message