java.lang.NoClassDefFoundError: Could not initialize class org.obiba.opal.reporting.service.birt.common.BirtReportFormat

JIRA | Yannick Marcon | 6 years ago
  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: Could not initialize class org.obiba.opal.reporting.service.birt.common.BirtReportFormat
  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: Could not initialize class org.obiba.opal.reporting.service.birt.common.BirtReportFormat
  3. 0

    maven repo and 5.0-X version

    Google Groups | 2 years ago | Zsolt Kúti
    java.lang.NoClassDefFoundError: Could not initialize class
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NoClassDefFoundError while creating mock object in java

    Stack Overflow | 7 months ago | Manas Kantha
    java.lang.NoClassDefFoundError: Could not initialize class
  6. 0

    External Properties file and classpath

    Oracle Community | 6 years ago | 393585
    java.lang.NoClassDefFoundError: Could not initialize class

    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.NoClassDefFoundError

      Could not initialize class org.obiba.opal.reporting.service.birt.common.BirtReportFormat

      at org.obiba.opal.reporting.service.birt.BirtReportServiceImpl.render()
    2. org.obiba.opal
      CommandJob.run
      1. org.obiba.opal.reporting.service.birt.BirtReportServiceImpl.render(BirtReportServiceImpl.java:43)
      2. org.obiba.opal.shell.commands.ReportCommand.renderAndSendEmail(ReportCommand.java:121)
      3. org.obiba.opal.shell.commands.ReportCommand.execute(ReportCommand.java:86)
      4. org.obiba.opal.shell.CommandJob.run(CommandJob.java:114)
      4 frames
    3. 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
    4. 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