java.lang.NoClassDefFoundError: net/mindview/util/Print

Coderanch | Darren Ang | 5 years ago
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola . Or join the community to write better ones.
  1. 0

    Stuck in the first java program

    Coderanch | 5 years ago | Darren Ang
    java.lang.NoClassDefFoundError: net/mindview/util/Print
  2. 0
    samebug tip
    Look for missing class files, specially org.I0Itec.zkclient.IZkStateListener.
  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( at at at$100( at$ at$ at Method) at at java.lang.ClassLoader.loadClass( at java.lang.ClassLoader.loadClass( at co.cask.cdap.kafka.flow.Kafka08ConsumerFlowlet.getDefaultOffset( at co.cask.cdap.kafka.flow.Kafka08ConsumerFlowlet.getBeginOffset( at co.cask.cdap.kafka.flow.Kafka08ConsumerFlowlet.getBeginOffset( at co.cask.cdap.kafka.flow.KafkaConsumerFlowlet.createConsumerInfos( at co.cask.cdap.kafka.flow.KafkaConsumerFlowlet.initialize( at co.cask.cdap.kafka.flow.Kafka08ConsumerFlowlet.initialize( at$1.apply( at co.cask.cdap.data2.transaction.DynamicTransactionExecutor$3.apply( at co.cask.cdap.data2.transaction.DynamicTransactionExecutor$3.apply( at co.cask.cdap.data2.transaction.DynamicTransactionExecutor.executeOnce( at co.cask.cdap.data2.transaction.DynamicTransactionExecutor.executeWithRetry( at co.cask.cdap.data2.transaction.DynamicTransactionExecutor.execute( at co.cask.cdap.data2.transaction.DynamicTransactionExecutor.execute( at at at$1$ at Caused by: java.lang.ClassNotFoundException: scala.Product at$ at$ at Method) at at java.lang.ClassLoader.loadClass( at java.lang.ClassLoader.loadClass( {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: 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 | 12 months ago | Russ Savage
    java.lang.NoClassDefFoundError: scala/Product
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Inner classes not being included in jar file

    Stack Overflow | 5 years ago | user1605892
    java.lang.NoClassDefFoundError: Main$2
  6. 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

  1. iferca 3 times, last 3 weeks ago
  2. andyglick 1 times, last 3 weeks ago
  3. Andreas Häber 2 times, last 3 weeks ago
  4. carloscharx 6 times, last 4 weeks ago
  5. poroszd 1 times, last 4 weeks ago
68 more registered users
27 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


  2. Java RT
    3. Method)
    5. java.lang.ClassLoader.loadClass(
    6. sun.misc.Launcher$AppClassLoader.loadClass(
    7. java.lang.ClassLoader.loadClass(
    7 frames
  3. shortform
    1. shortform.Shortform.main(
    1 frame