|
Re: Radar Chart doesn't work in Standalone Program [message #644670 is a reply to message #644476] |
Mon, 13 December 2010 17:26 |
|
can you log a bug for this? To work around it you could use the birt
runtime instead of starting the chart engine in stand alone. Just use
code like:
PlatformConfig pf = new PlatformConfig();
pf.setBIRTHome("C:/birt/birt-runtime-2_6_1/birt-runtime-2_6_1/ReportEngine ");
//Either add the chart sdk or runtime to your eclipse plugins and set
BIRT home to that directory
//which must include the osgi plugin or use the BIRT runtime
//pf.setBIRTHome("C:/birt/birt-charts-2_2_1_1/ChartSDK/Eclipse/ ");
//Returns a singleton instance of the Chart Engine
ChartEngine ce = ChartEngine.instance(pf);
//Returns a singleton instance of the Generator
IGenerator gr = ce.getGenerator();
Add the jars in the reportengine/lib to your build path and set the BIRT
home to the appropriate directory.
Jason
On 12/11/2010 3:38 PM, Ronny wrote:
> Hello together,
>
> I try to write a Standalone Program to visualize Data's vom a Database.
> The Birt Chart Engine supplies quite a lot of Charts so it is perfect
> for that job. I'm using Eclipse 3.6.1 with the BIRT Plugins 2.6.1 and i
> have also have the BIRT 2.6.1 runtime release.
> I found the BIRTexample project and it is working fine. The
> Eclipseplugin in that project shows all kind of Chart's included the
> Radar Chart. The org.eclipse.birt.chart.examples.api.viewer Programs are
> working too.
> My problem is now that i Implemented the Radar.createRadar() in the
> SwtLiveChartViewer.java and i get that Exception
>
>
> 11.12.2010 21:21:33 org.eclipse.birt.chart.util.PluginSettings getRenderer
> SCHWERWIEGEND: (STANDALONE-ENV) Could not find series renderer impl for
> org.eclipse.birt.chart.examples.radar.model.type.impl.RadarS eriesImpl
> java.lang.NullPointerException
> at
> org.eclipse.birt.chart.render.BaseRenderer.instances(BaseRen derer.java:2307)
>
> at org.eclipse.birt.chart.factory.Generator.build(Generator.jav a:1060)
> at
> my.swt.live.viewer.SwtLiveChartViewer.paintControl(SwtLiveCh artViewer.java:349)
>
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:223)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
> at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:15 55)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4216 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4886 )
> at org.eclipse.swt.internal.win32.OS.UpdateWindow(Native Method)
> at org.eclipse.swt.widgets.Decorations.setVisible(Decorations.j ava:1406)
> at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1865)
> at org.eclipse.swt.widgets.Shell.open(Shell.java:1206)
> at my.swt.live.viewer.SwtLiveChartViewer.main(SwtLiveChartViewe r.java:113)
> org.eclipse.birt.chart.exception.ChartException
> at org.eclipse.birt.chart.factory.Generator.build(Generator.jav a:1076)
> at
> my.swt.live.viewer.SwtLiveChartViewer.paintControl(SwtLiveCh artViewer.java:349)
>
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:223)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
> at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:15 55)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4216 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4886 )
> at org.eclipse.swt.internal.win32.OS.UpdateWindow(Native Method)
> at org.eclipse.swt.widgets.Decorations.setVisible(Decorations.j ava:1406)
> at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1865)
> at org.eclipse.swt.widgets.Shell.open(Shell.java:1206)
> at my.swt.live.viewer.SwtLiveChartViewer.main(SwtLiveChartViewe r.java:113)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.birt.chart.render.BaseRenderer.instances(BaseRen derer.java:2307)
>
> at org.eclipse.birt.chart.factory.Generator.build(Generator.jav a:1060)
> ... 14 more
> Exception in thread "main" java.lang.NullPointerException
> at org.eclipse.birt.chart.factory.Generator.render(Generator.ja va:1233)
> at
> my.swt.live.viewer.SwtLiveChartViewer.paintControl(SwtLiveCh artViewer.java:393)
>
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:223)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
> at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:15 55)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4216 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4886 )
> at org.eclipse.swt.internal.win32.OS.UpdateWindow(Native Method)
> at org.eclipse.swt.widgets.Decorations.setVisible(Decorations.j ava:1406)
> at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1865)
> at org.eclipse.swt.widgets.Shell.open(Shell.java:1206)
> at my.swt.live.viewer.SwtLiveChartViewer.main(SwtLiveChartViewe r.java:113)
>
>
> I don't get that Radar Chart running. I found also other examples but
> nowhere is the Radar chart running beside the BIRTexample plugin for
> Eclipse. What I'm doing wrong?
|
|
|
|
Powered by
FUDForum. Page generated in 0.02855 seconds