Skip to Content.
Sympa Menu

freetds - RE: using jdbc from an applet

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Chris McNeilly" <cmcneilly AT smartbrief.com>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: RE: using jdbc from an applet
  • Date: Fri, 29 Jun 2001 13:11:31 -0400



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')
>





Archive powered by MHonArc 2.6.24.

Top of Page