Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Radar Chart doesn't work in Standalone Program
Radar Chart doesn't work in Standalone Program [message #644476] Sat, 11 December 2010 20:38 Go to next message
Ronny is currently offline RonnyFriend
Messages: 2
Registered: December 2010
Junior Member
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.RadarSeriesImpl
java.lang.NullPointerException
	at org.eclipse.birt.chart.render.BaseRenderer.instances(BaseRenderer.java:2307)
	at org.eclipse.birt.chart.factory.Generator.build(Generator.java:1060)
	at my.swt.live.viewer.SwtLiveChartViewer.paintControl(SwtLiveChartViewer.java:349)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.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:1555)
	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.java: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(SwtLiveChartViewer.java:113)
org.eclipse.birt.chart.exception.ChartException
	at org.eclipse.birt.chart.factory.Generator.build(Generator.java:1076)
	at my.swt.live.viewer.SwtLiveChartViewer.paintControl(SwtLiveChartViewer.java:349)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.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:1555)
	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.java: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(SwtLiveChartViewer.java:113)
Caused by: java.lang.NullPointerException
	at org.eclipse.birt.chart.render.BaseRenderer.instances(BaseRenderer.java:2307)
	at org.eclipse.birt.chart.factory.Generator.build(Generator.java:1060)
	... 14 more
Exception in thread "main" java.lang.NullPointerException
	at org.eclipse.birt.chart.factory.Generator.render(Generator.java:1233)
	at my.swt.live.viewer.SwtLiveChartViewer.paintControl(SwtLiveChartViewer.java:393)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.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:1555)
	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.java: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(SwtLiveChartViewer.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?
Re: Radar Chart doesn't work in Standalone Program [message #644670 is a reply to message #644476] Mon, 13 December 2010 17:26 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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?
Re: Radar Chart doesn't work in Standalone Program [message #644689 is a reply to message #644670] Mon, 13 December 2010 19:20 Go to previous message
Ronny is currently offline RonnyFriend
Messages: 2
Registered: December 2010
Junior Member
Hi Jason

I created a Bug Report the Number is 332465.

Ronny
Previous Topic:Scripted dataset problem
Next Topic:Filling of all for default values
Goto Forum:
  


Current Time: Thu Apr 18 14:03:23 GMT 2024

Powered by FUDForum. Page generated in 0.04035 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top