Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Cant create data engine. (installed all-in-one birt eclipse)
Cant create data engine. [message #638037] Tue, 09 November 2010 17:36 Go to next message
James Mising name is currently offline James Mising nameFriend
Messages: 26
Registered: November 2010
Junior Member
I just installed the latest birt all in one 2.6 and have it up and running smooth. However, I am trying to build a chart and when I insert a chart into the workspace, it gives me this error:

Cant create data engine.

org.eclipse.birt.chart.exception.ChartException at:
org.eclipse.birt.chart.reportitem.ui.ReportDataServiceProvid er.initialize(ReportDataServiceProvider.java:279)
org.eclipse.birt.chart.ui.swt.wizard.preview.ChartLivePrevie wThread.initDataEngine(ChartLivePreviewThread.java:237)
org.eclipse.birt.chart.ui.swt.wizard.preview.ChartLivePrevie wThread.run(ChartLivePreviewThread.java:153)

Caused By:Loader can not resolve Rhino classes
org.mozilla.javascript.Context.setApplicationClassLoader(Con text.java:2306)
org.eclipse.birt.report.engine.javascript.JavascriptEngine.s etApplicationClassLoader(JavascriptEngine.java:325)
org.eclipse.birt.core.script.ScriptContext.createEngine(Scri ptContext.java:244)
org.eclipse.birt.core.script.ScriptContext.getScriptEngine(S criptContext.java:230)
org.eclipse.birt.report.engine.adapter.ModelDteApiAdapter.<init >(ModelDteApiAdapter.java:177)
org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.<init >(AbstractDataEngine.java:107)
org.eclipse.birt.report.engine.data.dte.DteDataEngine.<init >(DteDataEngine.java:85)
org.eclipse.birt.report.engine.data.DataEngineFactory.create DataEngine(DataEngineFactory.java:100)
org.eclipse.birt.report.engine.executor.ExecutionContext.ope nDataEngine(ExecutionContext.java:837)
org.eclipse.birt.report.engine.executor.ExecutionContext.get DataEngine(ExecutionContext.java:854)
org.eclipse.birt.report.engine.api.impl.EngineTask.getDataSe ssion(EngineTask.java:525)
org.eclipse.birt.chart.reportitem.ui.ReportDataServiceProvid er.initialize(ReportDataServiceProvider.java:257)
org.eclipse.birt.chart.ui.swt.wizard.preview.ChartLivePrevie wThread.initDataEngine(ChartLivePreviewThread.java:237)
org.eclipse.birt.chart.ui.swt.wizard.preview.ChartLivePrevie wThread.run(ChartLivePreviewThread.java:153)



I have re-installed in several times but no luck, I really need this chart tool .

Thanks
Re: Cant create data engine. [message #638039 is a reply to message #638037] Tue, 09 November 2010 17:45 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

James,

Can you give some more detail? Are you installing it in a new location
or overwriting an existing location. Did you use the 2.6. or the 2.6.1
allinone download?

Jason

On 11/9/2010 12:36 PM, James wrote:
> I just installed the latest birt all in one 2.6 and have it up and
> running smooth. However, I am trying to build a chart and when I insert
> a chart into the workspace, it gives me this error:
>
> Cant create data engine.
>
> org.eclipse.birt.chart.exception.ChartException at:
> org.eclipse.birt.chart.reportitem.ui.ReportDataServiceProvid
> er.initialize(ReportDataServiceProvider.java:279)
> org.eclipse.birt.chart.ui.swt.wizard.preview.ChartLivePrevie
> wThread.initDataEngine(ChartLivePreviewThread.java:237)
> org.eclipse.birt.chart.ui.swt.wizard.preview.ChartLivePrevie
> wThread.run(ChartLivePreviewThread.java:153)
>
> Caused By:Loader can not resolve Rhino classes
> org.mozilla.javascript.Context.setApplicationClassLoader(Con
> text.java:2306)
> org.eclipse.birt.report.engine.javascript.JavascriptEngine.s
> etApplicationClassLoader(JavascriptEngine.java:325)
> org.eclipse.birt.core.script.ScriptContext.createEngine(Scri
> ptContext.java:244)
> org.eclipse.birt.core.script.ScriptContext.getScriptEngine(S
> criptContext.java:230)
> org.eclipse.birt.report.engine.adapter.ModelDteApiAdapter.<init
> >(ModelDteApiAdapter.java:177)
> org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.<init
> >(AbstractDataEngine.java:107)
> org.eclipse.birt.report.engine.data.dte.DteDataEngine.<init
> >(DteDataEngine.java:85)
> org.eclipse.birt.report.engine.data.DataEngineFactory.create
> DataEngine(DataEngineFactory.java:100)
> org.eclipse.birt.report.engine.executor.ExecutionContext.ope
> nDataEngine(ExecutionContext.java:837)
> org.eclipse.birt.report.engine.executor.ExecutionContext.get
> DataEngine(ExecutionContext.java:854)
> org.eclipse.birt.report.engine.api.impl.EngineTask.getDataSe
> ssion(EngineTask.java:525)
> org.eclipse.birt.chart.reportitem.ui.ReportDataServiceProvid
> er.initialize(ReportDataServiceProvider.java:257)
> org.eclipse.birt.chart.ui.swt.wizard.preview.ChartLivePrevie
> wThread.initDataEngine(ChartLivePreviewThread.java:237)
> org.eclipse.birt.chart.ui.swt.wizard.preview.ChartLivePrevie
> wThread.run(ChartLivePreviewThread.java:153)
>
>
>
> I have re-installed in several times but no luck, I really need this
> chart tool .
>
> Thanks
Re: Cant create data engine. [message #638040 is a reply to message #638039] Tue, 09 November 2010 17:50 Go to previous messageGo to next message
James Mising name is currently offline James Mising nameFriend
Messages: 26
Registered: November 2010
Junior Member
Hi Jason,

thanks for getting back so quick. I downloaded 2.6.1 all-in-one about an hour ago from http://www.eclipse.org/birt/phoenix/ in a new location (new folder on my windows desktop). I also have another older version installed elsewhere on my computer.

[Updated on: Tue, 09 November 2010 17:54]

Report message to a moderator

Re: Cant create data engine. [message #638046 is a reply to message #638040] Tue, 09 November 2010 17:51 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

What Java Vm are you using?
Can you try unzipping in a directory off the c drive eg
c:/birt/2.6.1allinone

Jason

On 11/9/2010 12:50 PM, James wrote:
> Hi Jason,
>
> thanks for getting back so quick. I downloaded 2.6.1 about an hour ago
> from http://www.eclipse.org/birt/phoenix/ in a new location (new folder
> on my windows desktop)
Re: Cant create data engine. [message #638054 is a reply to message #638037] Tue, 09 November 2010 18:51 Go to previous messageGo to next message
James Mising name is currently offline James Mising nameFriend
Messages: 26
Registered: November 2010
Junior Member
Jason,

I extracted in a folder from C drive like you said. I tried something too, I created a new report project with a blank report file and tried it, and it worked, I was able to create a chart without that issue. However when I check out our project code from SVN is it then when I am noticing this issue. It never had this problem with older versions of BERT (2.4 and 2.5). Me and another guy are using different older versions of BERT to build reports and both work fine just have issues opening each others reports to edit them, so that is why we are trying to just upgrade to the latest and be compatible. Might it have to do with the location of where I am creating the report file? Our current reports live within a Package with other java files.

One more thing I tried and noticed too was that it worked when I tried to add a chart to a report file in a new report project, and didnt work when I tried to add a chart to a report file within our code checked out from SVN.

Thanks again for your help.

[Updated on: Tue, 09 November 2010 19:14]

Report message to a moderator

Re: Cant create data engine. [message #638058 is a reply to message #638054] Tue, 09 November 2010 19:21 Go to previous messageGo to next message
James Mising name is currently offline James Mising nameFriend
Messages: 26
Registered: November 2010
Junior Member
I think I might have figured it out (or I got it to work). I created a report project (outside of our svn code) and copied our report files in there, I was the able to add and mess with charts. Let me know if you think that makes sense.

Thanks again for your help!
Re: Cant create data engine. [message #638062 is a reply to message #638058] Tue, 09 November 2010 19:44 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

James,

I am not exactly sure what you mean. When you create report inside your
project it fails?

Jason

On 11/9/2010 2:21 PM, James wrote:
> I think I might have figured it out (or I got it to work). I created a
> report project (outside of our svn code) and copied our report files in
> there, I was the able to add and mess with charts. Let me know if you
> think that makes sense.
>
> Thanks again for your help!
Re: Cant create data engine. [message #638065 is a reply to message #638062] Tue, 09 November 2010 19:53 Go to previous messageGo to next message
James Mising name is currently offline James Mising nameFriend
Messages: 26
Registered: November 2010
Junior Member
Please excuse my poor java/eclipse terminology. In eclipse, you can create different types of projects (Report Projects, Java projects, JPA projects , etc). Our project in eclipse is within a Java project which contains all of our code (including our report files). When trying to create or edit BIRT charts while within that project, it gives me the error "no data engine can be found" when I create a new report file or copy an existing one over within a separate "report project" it works fine. Does that make sense?
Re: Cant create data engine. [message #638072 is a reply to message #638065] Tue, 09 November 2010 20:29 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

James

Understood. Does you project have any dependencies set that reference
birt projects? Also does your report call any java classes?

Jason

On 11/9/2010 2:53 PM, James wrote:
> Please excuse my poor java/eclipse terminology. In eclipse, you can
> create different types of projects (Report Projects, Java projects, JPA
> projects , etc). Our project in eclipse is within a Java project which
> contains all of our code (including our report files). When trying to
> create or edit BIRT charts while within that project, it gives me the
> error "no data engine can be found" when I create a new report file or
> copy an existing one over within a separate "report project" it works
> fine. Does that make sense?
Re: Cant create data engine. [message #638074 is a reply to message #638072] Tue, 09 November 2010 20:40 Go to previous messageGo to next message
James Mising name is currently offline James Mising nameFriend
Messages: 26
Registered: November 2010
Junior Member
Jason,

I don't know if there are dependencies set that reference birt projects, I will look though. My reports don't call java classes. Thanks again for your help! Razz
Re: Cant create data engine. [message #639888 is a reply to message #638074] Thu, 18 November 2010 09:39 Go to previous messageGo to next message
yymer  is currently offline yymer Friend
Messages: 2
Registered: November 2010
Junior Member
I had the same problem.

The problem for me was that my java-project contained old birt-libraries.
Replacing them with the new ones solved it.

You might want to inform the people responsible for the java-project that
you will be using an updated version of birt, and that they might have to do the same.

Have a nice day!
Re: Cant create data engine. [message #640503 is a reply to message #638037] Mon, 22 November 2010 11:35 Go to previous messageGo to next message
Lionel is currently offline LionelFriend
Messages: 31
Registered: July 2009
Member
James avait énoncé :
> Cant create data engine.
> Caused By:Loader can not resolve Rhino classes

Hello,

I have the same problem.
I have installed the latest helios release and downloaded the lastest
report engine release (2.6.1).
When I copy the jars of the report engine inside my tomcat/lib's
folder, eclipse crashes this error when I edit a chart.
If I remove the jars, everything works, but of course once deployed I
can't generate charts and my project doesn't compile anymore.

Is there an incompatibility between eclipse's jars and report engine's
jars ?
Which report engine should I use ?
thanks for your help.
Re: Cant create data engine. [message #640651 is a reply to message #640503] Mon, 22 November 2010 16:53 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you give some more detail on how you are using the engine?
If you are using BIRT in an RCP application there is no need to download
the runtime. If you are deploying BIRT to an app server you will need
the runtime.

Jason


On 11/22/2010 6:35 AM, Lionel wrote:
> James avait énoncé :
>> Cant create data engine.
>> Caused By:Loader can not resolve Rhino classes
>
> Hello,
>
> I have the same problem.
> I have installed the latest helios release and downloaded the lastest
> report engine release (2.6.1).
> When I copy the jars of the report engine inside my tomcat/lib's folder,
> eclipse crashes this error when I edit a chart.
> If I remove the jars, everything works, but of course once deployed I
> can't generate charts and my project doesn't compile anymore.
>
> Is there an incompatibility between eclipse's jars and report engine's
> jars ?
> Which report engine should I use ?
> thanks for your help.
>
>
Re: Cant create data engine. [message #640664 is a reply to message #640651] Mon, 22 November 2010 17:56 Go to previous messageGo to next message
Lionel is currently offline LionelFriend
Messages: 31
Registered: July 2009
Member
Jason Weathersby a formulé ce lundi :
> Can you give some more detail on how you are using the engine?
> If you are using BIRT in an RCP application there is no need to download the
> runtime. If you are deploying BIRT to an app server you will need the
> runtime.

Hello Jason,

I run the engine inside a webapplication which runs on tomcat.
I include the report engine libs inside tomcat/lib folder because I
need them to start the engine (using BirtEngine.java as in the
documentation).
As they are in tomcat, my webproject see them in the build path, they
seem to override eclipse's jars.
Re: Cant create data engine. [message #640673 is a reply to message #640664] Mon, 22 November 2010 18:39 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Understood. Can you try to leave all the libs and create a separate
report project in the same workspace to create and modify your reports.

Jason

On 11/22/2010 12:56 PM, Lionel wrote:
> Jason Weathersby a formulé ce lundi :
>> Can you give some more detail on how you are using the engine?
>> If you are using BIRT in an RCP application there is no need to
>> download the runtime. If you are deploying BIRT to an app server you
>> will need the runtime.
>
> Hello Jason,
>
> I run the engine inside a webapplication which runs on tomcat.
> I include the report engine libs inside tomcat/lib folder because I need
> them to start the engine (using BirtEngine.java as in the documentation).
> As they are in tomcat, my webproject see them in the build path, they
> seem to override eclipse's jars.
>
>
Re: Cant create data engine. [message #642237 is a reply to message #640673] Tue, 30 November 2010 13:51 Go to previous messageGo to next message
Lionel is currently offline LionelFriend
Messages: 31
Registered: July 2009
Member
Jason Weathersby a exposé le 22/11/2010 :
> Understood. Can you try to leave all the libs and create a separate report
> project in the same workspace to create and modify your reports.

This won't work, I need to run my reports from my application.
I can't use the preview because I use scripted dataset filled with
POJOs loaded by my application (writing complex SQL statements with
dynamic criterions/joins inside BIRT is not manageable).
I have to edit the reports inside my webpp project.

Is there some jars I could overwrite in eclipse plugins folder to make
it work ?
Re: Cant create data engine. [message #642262 is a reply to message #642237] Tue, 30 November 2010 16:01 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Lionel,

It would be good if you could log a bug for this.
If you create a separate report project you should be able to set its
classpath to the jars in your Java project in the preferences.

Jason

On 11/30/2010 8:51 AM, Lionel wrote:
> Jason Weathersby a exposé le 22/11/2010 :
>> Understood. Can you try to leave all the libs and create a separate
>> report project in the same workspace to create and modify your reports.
>
> This won't work, I need to run my reports from my application.
> I can't use the preview because I use scripted dataset filled with POJOs
> loaded by my application (writing complex SQL statements with dynamic
> criterions/joins inside BIRT is not manageable).
> I have to edit the reports inside my webpp project.
>
> Is there some jars I could overwrite in eclipse plugins folder to make
> it work ?
>
>
Re: Cant create data engine. [message #642273 is a reply to message #638037] Tue, 30 November 2010 16:25 Go to previous messageGo to next message
Loebe is currently offline LoebeFriend
Messages: 2
Registered: November 2010
Junior Member
Exactly the same problem here. As soon as i include the BIRT runtime jars to the webapp lib directory, the same exception appears on inserting a new chart to a report. I tried a lot of constelations of build path. But no luck so far.
I think creating a new report project would be a possible workaround. But its not that pretty...

Hope for a fix or a hint soon. I'll post back if i could figure it out by myself.

Best regards!
Re: Cant create data engine. [message #642280 is a reply to message #642273] Tue, 30 November 2010 16:36 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

I do not think there has been a bug logged for this yet.

Jason

On 11/30/2010 11:25 AM, loebe0@gmail.com wrote:
> Exactly the same problem here. As soon as i include the BIRT runtime
> jars to the webapp lib directory, the same exception appears on
> inserting a new chart to a report. I tried a lot of constelations of
> build path. But no luck so far. I think creating a new report project
> would be a possible workaround. But its not that pretty...
>
> Hope for a fix or a hint soon. I'll post back if i could figure it out
> by myself.
>
> Best regards!
Re: Cant create data engine. [message #642394 is a reply to message #642280] Wed, 01 December 2010 07:53 Go to previous messageGo to next message
Loebe is currently offline LoebeFriend
Messages: 2
Registered: November 2010
Junior Member
Quote:
I do not think there has been a bug logged for this yet.
done.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=331504

[Updated on: Wed, 01 December 2010 07:57]

Report message to a moderator

Re: Cant create data engine. [message #642569 is a reply to message #642394] Wed, 01 December 2010 19:18 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Thanks. Can you post the bug number?

Jason

On 12/1/2010 2:53 AM, loebe0@gmail.com wrote:
> Quote:
>> I do not think there has been a bug logged for this yet.
> done.
Re: Cant create data engine. [message #642584 is a reply to message #642394] Wed, 01 December 2010 21:00 Go to previous messageGo to next message
yymer  is currently offline yymer Friend
Messages: 2
Registered: November 2010
Junior Member
Loebe wrote on Wed, 01 December 2010 02:53
Quote:
I do not think there has been a bug logged for this yet.
done.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=331504 <------- NUMBER

Re: Cant create data engine. [message #727174 is a reply to message #638037] Tue, 20 September 2011 15:05 Go to previous message
Kees Pieters is currently offline Kees PietersFriend
Messages: 24
Registered: July 2009
Junior Member
I had this problem myself, and the reason was that I had not added all the birt reporting plugins. Apparently a number of plugins add functionality through the extension mechanism, and so when you do not add these plugins, some tasks may fail.
In my particular case, the engine needed the javascript scripting plugin.
Previous Topic:Need help with XML Data source parametrized report
Next Topic:Can a BIRT report generated from within JBOSS be sent as email
Goto Forum:
  


Current Time: Fri Nov 28 18:31:14 GMT 2014

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

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