Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Invalid javascript expression: dataSetRow and/or row(Getting this exception when trying to render a report...)
Invalid javascript expression: dataSetRow and/or row [message #1485375] Mon, 24 November 2014 07:26 Go to next message
Kenneth Ah Young is currently offline Kenneth Ah YoungFriend
Messages: 3
Registered: November 2014
Junior Member
I am using Eclipse's BIRT to render a report through Java using org.eclipse.birt.runtime version 4.4.0.

When attempting to render the report, BIRT is returning:

org.eclipse.birt.data.engine.core.DataException: Invalid Javascript expression: dataSetRow["name"].

(and similar errors for each dataSetRow and row) in .getErrors() of the IRunAndRenderTask.

The template works fine using the BIRT designer and rendering it through that application, but it breaks when trying to render using Java.

I've done extensive searching throughout the web, and many people have suggested the presence of conflicting js.jar present in the application. This is not the case in the application I'm working on. The only javascript/rhino instances are those being imported through BIRT.

I've also attempted the following solutions:

- Excluding the bundled javascript and importing latest Rhino/javascript from Mozilla
- Updating BIRT to 4.4.1 and creating a report template with the latest BIRT designer
- Degrading the report template to only show one value returned by the DB (in this case 'name' of a dealership)

None of the above methods have worked.

This project is using Maven, and is running in Tomcat 7 - using Java 6.

More details can be provided if requested.
Re: Invalid javascript expres sion: dataSetRow and/or row [message #1486780 is a reply to message #1485375] Tue, 25 November 2014 09:33 Go to previous messageGo to next message
Colin Sutton is currently offline Colin SuttonFriend
Messages: 121
Registered: July 2009
Senior Member
Kenneth Ah Young <forums-noreply@xxxxxxxx> wrote:
> I am using Eclipse's BIRT to render a report through Java using
> org.eclipse.birt.runtime version 4.4.0.
>
> When attempting to render the report, BIRT is returning:
>
> org.eclipse.birt.data.engine.core.DataException: Invalid Javascript
> expression: dataSetRow["name"].
>
> (and similar errors for each dataSetRow and row) in .getErrors() of the IRunAndRenderTask.
>
> The template works fine using the BIRT designer and rendering it through
> that application, but it breaks when trying to render using Java.
>
> I've done extensive searching throughout the web, and many people have
> suggested the presence of conflicting js.jar present in the application.
> This is not the case in the application I'm working on. The only
> javascript/rhino instances are those being imported through BIRT.
>
> I've also attempted the following solutions:
>
> - Excluding the bundled javascript and importing latest Rhino/javascript from Mozilla
> - Updating BIRT to 4.4.1 and creating a report template with the latest BIRT designer
> - Degrading the report template to only show one value returned by the DB
> (in this case 'name' of a dealership)
>
> None of the above methods have worked.
>
> This project is using Maven, and is running in Tomcat 7 - using Java 6.
>
> More details can be provided if requested.

I saw the same thing for the first time today, after a few years of using
BIRT. The report worked just fine in eclipse, but complained about
'row["ATT"]' when run under Java in the runtime. I increased the maximum
memory allocation with -Xmx1024m and the problem went away.
--
Colin Sutton
Re: Invalid javascript expres sion: dataSetRow and/or row [message #1561128 is a reply to message #1486780] Tue, 13 January 2015 00:56 Go to previous message
Kenneth Ah Young is currently offline Kenneth Ah YoungFriend
Messages: 3
Registered: November 2014
Junior Member
Found the solution to this.

We use Maven and had a conflicting package (Apache.FOP).

Took it out of the pom.xml and BIRT started working fine.
Previous Topic:Impossible to preview any report from Birt Designer
Next Topic:rptdesign not waiting until all datasets have been retreived
Goto Forum:
  


Current Time: Sun Jul 14 05:55:01 GMT 2024

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

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

Back to the top