Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324864

Summary: Exception java.lang.NoSuchMethodError when executing enterContext in method initFunctions of org.eclipse.birt.report.model.simpleapi.ReportDesign
Product: z_Archived Reporter: dmtran <dmtran>
Component: BIRTAssignee: Birt-Report-inbox <Birt-Report-inbox>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: major    
Priority: P3 CC: bluesoldier
Version: 2.6.0   
Target Milestone: 3.7.0   
Hardware: Other   
OS: other   
Whiteboard: Obsolete

Description dmtran CLA 2010-09-09 11:57:57 EDT
Build Identifier: v20100609-1613

The program works well in Windows with JDK 1.6.0_20
The program has an exception in HP-UX 11.23 with JDK 1.6.0.02 and Birt Engine 2.6
When executing the program line:
    IDataSource dataSource = runnable.getDesignInstance().getDataSource("DS");
The exception is produced with stack trace:
Exception in thread "main" java.lang.NoSuchMethodError: org.mozilla.javascript.ContextFactory.enterContext()Lorg/mozilla/javascript/Context;
        at org.eclipse.birt.report.model.simpleapi.ReportDesign.initFunctions(ReportDesign.java:370)
        at org.eclipse.birt.report.model.simpleapi.ReportDesign.<init>(ReportDesign.java:81)
        at org.eclipse.birt.report.model.simpleapi.ElementUtil.getElement(ElementUtil.java:59)
        at org.eclipse.birt.report.model.api.impl.SimpleElementFactory.getElement(SimpleElementFactory.java:279)
        at org.eclipse.birt.report.engine.script.internal.element.DesignElement.<init>(DesignElement.java:30)
        at org.eclipse.birt.report.engine.script.internal.element.ReportDesign.<init>(ReportDesign.java:59)
        at org.eclipse.birt.report.engine.api.impl.ReportRunnable.getDesignInstance(ReportRunnable.java:125)
        at com.axway.reporttool.service.ToolService.ReportFile(ToolService.java:738)
        at com.axway.reporttool.main.ReportTool.start(ReportTool.java:107)
        at com.axway.reporttool.main.ReportTool.main(ReportTool.java:26)


Reproducible: Always

Steps to Reproduce:
1.After opening the ReportDesign with the line:
IReportRunnable runnable = engine.openReportDesign(designFileName);
2.Getting the DataSource has the exception:
IDataSource dataSource = runnable.getDesignInstance().getDataSource("DS");
3.
Comment 1 dmtran CLA 2010-09-10 10:31:34 EDT
I have upgraded JDK on HP-UX 11.23 to the version 1.6.0.08.
And now, it works well !
Comment 2 Xiaoying Gu CLA 2010-09-14 03:06:35 EDT
Close the bug based on comment #1