Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Hibernate and BIRT integration
yasin
I am working on a project that must use Hibernate for mapping database.
I completed project but report has error :
The following items have errors:
Help me please...
ReportDesign (id = 1):
+ There are errors evaluating script " importPackage(Packages.org.eclipse.birt.samples.scripted.hibernate);
cul = CustomerList();
customers = cul.listCustomers("from Customer");
iterator = customers.iterator();
":
{1}.
Error.ScriptEvaluationError ( 1 time(s) )
detail : org.eclipse.birt.report.engine.api.EngineException: There are errors evaluating script " importPackage(Packages.org.eclipse.birt.samples.scripted.hibernate);
cul = CustomerList();
customers = cul.listCustomers("from Customer");
iterator = customers.iterator();
":
{1}.
+ There are errors evaluating script " if(iterator.hasNext() == false ){
return false;
}
var customer = iterator.next( );
row["CUSTOMERNUMBER"] = customer.getCustomerNumber();
row["COUNTRY"] = customer.getCountry();
row["CONTACTLASTNAME"] = customer.getContactLastName();
row["CONTACTFIRSTNAME"] = customer.getContactFirstName();
row["PHONE"] = customer.getPhone();
row["SALESREPEMPLOYEENUMBER"] = customer.getSalesRepEmployeeNumber();
row["CUSTOMERNAME"] = customer.getCustomerName();
return true;
":
{1}.
Error.ScriptEvaluationError ( 1 time(s) )
detail : org.eclipse.birt.report.engine.api.EngineException: There are errors evaluating script " if(iterator.hasNext() == false ){
return false;
}
var customer = iterator.next( );
row["CUSTOMERNUMBER"] = customer.getCustomerNumber();
row["COUNTRY"] = customer.getCountry();
row["CONTACTLASTNAME"] = customer.getContactLastName();
row["CONTACTFIRSTNAME"] = customer.getContactFirstName();
row["PHONE"] = customer.getPhone();
row["SALESREPEMPLOYEENUMBER"] = customer.getSalesRepEmployeeNumber();
row["CUSTOMERNAME"] = customer.getCustomerName();
return true;
":
{1}.
+ Unhandled exception when executing script.
Find more posts tagged with
Comments
timofei
No worries, I have been working on a couple things and I have some good news, I have just gotten hibernate working with birt. I am in the process of writing up my steps and example code. THANK YOU for all your help, with out your help I wouldn't have been able to get it done.
IsmailSh
@JasonW
, can you please share link for step by step integration of BIRT (viewer) with hibernate.