You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/05/18 12:58:00 UTC

[jira] [Work logged] (HIVE-25134) NPE in TestHiveCli.java

     [ https://issues.apache.org/jira/browse/HIVE-25134?focusedWorklogId=598574&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-598574 ]

ASF GitHub Bot logged work on HIVE-25134:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 18/May/21 12:57
            Start Date: 18/May/21 12:57
    Worklog Time Spent: 10m 
      Work Description: dgzdot opened a new pull request #2289:
URL: https://github.com/apache/hive/pull/2289


   https://issues.apache.org/jira/browse/HIVE-25134
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 598574)
    Remaining Estimate: 0h
            Time Spent: 10m

> NPE in TestHiveCli.java
> -----------------------
>
>                 Key: HIVE-25134
>                 URL: https://issues.apache.org/jira/browse/HIVE-25134
>             Project: Hive
>          Issue Type: Test
>          Components: Beeline, Test
>            Reporter: gaozhan ding
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {code:java}
> @Before
> public void setup() throws IOException, URISyntaxException {
>   System.setProperty("datanucleus.schema.autoCreateAll", "true");
>   cli = new HiveCli();
>   initFromFile();
>   redirectOutputStream();
> }
> {code}
> In *setup()*, *initFromFile()* may access *err* before initialization
>  
>  
> {code:java}
> [ERROR] org.apache.hive.beeline.cli.TestHiveCli.testSetPromptValue  Time elapsed: 1.167 s  <<< ERROR!
> java.lang.NullPointerException
>         at org.apache.hive.beeline.cli.TestHiveCli.executeCMD(TestHiveCli.java:249)
>         at org.apache.hive.beeline.cli.TestHiveCli.initFromFile(TestHiveCli.java:315)
>         at org.apache.hive.beeline.cli.TestHiveCli.setup(TestHiveCli.java:288)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
>         at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>         at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
>         at org.junit.internal.runners.statements.RunBefores.invokeMethod(RunBefores.java:33)
>         at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
>         at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
>         at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
>         at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
>         at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
>         at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
>         at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
> {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)