[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-report-designer-dev] Reg: Classpath

Hey,

I am using BIRT Report Engine api. I have put my java classes which I access as scripted data source in
EngineHome/lib. However rhino is still unable to access those classes. Where should I put my classes ?

Currently I am using SimpleClass.java (Standard Example for Scripted data source)

 The error that I keep getting are
2009-07-01 06:08:52.733::INFO:  Started SelectChannelConnector @ 0.0.0.0:8080
Jul 1, 2009 6:09:15 AM org.eclipse.birt.data.engine.impl.DataEngineImpl <init>
INFO: Data Engine starts up
Jul 1, 2009 6:09:15 AM org.eclipse.birt.report.engine.script.internal.DtEScriptExecutor handleJS
WARNING: A BIRT exception occurred: Error evaluating _javascript_ _expression_. Script engine error: TypeError: [JavaPackage SimpleClass] is not a function. (DataSet[Favorite].__bm_OPEN#2)
 Script source: DataSet[Favorite].__bm_OPEN, line: 1, text:
__bm_OPEN(). See next exception for more information.
Error evaluating _javascript_ _expression_. Script engine error: TypeError: [JavaPackage SimpleClass] is not a function. (DataSet[Favorite].__bm_OPEN#2)
 Script source: DataSet[Favorite].__bm_OPEN, line: 1, text:
__bm_OPEN()
org.eclipse.birt.data.engine.core.DataException: A BIRT exception occurred: Error evaluating _javascript_ _expression_. Script engine error: TypeError: [JavaPackage SimpleClass] is not a function. (DataSet[Favorite].__bm_OPEN#2)
 Script source: DataSet[Favorite].__bm_OPEN, line: 1, text:
__bm_OPEN(). See next exception for more information.
Error evaluating _javascript_ _expression_. Script engine error: TypeError: [JavaPackage SimpleClass] is not a function. (DataSet[Favorite].__bm_OPEN#2)
 Script source: DataSet[Favorite].__bm_OPEN, line: 1, text:
__bm_OPEN()
    at org.eclipse.birt.data.engine.core.DataException.wrap(DataException.java:118)
    at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJSAsExpr(ScriptEvalUtil.java:680)
    at org.eclipse.birt.data.engine.script.JSMethodRunner.runScript(JSMethodRunner.java:79)
    at org.eclipse.birt.report.engine.script.internal.DtEScriptExecutor.handleJS(DtEScriptExecutor.java:71)
    at org.eclipse.birt.report.engine.script.internal.DataSetScriptExecutor.handleJS(DataSetScriptExecutor.java:159)
    at org.eclipse.birt.report.engine.script.internal.ScriptDataSetScriptExecutor.handleOpen(ScriptDataSetScriptExecutor.java:66)
    at org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.open(ScriptDataSetRuntime.java:79)
    at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor$CustomDataSet.open(PreparedScriptDSQuery.java:244)
    at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java:220)
    at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(QueryExecutor.java:767)
    at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.executeQuery(ServiceForQueryResults.java:217)
    at org.eclipse.birt.data.engine.impl.QueryResults.getResultIterator(QueryResults.java:157)
    at org.eclipse.birt.report.engine.data.dte.QueryResultSet.<init>(QueryResultSet.java:83)
    at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.doExecuteQuery(DataGenerationEngine.java:155)
    at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.doExecuteQuery(DataGenerationEngine.java:111)
    at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:182)
    at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1683)
    at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:76)
    at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:61)
    at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:45)
    at org.eclipse.birt.report.engine.internal.executor.emitter.ReportItemEmitterExecutor.execute(ReportItemEmitterExecutor.java:45)
    at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:42)
    at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:63)
    at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:85)
    at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:106)
    at org.eclipse.birt.report.engine.presentation.ReportDocumentBuilder.build(ReportDocumentBuilder.java:189)
    at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:224)
    at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:89)
    at awsdw.velocity.model.ReportWorker.generateDocument(ReportWorker.java:310)
    at awsdw.velocity.model.ReportWorker.renderDocumentFile(ReportWorker.java:236)
    at awsdw.velocity.model.ReportWorker.run(ReportWorker.java:139)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
Caused by: org.eclipse.birt.core.exception.CoreException: Error evaluating _javascript_ _expression_. Script engine error: TypeError: [JavaPackage SimpleClass] is not a function. (DataSet[Favorite].__bm_OPEN#2)
 Script source: DataSet[Favorite].__bm_OPEN, line: 1, text:
__bm_OPEN()
    at org.eclipse.birt.core.script._javascript_EvalUtil.wrapRhinoException(_javascript_EvalUtil.java:287)
    at org.eclipse.birt.core.script._javascript_EvalUtil.evaluateRawScript(_javascript_EvalUtil.java:102)
    at org.eclipse.birt.core.script._javascript_EvalUtil.evaluateScript(_javascript_EvalUtil.java:134)
    at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJSAsExpr(ScriptEvalUtil.java:676)
    ... 32 more
Caused by: org.mozilla._javascript_.EcmaError: TypeError: [JavaPackage SimpleClass] is not a function. (DataSet[Favorite].__bm_OPEN#2)
    at org.mozilla._javascript_.ScriptRuntime.constructError(ScriptRuntime.java:3240)
    at org.mozilla._javascript_.ScriptRuntime.constructError(ScriptRuntime.java:3230)
    at org.mozilla._javascript_.ScriptRuntime.typeError(ScriptRuntime.java:3246)
    at org.mozilla._javascript_.ScriptRuntime.typeError1(ScriptRuntime.java:3258)
    at org.mozilla._javascript_.ScriptRuntime.notFunctionError(ScriptRuntime.java:3317)
    at org.mozilla._javascript_.ScriptRuntime.notFunctionError(ScriptRuntime.java:3308)
    at org.mozilla._javascript_.ScriptRuntime.newObject(ScriptRuntime.java:2057)
    at org.mozilla._javascript_.gen.c7._c1(DataSet[Favorite].__bm_OPEN:2)
    at org.mozilla._javascript_.gen.c7.call(DataSet[Favorite].__bm_OPEN)
    at org.mozilla._javascript_.optimizer.OptRuntime.callName0(OptRuntime.java:105)
    at org.mozilla._javascript_.gen.c8._c0(DataSet[Favorite].__bm_OPEN:1)
    at org.mozilla._javascript_.gen.c8.call(DataSet[Favorite].__bm_OPEN)
    at org.mozilla._javascript_.ContextFactory.doTopCall(ContextFactory.java:304)
    at org.mozilla._javascript_.ScriptRuntime.doTopCall(ScriptRuntime.java:2769)
    at org.mozilla._javascript_.gen.c8.call(DataSet[Favorite].__bm_OPEN)
    at org.mozilla._javascript_.gen.c8.exec(DataSet[Favorite].__bm_OPEN)
    at org.eclipse.birt.core.script._javascript_EvalUtil.evaluateRawScript(_javascript_EvalUtil.java:95)
    ... 34 more
Jul 1, 2009 6:09:15 AM org.eclipse.birt.report.engine.script.internal.DtEScriptExecutor handleJS
WARNING: A BIRT exception occurred: Error evaluating _javascript_ _expression_. Script engine error: ReferenceError: "currentrow" is not defined. (DataSet[Favorite].__bm_FETCH#2)
 Script source: DataSet[Favorite].__bm_FETCH, line: 1, text:
__bm_FETCH(). See next exception for more information.
Error evaluating _javascript_ _expression_. Script engine error: ReferenceError: "currentrow" is not defined. (DataSet[Favorite].__bm_FETCH#2)
 Script source: DataSet[Favorite].__bm_FETCH, line: 1, text:
__bm_FETCH()
org.eclipse.birt.data.engine.core.DataException: A BIRT exception occurred: Error evaluating _javascript_ _expression_. Script engine error: ReferenceError: "currentrow" is not defined. (DataSet[Favorite].__bm_FETCH#2)
 Script source: DataSet[Favorite].__bm_FETCH, line: 1, text:
__bm_FETCH(). See next exception for more information.
Error evaluating _javascript_ _expression_. Script engine error: ReferenceError: "currentrow" is not defined. (DataSet[Favorite].__bm_FETCH#2)
 Script source: DataSet[Favorite].__bm_FETCH, line: 1, text:
__bm_FETCH()
    at org.eclipse.birt.data.engine.core.DataException.wrap(DataException.java:118)
    at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJSAsExpr(ScriptEvalUtil.java:680)
    at org.eclipse.birt.data.engine.script.JSMethodRunner.runScript(JSMethodRunner.java:79)
    at org.eclipse.birt.report.engine.script.internal.DtEScriptExecutor.handleJS(DtEScriptExecutor.java:71)
    at org.eclipse.birt.report.engine.script.internal.DataSetScriptExecutor.handleJS(DataSetScriptExecutor.java:159)
    at org.eclipse.birt.report.engine.script.internal.ScriptDataSetScriptExecutor.handleFetch(ScriptDataSetScriptExecutor.java:100)
    at org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.fetch(ScriptDataSetRuntime.java:102)
    at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor$CustomDataSet.fetch(PreparedScriptDSQuery.java:257)
    at org.eclipse.birt.data.engine.executor.cache.OdiAdapter.fetch(OdiAdapter.java:150)
    at org.eclipse.birt.data.engine.executor.cache.RowResultSet.next(RowResultSet.java:91)
    at org.eclipse.birt.data.engine.executor.cache.ExpandableRowResultSet.next(ExpandableRowResultSet.java:62)
    at org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper.populateData(SmartCacheHelper.java:288)
    at org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper.initInstance(SmartCacheHelper.java:261)
    at org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper.getResultSetCache(SmartCacheHelper.java:224)
    at org.eclipse.birt.data.engine.executor.cache.SmartCache.<init>(SmartCache.java:68)
    at org.eclipse.birt.data.engine.executor.transform.pass.PassUtil.populateOdiResultSet(PassUtil.java:108)
    at org.eclipse.birt.data.engine.executor.transform.pass.PassUtil.pass(PassUtil.java:61)
    at org.eclipse.birt.data.engine.executor.transform.pass.PassManager.doSinglePass(PassManager.java:185)
    at org.eclipse.birt.data.engine.executor.transform.pass.PassManager.pass(PassManager.java:90)
    at org.eclipse.birt.data.engine.executor.transform.pass.PassManager.populateResultSet(PassManager.java:72)
    at org.eclipse.birt.data.engine.executor.transform.ResultSetPopulator.populateResultSet(ResultSetPopulator.java:208)
    at org.eclipse.birt.data.engine.executor.transform.CachedResultSet.<init>(CachedResultSet.java:132)
    at org.eclipse.birt.data.engine.executor.CandidateQuery.execute(CandidateQuery.java:106)
    at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java:223)
    at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(QueryExecutor.java:767)
    at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.executeQuery(ServiceForQueryResults.java:217)
    at org.eclipse.birt.data.engine.impl.QueryResults.getResultIterator(QueryResults.java:157)
    at org.eclipse.birt.report.engine.data.dte.QueryResultSet.<init>(QueryResultSet.java:83)
    at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.doExecuteQuery(DataGenerationEngine.java:155)
    at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.doExecuteQuery(DataGenerationEngine.java:111)
    at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:182)
    at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1683)
    at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:76)
    at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:61)
    at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:45)
    at org.eclipse.birt.report.engine.internal.executor.emitter.ReportItemEmitterExecutor.execute(ReportItemEmitterExecutor.java:45)
    at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:42)
    at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:63)
    at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:85)
    at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:106)
    at org.eclipse.birt.report.engine.presentation.ReportDocumentBuilder.build(ReportDocumentBuilder.java:189)
    at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:224)
    at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:89)
    at awsdw.velocity.model.ReportWorker.generateDocument(ReportWorker.java:310)
    at awsdw.velocity.model.ReportWorker.renderDocumentFile(ReportWorker.java:236)
    at awsdw.velocity.model.ReportWorker.run(ReportWorker.java:139)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
Caused by: org.eclipse.birt.core.exception.CoreException: Error evaluating _javascript_ _expression_. Script engine error: ReferenceError: "currentrow" is not defined. (DataSet[Favorite].__bm_FETCH#2)
 Script source: DataSet[Favorite].__bm_FETCH, line: 1, text:
__bm_FETCH()
    at org.eclipse.birt.core.script._javascript_EvalUtil.wrapRhinoException(_javascript_EvalUtil.java:287)
    at org.eclipse.birt.core.script._javascript_EvalUtil.evaluateRawScript(_javascript_EvalUtil.java:102)
    at org.eclipse.birt.core.script._javascript_EvalUtil.evaluateScript(_javascript_EvalUtil.java:134)
    at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJSAsExpr(ScriptEvalUtil.java:676)
    ... 47 more
Caused by: org.mozilla._javascript_.EcmaError: ReferenceError: "currentrow" is not defined. (DataSet[Favorite].__bm_FETCH#2)
    at org.mozilla._javascript_.ScriptRuntime.constructError(ScriptRuntime.java:3240)
    at org.mozilla._javascript_.ScriptRuntime.constructError(ScriptRuntime.java:3230)
    at org.mozilla._javascript_.ScriptRuntime.notFoundError(ScriptRuntime.java:3303)
    at org.mozilla._javascript_.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1632)
    at org.mozilla._javascript_.ScriptRuntime.name(ScriptRuntime.java:1571)
    at org.mozilla._javascript_.gen.c9._c1(DataSet[Favorite].__bm_FETCH:2)
    at org.mozilla._javascript_.gen.c9.call(DataSet[Favorite].__bm_FETCH)
    at org.mozilla._javascript_.optimizer.OptRuntime.callName0(OptRuntime.java:105)
    at org.mozilla._javascript_.gen.c10._c0(DataSet[Favorite].__bm_FETCH:1)
    at org.mozilla._javascript_.gen.c10.call(DataSet[Favorite].__bm_FETCH)
    at org.mozilla._javascript_.ContextFactory.doTopCall(ContextFactory.java:304)
    at org.mozilla._javascript_.ScriptRuntime.doTopCall(ScriptRuntime.java:2769)
    at org.mozilla._javascript_.gen.c10.call(DataSet[Favorite].__bm_FETCH)
    at org.mozilla._javascript_.gen.c10.exec(DataSet[Favorite].__bm_FETCH)
    at org.eclipse.birt.core.script._javascript_EvalUtil.evaluateRawScript(_javascript_EvalUtil.java:95)
    ... 49 more
Jul 1, 2009 6:09:15 AM org.eclipse.birt.report.engine.script.internal.ScriptExecutor addException
WARNING: data.engine.BadFetchScriptReturnType
org.eclipse.birt.data.engine.core.DataException: data.engine.BadFetchScriptReturnType
    at org.eclipse.birt.report.engine.script.internal.ScriptDataSetScriptExecutor.handleFetch(ScriptDataSetScriptExecutor.java:109)
    at org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.fetch(ScriptDataSetRuntime.java:102)
    at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor$CustomDataSet.fetch(PreparedScriptDSQuery.java:257)
    at org.eclipse.birt.data.engine.executor.cache.OdiAdapter.fetch(OdiAdapter.java:150)
    at org.eclipse.birt.data.engine.executor.cache.RowResultSet.next(RowResultSet.java:91)
    at org.eclipse.birt.data.engine.executor.cache.ExpandableRowResultSet.next(ExpandableRowResultSet.java:62)
    at org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper.populateData(SmartCacheHelper.java:288)
    at org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper.initInstance(SmartCacheHelper.java:261)
    at org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper.getResultSetCache(SmartCacheHelper.java:224)
    at org.eclipse.birt.data.engine.executor.cache.SmartCache.<init>(SmartCache.java:68)
    at org.eclipse.birt.data.engine.executor.transform.pass.PassUtil.populateOdiResultSet(PassUtil.java:108)
    at org.eclipse.birt.data.engine.executor.transform.pass.PassUtil.pass(PassUtil.java:61)
    at org.eclipse.birt.data.engine.executor.transform.pass.PassManager.doSinglePass(PassManager.java:185)
    at org.eclipse.birt.data.engine.executor.transform.pass.PassManager.pass(PassManager.java:90)
    at org.eclipse.birt.data.engine.executor.transform.pass.PassManager.populateResultSet(PassManager.java:72)
    at org.eclipse.birt.data.engine.executor.transform.ResultSetPopulator.populateResultSet(ResultSetPopulator.java:208)
    at org.eclipse.birt.data.engine.executor.transform.CachedResultSet.<init>(CachedResultSet.java:132)
    at org.eclipse.birt.data.engine.executor.CandidateQuery.execute(CandidateQuery.java:106)
    at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java:223)
    at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(QueryExecutor.java:767)
    at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.executeQuery(ServiceForQueryResults.java:217)
    at org.eclipse.birt.data.engine.impl.QueryResults.getResultIterator(QueryResults.java:157)
    at org.eclipse.birt.report.engine.data.dte.QueryResultSet.<init>(QueryResultSet.java:83)
    at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.doExecuteQuery(DataGenerationEngine.java:155)
    at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.doExecuteQuery(DataGenerationEngine.java:111)
    at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:182)
    at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1683)
    at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:76)
    at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:61)
    at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:45)
    at org.eclipse.birt.report.engine.internal.executor.emitter.ReportItemEmitterExecutor.execute(ReportItemEmitterExecutor.java:45)
    at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:42)
    at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:63)
    at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:85)
    at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:106)
    at org.eclipse.birt.report.engine.presentation.ReportDocumentBuilder.build(ReportDocumentBuilder.java:189)
    at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:224)
    at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:89)
    at awsdw.velocity.model.ReportWorker.generateDocument(ReportWorker.java:310)
    at awsdw.velocity.model.ReportWorker.renderDocumentFile(ReportWorker.java:236)
    at awsdw.velocity.model.ReportWorker.run(ReportWorker.java:139)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
Jul 1, 2009 6:09:15 AM org.eclipse.birt.data.engine.impl.DataEngineImpl shutdown
INFO: Data engine shuts down