Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-12258

DefaultReportWrapperService: failed to run or render report

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 25.0.0
    • Fix Version/s: 25.0.0
    • Component/s: Web UI - Reporting
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Sprint:
      Horizon 2019 - September 4th, Horizon 2019 - September 11th

      Description

      Error from reports.log

      2019-08-26 21:15:50,246 ERROR [databaseReport_Worker-1] o.o.r.c.s.s.DefaultReportWrapperService: failed to run or render report: local_Grafana-Dashboard-Report-4ppp
      org.opennms.api.reporting.ReportException: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression for source text: $P{timezone} + " " + org.opennms.netmgt.jasper.helper.TimezoneHelper.getUtcOffset($P{timezone}, $P{startDate})
              at org.opennms.reporting.jasperreports.svclayer.JasperReportService$3.call(JasperReportService.java:399) ~[org.opennms.features.reporting.jasper-reports-25.0.0-SNAPSHOT.jar:?]
              at org.opennms.reporting.jasperreports.svclayer.JasperReportService$3.call(JasperReportService.java:369) ~[org.opennms.features.reporting.jasper-reports-25.0.0-SNAPSHOT.jar:?]
              at org.opennms.core.logging.Logging.withPrefix(Logging.java:44) ~[org.opennms.core.logging-25.0.0-SNAPSHOT.jar:?]
              at org.opennms.reporting.jasperreports.svclayer.JasperReportService.run(JasperReportService.java:369) ~[org.opennms.features.reporting.jasper-reports-25.0.0-SNAPSHOT.jar:?]
              at org.opennms.reporting.core.svclayer.support.DefaultReportWrapperService$4.run(DefaultReportWrapperService.java:168) [org.opennms.features.reporting.core-25.0.0-SNAPSHOT.jar:?]
              at org.opennms.core.logging.Logging.withPrefix(Logging.java:71) [org.opennms.core.logging-25.0.0-SNAPSHOT.jar:?]
              at org.opennms.reporting.core.svclayer.support.DefaultReportWrapperService.run(DefaultReportWrapperService.java:152) [org.opennms.features.reporting.core-25.0.0-SNAPSHOT.jar:?]
              at org.opennms.reporting.core.BatchReportJob.executeInternal(BatchReportJob.java:48) [org.opennms.features.reporting.core-25.0.0-SNAPSHOT.jar:?]
              at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75) [org.apache.servicemix.bundles.spring-context-support-4.2.9.RELEASE_1.jar:?]
              at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-2.2.3.jar:?]
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.2.3.jar:?]
      Caused by: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression for source text: $P{timezone} + " " + org.opennms.netmgt.jasper.helper.TimezoneHelper.getUtcOffset($P{timezone}, $P{startDate})
              at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:290) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:616) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:584) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRFillElement.evaluateExpression(JRFillElement.java:1164) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRFillTextField.evaluateText(JRFillTextField.java:526) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRFillTextField.evaluate(JRFillTextField.java:510) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:381) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:500) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillBandNoOverflow(JRVerticalFiller.java:427) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVerticalFiller.java:388) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:249) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:115) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:580) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.BaseReportFiller.fill(BaseReportFiller.java:396) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:90) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:456) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.JasperFillManager.fillToFile(JasperFillManager.java:238) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:733) ~[jasperreports-6.3.0.jar:6.3.0]
              at org.opennms.reporting.jasperreports.svclayer.JasperReportService$3.call(JasperReportService.java:387) ~[org.opennms.features.reporting.jasper-reports-25.0.0-SNAPSHOT.jar:?]
              ... 10 more
      Caused by: java.lang.ClassCastException: class java.lang.String cannot be cast to class java.time.ZoneId (java.lang.String and java.time.ZoneId are in module java.base of loader 'bootstrap')
              at Blank_A4_1566872120067_488694.evaluate(Blank_A4_1566872120067_488694:282) ~[?:?]
              at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:276) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:616) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:584) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRFillElement.evaluateExpression(JRFillElement.java:1164) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRFillTextField.evaluateText(JRFillTextField.java:526) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRFillTextField.evaluate(JRFillTextField.java:510) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:381) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:500) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillBandNoOverflow(JRVerticalFiller.java:427) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVerticalFiller.java:388) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:249) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:115) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:580) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.BaseReportFiller.fill(BaseReportFiller.java:396) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:90) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:456) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.JasperFillManager.fillToFile(JasperFillManager.java:238) ~[jasperreports-6.3.0.jar:6.3.0]
              at net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:733) ~[jasperreports-6.3.0.jar:6.3.0]
              at org.opennms.reporting.jasperreports.svclayer.JasperReportService$3.call(JasperReportService.java:387) ~[org.opennms.features.reporting.jasper-reports-25.0.0-SNAPSHOT.jar:?]
              ... 10 more
      

        Attachments

          Activity

            People

            • Assignee:
              patrick.schweizer Patrick Schweizer
              Reporter:
              sean Sean Torres
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: