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)
DECreateDynamicTable.java tutorial
Terry
Hi Having a problem with the DECreateDynamicTable.java tutorial
I am getting this error.
java.lang.NullPointerException
at org.eclipse.birt.sample.reportitem.rotatedlabel.DECreateDynamicTable.buildDataSource(DECreateDynamicTable.java:67)
at org.eclipse.birt.sample.reportitem.rotatedlabel.DECreateDynamicTable.buildReport(DECreateDynamicTable.java:132)
at org.eclipse.birt.sample.reportitem.rotatedlabel.DECreateDynamicTable.main(DECreateDynamicTable.java:48)
I have checked that all the libraries are included in the build path
chartengineapi.jar
com.ibm.icu_3.4.4.1.jar
commons-cli-1.0.jar
commons-codec-1.3.jar
coreapi.jar
dataadapterapi.jar
dteapi.jar
engineapi.jar
flute.jar
js.jar
modelapi.jar
org.eclipse.emf.common_2.2.0.v200606051102.jar
org.eclipse.emf.ecore.xmi_2.2.0.v200606051102.jar
org.eclipse.emf.ecore_2.2.0.v200606051102.jar
sac.jar
scriptapi.jar
and that the oda-jdbc.jar is present in the drivers folder.
If I comment out the following two lines the report is created ok but obviously the data source and data set are missing from the report
buildDataSource();
buildDataSet(cols, fromClause);
It seams to be erroring at this point
dsHandle.setProperty( "odaDriverClass",
"org.eclipse.birt.report.data.oda.sampledb.Driver" );
any suggestiopns would be appreciated
Find more posts tagged with
Comments
Terry
The problem was all mine, basically I had included a plug-in library in my build path of my project that included other versions of the same jar files, removed this library from the build path, it now works fine.
Terry