It's all about the answers!

Ask a question

Can't execute any predefined report on Quality Manager 5.0.2


Daniel Torres (7610) | asked May 09 '16, 6:16 p.m.
edited May 09 '16, 7:11 p.m.
 Hi, I'm trying to use the predefined reports that comes with Quality Manager, but I'm getting these error:
"There are errors evaluating script "importPackage(Packages.com.ibm.rqm.reports.common); ReportUtil.traceInfo("test_case_coverage.param.validate", "param state = " + params["state"]); true;": ReferenceError: "ReportUtil" is not defined. (#2)"
It happends with any test artifact that want to get a report.
The scenario is:
  • Application server:
    • JTS 5.0.2
    • RQM 5.0.2
  • Database server (SQL Server 2012):
    • database: jts_db   user: jts_dbUser
    • database: qm_db   user: qm_dbUser
    • database: dw_db   user: dw_dbUser
  • The RPTUSER is dw_dbUser for jts/admin and qm/admin.

Is there anything I'm missing to configure? or the steps that I have to follow to discard possible causes?

About the log:

2016-05-09 16:43:40,414 [WebContainer : 15 @@ 07:43 <unauthenticated> <Initial Page Load@e94b32b3-7199-4316-932b-7a27bbf665f2> /jts/auth/authrequired]  WARN .team.repository.servlet.AbstractTeamServerServlet  - CRJAZ1163I TeamRepositoryException processing POST request for com.ibm.team.reports.common.internal.service.IReportRestService.postRenderReport(). CRJAZ1170I The request was made by user "jazzAdmin" from "10.7.53.83".CRJAZ1166I The stack trace hash is CC7F2BD3740F63E3BCBC6FA1DC1C856103BC485C.

com.ibm.team.repository.common.TeamRepositoryException: There are errors evaluating script "importPackage(Packages.com.ibm.rqm.reports.common);

ReportUtil.traceInfo("test_case_coverage.param.validate", "param state = " + params["state"]);

true;":

ReferenceError: "ReportUtil" is not defined. (<inline>#2)

at com.ibm.team.reports.service.birt.internal.BirtReportEngineService.getRenderedReport(BirtReportEngineService.java:381)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)

at java.lang.reflect.Method.invoke(Method.java:611)

at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)

at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)

at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)

at com.sun.proxy.$Proxy1881.getRenderedReport(Unknown Source)

at com.ibm.team.reports.service.internal.InternalReportService.getRenderedReport(InternalReportService.java:1254)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)

at java.lang.reflect.Method.invoke(Method.java:611)

at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)

at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)

at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)

at com.sun.proxy.$Proxy1838.getRenderedReport(Unknown Source)

at com.ibm.team.reports.service.internal.ReportRestService$7.run(ReportRestService.java:2003)

at com.ibm.team.reports.service.internal.ReportRestService.internalGetRenderedReport(ReportRestService.java:2031)

at com.ibm.team.reports.service.internal.ReportRestService.getRenderedReport(ReportRestService.java:771)

at com.ibm.team.reports.service.internal.ReportRestService.postRenderReport(ReportRestService.java:1108)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)

at java.lang.reflect.Method.invoke(Method.java:611)

at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)

at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)

at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)

at com.sun.proxy.$Proxy1845.postRenderReport(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)

at java.lang.reflect.Method.invoke(Method.java:611)

at com.ibm.team.repository.servlet.AbstractTeamServerServlet.doModelledRestService(AbstractTeamServerServlet.java:567)

at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest2(AbstractTeamServerServlet.java:2453)

at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest(AbstractTeamServerServlet.java:2244)

at com.ibm.team.repository.servlet.AbstractTeamServerServlet.service(AbstractTeamServerServlet.java:1761)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)

at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)

at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)

at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:126)

at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:76)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)

at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:120)

at com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:74)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)

at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1227)

at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:776)

at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:458)

at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)

at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)

at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)

at com.ibm.team.repository.server.servletbridge.BridgeFilter.processDelegate(BridgeFilter.java:165)

at com.ibm.team.repository.server.servletbridge.BridgeFilter.doFilter(BridgeFilter.java:198)

at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)

at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)

at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:928)

at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1025)

at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)

at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:909)

at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)

at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)

at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:459)

at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:526)

at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:312)

at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)

at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784)

at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)

at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)

at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)

at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)

at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)

at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)

at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)

at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1862)

Caused by: org.eclipse.birt.report.engine.api.impl.ParameterValidationException: There are errors evaluating script "importPackage(Packages.com.ibm.rqm.reports.common);

ReportUtil.traceInfo("test_case_coverage.param.validate", "param state = " + params["state"]);

true;":

ReferenceError: "ReportUtil" is not defined. (<inline>#2)

at org.eclipse.birt.report.engine.api.impl.EngineTask.validateAbstractScalarParameter(EngineTask.java:805)

at org.eclipse.birt.report.engine.api.impl.EngineTask.access$0(EngineTask.java:767)

at org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterValidationVisitor.visitScalarParameter(EngineTask.java:697)

at org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterVisitor.visit(EngineTask.java:1431)

at org.eclipse.birt.report.engine.api.impl.EngineTask.doValidateParameters(EngineTask.java:681)

at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:94)

at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)

at com.ibm.team.reports.service.birt.internal.BirtReportEngineService.internalGetRenderedReport(BirtReportEngineService.java:822)

at com.ibm.team.reports.service.birt.internal.BirtReportEngineService.getRenderedReport(BirtReportEngineService.java:375)

... 75 more

Caused by: org.eclipse.birt.core.exception.CoreException: There are errors evaluating script "importPackage(Packages.com.ibm.rqm.reports.common);

ReportUtil.traceInfo("test_case_coverage.param.validate", "param state = " + params["state"]);

true;":

ReferenceError: "ReportUtil" is not defined. (<inline>#2)

at org.eclipse.birt.report.engine.javascript.JavascriptEngine.evaluate(JavascriptEngine.java:287)

at org.eclipse.birt.core.script.ScriptContext.evaluate(ScriptContext.java:154)

at org.eclipse.birt.report.engine.executor.ExecutionContext.evaluate(ExecutionContext.java:772)

at org.eclipse.birt.report.engine.executor.ExecutionContext.evaluate(ExecutionContext.java:752)

at org.eclipse.birt.report.engine.executor.ExecutionContext.evaluate(ExecutionContext.java:728)

at org.eclipse.birt.report.engine.api.impl.EngineTask.validateAbstractScalarParameter(EngineTask.java:790)

... 83 more

Caused by: org.mozilla.javascript.EcmaError: ReferenceError: "ReportUtil" is not defined. (<inline>#2)

at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3654)

at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3632)

at org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3717)

at org.mozilla.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1758)

at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1697)

at org.mozilla.javascript.gen.c253._c0(<inline>:2)

at org.mozilla.javascript.gen.c253.call(<inline>)

at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)

at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)

at org.mozilla.javascript.gen.c253.call(<inline>)

at org.mozilla.javascript.gen.c253.exec(<inline>)

at org.eclipse.birt.report.engine.javascript.JavascriptEngine.evaluate(JavascriptEngine.java:282)

... 88 more

Accepted answer


permanent link
Donald Nong (14.5k614) | answered May 09 '16, 7:58 p.m.
If it happens to all the pre-defined reports, it is very likely that some packages have not been deployed correctly. You can try reprovisioning the server and see if it resolves the issue.
https://www.ibm.com/support/knowledgecenter/SSBLQQ_8.6.0/com.ibm.rational.rit.integration.doc/topics/t_ritrqm_update_rqm_plugin.html
(Don't worry about the product, the Request Server Reset is the same for all CLM applications)
Daniel Torres selected this answer as the correct answer

Comments
Daniel Torres commented May 09 '16, 9:13 p.m.

GREAT!!! It worked wonderful, thank you very much!!! It's been a headache for the last week.

So I'll need to do that every time I'll get this kind of issues?? Just wondering ... But why this happends??

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.