Community
Participate
Working Groups
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
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()
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()
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.