Jump to content
  • java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.extensions.ExtensionsEnvironment


    mrobinson
    Assigned User chicuslavic
    CategoryBug report
    PriorityUrgent
    ReproducibilityN/A
    ResolutionFixed
    SeverityBlock
    StatusResolved
    Versionv5.2

    Updated to a clean Eclipse installation (Juno, Mac OSX (Lion), JavaEE IDE), installed JasperSoft Studio 5.2 plugin, re-imported all my projects into a new workspace. Using JasperReport 5.2.0.

     

    When I try to open an existing jrxml file (all jrxml files behave the same), an empty tab is displayed. (Same error when I try to create a new report as well) The Eclipse log shows this...

     

    !ENTRY org.eclipse.osgi 2 1 2013-09-16 08:49:14.569

    !MESSAGE NLS unused message: ImageCreationDialog_bytes in: com.jaspersoft.studio.messages.messages

     

    !ENTRY org.eclipse.e4.ui.workbench 4 0 2013-09-16 08:49:33.224

    !MESSAGE Unable to create class 'org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor' from bundle '666'

    !STACK 0

    org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.extensions.ExtensionsEnvironment

    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)

    at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)

    at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)

    at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)

    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)

    at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)

    at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)

    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)

    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)

    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)

    at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)

    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)

    at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)

    at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)

    at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)

    at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)

    at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)

    at org.eclipse.swt.widgets.Display.syncExec(Display.java:4607)

    at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)

    at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)

    at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)

    at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)

    at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)

    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)

    at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)

    at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)

    at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)

    at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)

    at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)

    at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)

    at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)

    at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:422)

    at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:389)

    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:606)

    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:332)

    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1029)

    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3047)

    at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:2969)

    at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2951)

    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2947)

    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2911)

    at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:338)

    at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:180)

    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4136)

    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)

    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)

    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)

    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271)

    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3982)

    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3621)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)

    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)

    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)

    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)

    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)

    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)

    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)

    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)

    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

    Caused by: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.extensions.ExtensionsEnvironment

    at net.sf.jasperreports.engine.component.ComponentsEnvironment.getCachedBundles(ComponentsEnvironment.java:103)

    at net.sf.jasperreports.engine.component.ComponentsEnvironment.getBundles(ComponentsEnvironment.java:97)

    at net.sf.jasperreports.engine.component.ComponentsEnvironment.getComponentBundles(ComponentsEnvironment.java:179)

    at net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.getSchemaLocations(JRReportSaxParserFactory.java:84)

    at net.sf.jasperreports.engine.xml.BaseSaxParserFactory.configureParser(BaseSaxParserFactory.java:131)

    at net.sf.jasperreports.engine.xml.BaseSaxParserFactory.createParser(BaseSaxParserFactory.java:94)

    at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createParser(JRXmlDigesterFactory.java:1438)

    at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(JRXmlDigesterFactory.java:1414)

    at com.jaspersoft.studio.editor.JrxmlEditor.init(JrxmlEditor.java:532)

    at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:360)

    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)

    ... 79 more

     

    !ENTRY org.eclipse.ui 4 0 2013-09-16 08:49:33.250

    !MESSAGE Unhandled event loop exception

    !STACK 0

    java.lang.NullPointerException

    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3063)

    at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:2969)

    at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2951)

    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2947)

    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2911)

    at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:338)

    at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:180)

    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4136)

    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)

    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)

    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)

    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271)

    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3982)

    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3621)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)

    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)

    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)

    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)

    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)

    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)

    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)

    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)

    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)



    User Feedback

    Recommended Comments

    right click on the project, and add JasperReports Nature,

    or go to Project->Properties->Libraries push Add Library and select JasperReports Libraries

     

    this will add the same jars, in this way you will see it from sources and this exception should be avoid

     

    tell me if it helps

    Link to comment
    Share on other sites

    I removed the JasperReport jar file from the project and changed the project to have JasperReports Nature. This corrected the errors in the project. I then quit and restarted. Tried opening an existing jrxml file and also tried a new report. Both attempts failed. Looking at the log file from Eclipse, the errors were similar to the previous but there were some additional errors that may be informative. I am including the entire log file as an attachment.
    Link to comment
    Share on other sites

    By the workspace, you mean the metadata folder and the project? I have about a 16-18 projects in the workspace. How about if I create a new workspace, move the offending project into it, verify it still has the problem and send that workspace to you?

     

    EDITED: I have created the workspace but it is too large to send. I would like to send you privately the url to the zipped workspace on my Dropbox account. Can you provide me an email address to use?

    Link to comment
    Share on other sites

    I need a workspace with only one project, you can remove all unneeded files from the workspace, with .metadata and project .* files

     

    you can copy yours remove 15-17 projects, from inside the project remove the files, you can keep a report there for test

     

    make a zip, and send me by email, I'll study your configuration and propose a solution

     

    Thank you

    Link to comment
    Share on other sites

    Changed Resolution from Open to Fixed

    Changed Status from Feedback Requested to Resolved


    Closing, since this kind of problems should be fixed since it was opened.JSS plugin was tested in different Eclipse 4 versions. No similar issues were verified.Open a new bug if needed.
    Link to comment
    Share on other sites


×
×
  • Create New...