Uploaded image for project: 'Pentaho Reporting and Pentaho Report Designer'
  1. Pentaho Reporting and Pentaho Report Designer
  2. PRD-5209

Report Preprocessor demo report does not work using BSFReportPreProcessor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Fixed
    • Affects Version/s: 5.0.5 GA, 5.0.7 GA, 5.1.0 GA
    • Fix Version/s: 5.3.0 GA
    • Component/s: Report Generation
    • Labels:
      None
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.

      Description

      Report Preprocessor demo report does not work using BSFReportPreProcessor.

      In PRD "Sample-Reports">Advance>Report Preprocessor report does not work in 5.x version. when executed we get the below error.

      Steps to reproduce the issue:

      Open the "Sample-Reports">Advance>Report Preprocessor in 5.x version of PRD
      Preview the report
      ------------------------------------------------------------------------------
      org.pentaho.reporting.engine.classic.core.ReportDataFactoryException: Failed to initialize the BSF-Framework
      at org.pentaho.reporting.engine.classic.core.modules.misc.bsf.BSFReportPreProcessor.performPreDataProcessing(BSFReportPreProcessor.java:93)
      at org.pentaho.reporting.engine.classic.core.states.process.MasterReportProcessPreprocessor.invokePreDataProcessing(MasterReportProcessPreprocessor.java:57)
      at org.pentaho.reporting.engine.classic.core.states.process.ProcessState.initializeForMasterReport(ProcessState.java:296)
      at org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.prepareReportProcessing(AbstractReportProcessor.java:481)
      at org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.PrintReportProcessor.getNumberOfPages(PrintReportProcessor.java:78)
      at org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewPane$RepaginationRunnable.run(PreviewPane.java:271)
      at org.pentaho.reporting.engine.classic.core.util.Worker.run(Worker.java:174)
      Caused by: org.apache.bsf.BSFException: BeanShell expression must be a string
      at bsh.util.BeanShellBSFEngine.eval(Unknown Source)
      at org.apache.bsf.BSFManager$5.run(BSFManager.java:445)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.bsf.BSFManager.eval(BSFManager.java:442)
      at org.pentaho.reporting.engine.classic.core.modules.misc.bsf.BSFReportPreProcessor.performPreDataProcessing(BSFReportPreProcessor.java:83)
      ... 6 more
      ------------------------------------------------------------------------

      The same report works correctly on 4.8.x version. Without any modification

      Once changing the Pre-Processors from BSFReportPreProcessor to RelationalAutoGeneratorPreProcessor report works.

      Followed the below steps to change report pre-processor

      Click on the Structure tab and mark the Master Report
      Click on the Attributes tab and scroll down to the wizard section
      Set wizard-enabled to true
      Scroll down to the advanced section
      Click on the value field of pre-processor
      Add a Relational Report Auto-Generator and Wizard Processor

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            gboranna Gangadhara Boranna (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h
                2h