java.lang.ClassNotFoundException: com.diablominer.DiabloMiner.DiabloMiner

GitHub | lknight | 4 years ago
  1. 0

    Inner classes not being included in jar file

    Stack Overflow | 4 years ago | user1605892
    java.lang.NoClassDefFoundError: Main$2
  2. 0

    Won't work on mountain leopart, mac book pro Retina

    GitHub | 4 years ago | lknight
    java.lang.ClassNotFoundException: com.diablominer.DiabloMiner.DiabloMiner
  3. 0

    When writing unit tests that attempt to read from Kafka, the following error is thrown: {code:java} Exception in thread "FlowletRuntimeService STARTING" java.lang.NoClassDefFoundError: scala/Product at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at co.cask.cdap.kafka.flow.Kafka08ConsumerFlowlet.getDefaultOffset(Kafka08ConsumerFlowlet.java:236) at co.cask.cdap.kafka.flow.Kafka08ConsumerFlowlet.getBeginOffset(Kafka08ConsumerFlowlet.java:204) at co.cask.cdap.kafka.flow.Kafka08ConsumerFlowlet.getBeginOffset(Kafka08ConsumerFlowlet.java:87) at co.cask.cdap.kafka.flow.KafkaConsumerFlowlet.createConsumerInfos(KafkaConsumerFlowlet.java:415) at co.cask.cdap.kafka.flow.KafkaConsumerFlowlet.initialize(KafkaConsumerFlowlet.java:108) at co.cask.cdap.kafka.flow.Kafka08ConsumerFlowlet.initialize(Kafka08ConsumerFlowlet.java:97) at co.cask.cdap.internal.app.runtime.flow.FlowletRuntimeService$1.apply(FlowletRuntimeService.java:115) at co.cask.cdap.data2.transaction.DynamicTransactionExecutor$3.apply(DynamicTransactionExecutor.java:92) at co.cask.cdap.data2.transaction.DynamicTransactionExecutor$3.apply(DynamicTransactionExecutor.java:89) at co.cask.cdap.data2.transaction.DynamicTransactionExecutor.executeOnce(DynamicTransactionExecutor.java:125) at co.cask.cdap.data2.transaction.DynamicTransactionExecutor.executeWithRetry(DynamicTransactionExecutor.java:104) at co.cask.cdap.data2.transaction.DynamicTransactionExecutor.execute(DynamicTransactionExecutor.java:61) at co.cask.cdap.data2.transaction.DynamicTransactionExecutor.execute(DynamicTransactionExecutor.java:89) at co.cask.cdap.internal.app.runtime.flow.FlowletRuntimeService.initFlowlet(FlowletRuntimeService.java:109) at co.cask.cdap.internal.app.runtime.flow.FlowletRuntimeService.startUp(FlowletRuntimeService.java:71) at com.google.common.util.concurrent.AbstractIdleService$1$1.run(AbstractIdleService.java:43) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: scala.Product at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) {code} In order to get the unit test to work, we need to manually add the scala/Product class when using deployApplication() as seen in the following changes: https://github.com/caskdata/cdap-packs/pull/60/files?diff=unified#diff-799d947ea0d45d20ced2c6825081a957R121 As a developer, ideally I would not need to create a wrapper for deploying an application for a unit test. Thanks Poorna, Ali, and Shankar for help investigating.

    Cask Community Issue Tracker | 9 months ago | Russ Savage
    java.lang.NoClassDefFoundError: scala/Product
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Maven compiler error

    Stack Overflow | 4 years ago | Gandalf StormCrow
    org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile': Unable to load the mojo 'org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile' in the plugin 'org.apache.maven.plugins:maven-compiler-plugin'. A required class is missing: org/codehaus/plexus/compiler/manager/NoSuchCompilerException
  6. 0

    Deploying MovieRecommender app fails after the changes for new ProgramClassLoader with this: 014-11-12 00:35:44,601 - ERROR [executor-13:c.c.c.i.a.d.InMemoryConfigurator@108] - scala/Product java.lang.NoClassDefFoundError: scala/Product at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.6.0_65] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) ~[na:1.6.0_65] at java.lang.ClassLoader.defineClass(ClassLoader.java:621) ~[na:1.6.0_65] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) ~[na:1.6.0_65] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) ~[na:1.6.0_65] at java.net.URLClassLoader.access$000(URLClassLoader.java:58) ~[na:1.6.0_65] at java.net.URLClassLoader$1.run(URLClassLoader.java:197) ~[na:1.6.0_65] at java.security.AccessController.doPrivileged(Native Method) ~[na:1.6.0_65] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) ~[na:1.6.0_65] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) ~[na:1.6.0_65] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ~[na:1.6.0_65] at co.cask.cdap.apps.movierecommender.MovieRecommenderApp.configure(MovieRecommenderApp.java:45) ~[na:na] at co.cask.cdap.api.app.AbstractApplication.configure(AbstractApplication.java:56) ~[classes/:na] at co.cask.cdap.internal.app.deploy.InMemoryConfigurator.getSpecJson(InMemoryConfigurator.java:121) ~[classes/:na] at co.cask.cdap.internal.app.deploy.InMemoryConfigurator.createResponse(InMemoryConfigurator.java:114) ~[classes/:na] at co.cask.cdap.internal.app.deploy.InMemoryConfigurator.config(InMemoryConfigurator.java:101) ~[classes/:na] at co.cask.cdap.internal.app.deploy.pipeline.LocalArchiveLoaderStage.process(LocalArchiveLoaderStage.java:65) [classes/:na] at co.cask.cdap.internal.app.deploy.pipeline.LocalArchiveLoaderStage.process(LocalArchiveLoaderStage.java:41) [classes/:na] at co.cask.cdap.pipeline.AbstractStage.process(AbstractStage.java:50) [classes/:na] at co.cask.cdap.internal.pipeline.SynchronousPipeline.execute(SynchronousPipeline.java:53) [classes/:na] at co.cask.cdap.internal.app.deploy.LocalManager.deploy(LocalManager.java:99) [classes/:na] at co.cask.cdap.gateway.handlers.AppFabricHttpHandler.deploy(AppFabricHttpHandler.java:1787) [classes/:na] at co.cask.cdap.gateway.handlers.AppFabricHttpHandler.access$1100(AppFabricHttpHandler.java:164) [classes/:na] at co.cask.cdap.gateway.handlers.AppFabricHttpHandler$5.finished(AppFabricHttpHandler.java:1745) [classes/:na] at co.cask.http.HttpMethodInfo.chunk(HttpMethodInfo.java:91) [netty-http-0.4.1.jar:na] at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:43) [netty-http-0.4.1.jar:na] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) [netty-3.6.6.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [na:1.6.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [na:1.6.0_65] at java.lang.Thread.run(Thread.java:695) [na:1.6.0_65] Caused by: java.lang.ClassNotFoundException: scala.Product at java.net.URLClassLoader$1.run(URLClassLoader.java:202) ~[na:1.6.0_65] at java.security.AccessController.doPrivileged(Native Method) ~[na:1.6.0_65] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) ~[na:1.6.0_65] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) ~[na:1.6.0_65] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ~[na:1.6.0_65] This happens because the app (not spark program) configuration uses Ratings.class which is scala class from MLib and we don't expose scala classes at this point we only expose it for SparkPrograms.

    Cask Community Issue Tracker | 2 years ago | Rohit Sinha
    java.lang.NoClassDefFoundError: scala/Product

  1. andyglick 2 times, last 7 days ago
  2. richard77 1 times, last 1 week ago
  3. musketyr 2 times, last 1 week ago
  4. michallos 2 times, last 1 week ago
  5. batwalrus76 2 times, last 1 week ago
67 more registered users
28 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

    com.diablominer.DiabloMiner.DiabloMiner

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    5. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    6 frames