Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Invalid Javascript expression dataSetRow
abcefg
I am using Birt 2.5, Eclipse 3.2, Jboss4.2 and spring, jdk1.5
I can display birt report correctly when use "run as an application", but when I put code in a reportController, same rptdesign file, I got birt exception--
Invalid Javascript expression dataSetRow.
I tried to copy js.jar file from birt.war to Jboss -> lib, It doesn't work.
Find more posts tagged with
Comments
JasonW
Are you using open jdk or sun? Do you have js.jar anywhere else?
Jason
abcefg
Thanks for your reply!
I use open jdk 1.5;
I have lots of js.jar:
birt-runtime-2_5_0/WebViewerExample/WEB-INF/lib/js.jar 740k
jboss-4.2.3GA/sever/default/birt.war/WEB-INF/lib/js.jar 740k
jboss-4.2.3GA/sever/default/birt.war/WEB-INF/platform/plugins/org.mozilla.rhino_1.1.1v20090608/lib/js.jar 753kb
jboss-4.2.3.GAserverdefaultlibjs.jar 740k
eclipse-jee-galileo-win32eclipsepluginsorg.mozilla.rhino_1.7.1.v20090608lib/js.jar 753kb
MyWebProjectlibjs-1.6R2.jar 685kb
I tried to delete some js.jar, copy the same js.jar everywhere, but no luck.
JasonW
I believe this has to do with OpenJDK including a different version of js.jar in the jre/lib directory. You will either need to remove the jar or replace it with the version BIRT uses. See the following bug on icedtead<br />
<a class='bbc_url' href='
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=179'>Bug
179 - javascript script support through rhino should not be on bootclasspath</a><br />
<br />
Jason
abcefg
Thanks for your reply!
After changed to SUN jdk, it still has the same problem.
Latest entries on Slashdot. Generated with Eclipse BIRT.
title description dc:creator slash:department
Aug 26, 2009 3:57 PM
The following items have errors:
Table (id = 6):
+ A BIRT exception occurred: Invalid javascript expression: dataSetRow["title"]. See next exception for more information.
Invalid javascript expression: dataSetRow["title"]
data.engine.BirtException ( 1 time(s) )
detail : org.eclipse.birt.report.engine.api.EngineException: A BIRT exception occurred: Invalid javascript expression: dataSetRow["title"]. See next exception for more information.
Invalid javascript expression: dataSetRow["title"]
at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1166)
at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1130)
at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:96)
at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:62)
at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:43)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:34)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:64)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:90)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:99)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:167)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:75)
at com.pplus.trans.webapp.controller.ReportController.handleRequestInternal(ReportController.java:101)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
JasonW
Are you sure your JBoss instance is using the Sun JDK? Any chance as a test can you download tomcat and install a fresh copy of the birt viewer to see if it works?
Jason
abcefg
Remeber I have js-1.6R2.jar in myProject's lib folder?
after I deleted it from myproject..lib and
D:Workspacejboss-4.2.3.GAserverdefaultdeploymyProject.warWEB-INFlib
It works!!!(in my case
))
js-1.6R2.jar conflicts with birt's js.jar !!
Thanks Jason!
JasonW
Glad to know its working.
mrvsabari
<blockquote class='ipsBlockquote' data-author="'JasonW'" data-cid="53028" data-time="1251330159" data-date="26 August 2009 - 04:42 PM"><p>
Glad to know its working.<br /></p></blockquote>
<br />
Hi,<br />
<br />
I have tried your suggestion but it does now worked for me. can some please help me on this ?<br />
<br />
FYI: i have attached my rpt file please take a look on it<br />
<br />
Thanks & Regards,<br />
Sabarish Vajravel
mrvsabari
Hi,
I have tried your suggestion but it does now worked for me. can some please help me on this ?
FYI: i have attached my rpt file please take a look on it
Thanks & Regards,
Sabarish Vajravel