You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2018/03/23 00:19:39 UTC

[GitHub] sijie opened a new issue #1287: NPE at DNS.reverse

sijie opened a new issue #1287: NPE at DNS.reverse
URL: https://github.com/apache/bookkeeper/issues/1287
 
 
   
   
   **BUG REPORT**
   
   1. Please describe the issue you observed:
   
   - What did you do?
   
   run the test
   
   - What did you expect to see?
   
   tests should pass
   
   - What did you see instead?
   
   It fails at starting the bookie as NPE is thrown at `DNS.reverseDns`.
   
   ```
   java.lang.NullPointerException
   	at org.apache.bookkeeper.net.DNS.reverseDns(DNS.java:90)
   	at org.apache.bookkeeper.net.DNS.getHosts(DNS.java:225)
   	at org.apache.bookkeeper.net.DNS.getDefaultHost(DNS.java:324)
   	at org.apache.bookkeeper.net.DNS.getDefaultHost(DNS.java:340)
   	at org.apache.bookkeeper.bookie.Bookie.getBookieAddress(Bookie.java:539)
   	at org.apache.bookkeeper.bookie.ScanAndCompareGarbageCollector.<init>(ScanAndCompareGarbageCollector.java:96)
   	at org.apache.bookkeeper.bookie.GarbageCollectorThread.<init>(GarbageCollectorThread.java:192)
   	at org.apache.bookkeeper.bookie.InterleavedLedgerStorage.initialize(InterleavedLedgerStorage.java:107)
   	at org.apache.bookkeeper.bookie.SortedLedgerStorage.initialize(SortedLedgerStorage.java:66)
   	at org.apache.bookkeeper.bookie.Bookie.<init>(Bookie.java:721)
   	at org.apache.bookkeeper.proto.BookieServer.newBookie(BookieServer.java:115)
   	at org.apache.bookkeeper.proto.BookieServer.<init>(BookieServer.java:96)
   	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.startBookie(BookKeeperClusterTestCase.java:612)
   	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.startNewBookieAndReturnAddress(BookKeeperClusterTestCase.java:595)
   	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.startNewBookie(BookKeeperClusterTestCase.java:587)
   	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.startBKCluster(BookKeeperClusterTestCase.java:219)
   	at org.apache.bookkeeper.test.BookKeeperClusterTestCase.setUp(BookKeeperClusterTestCase.java:134)
   	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:50)
   	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
   	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
   	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.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
   	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
   	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   	at java.lang.Thread.run(Thread.java:748)
   ```
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services