RmiJdbc.RJJdbcServer Problems

admin

Administrator
Staff member
Hello,In this post I am refering to the followint web page.<!-- m --><a class="postlink" href="http://dyade.inrialpes.fr/mediation/download/RmiJdbc/RmiJdbc.htmlI">http://dyade.inrialpes.fr/mediation/dow ... Jdbc.htmlI</a><!-- m --> 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 andconnecting to the database and I hope that someone could help out.Problem 1:When executing : java RmiJdbc.RJJdbcServer sun.jdbc.odbc.JdbcOdbcDriverI get a warning that tells me that the java.rmi.server.hostname propertycan't be read (accessed denied), but it looks like the RmiJdbcServer stillgets bound in the rmi registry.I did like what was written on the FAQ page, editing the java.policy filebut thesame error occoured.Problem 2:When executing the sample program from the web (localdemo and rjdemo) Ihave no problem running the localdemo, but when I try to execute the rjdemoI get the following error :java.sql.SQLException: Unexpected exception; nested exception is:java.lang.NullPointerExceptionI added some code to see what exactly was null. It turns out that the 'c' isnull.java.sql.Connection c =DriverManager.getConnection("jdbc:rmi:"+rmiHost+"/"+url, "admin", "rjdemo");If anyone has any insight on how to fix either of these problems it wouldbegreatly appreciated.Regards,Mike <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
 
Back
Top