Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324864 - Exception java.lang.NoSuchMethodError when executing enterContext in method initFunctions of org.eclipse.birt.report.model.simpleapi.ReportDesign
Summary: Exception java.lang.NoSuchMethodError when executing enterContext in method i...
Status: CLOSED NOT_ECLIPSE
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.0   Edit
Hardware: Other other
: P3 major (vote)
Target Milestone: 3.7.0   Edit
Assignee: Birt-Report-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard: Obsolete
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-09 11:57 EDT by dmtran CLA
Modified: 2011-05-26 13:32 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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