473,785 Members | 2,446 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

java.security.A ccessControlExc eption

19 New Member
hi..
i'm using msaccess database to retrive the data into an applet...
during runtime i'm getting an error like
java.security.A ccessControlExc eption:access denied(java.lan g .RuntimePermiss ionaccessClassI nPackage.sun.jd bc.odbc.)

when i'm using the same code using main method it is working properly..
for applet only it is showing this error..
can u please help me in tracing this...
Jan 4 '07 #1
6 2684
viijay
2 New Member
hi..
i'm using msaccess database to retrive the data into an applet...
during runtime i'm getting an error like
java.security.A ccessControlExc eption:access denied(java.lan g .RuntimePermiss ionaccessClassI nPackage.sun.jd bc.odbc.)

when i'm using the same code using main method it is working properly..
for applet only it is showing this error..
can u please help me in tracing this...
Try to put your code in paint method

public void paint(Graphics g) {
<your code>
}
Jan 4 '07 #2
r035198x
13,262 MVP
hi..
i'm using msaccess database to retrive the data into an applet...
during runtime i'm getting an error like
java.security.A ccessControlExc eption:access denied(java.lan g .RuntimePermiss ionaccessClassI nPackage.sun.jd bc.odbc.)

when i'm using the same code using main method it is working properly..
for applet only it is showing this error..
can u please help me in tracing this...
Hi there. Your applet may to be signed for this to work but this is not usually neccessary when the applet is loaded locally. Are you using appletviewer or the browser for loading the applet?
Jan 4 '07 #3
kusuma chalasani
19 New Member
i'm using appletviewer
Jan 4 '07 #4
kusuma chalasani
19 New Member
cant i have another solution instead of signing an applet?
Even if i write the code in paint method, i'm getting the same exception..
Jan 5 '07 #6
r035198x
13,262 MVP
cant i have another solution instead of signing an applet?
Even if i write the code in paint method, i'm getting the same exception..
Writing the code in the paint method won't help. You have to sign it or play around with policy files.
Applets are loaded onto browsers and so giving them access to the files on computers they are running on can pose a security risk. Have a look at all the links I gave you and try to understand what they are talking about.
Jan 5 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3347
by: ParkPD | last post by:
Hi, I have been made a signed-applet that handling xml data from web-server. When I execute this applet with appletviewer, it works well. And it is OK with Internet Explorer. But when I opened this page with Netscape 7.0(OS is Windows XP sp1), this applet throw exception when reading xml data from web server. the error message is like this, "Exception : java.security.AccessControlException: access
5
13648
by: Rowland | last post by:
Hi, I know this question has prob. been asked a million times, but I couldn't find it in the FAQ, so here goes : I'm trying to write a Java applet to call a dll that resides on the web server (running IIS 6). I've written a little test applet that should call a helloWorld function in the dll, but when I use System.loadLibrary, it gives me this security warning :
1
4728
by: Sergio | last post by:
I want to execute a method of one applet from one page HTML. If I execute the method that it reads from rows from init() all it works. f instead I execute the method through document.applet.method() I obtain one Exception java.security.AccessControlException: access denied. Where mistake? Thanks Sergio
0
629
by: Brendan | last post by:
Unable to connect to any hosts due to exception: java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve) CAN ANYONE HELP?? What is causing this error? is it a MYSQL or JAVA/JSP Problem, i cant seem to work this out ?
11
9272
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
0
5656
by: mailkhurana | last post by:
Hii , I am trying to use a type 2 driver to connect to DB2 0n AIX 5 I have a small java test to class to establish a conneciton with the db .. I am NOT using WAS or any appserver When I try to connect to the DB I get the following exception at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2120)
2
13520
by: Tim Murray | last post by:
First of all, I don't know much about Java, even its naming and version numbering nomenclature, and second, if there is a better group to ask this in, please let me know. System is Mac with 10.4.4. I have Java 1.3.1 and 1.4.2 plug-ins, and J2SE 5.0 (1.5.0) installed. The Java preferences application lets me choose J2SE 5 or 1.4.2 to run applets via a browser. The problem happens in both settings. The problem is that we have a...
15
10513
by: himilecyclist | last post by:
My State government organization has written a PHP/MySQL application which has been in production for about 6 months and has been highly successful. We are now embarking on a similar database application, but one with much higher security concerns (birth data). Prior to beginning the project, we met with an oversight committee who strongly advised against PHP and suggested Java. Their concern was that PHP could not be trusted to...
1
6653
by: Smoothj | last post by:
Hello all, when connecting to an IRC server with my java applet some of my members get this error code. java.security.AccessControlException : access denied (java.net.SocketPermission irc.xxx.xxx resolve) What can I do to solve this? Regards,
0
9491
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10104
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.