java.lang.NullPointerException

JIRA | Adrian Bridgett | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I'm setting up Tachyon (v0.8.2-rc1) on top of Mesos and the clients don't wait long enough for the master, increasing MAX_TRY in common/src/main/java/tachyon/LeaderInquireClient.java from 10 to 30 seems to help with this. However the stack trace if you don't do this isn't ideal (see below) - it'd be good if it behaved similarly to if the master wasn't responding (a more common case I suspect?) - i.e. retries (forever?) {{2015-11-09 12:37:17,401 INFO WORKER_LOGGER (ClientBase.java:connect) - Tachyon client (version ${project.version}) is trying to connect with BlockMaster master @ null 2015-11-09 12:37:17,403 ERROR WORKER_LOGGER (TachyonWorker.java:main) - Failed to initialize the block worker, exiting. java.lang.NullPointerException at tachyon.util.network.NetworkAddressUtils.getFqdnHost(NetworkAddressUtils.java:468) at tachyon.security.authentication.AuthenticationUtils.createTSocket(AuthenticationUtils.java:106) at tachyon.security.authentication.AuthenticationUtils.getClientTransport(AuthenticationUtils.java:81) at tachyon.ClientBase.connect(ClientBase.java:115) at tachyon.client.WorkerBlockMasterClient.getId(WorkerBlockMasterClient.java:101) at tachyon.worker.WorkerIdRegistry.registerWithBlockMaster(WorkerIdRegistry.java:59) at tachyon.worker.block.BlockWorker.<init>(BlockWorker.java:200) at tachyon.worker.TachyonWorker.main(TachyonWorker.java:42) at tachyon.mesos.TachyonWorkerExecutor$1.run(TachyonWorkerExecutor.java:71) }}

    JIRA | 1 year ago | Adrian Bridgett
    java.lang.NullPointerException
  2. 0

    I'm setting up Tachyon (v0.8.2-rc1) on top of Mesos and the clients don't wait long enough for the master, increasing MAX_TRY in common/src/main/java/tachyon/LeaderInquireClient.java from 10 to 30 seems to help with this. However the stack trace if you don't do this isn't ideal (see below) - it'd be good if it behaved similarly to if the master wasn't responding (a more common case I suspect?) - i.e. retries (forever?) {{2015-11-09 12:37:17,401 INFO WORKER_LOGGER (ClientBase.java:connect) - Tachyon client (version ${project.version}) is trying to connect with BlockMaster master @ null 2015-11-09 12:37:17,403 ERROR WORKER_LOGGER (TachyonWorker.java:main) - Failed to initialize the block worker, exiting. java.lang.NullPointerException at tachyon.util.network.NetworkAddressUtils.getFqdnHost(NetworkAddressUtils.java:468) at tachyon.security.authentication.AuthenticationUtils.createTSocket(AuthenticationUtils.java:106) at tachyon.security.authentication.AuthenticationUtils.getClientTransport(AuthenticationUtils.java:81) at tachyon.ClientBase.connect(ClientBase.java:115) at tachyon.client.WorkerBlockMasterClient.getId(WorkerBlockMasterClient.java:101) at tachyon.worker.WorkerIdRegistry.registerWithBlockMaster(WorkerIdRegistry.java:59) at tachyon.worker.block.BlockWorker.<init>(BlockWorker.java:200) at tachyon.worker.TachyonWorker.main(TachyonWorker.java:42) at tachyon.mesos.TachyonWorkerExecutor$1.run(TachyonWorkerExecutor.java:71) }}

    JIRA | 1 year ago | Adrian Bridgett
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at tachyon.util.network.NetworkAddressUtils.getFqdnHost()
    2. tachyon.util.network
      NetworkAddressUtils.getFqdnHost
      1. tachyon.util.network.NetworkAddressUtils.getFqdnHost(NetworkAddressUtils.java:468)
      1 frame
    3. tachyon.security.authentication
      AuthenticationUtils.getClientTransport
      1. tachyon.security.authentication.AuthenticationUtils.createTSocket(AuthenticationUtils.java:106)
      2. tachyon.security.authentication.AuthenticationUtils.getClientTransport(AuthenticationUtils.java:81)
      2 frames
    4. Tachyon Project Core
      WorkerIdRegistry.registerWithBlockMaster
      1. tachyon.ClientBase.connect(ClientBase.java:115)
      2. tachyon.client.WorkerBlockMasterClient.getId(WorkerBlockMasterClient.java:101)
      3. tachyon.worker.WorkerIdRegistry.registerWithBlockMaster(WorkerIdRegistry.java:59)
      3 frames
    5. tachyon.worker.block
      BlockWorker.<init>
      1. tachyon.worker.block.BlockWorker.<init>(BlockWorker.java:200)
      1 frame
    6. Tachyon Project Core
      TachyonWorker.main
      1. tachyon.worker.TachyonWorker.main(TachyonWorker.java:42)
      1 frame
    7. tachyon.mesos
      TachyonWorkerExecutor$1.run
      1. tachyon.mesos.TachyonWorkerExecutor$1.run(TachyonWorkerExecutor.java:71)
      1 frame