|
Re: Cant create data engine. [message #638039 is a reply to message #638037] |
Tue, 09 November 2010 17:45 |
|
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 #638054 is a reply to message #638037] |
Tue, 09 November 2010 18:51 |
James Mising name 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 #638062 is a reply to message #638058] |
Tue, 09 November 2010 19:44 |
|
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 #638072 is a reply to message #638065] |
Tue, 09 November 2010 20:29 |
|
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 #640651 is a reply to message #640503] |
Mon, 22 November 2010 16:53 |
|
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 #640673 is a reply to message #640664] |
Mon, 22 November 2010 18:39 |
|
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 #642262 is a reply to message #642237] |
Tue, 30 November 2010 16:01 |
|
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 #642280 is a reply to message #642273] |
Tue, 30 November 2010 16:36 |
|
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!
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06069 seconds