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

Chinna Rao Lalam updated HIVE-2045:
-----------------------------------

    Description: 
1) In TCTLSeparatedProtocol.SimpleTransportTokenizer.nextToken() is doing null 
check for the tokenizer.
If tokenizer is null, fillTokenizer() method is called to get the tokenizer 
object. But fillTokenizer() method also can update the tokenizer with NULL , so 
NULL check should be done before using the tokenizer.

2) Also improved some logging in TCTLSeparatedProtocol.java

  was:
1) In TCTLSeparatedProtocol.SimpleTransportTokenizer.nextToken() have the null 
check for the tokenizer. 

If tokenizer is null it will call fillTokenizer() and it will use the tokenizer 
but fillTokenizer() may return null tokenizer  so null 
check should be there for the tokenizer.

2) Added some log messages in TCTLSeparatedProtocol.java

        Summary: TCTLSeparatedProtocol.SimpleTransportTokenizer.nextToken() 
throws Null Pointer Exception in some cases  (was: NullPointer exception may 
come in TCTLSeparatedProtocol.SimpleTransportTokenizer.nextToken())

> TCTLSeparatedProtocol.SimpleTransportTokenizer.nextToken() throws Null 
> Pointer Exception in some cases
> ------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-2045
>                 URL: https://issues.apache.org/jira/browse/HIVE-2045
>             Project: Hive
>          Issue Type: Bug
>          Components: Serializers/Deserializers
>    Affects Versions: 0.7.0
>         Environment: Hadoop 0.20.1, Hive0.7.0 and SUSE Linux Enterprise 
> Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (5).
>            Reporter: Chinna Rao Lalam
>            Assignee: Chinna Rao Lalam
>
> 1) In TCTLSeparatedProtocol.SimpleTransportTokenizer.nextToken() is doing 
> null check for the tokenizer.
> If tokenizer is null, fillTokenizer() method is called to get the tokenizer 
> object. But fillTokenizer() method also can update the tokenizer with NULL , 
> so NULL check should be done before using the tokenizer.
> 2) Also improved some logging in TCTLSeparatedProtocol.java

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

Reply via email to