java.lang.NoClassDefFoundError: org/eclipse/birt/report/engine/api/RenderOption

JIRA | Yannick Marcon | 6 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

    - make a birt report design in BIRT and test it works - upload it in opal file system - make a report template - run it manually - the following errors are reported on server side: first try: java.lang.NoClassDefFoundError: org/eclipse/birt/report/engine/api/RenderOption at org.obiba.opal.reporting.service.birt.common.BirtReportFormat.<clinit>(BirtReportFormat.java:21) at org.obiba.opal.reporting.service.birt.BirtReportServiceImpl.render(BirtReportServiceImpl.java:43) at org.obiba.opal.shell.commands.ReportCommand.renderAndSendEmail(ReportCommand.java:121) at org.obiba.opal.shell.commands.ReportCommand.execute(ReportCommand.java:86) at org.obiba.opal.shell.CommandJob.run(CommandJob.java:114) at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.ClassNotFoundException: org.eclipse.birt.report.engine.api.RenderOption at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 13 more next attempts: java.lang.NoClassDefFoundError: Could not initialize class org.obiba.opal.reporting.service.birt.common.BirtReportFormat at org.obiba.opal.reporting.service.birt.BirtReportServiceImpl.render(BirtReportServiceImpl.java:43) at org.obiba.opal.shell.commands.ReportCommand.renderAndSendEmail(ReportCommand.java:121) at org.obiba.opal.shell.commands.ReportCommand.execute(ReportCommand.java:86) at org.obiba.opal.shell.CommandJob.run(CommandJob.java:114) at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)

    JIRA | 6 years ago | Yannick Marcon
    java.lang.NoClassDefFoundError: org/eclipse/birt/report/engine/api/RenderOption
  2. 0

    - make a birt report design in BIRT and test it works - upload it in opal file system - make a report template - run it manually - the following errors are reported on server side: first try: java.lang.NoClassDefFoundError: org/eclipse/birt/report/engine/api/RenderOption at org.obiba.opal.reporting.service.birt.common.BirtReportFormat.<clinit>(BirtReportFormat.java:21) at org.obiba.opal.reporting.service.birt.BirtReportServiceImpl.render(BirtReportServiceImpl.java:43) at org.obiba.opal.shell.commands.ReportCommand.renderAndSendEmail(ReportCommand.java:121) at org.obiba.opal.shell.commands.ReportCommand.execute(ReportCommand.java:86) at org.obiba.opal.shell.CommandJob.run(CommandJob.java:114) at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.ClassNotFoundException: org.eclipse.birt.report.engine.api.RenderOption at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 13 more next attempts: java.lang.NoClassDefFoundError: Could not initialize class org.obiba.opal.reporting.service.birt.common.BirtReportFormat at org.obiba.opal.reporting.service.birt.BirtReportServiceImpl.render(BirtReportServiceImpl.java:43) at org.obiba.opal.shell.commands.ReportCommand.renderAndSendEmail(ReportCommand.java:121) at org.obiba.opal.shell.commands.ReportCommand.execute(ReportCommand.java:86) at org.obiba.opal.shell.CommandJob.run(CommandJob.java:114) at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)

    JIRA | 6 years ago | Yannick Marcon
    java.lang.NoClassDefFoundError: org/eclipse/birt/report/engine/api/RenderOption
  3. 0
    samebug tip
    This exception normally means you either have to add the said class to your dependencies or you miswrote it. Look in the documentation of your library how to add it as a dependency.
  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.

  1. rsprangemeijer 6 times, last 3 days ago
  2. marcbouvierdav 26 times, last 5 days ago
  3. batwalrus76 12 times, last 5 days ago
  4. musketyr 1 times, last 6 days ago
  5. SteVio1989 4 times, last 6 days ago
69 more registered users
26 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.eclipse.birt.report.engine.api.RenderOption

    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:307)
    5. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    6 frames
  3. org.obiba.opal
    CommandJob.run
    1. org.obiba.opal.reporting.service.birt.common.BirtReportFormat.<clinit>(BirtReportFormat.java:21)
    2. org.obiba.opal.reporting.service.birt.BirtReportServiceImpl.render(BirtReportServiceImpl.java:43)
    3. org.obiba.opal.shell.commands.ReportCommand.renderAndSendEmail(ReportCommand.java:121)
    4. org.obiba.opal.shell.commands.ReportCommand.execute(ReportCommand.java:86)
    5. org.obiba.opal.shell.CommandJob.run(CommandJob.java:114)
    5 frames
  4. Shiro
    SubjectRunnable.run
    1. org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120)
    2. org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108)
    2 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    6. java.lang.Thread.run(Thread.java:662)
    6 frames