Jump to content
We've recently updated our Privacy Statement, available here ×

praenti

Members
  • Posts

    2
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Everything posted by praenti

  1. Hi, I'm trying to load a jasper subreport over two OSGi bundles, but don't get the clue. I have bundle vwg.audi.calida.jasper where the jar-files for jasper are included and exported. The second bundle is called vwg.audi.calida.eva where you can find the jasper files and the action where the report is started. In CreateReportAction in do: JasperReport report = (JasperReport) JRLoader.loadObjectFromLocation(REPORT_FILE, CreateReportAction.class.getClassLoader()); I need to use there the classloader because otherwise jasper would search the report in vwg.audi.calida.jasper and not vwg.audi.calida.eva. The report is created, but the referenced subreport is not found! I suppose this is because jasper searches the subreport in the wrong bundle and I have to set there also the classloader from vwg.audi.calida.eva. But how can I do that? Currently I have this in my xml: <subreport isUsingCache="true" runToBottom="false"> <reportElement positionType="Float" x="1" y="133" width="802" height="49"/> <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanArrayDataSource($F{dataModel}.getSelectedMeaResults())]]></dataSourceExpression> <subreportExpression class="java.lang.String"><![CDATA["calida_standard_report_teststeps.jasper"]]></subreportExpression> </subreport> Can anybody help me? Kind Regards
  2. Hey! Perhaps someone can help me. I've tried to use the jasperreports-chart-theme, but I don't get the correct theme. Because I have no Spring in my rich client, I can't get your original japerrreports-chart-theme to work, because of a Class Not FoundException when accessng Spring. This is somehow annoying, because I don't want to have a dependency against Spring... So I tried to compile a version without Spring. But using aegean-Theme result in such an error: <code> net.sf.jasperreports.engine.JRRuntimeException: org.exolab.castor.xml.MarshalException at net.sf.jasperreports.chartthemes.simple.XmlChartTheme.loadSettings(XmlChartTheme.java:161) at net.sf.jasperreports.chartthemes.simple.XmlChartTheme.loadSettings(XmlChartTheme.java:109) at net.sf.jasperreports.chartthemes.simple.XmlChartTheme.getChartThemeSettings(XmlChartTheme.java:93) at net.sf.jasperreports.chartthemes.simple.SimpleChartTheme.getLegendSettings(SimpleChartTheme.java:235) at net.sf.jasperreports.chartthemes.simple.SimpleChartTheme.isShowLegend(SimpleChartTheme.java:2853) at net.sf.jasperreports.chartthemes.simple.SimpleChartTheme.createGanttChart(SimpleChartTheme.java:1582) at net.sf.jasperreports.chartthemes.simple.SimpleChartTheme.createChart(SimpleChartTheme.java:409) at net.sf.jasperreports.engine.fill.JRFillChart.evaluateChart(JRFillChart.java:1338) at net.sf.jasperreports.engine.fill.JRFillChart.evaluateRenderer(JRFillChart.java:1305) at net.sf.jasperreports.engine.fill.JRFillChart.resolveElement(JRFillChart.java:1862) at net.sf.jasperreports.engine.fill.JRFillElement.performDelayedEvaluation(JRFillElement.java:912) at net.sf.jasperreports.engine.fill.JRFillElement.resolveElement(JRFillElement.java:998) at net.sf.jasperreports.engine.fill.JRBaseFiller.resolveBoundElements(JRBaseFiller.java:1491) at net.sf.jasperreports.engine.fill.JRBaseFiller.resolveBoundElements(JRBaseFiller.java:1516) at net.sf.jasperreports.engine.fill.JRBaseFiller.resolveGroupBoundElements(JRBaseFiller.java:1570) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:1049) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:300) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:134) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:942) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:860) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:84) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:624) at vwg.audi.calida.gui.actions.PrintCalendarAction.run(PrintCalendarAction.java:102) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:443) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at vwg.audi.mdm.rcpclient.RCPClient.start(RCPClient.java:62) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447) at org.eclipse.equinox.launcher.Main.run(Main.java:1173) at org.eclipse.equinox.launcher.Main.main(Main.java:1148) Caused by: org.exolab.castor.xml.MarshalException at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:724) at net.sf.jasperreports.chartthemes.simple.XmlChartTheme.loadSettings(XmlChartTheme.java:150) ... 51 more Caused by: java.net.MalformedURLException at java.net.URL.<init>(URL.java:600) at java.net.URL.<init>(URL.java:463) at java.net.URL.<init>(URL.java:412) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:968) at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:184) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:798) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:715) ... 52 more </code> Does anybody see, where my mistake is? Or has a good idea how to solve the issue? Thank you!
×
×
  • Create New...