Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-456

TestOzoneShell#init is breaking due to Null Pointer Exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.2.1
    • None
    • None

    Description

      Run TestOzoneShell in IDE and all tests will fail with following stacktrace:

       

      java.lang.NullPointerException
       at java.util.Objects.requireNonNull(Objects.java:203)
       at java.util.Arrays$ArrayList.<init>(Arrays.java:3813)
       at java.util.Arrays.asList(Arrays.java:3800)
       at org.apache.hadoop.util.StringUtils.createStartupShutdownMessage(StringUtils.java:746)
       at org.apache.hadoop.util.StringUtils.startupShutdownMessage(StringUtils.java:714)
       at org.apache.hadoop.util.StringUtils.startupShutdownMessage(StringUtils.java:707)
       at org.apache.hadoop.ozone.om.OzoneManager.createOm(OzoneManager.java:308)
       at org.apache.hadoop.ozone.MiniOzoneClusterImpl$Builder.createOM(MiniOzoneClusterImpl.java:419)
       at org.apache.hadoop.ozone.MiniOzoneClusterImpl$Builder.build(MiniOzoneClusterImpl.java:348)
       at org.apache.hadoop.ozone.ozShell.TestOzoneShell.init(TestOzoneShell.java:146)
       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:47)
       at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
       at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
       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.run(ParentRunner.java:309)
       at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
       at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
       at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
       at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
       at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)

      Attachments

        1. HDDS-456.001.patch
          0.7 kB
          Dinesh Chitlangia

        Activity

          People

            dineshchitlangia Dinesh Chitlangia
            dineshchitlangia Dinesh Chitlangia
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: