Report subscriptions only emails an error

Issue #1023 duplicate
Jennifer Pinkham created an issue

I've attached a screenshot of what the report definition looks like, as well as a successful report. After upgrading to version 2.9.7.4, from 2.9.5.4, I now get this error instead of the report contents I expect:

Description: Report displaying users worked time sheet over specified period.

An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: ------- org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getHoursDiff' in class com.fdu.jira.util.TextUtil threw exception java.lang.NullPointerException at templates/timesheetreport/timesheet-report-totals.vm[line 22, column 173] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:342) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at org.apache.velocity.runtime.directive.Parse.render(Parse.java:263) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at org.apache.velocity.Template.merge(Template.java:328) at org.apache.velocity.Template.merge(Template.java:235) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:381) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:67) at com.atlassian.jira.template.velocity.DefaultVelocityTemplatingEngine$DefaultRenderRequest.asHtml(DefaultVelocityTemplatingEngine.java:104) at com.atlassian.jira.plugin.AbstractJiraModuleDescriptor.getHtml(AbstractJiraModuleDescriptor.java:112) at com.fdu.jira.plugin.report.timesheet.TimeSheet.generateReport(TimeSheet.java:116) at com.fdu.jira.plugin.report.AbstractTimebaseReport.generateReportHtml(AbstractTimebaseReport.java:113) at jira.timesheet.plugin.job.TimesheetAdapter.getGeneratedReport(TimesheetAdapter.java:55) at jira.timesheet.plugin.job.TimesheetJob.queueEmail(TimesheetJob.java:176) at jira.timesheet.plugin.job.TimesheetJob.queueEmail(TimesheetJob.java:146) at jira.timesheet.plugin.job.TimesheetJob.execute(TimesheetJob.java:72) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at com.atlassian.multitenant.quartz.MultiTenantThreadPool$MultiTenantRunnable.run(MultiTenantThreadPool.java:72) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) Caused by: java.lang.NullPointerException at com.fdu.jira.util.TextUtil.getHoursDiff(TextUtil.java:329) at sun.reflect.GeneratedMethodAccessor38099.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:381) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:370) at com.atlassian.velocity.htmlsafe.introspection.UnboxingMethod.invoke(UnboxingMethod.java:30) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) ... 25 more Timesheet Reports and Gadgets Plugin (v2.9.7.4#1535:b74dd29cc987)·Contact support

Comments (6)

  1. Andriy Zhdanov

    Hi Jennifer,

    It must be duplicate of issue#1016, and workaround is to switch of 'Show Totals in Front" plugin configuration option.

    Thank you.

  2. Log in to comment