If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

RmiJdbc.RJJdbcServer Problems

I am trying to connect to an MS Access database through an Applet.
If there is an easier way of doing this please let me know.

I have been having some problems with starting the rmiregistry and
connecting to the database and I hope that someone could help out.

Problem 1:
When executing : java RmiJdbc.RJJdbcServer sun.jdbc.odbc.JdbcOdbcDriver
I get a warning that tells me that the java.rmi.server.hostname property
can't be read (accessed denied), but it looks like the RmiJdbcServer still
gets bound in the rmi registry.

I did like what was written on the FAQ page, editing the java.policy file
but the
same error occoured.

Problem 2:
When executing the sample program from the web (localdemo and rjdemo) I
have no problem running the localdemo, but when I try to execute the rjdemo
I get the following error :
java.sql.SQLException: Unexpected exception; nested exception is:
java.lang.NullPointerException

I added some code to see what exactly was null. It turns out that the 'c' is
null.