Accessing Applets within a browser which retrieves data from a DBMS
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Sunday, December 22, 2002 10:41 AM

i'm not able to view an applet from within a browser which connects to a MS Access database, whereas i'm able to get the output when viewed in an AppletViewer, the Java Console in the browser says com.ms.security.SecurityExceptionEx[ticker.start]: java.io.IOException: bad path: H:KurienTickerJavasunjdbcodbcJdbcOdbcDriver.class at com/ms/security/permissions/FileIOPermission.check (FileIOPermission.java) at com/ms/security/PolicyEngine.deepCheck (PolicyEngine.java) at com/ms/security/PolicyEngine.checkPermission (PolicyEngine.java) at com/ms/security/StandardSecurityManager.chk (StandardSecurityManager.java) at com/ms/security/StandardSecurityManager.checkRead (StandardSecurityManager.java) at java/io/File   More>>

i'm not able to view an applet from within a browser which connects to a MS Access database, whereas i'm able to get the output when viewed in an AppletViewer, the Java Console in the browser says

com.ms.security.SecurityExceptionEx[ticker.start]: java.io.IOException: bad path: H:KurienTickerJavasunjdbcodbcJdbcOdbcDriver.class
at com/ms/security/permissions/FileIOPermission.check (FileIOPermission.java)
at com/ms/security/PolicyEngine.deepCheck (PolicyEngine.java)
at com/ms/security/PolicyEngine.checkPermission (PolicyEngine.java)
at com/ms/security/StandardSecurityManager.chk (StandardSecurityManager.java)
at com/ms/security/StandardSecurityManager.checkRead (StandardSecurityManager.java)
at java/io/File.isDirectory (File.java)
at sun/net/www/protocol/file/FileURLConnection.connect (FileURLConnection.java)
at sun/net/www/protocol/file/FileURLConnection.getInputStream (FileURLConnection.java)
at com/ms/vm/loader/ResourceLoader.getURLData (ResourceLoader.java)
at com/ms/vm/loader/ResourceLoader.getCodebaseRelativeData (ResourceLoader.java)
at com/ms/vm/loader/ResourceLoader.getClassData (ResourceLoader.java)
at com/ms/vm/loader/URLClassLoader.findClass (URLClassLoader.java)
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at java/lang/ClassLoader.loadClassInternal (ClassLoader.java)
at java/lang/Class.forName (Class.java)
at ticker.start (ticker.java:31)
at com/ms/applet/AppletPanel.securedCall0 (AppletPanel.java)
at com/ms/applet/AppletPanel.securedCall (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.run (AppletPanel.java)
at java/lang/Thread.run (Thread.java)

   <<Less

Re: Accessing Applets within a browser which retrieves data from a DBMS

Posted By:   Laxman_Subramanian  
Posted On:   Monday, December 23, 2002 11:40 AM

Normally Applets dont have permissions to read/write or access any of the files on the clients box along with no network permissions to open or connect to any machine other than the one on which it orginated from . You need to sign the applet to access client side files .

Where actually is your DBMS on the client side(Browser side ?) or onthe server side ?

Testing it with AppletViewer wil make your applet run as application where sand box retriction is not there ..

Read more about sand box retirctions ..

com/ms/security/permissions/FileIOPermission .. this basically implies you are running the applet in IE browser with Microsoft Virtual Machine and the VM spits out saying the applet is not trusted and does not have permissions ..
About | Sitemap | Contact