[ https://issues.apache.org/jira/browse/HIVE-12771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16749512#comment-16749512 ]
JasonZhang commented on HIVE-12771: ----------------------------------- hi dailidong, how do you solve it ? Because I ment the similar problem that JDBC throw NullPointerException at HiveStatement.java:311, what's the root cause? > 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)