Integrate a Custom Oda Driver in a Java Program?

View: New views
1 Messages — Rating Filter:   Alert me  

Integrate a Custom Oda Driver in a Java Program?

by Jenny01 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

i programmed a ODA Driver and want integrate it in a Java program.

There is a great example to use the JDBC-Oda Driver in a Java class:
Java_-_Build_Dynamic_Table_%28BIRT%29

For my training, i would like to integrate the google_oda_driver:
(in order to know how to do it with my oda driver)

Here you can download the google oda driver:
download google-spreadsheet-oda_1.0.0.zip

The both jar files (runtime and ui) i copied to the eclipse\plugins folder.

And I changed the methods buildDataSource() and buildDataSets() class DECreateDynamicTable following:

CopyOfDECreateDynamicTable.java

Now, when i run the program, i get a java.lang.NullPointerException:

java.lang.NullPointerException
at Demo.CopyOfDECreateDynamicTable.buildDataSet(CopyOfDECreateDynamicTable.java:82)
at Demo.CopyOfDECreateDynamicTable.buildReport(CopyOfDECreateDynamicTable.java:126)
at Demo.CopyOfDECreateDynamicTable.main(CopyOfDECreateDynamicTable.java:51)

I would be pleased to get help.

Thank you.

Best regards
Jenny