I am developing a custom non-JDBC ODA Driver for report module in the
RCP application. I created both the runtime and designer plugins and
have overridden all the methods in the runtime plugin.

The problem that I am stuck up with right now is when I select my custom
data source from the UI and say "Next". The Data Source Properties page
is displayed with a "Ping" button. When I press the "Ping" button, for
some reason, I get the following exception along with "Ping Failed" notice:

Is there anyone who know why I am getting this exception instead of
"Ping Succeeded" message? My data source doesn't have any properties and
hence the connection.open(properties) directly return true without doing
anything. Can anybody throw some light on the issue?

This looks like the ping factory is not able to find your custom oda runtime
plugin. Check your workspace/.metadata/.log file to see if there are any
error messages. Perhaps there was a problem with loading your plugin, like
missing dependencies, etc.
Also check your "org.eclipse.datatools.connectivity.connectionProfile"
extension, to double check that the correct oda data source id is specified
in all the related attributes.

..metadata/.log file doesn't have any error saying missing plugins or
missing dependencies. I checked the
"org.eclipse.datatools.connectivity.connectionProfile" extension but I
see that all the references to oda data source id have the value of
"%oda.data.source.id" whose value is set in the "plugin.properties" file
to the package name of the ODA runtime driver. But still I continue to
get the "Ping Failed" message when clicked on the "Test Connection" button.

I further notice that if I go on to continue creating the Data Source
and the data set after the ping failed, my application throws the
following NullPointerException when I try to do the "preview results"
from the "Edit DataSet" dialog after entering the query:

As soon as I say "finish" after entering the query, I am able to see all
the columns of my dataset in the "Edit dataset" dialog. But when I
select "Preview results" from the same dialog, I get a BIRT exception
error dialog saying "Unable to find ODA Driver..." and throws the above
exception on the console.

I am unable to figure out why the application is unable to find my
runtime oda driver even after I reference it to the correct path in
plugin.xml. Any help would be really appreciated.

Thank you
-Sree

Linda Chan wrote:
> This looks like the ping factory is not able to find your custom oda runtime
> plugin. Check your workspace/.metadata/.log file to see if there are any
> error messages. Perhaps there was a problem with loading your plugin, like
> missing dependencies, etc.
> Also check your "org.eclipse.datatools.connectivity.connectionProfile"
> extension, to double check that the correct oda data source id is specified
> in all the related attributes.
>
> Linda
>
>

It would be impossible to tell without your actual plugin. It still looks
like the runtime plugin configuration may be missing something, as an
unexpected NPE is encountered when trying to load and instantiate your oda
driver class. The next thing would be to use the debugger and step thru
the org.eclipse.datatools.connectivity.oda.consumer.helper code
(OdaDriver.loadDriverInstance method), to see what triggers the NPE.

This looks like the ping factory is not able to find your custom oda runtime
plugin. Check your workspace/.metadata/.log file to see if there are any
error messages. Perhaps there was a problem with loading your plugin, like
missing dependencies, etc.
Also check your "org.eclipse.datatools.connectivity.connectionProfile"
extension, to double check that the correct oda data source id is specified
in all the related attributes.

..metadata/.log file doesn't have any error saying missing plugins or
missing dependencies. I checked the
"org.eclipse.datatools.connectivity.connectionProfile" extension but I
see that all the references to oda data source id have the value of
"%oda.data.source.id" whose value is set in the "plugin.properties" file
to the package name of the ODA runtime driver. But still I continue to
get the "Ping Failed" message when clicked on the "Test Connection" button.

I further notice that if I go on to continue creating the Data Source
and the data set after the ping failed, my application throws the
following NullPointerException when I try to do the "preview results"
from the "Edit DataSet" dialog after entering the query:

As soon as I say "finish" after entering the query, I am able to see all
the columns of my dataset in the "Edit dataset" dialog. But when I
select "Preview results" from the same dialog, I get a BIRT exception
error dialog saying "Unable to find ODA Driver..." and throws the above
exception on the console.

I am unable to figure out why the application is unable to find my
runtime oda driver even after I reference it to the correct path in
plugin.xml. Any help would be really appreciated.

Thank you
-Sree

Linda Chan wrote:
> This looks like the ping factory is not able to find your custom oda runtime
> plugin. Check your workspace/.metadata/.log file to see if there are any
> error messages. Perhaps there was a problem with loading your plugin, like
> missing dependencies, etc.
> Also check your "org.eclipse.datatools.connectivity.connectionProfile"
> extension, to double check that the correct oda data source id is specified
> in all the related attributes.
>
> Linda
>
>

It would be impossible to tell without your actual plugin. It still looks
like the runtime plugin configuration may be missing something, as an
unexpected NPE is encountered when trying to load and instantiate your oda
driver class. The next thing would be to use the debugger and step thru
the org.eclipse.datatools.connectivity.oda.consumer.helper code
(OdaDriver.loadDriverInstance method), to see what triggers the NPE.