Skip to main content



      Home
Home » Archived » BIRT » Problem with scripted datasets with BIRT 2.2
Problem with scripted datasets with BIRT 2.2 [message #250543] Tue, 31 July 2007 10:39 Go to next message
Eclipse UserFriend
Originally posted by: pascal4362.freenet.de

Until last week I used BIRT 2.1.2 with some scripted datasets to access
data from a JAVA object. This worked fine until I upgraded Eclipse 3.2.2
to 3.3
The new Version brougt BIRT 2.2, and now I can't get my scripted datasets
working. I get the following error (in the dataset preview and in the
"chart->select data" tab):


A BIRT exception occurred.
Plug-in Provider:Eclipse.org
Plug-in Name:BIRT Data Engine
Plug-in ID:org.eclipse.birt.data
Version:2.2.0.v200706221
Error Code:data.engine.BirtException
Error Message:A BIRT exception occurred: Error evaluating Javascript
expression. Script engine error: ReferenceError: "BirtReportFactory" is
not defined. (DataSet[SuccessDataset].__bm_open#3)
Script source: DataSet[SuccessDataset].__bm_open, line: 1, text:
__bm_open(). See next exception for more information.
Error evaluating Javascript expression. Script engine error:
ReferenceError: "BirtReportFactory" is not defined.
(DataSet[SuccessDataset].__bm_open#3)
Script source: DataSet[SuccessDataset].__bm_open, line: 1, text:
__bm_open()


My "BirtReportFactory" is in the same eclipse project as the report.
When I Import the package with
"importPackage(Packages.x.x.x.reporting);"
(not necessary with 2.1.2) in the open script of the dataset I get another
error:


A BIRT exception occurred.
Plug-in Provider:Eclipse.org
Plug-in Name:BIRT Data Engine
Plug-in ID:org.eclipse.birt.data
Version:2.2.0.v200706221
Error Code:data.engine.BirtException
Error Message:A BIRT exception occurred: Error evaluating Javascript
expression. Script engine error: Java class
"de.epoq.inbound.reporting.BirtReportFactory" has no public instance field
or method named "createReportTable". (DataSet[Data Set].__bm_open#4)
Script source: DataSet[Data Set].__bm_open, line: 1, text:
__bm_open(). See next exception for more information.
Error evaluating Javascript expression. Script engine error: Java class
"de.epoq.inbound.reporting.BirtReportFactory" has no public instance field
or method named "createReportTable". (DataSet[Data Set].__bm_open#4)
Script source: DataSet[Data Set].__bm_open, line: 1, text:
__bm_open()


But I'm sure I have the mentioned public method, because with 2.1.2 all
worked fine.
I hope someone might help me with my little(?) problem.
Re: Problem with scripted datasets with BIRT 2.2 [message #250617 is a reply to message #250543] Tue, 31 July 2007 15:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Can you try placing your jar in the scriptlib directory or the
web-inf/lib direcory of the viewer plugin?

Jason

pz wrote:
> Until last week I used BIRT 2.1.2 with some scripted datasets to access
> data from a JAVA object. This worked fine until I upgraded Eclipse 3.2.2
> to 3.3
> The new Version brougt BIRT 2.2, and now I can't get my scripted
> datasets working. I get the following error (in the dataset preview and
> in the "chart->select data" tab):
>
>
> A BIRT exception occurred.
> Plug-in Provider:Eclipse.org
> Plug-in Name:BIRT Data Engine
> Plug-in ID:org.eclipse.birt.data
> Version:2.2.0.v200706221
> Error Code:data.engine.BirtException
> Error Message:A BIRT exception occurred: Error evaluating Javascript
> expression. Script engine error: ReferenceError: "BirtReportFactory" is
> not defined. (DataSet[SuccessDataset].__bm_open#3)
> Script source: DataSet[SuccessDataset].__bm_open, line: 1, text:
> __bm_open(). See next exception for more information.
> Error evaluating Javascript expression. Script engine error:
> ReferenceError: "BirtReportFactory" is not defined.
> (DataSet[SuccessDataset].__bm_open#3)
> Script source: DataSet[SuccessDataset].__bm_open, line: 1, text:
> __bm_open()
>
>
> My "BirtReportFactory" is in the same eclipse project as the report.
> When I Import the package with "importPackage(Packages.x.x.x.reporting);"
> (not necessary with 2.1.2) in the open script of the dataset I get
> another error:
>
>
> A BIRT exception occurred.
> Plug-in Provider:Eclipse.org
> Plug-in Name:BIRT Data Engine
> Plug-in ID:org.eclipse.birt.data
> Version:2.2.0.v200706221
> Error Code:data.engine.BirtException
> Error Message:A BIRT exception occurred: Error evaluating Javascript
> expression. Script engine error: Java class
> "de.epoq.inbound.reporting.BirtReportFactory" has no public instance
> field or method named "createReportTable". (DataSet[Data Set].__bm_open#4)
> Script source: DataSet[Data Set].__bm_open, line: 1, text:
> __bm_open(). See next exception for more information.
> Error evaluating Javascript expression. Script engine error: Java class
> "de.epoq.inbound.reporting.BirtReportFactory" has no public instance
> field or method named "createReportTable". (DataSet[Data Set].__bm_open#4)
> Script source: DataSet[Data Set].__bm_open, line: 1, text:
> __bm_open()
>
>
> But I'm sure I have the mentioned public method, because with 2.1.2 all
> worked fine.
> I hope someone might help me with my little(?) problem.
>
Re: Problem with scripted datasets with BIRT 2.2 [message #250726 is a reply to message #250617] Wed, 01 August 2007 05:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pascal4362.freenet.de

Yes, I tried that. Doesn't change anything.
In my WepApplication the report works fine. It's just a problem of the
eclipse plugin. It's especially a problem when I try to create a chart,
because I can't add data to this chart.
Like recommended my report is in the same eclipse project like the class I
try to retrieve data from. Do I have to set some varibales (runpath or so)
anyway?
Re: Problem with scripted datasets with BIRT 2.2 [message #250749 is a reply to message #250726] Wed, 01 August 2007 10:33 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

If you add it to the webviewer plugin/lib or /scriptlib directory this
should work. Can you verify that the your classes do not require
additional classes that are not in the directories listed above?

Jason

pz wrote:
> Yes, I tried that. Doesn't change anything.
> In my WepApplication the report works fine. It's just a problem of the
> eclipse plugin. It's especially a problem when I try to create a chart,
> because I can't add data to this chart.
> Like recommended my report is in the same eclipse project like the class
> I try to retrieve data from. Do I have to set some varibales (runpath or
> so) anyway?
>
Previous Topic:joint data set with scripted and sql data source
Next Topic:only beautifying reports
Goto Forum:
  


Current Time: Mon May 12 12:29:19 EDT 2025

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

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

Back to the top