java.lang.ClassNotFoundException: org.postgresql.Driver

Google Groups | Unknown author | 1 month ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Noticed this NPE in a cluster running 3.3, when stopping a flow. {noformat} 2016-02-23 10:52:04,428 - ERROR [message-callback:c.c.c.i.a.r.d.AbstractProgramTwillRunnable@259] - Failed to stop runnable: reader. java.lang.NullPointerException: null at co.cask.cdap.internal.app.runtime.distributed.AbstractProgramTwillRunnable.stop(AbstractProgramTwillRunnable.java:253) ~[co.cask.cdap.cdap-app-fabric-3.3.1.jar:na] at org.apache.twill.internal.container.TwillContainerService.triggerShutdown(TwillContainerService.java:150) [org.apache.twill.twill-yarn-0.6.0-incubating.jar:0.6.0-incubating] at com.google.common.util.concurrent.AbstractExecutionThreadService$1.doStop(AbstractExecutionThreadService.java:76) [com.google.guava.guava-13.0.1.jar:na] at com.google.common.util.concurrent.AbstractService.stop(AbstractService.java:198) [com.google.guava.guava-13.0.1.jar:na] at com.google.common.util.concurrent.AbstractExecutionThreadService.stop(AbstractExecutionThreadService.java:166) [com.google.guava.guava-13.0.1.jar:na] at org.apache.twill.internal.AbstractTwillService.handleStopMessage(AbstractTwillService.java:289) [org.apache.twill.twill-core-0.6.0-incubating.jar:na] at org.apache.twill.internal.AbstractTwillService.access$800(AbstractTwillService.java:83) [org.apache.twill.twill-core-0.6.0-incubating.jar:na] at org.apache.twill.internal.AbstractTwillService$4.onSuccess(AbstractTwillService.java:261) [org.apache.twill.twill-core-0.6.0-incubating.jar:na] at org.apache.twill.internal.AbstractTwillService$4.onSuccess(AbstractTwillService.java:245) [org.apache.twill.twill-core-0.6.0-incubating.jar:na] at com.google.common.util.concurrent.Futures$6.run(Futures.java:799) [com.google.guava.guava-13.0.1.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_75] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_75] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_75] 2016-02-23 10:52:04,451 - ERROR [message-callback:o.a.t.i.c.TwillContainerService@152] - Exception when stopping runnable. java.lang.NullPointerException: null at co.cask.cdap.internal.app.runtime.distributed.AbstractProgramTwillRunnable.stop(AbstractProgramTwillRunnable.java:253) ~[co.cask.cdap.cdap-app-fabric-3.3.1.jar:na] at org.apache.twill.internal.container.TwillContainerService.triggerShutdown(TwillContainerService.java:150) ~[org.apache.twill.twill-yarn-0.6.0-incubating.jar:0.6.0-incubating] at com.google.common.util.concurrent.AbstractExecutionThreadService$1.doStop(AbstractExecutionThreadService.java:76) [com.google.guava.guava-13.0.1.jar:na] at com.google.common.util.concurrent.AbstractService.stop(AbstractService.java:198) [com.google.guava.guava-13.0.1.jar:na] at com.google.common.util.concurrent.AbstractExecutionThreadService.stop(AbstractExecutionThreadService.java:166) [com.google.guava.guava-13.0.1.jar:na] at org.apache.twill.internal.AbstractTwillService.handleStopMessage(AbstractTwillService.java:289) [org.apache.twill.twill-core-0.6.0-incubating.jar:na] at org.apache.twill.internal.AbstractTwillService.access$800(AbstractTwillService.java:83) [org.apache.twill.twill-core-0.6.0-incubating.jar:na] at org.apache.twill.internal.AbstractTwillService$4.onSuccess(AbstractTwillService.java:261) [org.apache.twill.twill-core-0.6.0-incubating.jar:na] at org.apache.twill.internal.AbstractTwillService$4.onSuccess(AbstractTwillService.java:245) [org.apache.twill.twill-core-0.6.0-incubating.jar:na] at com.google.common.util.concurrent.Futures$6.run(Futures.java:799) [com.google.guava.guava-13.0.1.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_75] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_75] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_75] {noformat} Attaching the container logs for reference.

    Cask Community Issue Tracker | 12 months ago | Shankar Selvam
    java.lang.NullPointerException: null
  2. 0

    These exceptions are splattered all over. Stack trace: {code} 2015-08-14T03:39:07,387Z INFO o.a.t.i.k.c.ZKKafkaClientService [hdp2-22521-1000.dev.continuuity.net] [ZKKafkaClientService STOPPING] ZKKafkaClientService:shutDown(ZKKafkaClientService.java:114) - KafkaClientService stopped 2015-08-14T03:39:07,389Z ERROR o.a.t.i.c.TwillContainerService [hdp2-22521-1000.dev.continuuity.net] [message-callback] TwillContainerService:triggerShutdown(TwillContainerService.java:152) - Exception when stopping runnable. java.lang.RuntimeException: java.lang.InterruptedException at com.google.common.base.Throwables.propagate(Throwables.java:160) at co.cask.cdap.internal.app.runtime.distributed.AbstractProgramTwillRunnable.stop(AbstractProgramTwillRunnable.java:258) at org.apache.twill.internal.container.TwillContainerService.triggerShutdown(TwillContainerService.java:150) at com.google.common.util.concurrent.AbstractExecutionThreadService$1.doStop(AbstractExecutionThreadService.java:76) at com.google.common.util.concurrent.AbstractService.stop(AbstractService.java:198) at com.google.common.util.concurrent.AbstractExecutionThreadService.stop(AbstractExecutionThreadService.java:166) at org.apache.twill.internal.AbstractTwillService.handleStopMessage(AbstractTwillService.java:289) at org.apache.twill.internal.AbstractTwillService.access$800(AbstractTwillService.java:83) at org.apache.twill.internal.AbstractTwillService$4.onSuccess(AbstractTwillService.java:261) at org.apache.twill.internal.AbstractTwillService$4.onSuccess(AbstractTwillService.java:245) at com.google.common.util.concurrent.Futures$6.run(Futures.java:799) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.InterruptedException: null at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(AbstractQueuedSynchronizer.java:1219) at java.util.concurrent.locks.ReentrantLock.lockInterruptibly(ReentrantLock.java:340) at java.util.concurrent.LinkedBlockingQueue.put(LinkedBlockingQueue.java:338) at kafka.producer.async.ProducerSendThread.shutdown(Unknown Source) at kafka.producer.Producer.close(Unknown Source) at kafka.javaapi.producer.Producer.close(Unknown Source) at co.cask.cdap.logging.appender.kafka.SimpleKafkaProducer.stop(SimpleKafkaProducer.java:71) at co.cask.cdap.logging.appender.kafka.KafkaLogAppender.stop(KafkaLogAppender.java:74) at co.cask.cdap.logging.appender.LogAppenderInitializer.close(LogAppenderInitializer.java:86) at co.cask.cdap.internal.app.runtime.distributed.AbstractProgramTwillRunnable.stop(AbstractProgramTwillRunnable.java:255) at org.apache.twill.internal.container.TwillContainerService.triggerShutdown(TwillContainerService.java:150) at com.google.common.util.concurrent.AbstractExecutionThreadService$1.doStop(AbstractExecutionThreadService.java:76) at com.google.common.util.concurrent.AbstractService.stop(AbstractService.java:198) at com.google.common.util.concurrent.AbstractExecutionThreadService.stop(AbstractExecutionThreadService.java:166) at org.apache.twill.internal.AbstractTwillService.handleStopMessage(AbstractTwillService.java:289) at org.apache.twill.internal.AbstractTwillService.access$800(AbstractTwillService.java:83) at org.apache.twill.internal.AbstractTwillService$4.onSuccess(AbstractTwillService.java:261) at org.apache.twill.internal.AbstractTwillService$4.onSuccess(AbstractTwillService.java:245) at com.google.common.util.concurrent.Futures$6.run(Futures.java:799) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) 2015-08-14T03:39:07,390Z INFO c.c.c.i.a.r.d.AbstractProgramTwillRunnable [hdp2-22521-1000.dev.continuuity.net] [TwillContainerService] AbstractProgramTwillRunnable:destroy(AbstractProgramTwillRunnable.java:340) - Runnable stopped: WordCountService {code}

    Cask Community Issue Tracker | 2 years ago | Bhooshan Mogal
    java.lang.RuntimeException: java.lang.InterruptedException
  3. 0

    Sometimes when a program is stopped, I see the following in the master logs. It doesn't look like anything actually went wrong, but it's logged at ERROR. {code} 2015-08-27T22:55:25,982Z ERROR c.c.c.i.a.r.d.AbstractProgramTwillRunnable [<HOSTNAME>] [message-callback] AbstractProgramTwillRunnable:stop(AbstractProgramTwillRunnable.java:257) - Fail to stop: java.lang.InterruptedException java.lang.InterruptedException: null at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(AbstractQueuedSynchronizer.java:1219) at java.util.concurrent.locks.ReentrantLock.lockInterruptibly(ReentrantLock.java:340) at java.util.concurrent.LinkedBlockingQueue.put(LinkedBlockingQueue.java:338) at kafka.producer.async.ProducerSendThread.shutdown(Unknown Source) at kafka.producer.Producer.close(Unknown Source) at kafka.javaapi.producer.Producer.close(Unknown Source) at co.cask.cdap.logging.appender.kafka.SimpleKafkaProducer.stop(SimpleKafkaProducer.java:71) at co.cask.cdap.logging.appender.kafka.KafkaLogAppender.stop(KafkaLogAppender.java:74) at co.cask.cdap.logging.appender.LogAppenderInitializer.close(LogAppenderInitializer.java:86) at co.cask.cdap.internal.app.runtime.distributed.AbstractProgramTwillRunnable.stop(AbstractProgramTwillRunnable.java:255) at org.apache.twill.internal.container.TwillContainerService.triggerShutdown(TwillContainerService.java:150) at com.google.common.util.concurrent.AbstractExecutionThreadService$1.doStop(AbstractExecutionThreadService.java:76) at com.google.common.util.concurrent.AbstractService.stop(AbstractService.java:198) at com.google.common.util.concurrent.AbstractExecutionThreadService.stop(AbstractExecutionThreadService.java:166) at org.apache.twill.internal.AbstractTwillService.handleStopMessage(AbstractTwillService.java:289) at org.apache.twill.internal.AbstractTwillService.access$800(AbstractTwillService.java:83) at org.apache.twill.internal.AbstractTwillService$4.onSuccess(AbstractTwillService.java:261) at org.apache.twill.internal.AbstractTwillService$4.onSuccess(AbstractTwillService.java:245) at com.google.common.util.concurrent.Futures$6.run(Futures.java:799) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) 2015-08-27T22:55:25,985Z ERROR o.a.t.i.c.TwillContainerService [secure-hive-att82678-1002.dev.continuuity.net] [message-callback] TwillContainerService:triggerShutdown(TwillContainerService.java:152) - Exception when stopping runnable. java.lang.RuntimeException: java.lang.InterruptedException at com.google.common.base.Throwables.propagate(Throwables.java:160) at co.cask.cdap.internal.app.runtime.distributed.AbstractProgramTwillRunnable.stop(AbstractProgramTwillRunnable.java:258) at org.apache.twill.internal.container.TwillContainerService.triggerShutdown(TwillContainerService.java:150) at com.google.common.util.concurrent.AbstractExecutionThreadService$1.doStop(AbstractExecutionThreadService.java:76) at com.google.common.util.concurrent.AbstractService.stop(AbstractService.java:198) at com.google.common.util.concurrent.AbstractExecutionThreadService.stop(AbstractExecutionThreadService.java:166) at org.apache.twill.internal.AbstractTwillService.handleStopMessage(AbstractTwillService.java:289) at org.apache.twill.internal.AbstractTwillService.access$800(AbstractTwillService.java:83) at org.apache.twill.internal.AbstractTwillService$4.onSuccess(AbstractTwillService.java:261) at org.apache.twill.internal.AbstractTwillService$4.onSuccess(AbstractTwillService.java:245) at com.google.common.util.concurrent.Futures$6.run(Futures.java:799) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.InterruptedException: null at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(AbstractQueuedSynchronizer.java:1219) at java.util.concurrent.locks.ReentrantLock.lockInterruptibly(ReentrantLock.java:340) at java.util.concurrent.LinkedBlockingQueue.put(LinkedBlockingQueue.java:338) at kafka.producer.async.ProducerSendThread.shutdown(Unknown Source) at kafka.producer.Producer.close(Unknown Source) at kafka.javaapi.producer.Producer.close(Unknown Source) at co.cask.cdap.logging.appender.kafka.SimpleKafkaProducer.stop(SimpleKafkaProducer.java:71) at co.cask.cdap.logging.appender.kafka.KafkaLogAppender.stop(KafkaLogAppender.java:74) at co.cask.cdap.logging.appender.LogAppenderInitializer.close(LogAppenderInitializer.java:86) at co.cask.cdap.internal.app.runtime.distributed.AbstractProgramTwillRunnable.stop(AbstractProgramTwillRunnable.java:255) at org.apache.twill.internal.container.TwillContainerService.triggerShutdown(TwillContainerService.java:150) at com.google.common.util.concurrent.AbstractExecutionThreadService$1.doStop(AbstractExecutionThreadService.java:76) at com.google.common.util.concurrent.AbstractService.stop(AbstractService.java:198) at com.google.common.util.concurrent.AbstractExecutionThreadService.stop(AbstractExecutionThreadService.java:166) at org.apache.twill.internal.AbstractTwillService.handleStopMessage(AbstractTwillService.java:289) at org.apache.twill.internal.AbstractTwillService.access$800(AbstractTwillService.java:83) at org.apache.twill.internal.AbstractTwillService$4.onSuccess(AbstractTwillService.java:261) at org.apache.twill.internal.AbstractTwillService$4.onSuccess(AbstractTwillService.java:245) at com.google.common.util.concurrent.Futures$6.run(Futures.java:799) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {code}

    Cask Community Issue Tracker | 1 year ago | Alvin Wang
    java.lang.InterruptedException: null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NoClassDefFoundError: org/apache/hadoop/mapred/JobConf - CDAP 3.2.0 on CDH 5.4 using PageRank Spark

    Google Groups | 1 year ago | Unknown author
    java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: org/apache/hadoop/mapred/JobConf at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:294) ~[com.google.guava.guava-13.0.1.jar:na] at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:281) ~[com.google.guava.guava-13.0.1.jar:na] at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116) ~[com.google.guava.guava-13.0.1.jar:na] at co.cask.cdap.internal.app.runtime.spark.SparkRuntimeService.run(SparkRuntimeService.java:181) ~[co.cask.cdap.cdap-app-fabric-3.2.0.jar:na] at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:52) ~[com.google.guava.guava-13.0.1.jar:na] at co.cask.cdap.internal.app.runtime.spark.SparkRuntimeService$2$1.run(SparkRuntimeService.java:247) ~[co.cask.cdap.cdap-app-fabric-3.2.0.jar:na]

  1. davidvanlaatum 1 times, last 8 months ago
  2. Bugger 1 times, last 10 months ago
10 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    org.postgresql.Driver

    at java.net.URLClassLoader$1.run()
  2. Java RT
    URLClassLoader$1.run
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    2 frames