[#8036] - STS eclipse plugin for jasper studio doesn't work

Category:
Bug report
Priority:
High
Status:
Feedback Requested
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
1

The jasper studio plugin for eclipse does not work in the latest version of the STS IDE from spring.io.

I get the following message overtime I try to create a report or open an existing one:

Errors occurred during the build.
Errors running builder 'JasperReports Builder' on project 'AssetJasperReports'.
loader constraint violation: when resolving method "org.apache.log4j.spi.LoggingEvent.<init>(Ljava/lang/String;Lorg/apache/log4j/Category;Lorg/apache/log4j/Priority;Ljava/lang/Object;Ljava/lang/Throwable;)V" the class loader (instance of java/net/FactoryURLClassLoader) of the current class, org/apache/log4j/Category, and the class loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader) for the method's defining class, org/apache/log4j/spi/LoggingEvent, have different Class objects for the type org/apache/log4j/Category used in the signature

Details reveals:

java.lang.LinkageError: loader constraint violation: when resolving method "org.apache.log4j.spi.LoggingEvent.<init>(Ljava/lang/String;Lorg/apache/log4j/Category;Lorg/apache/log4j/Priority;Ljava/lang/Object;Ljava/lang/Throwable;)V" the class loader (instance of java/net/FactoryURLClassLoader) of the current class, org/apache/log4j/Category, and the class loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader) for the method's defining class, org/apache/log4j/spi/LoggingEvent, have different Class objects for the type org/apache/log4j/Category used in the signature
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.log(Category.java:856)
at org.slf4j.impl.Log4jLoggerAdapter.log(Log4jLoggerAdapter.java:595)
at org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:131)
at org.apache.commons.digester.Digester.setDocumentLocator(Digester.java:1468)
at org.apache.xerces.parsers.AbstractSAXParser.startDocument(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startDocument(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1892)
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:298)
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:285)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:274)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:248)
at net.sf.jasperreports.eclipse.util.ReportLoader.loadReport(ReportLoader.java:37)
at net.sf.jasperreports.eclipse.ui.ReportPreviewUtil$1.run(ReportPreviewUtil.java:49)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4024)
at org.eclipse.swt.widgets.Display.observerProc(Display.java:3613)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Display.applicationNextEventMatchingMask(Display.java:5076)
at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5457)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:227)
at org.eclipse.swt.widgets.Widget.mouseDownSuper(Widget.java:1135)
at org.eclipse.swt.widgets.Tree.mouseDownSuper(Tree.java:2102)
at org.eclipse.swt.widgets.Widget.mouseDown(Widget.java:1127)
at org.eclipse.swt.widgets.Control.mouseDown(Control.java:2616)
at org.eclipse.swt.widgets.Tree.mouseDown(Tree.java:2069)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5725)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:227)
at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2140)
at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2402)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5789)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:5218)
at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5367)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:128)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3695)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)

STS Info:
Spring Tool Suite

Version: 3.7.3.RELEASE
Build Id: 201602251025
Platform: Eclipse Neon (4.6)

Copyright (c) 2007 - 2016 Pivotal Software, Inc.
All rights reserved. Visit http://spring.io/tools/sts

This product includes software developed by the
Apache Software Foundation http://www.apache.org

I am running on a MAC running OS X El Capitan. version 10.11.5

AttachmentSize
Image icon log4jissues.jpg261.87 KB
v6.2.2
Plugin for eclipse
denisputnam's picture
Joined: Jun 17 2016 - 9:10am
Last seen: 5 years 3 months ago

5 Comments:

#1
AttachmentSize
Binary Data myreport.jrxml3.92 KB
#2

Added the STS project zip file.

AttachmentSize
Package icon assetjasperreports.zip35.65 KB
#3
  • Status:New» Acknowledged

Hi,
as already reported in this thread the compatibility for Neon was not tested and guaranteed: http://community.jaspersoft.com/jaspersoft-studio/issues/8061

We will try to look into the Neon issues for next release.
Regards,
Massimo.

#4
  • Assigned:nobody» mrabbi

Hi,
we resolved the compilation problems with Eclipse Neon, as reported here: http://community.jaspersoft.com/jaspersoft-studio/issues/8061#comment-83...
Beta/integration update site is available here: https://sourceforge.net/projects/jasperstudio/files/beta-release/updates...
Anyhow I suppose your error is more related to classpath conflicts with the Studio jars/libraries and the ones shipped with STS.

Best regards,
Massimo.

#5
  • Status:Acknowledged» Feedback Requested
Feedback