Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » scripted datasource fetch metod exception(Please help me in that)
scripted datasource fetch metod exception [message #1768141] Fri, 14 July 2017 04:05 Go to next message
bhagavan reddy is currently offline bhagavan reddyFriend
Messages: 5
Registered: June 2017
Junior Member
Hi i am new to birt i tried but fecth method returns null values

in java class i return List<JSONObjects>

open method

importPackage(Packages.com.Jsontopdf);
var myDataSet ;
myDataSet=new JsonParse();
var myData ;
myData= myDataSet.getJsonArray();
myIterator = myData.iterator();

fetch method
if(myIterator.hasNext()){
var node ;
node= myIterator.next();

row["Requirement"] =node.getString("Requirement");
row["Description"] = node.getString("Description");
row["Remarks"] = node.getString("Remarks");
row["WhocanSign"] = node.getString("WhocanSign");
row["Format"] = node.getString("Format");
row["Source"] =node.getString("Source");
row["Required"] = node.getString("Required");
row["UsedforBranch"] = node.getString("UsedforBranch");



return true;
}

else return false

close method
myDataSet = null;
myArrayList = null;
myIterator = null;
node = null;
my dataset preview result are empty
in my design the given below exception occures

- org.eclipse.birt.report.engine.api.EngineException: Data Set script method "Fetch" returned null; expected a Boolean value. at
org.eclipse.birt.report.engine.script.internal.ScriptExecutor.addException(ScriptExecutor.java:249) at
org.eclipse.birt.report.engine.script.internal.ScriptExecutor.addException(ScriptExecutor.java:238) at
org.eclipse.birt.report.engine.script.internal.ScriptDataSetScriptExecutor.handleFetch(ScriptDataSetScriptExecutor.java:165) at
org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.fetch(ScriptDataSetRuntime.java:103) at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor
$CustomDataSet.fetch(PreparedScriptDSQuery.java:260) at org.eclipse.birt.data.engine.executor.dscache.DataSetToCache.fetchFromDataSet(DataSetToCache.java:243) at
org.eclipse.birt.data.engine.executor.dscache.DataSetToCache.fetch(DataSetToCache.java:171) at org.eclipse.birt.data.engine.executor.cache.OdiAdapter.fetch(OdiAdapter.java:218) at
org.eclipse.birt.data.engine.executor.cache.RowResultSet.fetch(RowResultSet.java:145) at org.eclipse.birt.data.engine.executor.cache.RowResultSet.doNext(RowResultSet.java:118) at
org.eclipse.birt.data.engine.executor.cache.RowResultSet.next(RowResultSet.java:96) at
org.eclipse.birt.data.engine.executor.cache.ExpandableRowResultSet.next(ExpandableRowResultSet.java:63) at
org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper.populateData(SmartCacheHelper.java:316) at
org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper.initInstance(SmartCacheHelper.java:285) at
org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper.getResultSetCache(SmartCacheHelper.java:246) at
org.eclipse.birt.data.engine.executor.cache.SmartCache.<init>(SmartCache.java:73) at org.eclipse.birt.data.engine.executor.transform.pass.PassUtil.populateOdiResultSet(PassUtil.java:
132) at org.eclipse.birt.data.engine.executor.transform.pass.PassUtil.pass(PassUtil.java:62) at
Re: scripted datasource fetch metod exception [message #1784519 is a reply to message #1768141] Wed, 28 March 2018 21:19 Go to previous message
Fullar Senjit is currently offline Fullar SenjitFriend
Messages: 1
Registered: March 2018
Junior Member
Hello.. did you get the solution ? i am getting the same error.
Previous Topic:BIRT 4.7 Designed in Ecllipse
Next Topic:BeforeOpen Script Error
Goto Forum:
  


Current Time: Sat Nov 17 14:45:28 GMT 2018

Powered by FUDForum. Page generated in 0.01565 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top