Wrox Home  
Search P2P Archive for: Go

  Return to Index  

security_databases thread: Re: java.security.


Message #1 by "Alexander Greco" <alex_greco@h...> on Mon, 25 Nov 2002 16:47:28
> hello: 
 
i have written an application that acesses oracle 9i database for some data
and then displays this data. this application works fine but my troubles
started when i tried to convert it in to an applet. so from the applet when
i try to acess the database, i get an error which says;

C:\brobbwork>appletViewer Vasxpro.html 
response error problem loading oracle driver 
access denied (java.lang.RuntimePermission exitVM) 
java.security.AccessControlException: access denied
(java.lang.RuntimePermission 
 exitVM) 
        at AccessControlContext.checkPermission(Unknown Source) 
        at java.security.AccessController.checkPermission(Unknown Source) 
        at java.lang.SecurityManager.checkPermission(Unknown Source) 
        at java.lang.SecurityManager.checkExit(Unknown Source) 
        at java.lang.Runtime.exit(Unknown Source) 
        at java.lang.System.exit(Unknown Source) 
        at Vasxpro.captureData(Vasxpro.java:251) 
        at Vasxpro.init(Vasxpro.java:108) 
        at sun.applet.AppletPanel.run(Unknown Source) 
        at java.lang.Thread.run(Unknown Source) 
Generating 3D display.... 
java.lang.NullPointerException 

so basically,  it seems that the following code is not executing 
correctly: 

                   try 
                        { 
                        Class.forName("oracle.jdbc.driver.OracleDriver"); 
                        } 
                        catch(ClassNotFoundException x) 
                        { 
System.out.println("response error roblem loading oracle driver"); 
                System.exit(0); 
                        } 

for some reason it cannot load the driver and i will to glad to know any
work around this problem. 

thanks for your time. 







Isaac 

  

  Return to Index