Hi,

I am trying to execute a jasperreport in the Pentaho platform. I get the following error. It can't seem to load the SubReport.
I have an input parameter SUBREPORT_DIR which I use to pass the location of the SUBREPORT. However, The JAsperReportsComponents cannot find it as it is not in runtimecontext.getInputParameters. It doesn't enter the first if of the following code as it should:
protected boolean isDefinedInput(String inputName) {

if (runtimeContext.getInputNames().contains(inputName)) {
return true;
} else {
return getComponentSetting(inputName) != null;
}
}


Instead it returns negative to both cases and eventually gives the following error: Any ideas would be greatly appreciated!!

Error: JasperReport.ERROR_0014 - Report execution failed - net.sf.jasperreports.engine.JRException: Could not load object from location : nullROI_subreport0.jasper (org.pentaho.plugin.jasperreports.JasperReportsComponent)Debug: Starting execute of samples/reporting/jasper.xaction (org.pentaho.core.solution.SolutionEngine)
Debug: Getting runtime context and data (org.pentaho.core.solution.SolutionEngine)
Debug: Loading action sequence definition file (org.pentaho.core.solution.SolutionEngine)
Debug: !SolutionEngine.DEBUG_CREATING_ACTION_DEFINITION_PATH! (org.pentaho.core.solution.SolutionEngine)
Debug: SolutionRepository.DEBUG_FILE_PATH - getFile path=c:\Documents and Settings\niru mallavarupu\workspace\pentaho-standalone\resource\solution\samples\reporting\jasper.xaction (org.pentaho.repository.filebased.solution.SolutionRepository)
Debug: Adding variable source request to parameter outputtype (org.pentaho.repository.filebased.solution.SolutionRepository)
Debug: Adding default value of "html" to parameter outputtype (org.pentaho.repository.filebased.solution.SolutionRepository)
Debug: audit: instanceId=0a8551d0-03b7-11dc-9038-a9221af7375d, objectId=org.pentaho.core.runtime.RuntimeContext, messageType=action_sequence_start (org.pentaho.core.runtime.RuntimeContext)
Debug: validateComponent validating component JasperReportsComponent (org.pentaho.core.runtime.RuntimeContext)
Debug: Validating component for action jasper.xaction (org.pentaho.plugin.jasperreports.JasperReportsComponent)
Debug: imageUrl is "{0}"getImage?image= (org.pentaho.plugin.jasperreports.JasperReportsComponent)
Debug: imageDir is "{0}"system/tmp (org.pentaho.plugin.jasperreports.JasperReportsComponent)
Debug: removeEmptyRows is {0}true (org.pentaho.plugin.jasperreports.JasperReportsComponent)
Debug: Executing action sequence (org.pentaho.core.runtime.RuntimeContext)
Debug: Executing action definition: Iteration 0 (org.pentaho.core.runtime.RuntimeContext)
Debug: audit: instanceId=0a8551d0-03b7-11dc-9038-a9221af7375d, objectId=JasperReportsComponent, messageType=component_execution_started (org.pentaho.core.runtime.RuntimeContext)
Debug: execute pre-audit (org.pentaho.core.runtime.RuntimeContext)
Debug: Setting component log level to DEBUG (org.pentaho.core.runtime.RuntimeContext)
Debug: Initializing component (org.pentaho.core.runtime.RuntimeContext)
Debug: executeComponent starting audited execute (org.pentaho.core.runtime.RuntimeContext)
Debug: execute validation=true (org.pentaho.plugin.jasperreports.JasperReportsComponent)
Debug: output type is set to html (org.pentaho.plugin.jasperreports.JasperReportsComponent)
Debug: Running report "c:\Documents and Settings\niru mallavarupu\workspace\pentaho-standalone\resource\solution\samples\reporting\ROI.jrxml" (org.pentaho.plugin.jasperreports.JasperReportsComponent)
Debug: Found report file (org.pentaho.plugin.jasperreports.JasperReportsComponent)
Debug: compiled report will be at c:\Documents and Settings\niru mallavarupu\workspace\pentaho-standalone\resource\solution\samples\reporting\ROI.jasper (org.pentaho.plugin.jasperreports.JasperReportsComponent)
Debug: Loading report design (org.pentaho.plugin.jasperreports.JasperReportsComponent)
Debug: Loaded design with 12 parameters (org.pentaho.plugin.jasperreports.JasperReportsComponent)
Error: JasperReport.ERROR_0014 - Report execution failed - net.sf.jasperreports.engine.JRException: Could not load object from location : nullROI_subreport0.jasper (org.pentaho.plugin.jasperreports.JasperReportsComponent)
Debug: executeComponent finished audited execute (org.pentaho.core.runtime.RuntimeContext)
Error: RuntimeContext.ERROR_0012 - ActionDefinition for JasperReportsComponent did not execute successfully (org.pentaho.core.runtime.RuntimeContext)
Debug: audit: instanceId=0a8551d0-03b7-11dc-9038-a9221af7375d, objectId=org.pentaho.core.runtime.RuntimeContext, messageType=action_sequence_failed (org.pentaho.core.runtime.RuntimeContext)