java.lang.NoClassDefFoundError: com/github/jknack/handlebars/HandlebarsError

GitHub | feiniao0308 | 2 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    GitHub comment 3#143670258

    GitHub | 2 years ago | feiniao0308
    java.lang.NoClassDefFoundError: com/github/jknack/handlebars/HandlebarsError
  2. 0

    GitHub comment 3#143670258

    GitHub | 2 years ago | feiniao0308
    java.lang.NoClassDefFoundError: com/github/jknack/handlebars/HandlebarsError
  3. 0
    samebug tip
    A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>
  6. 0
    samebug tip
    This was caused by a failure to instantiate Kafka broker. Check your dependencies.
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.github.jknack.handlebars.HandlebarsError

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    6 frames
  3. com.github.jknack
    ForwardingTemplate.apply
    1. com.github.jknack.handlebars.internal.Partial.merge(Partial.java:134)
    2. com.github.jknack.handlebars.internal.BaseTemplate.apply(BaseTemplate.java:130)
    3. com.github.jknack.handlebars.internal.TemplateList.merge(TemplateList.java:71)
    4. com.github.jknack.handlebars.internal.BaseTemplate.apply(BaseTemplate.java:130)
    5. com.github.jknack.handlebars.internal.BaseTemplate.apply(BaseTemplate.java:117)
    6. com.github.jknack.handlebars.internal.ForwardingTemplate.apply(ForwardingTemplate.java:82)
    7. com.github.jknack.handlebars.internal.ForwardingTemplate.apply(ForwardingTemplate.java:60)
    7 frames
  4. com.github.bogdanlivadariu
    TestNGTestReportPublisher.perform
    1. com.github.bogdanlivadariu.reporting.testng.builder.TestNgReportBuilder.writeTestCaseSummaryReport(TestNgReportBuilder.java:98)
    2. com.github.bogdanlivadariu.reporting.testng.builder.TestNgReportBuilder.writeReportsOnDisk(TestNgReportBuilder.java:110)
    3. com.github.bogdanlivadariu.jenkins.reporting.testng.TestNGTestReportPublisher.perform(TestNGTestReportPublisher.java:128)
    3 frames
  5. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
    3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)
    4. hudson.model.Build$BuildExecution.post2(Build.java:183)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
    6. hudson.model.Run.execute(Run.java:1527)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    8. hudson.model.ResourceController.execute(ResourceController.java:88)
    9. hudson.model.Executor.run(Executor.java:236)
    9 frames