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)
Scripted Data Source: Class not found?
CharlesY
Hi,
I am implemented a Java class as a scripted date source but when trying to call it in the script I get the following error:
Caused by: org.eclipse.birt.data.engine.core.DataException: A BIRT exception occurred: Error evaluating Javascript expression. Script engine error: TypeError: [JavaPackage Availability] is not a function, it is org.mozilla.javascript.NativeJavaPackage. (<inline>#2)
The class Availability uses a JDBC connection to perform some queries on a database and does calculations on the ResultSet and ultimately returns a Vector object for BIRT.
The class is located in the WEB-INFclasses folder where several other classes are already placed and I have tested that work with other reports.
Is it a problem with grabbing the driver dependency for the JDBC connection that is causing the error? I had place the driver jar (jt400.jar) in WEB-INFlib.
Thanks for your time.
-Charles
Find more posts tagged with
Comments
mwilliams
Charles,
Are you using the designer? Or are you using the deployed viewer? Also, what version are you using?