Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse Reports (BIRT) Chart FAILED_TO_CREATE_INSTANCE(Error when using Eclipse Reports)
Eclipse Reports (BIRT) Chart FAILED_TO_CREATE_INSTANCE [message #1818860] Mon, 30 December 2019 19:33 Go to next message
Nils Mork is currently offline Nils MorkFriend
Messages: 3
Registered: December 2019
Junior Member
I have recently installed Eclipse Reports December 2018 version, using OPENJDK 1.8.0.222 runtime. I can generate tabular reports with no problems. However, I am getting an error when trying to create a chart report.

The example is attached. The report uses a flat file data source.

When I run debug, I get the below error:
----------------------------------------------------------------------------
Dec 30, 2019 11:12:10 AM org.eclipse.birt.report.debug.internal.core.vm.ReportVMServer start
INFO: [Server] client accepted
Dec 30, 2019 11:12:10 AM org.eclipse.birt.report.debug.internal.core.vm.ReportVMServer$1 run
INFO: [Server] enter request dispatching
Dec 30, 2019 11:12:10 AM org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher configEngine
INFO: User class path received:
Dec 30, 2019 11:12:11 AM org.eclipse.birt.report.model.metadata.ExtensionLoader handleError
SEVERE: Message:The class [org.eclipse.birt.chart.reportitem.ChartReportItemFactoryImpl] can not be instantiated. Error code:FAILED_TO_CREATE_INSTANCE
Dec 30, 2019 11:12:11 AM org.eclipse.birt.report.model.metadata.ExtensionLoader handleError
SEVERE: Message:The class [org.eclipse.birt.chart.reportitem.ChartScriptableClassInfo] can not be instantiated. Error code:FAILED_TO_CREATE_INSTANCE
Dec 30, 2019 11:12:12 AM org.eclipse.birt.report.engine.extension.internal.ExtensionManager createObject
WARNING: Can not instantiate class org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl with property class.
Dec 30, 2019 11:12:12 AM org.eclipse.birt.report.engine.extension.internal.ExtensionManager createObject
WARNING: Can not instantiate class org.eclipse.birt.chart.reportitem.ChartReportItemGenerationProxy with property class.
Dec 30, 2019 11:12:12 AM org.eclipse.birt.report.engine.extension.internal.ExtensionManager createReportItemExecutor
WARNING: Create Report Item Executor fail, Config not exist class: reportItem
>>>> Compiled Source: unnamed script
row["Hour"].substring(9,18)
>>>> end compilation.
>>>> Compiled Source: unnamed script
row["Hour"].substring(0,4)+"-"+row["Hour"].substring(4,6)+"-"+row["Hour"].substring(6,8)
>>>> end compilation.
Dec 30, 2019 11:12:12 AM org.eclipse.birt.report.engine.extension.internal.ExtensionManager createObject
WARNING: Can not instantiate class org.eclipse.birt.chart.reportitem.ChartReportItemPresentationProxy with property class.
Dec 30, 2019 11:12:12 AM org.eclipse.birt.report.engine.api.impl.EngineTask handleFatalExceptions
SEVERE: An error happened while running the report. Cause:
java.lang.NullPointerException
at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.processExtendedContent(LocalizedContentVisitor.java:1006)
at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.localizeForeign(LocalizedContentVisitor.java:602)
at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.localize(LocalizedContentVisitor.java:176)
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:37)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:65)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:92)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:100)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:181)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)
at org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher.createReport(ReportLauncher.java:620)
at org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher.renderReport(ReportLauncher.java:566)
at org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher.run(ReportLauncher.java:480)
at org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher.main(ReportLauncher.java:124)
at org.eclipse.birt.report.debug.internal.core.ReportDebugger.start(ReportDebugger.java:39)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
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:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
at org.eclipse.equinox.launcher.Main.main(Main.java:1474)

Dec 30, 2019 11:12:12 AM org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher renderReport
SEVERE: Engine exception
org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
at org.eclipse.birt.report.engine.api.impl.EngineTask.handleFatalExceptions(EngineTask.java:2379)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:191)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)
at org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher.createReport(ReportLauncher.java:620)
at org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher.renderReport(ReportLauncher.java:566)
at org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher.run(ReportLauncher.java:480)
at org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher.main(ReportLauncher.java:124)
at org.eclipse.birt.report.debug.internal.core.ReportDebugger.start(ReportDebugger.java:39)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
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:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
at org.eclipse.equinox.launcher.Main.main(Main.java:1474)
Caused by: java.lang.NullPointerException
at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.processExtendedContent(LocalizedContentVisitor.java:1006)
at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.localizeForeign(LocalizedContentVisitor.java:602)
at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.localize(LocalizedContentVisitor.java:176)
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:37)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:65)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:92)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:100)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:181)
... 19 more

Dec 30, 2019 11:12:12 AM org.eclipse.birt.report.debug.internal.core.vm.ReportVMServer$1 run
WARNING: [Server] client disconnected
Re: Eclipse Reports (BIRT) Chart FAILED_TO_CREATE_INSTANCE [message #1818864 is a reply to message #1818860] Tue, 31 December 2019 05:32 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31159
Registered: July 2009
Senior Member
It's best to ask on the BIRT forum:

https://www.eclipse.org/forums/index.php?t=thread&frm_id=2

Or open a bug report:

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=BIRT

There are many open though, so I'm not hopeful you'll get much response unless you contribute the fix.

https://bugs.eclipse.org/bugs/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&classification=Technology&order=bug_id%20DESC&product=BIRT&query_format=advanced

Re: Eclipse Reports (BIRT) Chart FAILED_TO_CREATE_INSTANCE [message #1818879 is a reply to message #1818864] Tue, 31 December 2019 14:24 Go to previous messageGo to next message
Nils Mork is currently offline Nils MorkFriend
Messages: 3
Registered: December 2019
Junior Member
Thanks for the reply. I think it might be something missing from the Eclipse IDE setup--since I only plan to use the IDE for BIRT & I only installed Eclipse Reporting, are there steps missing from the environment setup?

OS: Windows 10
CLASSPATH: not set (seemed like it was working without one--tables, crosstabs, etc., are generated)

Workspace directory is not the same as default which shows in the IDE startup dialog, also, I seem to always need to open the debug perspective to set output directories for report debugging (not saving the information?) And no default viewer(s) seem to launch and no apparent way to set all of these things up.
Re: Eclipse Reports (BIRT) Chart FAILED_TO_CREATE_INSTANCE [message #1818880 is a reply to message #1818879] Tue, 31 December 2019 14:40 Go to previous messageGo to next message
Nils Mork is currently offline Nils MorkFriend
Messages: 3
Registered: December 2019
Junior Member
Strangely. I found a posting on Stack overflow for a COMPLETELY DIFFERENT issue which recommended running

eclipse -clean

to solve the problem. I tried that to see if this solved the problem, and suddenly the chart appears! No more errors (at least for today.) Mysterious-er and mysterious-er. Any detailed information on what the -clean option does, specifically?
Re: Eclipse Reports (BIRT) Chart FAILED_TO_CREATE_INSTANCE [message #1818898 is a reply to message #1818880] Wed, 01 January 2020 08:31 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31159
Registered: July 2009
Senior Member
It does this:

https://help.eclipse.org/2019-09/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html&anchor=osgiclean

So it essentially does a bunch of work to reinitialize all the dependencies between all the plug-ins. Normally that happens automatically the first time you run or after installing new software (or updating) and restarting...
Previous Topic:Saving export filename per project?
Next Topic:Mosquitto
Goto Forum:
  


Current Time: Sun May 31 08:17:04 GMT 2020

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

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

Back to the top