# please help

=?iso-8859-1?Q?Nicolas_St=E9phane?= (snicolas@alta-informatique.fr)
Tue, 22 Dec 1998 20:59:28 +0100

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: David HOAREAU: "pbm with applets and database"
- Previous message: mock@Eng: "ID#:10222 JDC Feedback"

This is a multi-part message in MIME format.

------=_NextPart_000_0004_01BE2DED.F6D13F40
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

i encounter many troubles with using a database with an applet .In fact =
,all's right in my appletViewer but as soon as i try to browse my HTML =
page in IE4.0 , it's written in the java console that my applet is not =
allowed to write / read in my database.

My config is :NT4.0(sp4)+IE4.0+Jbuilder2+jdk1.1.6(borland's one)

I have established a java.sql.Connection and Statement to acces my =
DB.(my database is an MSaccess 8.0).And i imported the whole =
sun.jdbc.odbc package
and deployed my applet so that it can use those classes.

the com.ms.security.PolicyEngine declares the followings:

com.ms.security.SecurityExceptionEx[sun/jdbc/odbc/JdbcOdbcDriver.trusted]=
: cannot access file JdbcOdbcSecurityCheck
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.checkWrite =
(StandardSecurityManager.java)
at sun/jdbc/odbc/JdbcOdbcDriver.trusted (JdbcOdbcDriver.java:502)
at sun/jdbc/odbc/JdbcOdbcDriver.acceptsURL (JdbcOdbcDriver.java:201)
at sun/jdbc/odbc/JdbcOdbcDriver.connect (JdbcOdbcDriver.java:143)
at java/sql/DriverManager.getConnection (DriverManager.java)
at java/sql/DriverManager.getConnection (DriverManager.java)
at elisa/temporaire/MoteurTempo2.jbInit (MoteurTempo2.java:128)
at elisa/temporaire/MoteurTempo2.<init> (MoteurTempo2.java:95)
at elisa/temporaire/Tempo.<init> (Tempo.java:43)
at com/ms/applet/BrowserAppletFrame.newInstance =
(BrowserAppletFrame.java)
at com/ms/applet/AppletPanel.processSentEvent (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)
com.ms.security.SecurityExceptionEx[sun/jdbc/odbc/JdbcOdbc.<init>]
at com/ms/security/PolicyEngine.shallowCheck (PolicyEngine.java)
at com/ms/security/PolicyEngine.checkCallersPermission =
(PolicyEngine.java)
at com/ms/security/StandardSecurityManager.chk =
(StandardSecurityManager.java)
at com/ms/security/StandardSecurityManager.checkLink =
(StandardSecurityManager.java)
at java/lang/Runtime.loadLibrary (Runtime.java)
at java/lang/System.loadLibrary (System.java)
at sun/jdbc/odbc/JdbcOdbc.<init> (JdbcOdbc.java:63)
at sun/jdbc/odbc/JdbcOdbcDriver.initialize (JdbcOdbcDriver.java:321)
at sun/jdbc/odbc/JdbcOdbcDriver.connect (JdbcOdbcDriver.java:159)
at java/sql/DriverManager.getConnection (DriverManager.java)
at java/sql/DriverManager.getConnection (DriverManager.java)
at elisa/temporaire/MoteurTempo2.jbInit (MoteurTempo2.java:128)
at elisa/temporaire/MoteurTempo2.<init> (MoteurTempo2.java:95)
at elisa/temporaire/Tempo.<init> (Tempo.java:43)
at com/ms/applet/BrowserAppletFrame.newInstance =
(BrowserAppletFrame.java)
at com/ms/applet/AppletPanel.processSentEvent (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)
com.ms.security.SecurityExceptionEx[sun/jdbc/odbc/JdbcOdbcDriver.trusted]=
: cannot access file JdbcOdbcSecurityCheck
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.checkWrite =
(StandardSecurityManager.java)
at sun/jdbc/odbc/JdbcOdbcDriver.trusted (JdbcOdbcDriver.java:502)
at sun/jdbc/odbc/JdbcOdbcDriver.acceptsURL (JdbcOdbcDriver.java:201)
at sun/jdbc/odbc/JdbcOdbcDriver.connect (JdbcOdbcDriver.java:143)
at java/sql/DriverManager.getConnection (DriverManager.java)
at java/sql/DriverManager.getConnection (DriverManager.java)
at elisa/temporaire/MoteurTempo2.jbInit (MoteurTempo2.java:128)
at elisa/temporaire/MoteurTempo2.<init> (MoteurTempo2.java:95)
at elisa/temporaire/Tempo.<init> (Tempo.java:43)
at com/ms/applet/BrowserAppletFrame.newInstance =
(BrowserAppletFrame.java)
at com/ms/applet/AppletPanel.processSentEvent (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)
com.ms.security.SecurityExceptionEx[sun/jdbc/odbc/JdbcOdbc.<init>]
at com/ms/security/PolicyEngine.shallowCheck (PolicyEngine.java)
at com/ms/security/PolicyEngine.checkCallersPermission =
(PolicyEngine.java)
at com/ms/security/StandardSecurityManager.chk =
(StandardSecurityManager.java)
at com/ms/security/StandardSecurityManager.checkLink =
(StandardSecurityManager.java)
at java/lang/Runtime.loadLibrary (Runtime.java)
at java/lang/System.loadLibrary (System.java)
at sun/jdbc/odbc/JdbcOdbc.<init> (JdbcOdbc.java:63)
at sun/jdbc/odbc/JdbcOdbcDriver.initialize (JdbcOdbcDriver.java:321)
at sun/jdbc/odbc/JdbcOdbcDriver.connect (JdbcOdbcDriver.java:159)
at java/sql/DriverManager.getConnection (DriverManager.java)
at java/sql/DriverManager.getConnection (DriverManager.java)
at elisa/temporaire/MoteurTempo2.jbInit (MoteurTempo2.java:128)
at elisa/temporaire/MoteurTempo2.<init> (MoteurTempo2.java:95)
at elisa/temporaire/Tempo.<init> (Tempo.java:43)
at com/ms/applet/BrowserAppletFrame.newInstance =
(BrowserAppletFrame.java)
at com/ms/applet/AppletPanel.processSentEvent (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)
java.sql.SQLException: No suitable driver
at java/sql/DriverManager.getConnection (DriverManager.java)
at java/sql/DriverManager.getConnection (DriverManager.java)
at elisa/temporaire/MoteurTempo2.jbInit (MoteurTempo2.java:128)
at elisa/temporaire/MoteurTempo2.<init> (MoteurTempo2.java:95)
at elisa/temporaire/Tempo.<init> (Tempo.java:43)
at com/ms/applet/BrowserAppletFrame.newInstance =
(BrowserAppletFrame.java)
at com/ms/applet/AppletPanel.processSentEvent (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)

What can i do????????

I have tried to change the IE4's security paramters but it did nothing.
I have tried to use the com.ms.security package but it did nothing.
I deployed in both jars & not archived way (not as the same time!!!!!)

Please , it's very very urgent.

Thanks in advance
david

------=_NextPart_000_0004_01BE2DED.F6D13F40
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
i encounter many troubles with using = a database=20 with an applet .In fact ,all's right in my appletViewer = but as=20 soon as i try to browse my HTML page in IE4.0 , it's = written in=20 the java console that my applet is not allowed to write / read in my=20 database.
My config is=20 :NT4.0(sp4)+IE4.0+Jbuilder2+jdk1.1.6(borland's one)
I have established a = java.sql.Connection and=20 Statement to acces my DB.(my database is an MSaccess 8.0).And i imported = the=20 whole sun.jdbc.odbc package
and deployed = my applet so=20 that it can use those classes.
the com.ms.security.PolicyEngine = declares the=20 followings:
com.ms.security.SecurityExceptionEx[sun/jdbc/odbc/JdbcOdbcDriver= .trusted]:=20 cannot access file JdbcOdbcSecurityCheck
at=20 com/ms/security/permissions/FileIOPermission.check=20 (FileIOPermission.java)
at = com/ms/security/PolicyEngine.deepCheck=20 (PolicyEngine.java)
at = com/ms/security/PolicyEngine.checkPermission=20 (PolicyEngine.java)
at = com/ms/security/StandardSecurityManager.chk=20 (StandardSecurityManager.java)
at=20 com/ms/security/StandardSecurityManager.checkWrite=20 (StandardSecurityManager.java)
at = sun/jdbc/odbc/JdbcOdbcDriver.trusted=20 (JdbcOdbcDriver.java:502)
at = sun/jdbc/odbc/JdbcOdbcDriver.acceptsURL=20 (JdbcOdbcDriver.java:201)
at = sun/jdbc/odbc/JdbcOdbcDriver.connect=20 (JdbcOdbcDriver.java:143)
at = java/sql/DriverManager.getConnection=20 (DriverManager.java)
at java/sql/DriverManager.getConnection=20 (DriverManager.java)
at elisa/temporaire/MoteurTempo2.jbInit=20 (MoteurTempo2.java:128)
at = elisa/temporaire/MoteurTempo2.<init>=20 (MoteurTempo2.java:95)
at elisa/temporaire/Tempo.<init>=20 (Tempo.java:43)
at com/ms/applet/BrowserAppletFrame.newInstance = (BrowserAppletFrame.java)
at = com/ms/applet/AppletPanel.processSentEvent=20 (AppletPanel.java)
at = com/ms/applet/AppletPanel.processSentEvent=20 (AppletPanel.java)
at com/ms/applet/AppletPanel.run=20 (AppletPanel.java)
at java/lang/Thread.run=20 (Thread.java)
com.ms.security.SecurityExceptionEx[sun/jdbc/odbc/JdbcOd= bc.<init>]
at=20 com/ms/security/PolicyEngine.shallowCheck = (PolicyEngine.java)
at=20 com/ms/security/PolicyEngine.checkCallersPermission=20 (PolicyEngine.java)
at = com/ms/security/StandardSecurityManager.chk=20 (StandardSecurityManager.java)
at=20 com/ms/security/StandardSecurityManager.checkLink=20 (StandardSecurityManager.java)
at java/lang/Runtime.loadLibrary = (Runtime.java)
at java/lang/System.loadLibrary=20 (System.java)
at sun/jdbc/odbc/JdbcOdbc.<init>=20 (JdbcOdbc.java:63)
at sun/jdbc/odbc/JdbcOdbcDriver.initialize=20 (JdbcOdbcDriver.java:321)
at = sun/jdbc/odbc/JdbcOdbcDriver.connect=20 (JdbcOdbcDriver.java:159)
at = java/sql/DriverManager.getConnection=20 (DriverManager.java)
at java/sql/DriverManager.getConnection=20 (DriverManager.java)
at elisa/temporaire/MoteurTempo2.jbInit=20 (MoteurTempo2.java:128)
at = elisa/temporaire/MoteurTempo2.<init>=20 (MoteurTempo2.java:95)
at elisa/temporaire/Tempo.<init>=20 (Tempo.java:43)
at com/ms/applet/BrowserAppletFrame.newInstance = (BrowserAppletFrame.java)
at = com/ms/applet/AppletPanel.processSentEvent=20 (AppletPanel.java)
at = com/ms/applet/AppletPanel.processSentEvent=20 (AppletPanel.java)
at com/ms/applet/AppletPanel.run=20 (AppletPanel.java)
at java/lang/Thread.run=20 (Thread.java)
com.ms.security.SecurityExceptionEx[sun/jdbc/odbc/JdbcOd= bcDriver.trusted]:=20 cannot access file JdbcOdbcSecurityCheck
at=20 com/ms/security/permissions/FileIOPermission.check=20 (FileIOPermission.java)
at = com/ms/security/PolicyEngine.deepCheck=20 (PolicyEngine.java)
at = com/ms/security/PolicyEngine.checkPermission=20 (PolicyEngine.java)
at = com/ms/security/StandardSecurityManager.chk=20 (StandardSecurityManager.java)
at=20 com/ms/security/StandardSecurityManager.checkWrite=20 (StandardSecurityManager.java)
at = sun/jdbc/odbc/JdbcOdbcDriver.trusted=20 (JdbcOdbcDriver.java:502)
at = sun/jdbc/odbc/JdbcOdbcDriver.acceptsURL=20 (JdbcOdbcDriver.java:201)
at = sun/jdbc/odbc/JdbcOdbcDriver.connect=20 (JdbcOdbcDriver.java:143)
at = java/sql/DriverManager.getConnection=20 (DriverManager.java)
at java/sql/DriverManager.getConnection=20 (DriverManager.java)
at elisa/temporaire/MoteurTempo2.jbInit=20 (MoteurTempo2.java:128)
at = elisa/temporaire/MoteurTempo2.<init>=20 (MoteurTempo2.java:95)
at elisa/temporaire/Tempo.<init>=20 (Tempo.java:43)
at com/ms/applet/BrowserAppletFrame.newInstance = (BrowserAppletFrame.java)
at = com/ms/applet/AppletPanel.processSentEvent=20 (AppletPanel.java)
at = com/ms/applet/AppletPanel.processSentEvent=20 (AppletPanel.java)
at com/ms/applet/AppletPanel.run=20 (AppletPanel.java)
at java/lang/Thread.run=20 (Thread.java)
com.ms.security.SecurityExceptionEx[sun/jdbc/odbc/JdbcOd= bc.<init>]
at=20 com/ms/security/PolicyEngine.shallowCheck = (PolicyEngine.java)
at=20 com/ms/security/PolicyEngine.checkCallersPermission=20 (PolicyEngine.java)
at = com/ms/security/StandardSecurityManager.chk=20 (StandardSecurityManager.java)
at=20 com/ms/security/StandardSecurityManager.checkLink=20 (StandardSecurityManager.java)
at java/lang/Runtime.loadLibrary = (Runtime.java)
at java/lang/System.loadLibrary=20 (System.java)
at sun/jdbc/odbc/JdbcOdbc.<init>=20 (JdbcOdbc.java:63)
at sun/jdbc/odbc/JdbcOdbcDriver.initialize=20 (JdbcOdbcDriver.java:321)
at = sun/jdbc/odbc/JdbcOdbcDriver.connect=20 (JdbcOdbcDriver.java:159)
at = java/sql/DriverManager.getConnection=20 (DriverManager.java)
at java/sql/DriverManager.getConnection=20 (DriverManager.java)
at elisa/temporaire/MoteurTempo2.jbInit=20 (MoteurTempo2.java:128)
at = elisa/temporaire/MoteurTempo2.<init>=20 (MoteurTempo2.java:95)
at elisa/temporaire/Tempo.<init>=20 (Tempo.java:43)
at com/ms/applet/BrowserAppletFrame.newInstance = (BrowserAppletFrame.java)
at = com/ms/applet/AppletPanel.processSentEvent=20 (AppletPanel.java)
at = com/ms/applet/AppletPanel.processSentEvent=20 (AppletPanel.java)
at com/ms/applet/AppletPanel.run=20 (AppletPanel.java)
at java/lang/Thread.run=20 (Thread.java)
java.sql.SQLException: No suitable driver
at=20 java/sql/DriverManager.getConnection (DriverManager.java)
at=20 java/sql/DriverManager.getConnection (DriverManager.java)
at=20 elisa/temporaire/MoteurTempo2.jbInit (MoteurTempo2.java:128)
at = elisa/temporaire/MoteurTempo2.<init> = (MoteurTempo2.java:95)
at=20 elisa/temporaire/Tempo.<init> (Tempo.java:43)
at=20 com/ms/applet/BrowserAppletFrame.newInstance=20 (BrowserAppletFrame.java)
at = com/ms/applet/AppletPanel.processSentEvent=20 (AppletPanel.java)
at = com/ms/applet/AppletPanel.processSentEvent=20 (AppletPanel.java)
at com/ms/applet/AppletPanel.run=20 (AppletPanel.java)
at java/lang/Thread.run=20 (Thread.java)
What can i do????????
I have tried to change the IE4's security paramters = but it did=20 nothing.
I have tried to use the com.ms.security package but = it did=20 nothing.
I deployed in both jars & not archived way (not as the same=20 time!!!!!)
Please , it's very very = urgent.
Thanks in advance
david
------=_NextPart_000_0004_01BE2DED.F6D13F40--

- Next message: David HOAREAU: "pbm with applets and database"
- Previous message: mock@Eng: "ID#:10222 JDC Feedback"