Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Birt Scripted Data Set Hibernate
ChrisRa
Hello,
i try to read Objects with Hibernate.
The code in the open script:
count = 0;
Packages.database.DatabaseFactoryPostgres.initializeDatabaseFactoryPostgres();
factory = Packages.database.DatabaseFactoryPostgres.getDatabaseFactory();
delicts = factory.readAllDelicts();
if (count < delicts.size()){
row["columnAkz"] = delicts.get(count).getAkz();
count++;
return true;
}
return false;
I got this error:
A BIRT exception occurred.
Plug-in Provider:Eclipse.org
Plug-in Name:BIRT Data Engine
Plug-in ID:org.eclipse.birt.data
Version:2.3.2.r232_v20090521
Error Code:data.engine.BirtException
Error Message:A BIRT exception occurred: There are errors evaluating script "__bm_open()":
org/hibernate/HibernateException.. See next exception for more information.
There are errors evaluating script "__bm_open()":
org/hibernate/HibernateException.
I don't know what is to do now?
mfg
Christian
Find more posts tagged with
Comments
mwilliams
Hi Christian,<br />
<br />
Have you seen this post from the devShare?<br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/devshare/designing-birt-reports/839-scripted-data-set-with-hibernate/#description'>Scripted
Data Set with Hibernate - Articles - BIRT Exchange</a>
ChrisRa
Hello ,
this is exactly where i' am looking for .
So my Problem is that I have to put the jar-files in the correct directory.
So i work with the document.
Thanks
Christian
ChrisRa
Hello,
i work with Hibernate-Annotation.
Is it right that i have to put the hibernate.cfg.xml in the directory.
mfg
Christian
ChrisRa
Hallo ,
i' got this error when i started the preview
The following items have errors:
ReportDesign (id = 1):
- There are errors evaluating script " reader = new Packages.data.DelictReader();
delicts = reader.readAllDelicts("from Delict");
iterator = delicts.iterator();
":
Caused by: org.eclipse.birt.core.exception.CoreException: There are errors evaluating script "__bm_OPEN()":org/hibernate/Session. at org.eclipse.birt.core.script.ScriptContext.eval(ScriptContext.java:307) at org.eclipse.birt.core.script.ScriptContext.eval(ScriptContext.java:268) at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJSAsExpr(ScriptEvalUtil.java:713) ... 84 moreCaused by: java.lang.NoClassDefFoundError: org/hibernate/Session at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.privateGetPublicMethods(Unknown Source) at java.lang.Class.getMethods(Unknown Source) at org.mozilla.javascript.JavaMembers.discoverAccessibleMethods(JavaMembers.java:361) at org.mozilla.javascript.JavaMembers.discoverAccessibleMethods(JavaMembers.java:335) at org.mozilla.javascript.JavaMembers.reflect(JavaMembers.java:428) at org.mozilla.javascript.JavaMembers.<init>(JavaMembers.java:77) at org.mozilla.javascript.JavaMembers.lookupClass(JavaMembers.java:759) at org.mozilla.javascript.NativeJavaClass.initMembers(NativeJavaClass.java:83) at org.mozilla.javascript.NativeJavaClass.<init>(NativeJavaClass.java:78) at org.mozilla.javascript.NativeJavaPackage.getPkgProperty(NativeJavaPackage.java:159) at org.mozilla.javascript.NativeJavaPackage.get(NativeJavaPackage.java:105) at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1544) at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1375) at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1364) at org.mozilla.javascript.gen.c7._c1(<inline>:2) at org.mozilla.javascript.gen.c7.call(<inline>) at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108) at org.mozilla.javascript.gen.c6._c0(<inline>:1) at org.mozilla.javascript.gen.c6.call(<inline>) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834) at org.mozilla.javascript.gen.c6.call(<inline>) at org.mozilla.javascript.gen.c6.exec(<inline>) at org.eclipse.birt.core.script.ScriptContext.eval(ScriptContext.java:302) ... 86 moreCaused by: java.lang.ClassNotFoundException: org.hibernate.Session at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source)
The jar-File Hibernate3 ist in the directory
D:Progammeclipsepluginsorg.eclipse.birt.report.viewer_2.3.2.r232_20090212birtWEB-INFlib
I don't know what i do wrong.
another question:
Later i want to work with the Birt-Runtime reportApi. Is there a place for the jar-files too
mfg
Christian
Sorry for my bad English