You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "wu (JIRA)" <ji...@apache.org> on 2019/01/23 03:28:00 UTC
[jira] [Commented] (HIVE-12771) HiveServer2 HiveTemplate running
HiveStatement.execute throw java.lang.NullPointerException
[ https://issues.apache.org/jira/browse/HIVE-12771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16749473#comment-16749473 ]
wu commented on HIVE-12771:
---------------------------
how to solve the problem
> HiveServer2 HiveTemplate running HiveStatement.execute throw java.lang.NullPointerException
> -------------------------------------------------------------------------------------------
>
> Key: HIVE-12771
> URL: https://issues.apache.org/jira/browse/HIVE-12771
> Project: Hive
> Issue Type: Bug
> Components: Clients
> Affects Versions: 1.2.1
> Environment: apache hive 1.2.1
> jdk7
> Reporter: dailidong
> Assignee: Vaibhav Gumashta
> Priority: Major
>
> when I use HiveTemplate to select hive table,then my program log throws exception, the details are as follow:
> java.sql.SQLException: java.lang.NullPointerException
> at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:311)
> at org.apache.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:392)
> at org.datanucleus.store.rdbms.datasource.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
> at org.datanucleus.store.rdbms.datasource.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
> at com.xxx.analysis.hadoop.xxx.hive.utils.HiveTemplate.executeQuery(HiveTemplate.java:56)
> any help will be appreciated!
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)