using jdbc from an applet

Chris McNeilly cmcneilly at smartbrief.com
Fri Jun 29 13:11:31 EDT 2001



That's a feature, not a bug!

Applets run in their own little container for security reasons and won't
be able to access any outside resources, including databases.

Chris

> -----Original Message-----
> From: bounce-freetds-132045 at franklin.oit.unc.edu
> [mailto:bounce-freetds-132045 at franklin.oit.unc.edu]On Behalf Of Nathan
> Fredrickson
> Sent: Friday, June 29, 2001 12:58 PM
> To: TDS Development Group
> Subject: [freetds] using jdbc from an applet
>
>
> Hi,
> I'm attampting to use the JDBC driver from an applet.  When I call
> getConnection() the following security exception is thrown.
> What exactly
> is "Reflective access"?  I searched the driver source for a
> reference to
> getDeclaredMethod() but found nothing.
> Thanks, Nathan.
>
> com.ms.security.SecurityExceptionEx[com/internetcds/jdbc/tds/C
> onstructors.init]:
> Reflective access to class java.sql.Statement prohibited.
> 	at com/ms/security/permissions/ReflectionPermission.check
> 	at com/ms/security/PolicyEngine.deepCheck
> 	at com/ms/security/PolicyEngine.checkPermission
> 	at com/ms/security/StandardSecurityManager.chk
> 	at com/ms/security/StandardSecurityManager.checkMemberAccess
> 	at java/lang/Class.checkMemberAccess
> 	at java/lang/Class.getDeclaredMethod
> 	at com/internetcds/jdbc/tds/Constructors.init
> 	at com/internetcds/jdbc/tds/Constructors.newConnection
> 	at com/internetcds/jdbc/tds/Driver.connect
> 	at java/sql/DriverManager.getConnection
> 	at java/sql/DriverManager.getConnection
> 	at TDSTest.init
> 	at com/ms/applet/AppletPanel.securedCall0
> 	at com/ms/applet/AppletPanel.securedCall
> 	at com/ms/applet/AppletPanel.processSentEvent
> 	at com/ms/applet/AppletPanel.processSentEvent
> 	at com/ms/applet/AppletPanel.run
> 	at java/lang/Thread.run
>
> ---
> You are currently subscribed to freetds as: [cmcneilly at smartbrief.com]
> To unsubscribe, forward this message to
> $subst('Email.Unsub')
>




More information about the FreeTDS mailing list