Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343841 - Update Birt Engine from 2.3.2 to 2.6.2
Summary: Update Birt Engine from 2.3.2 to 2.6.2
Status: RESOLVED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: All other
: P3 major (vote)
Target Milestone: 3.7.0   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-26 09:35 EDT by Wael Mashal CLA
Modified: 2011-05-26 13:33 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wael Mashal CLA 2011-04-26 09:35:27 EDT
Build Identifier: M20090211-1700

i have an application where i use the Birt Engine 2.3 API's and i have now a task to update it to 2.6.2 i replace  all the jars in lib and plugins but i have now an exeption on the Birt Engine run method 

ERROR [04 26 2011 16:21:23.096 EEST] - ThreadGroup.uncaughtException - >>>>>>>>SOut: Exception in thread "executor-service-3" 
ERROR [04 26 2011 16:21:23.096 EEST] - Throwable.printStackTrace - >>>>>>>>SOut: java.lang.NoSuchMethodError: org.mozilla.javascript.ContextFactory.enterContext()Lorg/mozilla/javascript/Context;
ERROR [04 26 2011 16:21:23.096 EEST] - Throwable.printStackTrace - >>>>>>>>SOut: 	at org.eclipse.birt.report.model.simpleapi.ReportDesign.initFunctions(ReportDesign.java:368)
ERROR [04 26 2011 16:21:23.096 EEST] - Throwable.printStackTrace - >>>>>>>>SOut: 	at org.eclipse.birt.report.model.simpleapi.ReportDesign.<init>(ReportDesign.java:82)
ERROR [04 26 2011 16:21:23.096 EEST] - Throwable.printStackTrace - >>>>>>>>SOut: 	at org.eclipse.birt.report.model.simpleapi.ElementUtil.getElement(ElementUtil.java:59)
ERROR [04 26 2011 16:21:23.097 EEST] - Throwable.printStackTrace - >>>>>>>>SOut: 	at org.eclipse.birt.report.model.api.impl.SimpleElementFactory.getElement(SimpleElementFactory.java:279)
ERROR [04 26 2011 16:21:23.097 EEST] - Throwable.printStackTrace - >>>>>>>>SOut: 	at org.eclipse.birt.report.engine.script.internal.ReportScriptExecutor.handleBeforeFactory(ReportScriptExecutor.java:62)
ERROR [04 26 2011 16:21:23.097 EEST] - Throwable.printStackTrace - >>>>>>>>SOut: 	at org.eclipse.birt.report.engine.api.impl.EngineTask.startFactory(EngineTask.java:1804)
ERROR [04 26 2011 16:21:23.097 EEST] - Throwable.printStackTrace - >>>>>>>>SOut: 	at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:218)
ERROR [04 26 2011 16:21:23.097 EEST] - Throwable.printStackTrace - >>>>>>>>SOut: 	at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:85)



Reproducible: Always

Steps to Reproduce:
1.every time i execute this line

runTask.run(rptdocUrl); where teh rptdocurl is an rptdocument url
Comment 1 Wei Yan CLA 2011-04-26 12:40:03 EDT
It seems there is an old javascript library in your class path. You need either upgrade that library to the latest or remove it from the class path of BIRT.

You can find that old library location using:

org.mozilla.javascript.ContextFactory.class.getProtectionDomain().getCodeSource().getLocation()
Comment 2 Wael Mashal CLA 2011-04-27 04:08:02 EDT
hi

this solved my issue thanks i replace js.jar with the on on the Birt 2.6.2

just a question ? which version js.jar Birt 2.6.2 used ? and from where i can get the source code for this jar?

Best Regards

(In reply to comment #1)
> It seems there is an old javascript library in your class path. You need either
> upgrade that library to the latest or remove it from the class path of BIRT.
> 
> You can find that old library location using:
> 
> org.mozilla.javascript.ContextFactory.class.getProtectionDomain().getCodeSource().getLocation()
Comment 3 Xiaoying Gu CLA 2011-04-27 04:33:19 EDT
The js.jar in 2.6.2 was downloaded from the Orbit project(http://download.eclipse.org/tools/orbit/downloads/drops/R20100519200754/).

The bundle name is org.mozilla.javascript, version 1.7.2. We renamed it to js.jar in birt-runtime package.