Bug 144844 [regression]Exception when preview report with output parameter in Web Viewer
Description: Exception when preview report with output parameter in Web Viewer Steps to reproduce: 1. Preview attached report in Web viewer The report contains parameter from store procedure Result: report report: - There are errors evaluating script "row["op"]". Error.ScriptEvaluationError ( 1 time(s) ) detail : org.eclipse.birt.report.engine.api.EngineException: There are errors evaluating script "row["op"]". at org.eclipse.birt.report.engine.executor.ExecutionContext.evaluate(ExecutionContext.java:550) at org.eclipse.birt.report.engine.executor.ExecutionContext.evaluate(ExecutionContext.java:512) at org.eclipse.birt.report.engine.internal.document.v2.ReportContentLoaderV2.openQuery(ReportContentLoaderV2.java:701) at org.eclipse.birt.report.engine.internal.document.v2.ReportContentLoaderV2.startContent(ReportContentLoaderV2.java:772) at org.eclipse.birt.report.engine.internal.document.v2.ReportContentLoaderV2.outputPageRegion(ReportContentLoaderV2.java:378) at org.eclipse.birt.report.engine.internal.document.v2.ReportContentLoaderV2.excutePage(ReportContentLoaderV2.java:250) at org.eclipse.birt.report.engine.internal.document.v2.ReportContentLoaderV2.loadPage(ReportContentLoaderV2.java:151) at org.eclipse.birt.report.engine.internal.document.ReportContentLoader.loadPage(ReportContentLoader.java:50) at org.eclipse.birt.report.engine.api.impl.RenderTask.doRender(RenderTask.java:187) at org.eclipse.birt.report.engine.api.impl.RenderTask$PageRender.render(RenderTask.java:494) at org.eclipse.birt.report.engine.api.impl.RenderTask.render(RenderTask.java:429) at org.eclipse.birt.report.service.ReportEngineService.renderReport(Ljava.io.OutputStream;Ljavax.servlet.http.HttpServletRequest;Lorg.eclipse.birt.report.engine.api.IReportDocument;JZZLjava.util.List;Ljava.util.Locale;Z)V(Unknown Source) at org.eclipse.birt.report.service.ReportEngineService.renderReport(Ljavax.servlet.http.HttpServletRequest;Lorg.eclipse.birt.report.engine.api.IReportDocument;JZZLjava.util.List;Ljava.util.Locale;Z)Ljava.io.ByteArrayOutputStream;(Unknown Source) at org.eclipse.birt.report.service.BirtViewerReportService.getPage(Ljava.lang.String;Ljava.lang.String;Lorg.eclipse.birt.report.service.api.InputOptions;Ljava.util.List;)Ljava.io.ByteArrayOutputStream;(Unknown Source) at org.eclipse.birt.report.service.actionhandler.AbstractGetPageActionHandler.doExecution()V(Unknown Source) at org.eclipse.birt.report.service.actionhandler.AbstractGetPageActionHandler.__execute()V(Unknown Source) at org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute()V(Unknown Source) at org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor.__executeAction(Lorg.eclipse.birt.report.service.actionhandler.IActionHandler;Lorg.eclipse.birt.report.context.IContext;Lorg.eclipse.birt.report.soapengine.api.Operation;Lorg.eclipse.birt.report.soapengine.api.GetUpdatedObjectsResponse;)V(Unknown Source) at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.executeAction(Lorg.eclipse.birt.report.service.actionhandler.IActionHandler;Lorg.eclipse.birt.report.context.IContext;Lorg.eclipse.birt.report.soapengine.api.Operation;Lorg.eclipse.birt.report.soapengine.api.GetUpdatedObjectsResponse;)V(Unknown Source) at org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleGetPage(Lorg.eclipse.birt.report.context.IContext;Lorg.eclipse.birt.report.soapengine.api.Operation;Lorg.eclipse.birt.report.soapengine.api.GetUpdatedObjectsResponse;)V(Unknown Source) at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source) at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source) Caused by: java.lang.NullPointerException at org.eclipse.birt.data.engine.impl.document.ExprResultSet.getValue(ExprResultSet.java:192) at org.eclipse.birt.data.engine.impl.document.ResultIterator.getValue(ResultIterator.java:150) at org.eclipse.birt.report.engine.data.dte.DteResultSet.getValue(DteResultSet.java:266) at org.eclipse.birt.report.engine.data.dte.NativeRowObject.get(NativeRowObject.java:81) at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1263) at org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRuntime.java:1301) at org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRuntime.java:1283) at org.mozilla.javascript.gen.c126._c0(<inline>:1) at org.mozilla.javascript.gen.c126.call(Lorg.mozilla.javascript.Context;Lorg.mozilla.javascript.Scriptable;Lorg.mozilla.javascript.Scriptable;[Ljava.lang.Object;)Ljava.lang.Object;(<inline>:???) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:304)
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSourceQuery.java
if ( propNames != null )
    	{
    		assert propValues != null;
    		
    		Iterator it_name = propNames.iterator();
    		Iterator it_val = propValues.iterator();
    		while ( it_name.hasNext())
    		{
    			assert it_val.hasNext();
    			String name = (String) it_name.next();
    			String val = (String) it_val.next();
    			odaStatement.setProperty( name, val );
    		}
    	}
	}
      
	/** 
	 * Adds input and output parameter hints to odaStatement
	 */
	private void addParameterDefns() throws DataException
	{
		if ( this.parameterHints == null )
		    return;	
		
		Iterator it = this.parameterHints.iterator( );
		while ( it.hasNext( ) )
		{
			ParameterHint parameterHint = (ParameterHint) it.next();
			odaStatement.addParameterHint( parameterHint );