Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Developing Analytics Applications
BirtDateTime.month NullPointerException
Migrateduser
Hi,
We have been successfully using BIRT Runtime 2.3.1 in a WAS 61 environment for over 2 years now.
We have 1 report which renders a bunch of data in csv format and is triggered by a Workflow/MDB process.
The ReportEngine directory containing the runtime files is in a shared directory on the WAS 61 server.
Like I say, everything has been working fine for the past 2 years, until we had to update the report to version 2.6.1 and use the 2.6.2 runtimes.
We replaced the 2.3.2 runtimes with the 2.6.2 runtimes on the WAS sever (In the ReportEngine directory) and deployed the new version of the report (Updated automatically to 2.6.1 by Eclipse).
We got a 'cannot start the OSGI' exception the first time we tried running the deployed report, but sorted that by changing the permissions on the ReportEngine/configuration director to 777.
This setup works fine when I run the report locally in Eclipse with a simple Java calling class i.e. 2.6.1 report and 2.6.2 runtimes. I get back my csv rendered data as before.
However, when running remotely I am getting a java.lang.NullPointerException
at com.ibm.icu.util.Calendar.getCalendarType(Calendar.java:1717)
exception. I have tried specifically setting the locale on the task object in the calling code but to no avail.
I have listed the complete stack trace below in case anything jumps out at anyone here. I'm hitting a brick wall here with something that could turn out to be completely simple.
Any help would be greatly appreciated.
Thanks,
-Barry
[3/16/12 12:44:28:375 EDT] 0000003b ReportEngine E An error happened while running the report. Cause:
java.lang.NullPointerException
at com.ibm.icu.util.Calendar.getCalendarType(Calendar.java:1717)
at com.ibm.icu.util.Calendar.getInstance(Calendar.java:1665)
at com.ibm.icu.util.Calendar.getInstance(Calendar.java:1638)
at org.eclipse.birt.core.script.function.bre.BirtDateTime.getCalendar(BirtDateTime.java:1276)
at org.eclipse.birt.core.script.function.bre.BirtDateTime.month(BirtDateTime.java:285)
at org.eclipse.birt.core.script.function.bre.BirtDateTime.access$3(BirtDateTime.java:280)
at org.eclipse.birt.core.script.function.bre.BirtDateTime$Function_Month.getValue(BirtDateTime.java:269)
at org.eclipse.birt.core.script.function.bre.Function_temp.execute(BreUtility.java:39)
at org.eclipse.birt.core.script.function.bre.BirtDateTime.execute(BirtDateTime.java:1330)
at org.eclipse.birt.core.script.functionservice.impl.ScriptFunction.execute(ScriptFunction.java:146)
at org.eclipse.birt.core.script.functionservice.impl.CategoryWrapper$1.call(CategoryWrapper.java:67)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3330)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
at org.eclipse.birt.data.engine.expression.BytecodeExpression.evaluate(BytecodeExpression.java:49)
at org.eclipse.birt.data.engine.expression.ExprEvaluateUtil.evaluateCompiledExpression(ExprEvaluateUtil.java:205)
at org.eclipse.birt.data.engine.expression.ExprEvaluateUtil.evaluateCompiledExpression(ExprEvaluateUtil.java:219)
at org.eclipse.birt.data.engine.expression.ExprEvaluateUtil.evaluateExpression(ExprEvaluateUtil.java:76)
at org.eclipse.birt.data.engine.impl.BindingColumnsEvalUtil.evaluateValue(BindingColumnsEvalUtil.java:208)
at org.eclipse.birt.data.engine.impl.BindingColumnsEvalUtil.getColumnsValue(BindingColumnsEvalUtil.java:168)
at org.eclipse.birt.data.engine.impl.ResultIterator.prepareCurrentRow(ResultIterator.java:742)
at org.eclipse.birt.data.engine.impl.ResultIterator.<init>(ResultIterator.java:167)
at org.eclipse.birt.data.engine.impl.QueryResults.getResultIterator(QueryResults.java:208)
at org.eclipse.birt.report.engine.data.dte.QueryResultSet.<init>(QueryResultSet.java:98)
at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExecuteQuery(DteDataEngine.java:168)
at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:265)
at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1890)
at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:80)
at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:62)
at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:43)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:34)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:65)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:90)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:99)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:180)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)
at com.lmig.cmit.pas.plp.service.reporting.util.ReportGenerator.runAndRender(ReportGenerator.java:131)
at com.lmig.cmit.pas.plp.service.reporting.util.ReportGenerator.generateCSVReport(ReportGenerator.java:79)
at com.lmig.cmit.pas.plp.service.reporting.ReportGeneratorHelper.generatePADESExportCSV(ReportGeneratorHelper.java:70)
at com.lmig.cmit.pas.plp.service.pades.business.BOLM_PadesTaskProcessorImpl.doWritePadesRecord(BOLM_PadesTaskProcessorImpl.java:268)
at com.lmig.cmit.pas.plp.service.pades.business.BOLM_PadesTaskProcessorImpl.processExportRequest(BOLM_PadesTaskProcessorImpl.java:152)
at com.lmig.cmit.pas.plp.service.pades.facade.LM_PadesTaskProcessorBean.processExportRequest(LM_PadesTaskProcessorBean.java:113)
at com.lmig.cmit.pas.plp.service.pades.facade.EJSRemoteStatelessPadesTaskProcessor_2302370e.processExportRequest(Unknown Source)
at com.lmig.cmit.pas.plp.service.pades.facade._LM_PadesTaskProcessorFacade_Stub.processExportRequest(_LM_PadesTaskProcessorFacade_Stub.java:86)
at com.lmig.cmit.pas.plp.service.pades.delegate.LM_PadesDelegate.processExportRequest(LM_PadesDelegate.java:58)
at com.lmig.cmit.pas.ironbridge.service.workflowintegration.helper.IssuanceTaskProcessorHelper.handleResponse(IssuanceTaskProcessorHelper.java:32)
at com.lmig.cmit.pas.plp.service.pades.messaging.LM_PadesMDBBean.onMessage(LM_PadesMDBBean.java:91)
at com.ibm.ejs.jms.listener.MDBWrapper$PriviledgedOnMessage.run(MDBWrapper.java:302)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)
at com.ibm.ejs.jms.listener.MDBWrapper.callOnMessage(MDBWrapper.java:271)
at com.ibm.ejs.jms.listener.MDBWrapper.onMessage(MDBWrapper.java:240)
at com.ibm.mq.jms.MQSession$FacadeMessageListener.onMessage(MQSession.java:147)
at com.ibm.msg.client.jms.internal.JmsSessionImpl.run(JmsSessionImpl.java:2639)
at com.ibm.mq.jms.MQSession.run(MQSession.java:862)
at com.ibm.ejs.jms.JMSSessionHandle.run(JMSSessionHandle.java:975)
at com.ibm.ejs.jms.listener.ServerSession.connectionConsumerOnMessage(ServerSession.java:957)
at com.ibm.ejs.jms.listener.ServerSession.onMessage(ServerSession.java:667)
at com.ibm.ejs.jms.listener.ServerSession.dispatch(ServerSession.java:634)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.ibm.ejs.jms.listener.ServerSessionDispatcher.dispatch(ServerSessionDispatcher.java:37)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:96)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:132)
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:492)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
Find more posts tagged with
Comments
There are no comments yet