Home
Analytics
Using Scripted Data Source
DButtery
Hi all,
I'm trying to get my Scripted Data Source working ...
I've looked through all of the examples I could find and believe I have things setup correctly (mostly...) but keep hitting a few snags!
My Java class uses JDBC to connect with a SQL*Server backend. I added a main() a can see all of my data being retreived. Yea!
When I try to use 'Preview Results' in my data set I get the following erro:
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.1.v20080829
Error Code:data.engine.BirtException
Error Message:A BIRT exception occurred: There are errors evaluating script "__bm_open()":
Java constructor for "MyReportDataSource" with arguments "string,string" not found. (<inline>#2).. See next exception for more information.
There are errors evaluating script "__bm_open()":
Java constructor for "MyReportDataSource" with arguments "string,string" not found. (<inline>#2).
I'm assuming that my .class file is not in the right place... My question would then be: Where do I place the .class file???
Also, does this need to be referenced as the Event Handler Class for the Data Set and/or Data Source?
Lastly, I plan on using the birt runtime in my deployed environment. Where does my java .class get deployed in the runtime world???
Thanks!
-Dennis
Find more posts tagged with
Comments
DButtery
FYI ...
I'm using BIRT 2.3.1 with Eclipse Ganymede.
I have tried placing the .class file in:
eclipsepluginsorg.eclipse.bire.report.view_2.3.1.v20080908birtWEB-INFclasses folder.
No luck...
Virgil Dodson
Hi Dennis,<br />
<br />
Someone recently posted a nice article on using Java Objects for data in the DevShare area of BIRT Exchange. You can see it at <a class='bbc_url' href='
http://www.birt-exchange.com/devshare/designing-birt-reports/789-reporting-with-eclipse-birt-and-java-objects-pojo-039-s-tutorial/#'>Reporting
with Eclipse BIRT and Java Objects (POJO's) - Tutorial - Articles - BIRT Exchange</a>.<br />
<br />
In the Eclipse environment, if you have one project set up with your report designs and another Java project set up with your classes, then you may need to go into the Project Properties of your report project, and select your Java project as a Project Reference.