Community
Participate
Working Groups
Created attachment 77592 [details] Sample Report Build ID: I20070625-1500 Steps To Reproduce: 1.Create a Dataset from a scripted datasource that is a Java class. 2.Right click the data set -> Edit -> Preview Results 3. The following error is displayed 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: "BIRTTest" is not defined. (DataSet[Mode List].__bm_open#6) Script source: DataSet[Mode List].__bm_open, line: 1, text: __bm_open(). See next exception for more information. Error evaluating Javascript expression. Script engine error: ReferenceError: "BIRTTest" is not defined. (DataSet[Mode List].__bm_open#6) Script source: DataSet[Mode List].__bm_open, line: 1, text: __bm_open() More information: test class ========================================= import java.util.ArrayList; import java.util.List; public class BIRTTest { public List getModeList() { List list = new ArrayList(); list.add("Dev"); list.add("Test"); list.add("Live"); return list; } } ====================================== report xml attached
Created attachment 77595 [details] Jar file to be placed in WEB-INF/lib that contains Java class for report
Misclassifid - reassigning
Hi Kim, Could you please try to put the jar file under your application directory's "scriptlib" folder? It is under same level of Web-Inf folder. Thanks. Lin
Hi Lin, I already tried that and have done so again and can confirm that I still get the error. Cheers, Kim
Hi Kim, Sorry I've not notice that the preview you are used is data set editor preview. Actually we already have bug address this issue. So I will mark the bug as duplicated with that bug. Thanks. Lin *** This bug has been marked as a duplicate of bug 190500 ***