java.lang.NullPointerException: null

Google Groups | Madhi P | 10 months 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

    Facing problem with configuring rethinkdb java driver

    Google Groups | 10 months ago | Madhi P
    java.lang.NullPointerException: null

    Root Cause Analysis

    1. java.lang.NullPointerException

      null

      at com.rethinkdb.net.Handshake.throwIfFailure()
    2. com.rethinkdb.net
      Connection$Builder.connect
      1. com.rethinkdb.net.Handshake.throwIfFailure(Handshake.java:253)[rethinkdb-driver-2.3.0.jar:na]
      2. com.rethinkdb.net.Handshake.access$000(Handshake.java:17)[rethinkdb-driver-2.3.0.jar:na]
      3. com.rethinkdb.net.Handshake$WaitingForProtocolRange.nextState(Handshake.java:105)[rethinkdb-driver-2.3.0.jar:na]
      4. com.rethinkdb.net.Handshake.nextMessage(Handshake.java:274)[rethinkdb-driver-2.3.0.jar:na]
      5. com.rethinkdb.net.SocketWrapper.connect(SocketWrapper.java:86)[rethinkdb-driver-2.3.0.jar:na]
      6. com.rethinkdb.net.Connection.connect(Connection.java:99)[rethinkdb-driver-2.3.0.jar:na]
      7. com.rethinkdb.net.Connection.reconnect(Connection.java:93)[rethinkdb-driver-2.3.0.jar:na]
      8. com.rethinkdb.net.Connection.reconnect(Connection.java:82)[rethinkdb-driver-2.3.0.jar:na]
      9. com.rethinkdb.net.Connection$Builder.connect(Connection.java:393)[rethinkdb-driver-2.3.0.jar:na]
      9 frames
    3. models
      User.<init>
      1. models.User.<init>(User.java:26)[classes/:na]
      1 frame
    4. controllers
      Application.UserProfile
      1. controllers.Application.UserProfile(Application.java:130)[classes/:2.4.6]
      1 frame
    5. router
      Routes$$anonfun$routes$1$$anonfun$applyOrElse$18$$anonfun$apply$18.apply
      1. router.Routes$$anonfun$routes$1$$anonfun$applyOrElse$18$$anonfun$apply$18.apply(Routes.scala:521)[classes/:na]
      2. router.Routes$$anonfun$routes$1$$anonfun$applyOrElse$18$$anonfun$apply$18.apply(Routes.scala:521)[classes/:na]
      2 frames
    6. play.core.routing
      HandlerInvokerFactory$JavaActionInvokerFactory$$anon$14$$anon$3$$anon$1.invocation
      1. play.core.routing.HandlerInvokerFactory$$anon$4.resultCall(HandlerInvoker.scala:136)[play_2.11-2.4.6.jar:2.4.6]
      2. play.core.routing.HandlerInvokerFactory$JavaActionInvokerFactory$$anon$14$$anon$3$$anon$1.invocation(HandlerInvoker.scala:127)[play_2.11-2.4.6.jar:2.4.6]
      2 frames
    7. Play
      JavaAction$$anon$1.call
      1. play.core.j.JavaAction$$anon$1.call(JavaAction.scala:70)[play_2.11-2.4.6.jar:2.4.6]
      1 frame
    8. Unknown
      Global$ActionWrapper.call
      1. Global$ActionWrapper.call(Global.java:27)[classes/:na]
      1 frame
    9. Play
      JavaAction$$anonfun$7.apply
      1. play.core.j.JavaAction$$anonfun$7.apply(JavaAction.scala:94)[play_2.11-2.4.6.jar:2.4.6]
      2. play.core.j.JavaAction$$anonfun$7.apply(JavaAction.scala:94)[play_2.11-2.4.6.jar:2.4.6]
      2 frames
    10. Scala
      Future$PromiseCompletingRunnable.run
      1. scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)[scala-library.jar:na]
      2. scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)[scala-library.jar:na]
      2 frames
    11. Play
      HttpExecutionContext$$anon$2.run
      1. play.core.j.HttpExecutionContext$$anon$2.run(HttpExecutionContext.scala:40)[play_2.11-2.4.6.jar:2.4.6]
      1 frame
    12. Play Iteratees
      Execution$trampoline$.execute
      1. play.api.libs.iteratee.Execution$trampoline$.execute(Execution.scala:70)[play-iteratees_2.11-2.4.6.jar:2.4.6]
      1 frame
    13. Play
      HttpExecutionContext.execute
      1. play.core.j.HttpExecutionContext.execute(HttpExecutionContext.scala:32)[play_2.11-2.4.6.jar:2.4.6]
      1 frame
    14. Scala
      Future$.apply
      1. scala.concurrent.impl.Future$.apply(Future.scala:31)[scala-library.jar:na]
      2. scala.concurrent.Future$.apply(Future.scala:492)[scala-library.jar:na]
      2 frames
    15. Play
      Action$$anonfun$apply$1$$anonfun$apply$4.apply
      1. play.core.j.JavaAction.apply(JavaAction.scala:94)[play_2.11-2.4.6.jar:2.4.6]
      2. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala:105)[play_2.11-2.4.6.jar:2.4.6]
      3. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala:105)[play_2.11-2.4.6.jar:2.4.6]
      4. play.utils.Threads$.withContextClassLoader(Threads.scala:21)[play_2.11-2.4.6.jar:2.4.6]
      5. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.scala:104)[play_2.11-2.4.6.jar:2.4.6]
      6. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.scala:103)[play_2.11-2.4.6.jar:2.4.6]
      6 frames
    16. Scala
      Option.map
      1. scala.Option.map(Option.scala:146)[scala-library.jar:na]
      1 frame
    17. Play
      Action$$anonfun$apply$1.apply
      1. play.api.mvc.Action$$anonfun$apply$1.apply(Action.scala:103)[play_2.11-2.4.6.jar:2.4.6]
      2. play.api.mvc.Action$$anonfun$apply$1.apply(Action.scala:96)[play_2.11-2.4.6.jar:2.4.6]
      2 frames
    18. Play Iteratees
      Iteratee$$anonfun$flatMap$1$$anonfun$apply$14.apply
      1. play.api.libs.iteratee.Iteratee$$anonfun$mapM$1.apply(Iteratee.scala:524)[play-iteratees_2.11-2.4.6.jar:2.4.6]
      2. play.api.libs.iteratee.Iteratee$$anonfun$mapM$1.apply(Iteratee.scala:524)[play-iteratees_2.11-2.4.6.jar:2.4.6]
      3. play.api.libs.iteratee.Iteratee$$anonfun$flatMapM$1.apply(Iteratee.scala:560)[play-iteratees_2.11-2.4.6.jar:2.4.6]
      4. play.api.libs.iteratee.Iteratee$$anonfun$flatMapM$1.apply(Iteratee.scala:560)[play-iteratees_2.11-2.4.6.jar:2.4.6]
      5. play.api.libs.iteratee.Iteratee$$anonfun$flatMap$1$$anonfun$apply$14.apply(Iteratee.scala:537)[play-iteratees_2.11-2.4.6.jar:2.4.6]
      6. play.api.libs.iteratee.Iteratee$$anonfun$flatMap$1$$anonfun$apply$14.apply(Iteratee.scala:537)[play-iteratees_2.11-2.4.6.jar:2.4.6]
      6 frames
    19. Scala
      Future$PromiseCompletingRunnable.run
      1. scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)[scala-library.jar:na]
      2. scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)[scala-library.jar:na]
      2 frames
    20. Akka Actor
      ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec
      1. akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:40)[akka-actor_2.11.jar:na]
      2. akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397)[akka-actor_2.11.jar:na]
      2 frames
    21. Scala
      ForkJoinWorkerThread.run
      1. scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)[scala-library.jar:na]
      2. scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)[scala-library.jar:na]
      3. scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)[scala-library.jar:na]
      4. scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)[scala-library.jar:na]
      4 frames