Solved

com.ms.security.SecurityExceptionEx

Posted on 1998-10-13
3
167 Views
Last Modified: 2008-03-06
I'm attempting to use an IE4 browser to access data on a Sybase database using a Sybase native driver. I can retrieve data fine from the Visual Cafe environment, however I cannot retrieve this data from a browser. I'm receiving the message below:

Exception: cannot access "xxx.xxx.xxx.xx":xxxx
com.ms.security.SecurityExceptionEx[DataBaseLogic.GetNames]: cannot access "xxx.xxx.xxx.xx":xxxx
      
0
Comment
Question by:hbsha
3 Comments
 

Author Comment

by:hbsha
ID: 1225734
Edited text of question
0
 

Expert Comment

by:sreedharK
ID: 1225735
That's because of the security constraints of the browser.  Use signed scripts or signed applets or signed active-X controls to access the data on the disk.

0
 
LVL 8

Accepted Solution

by:
diakov earned 20 total points
ID: 1225736
Each applet runs in a so called security sandbox, which disallows it to access resources on the local machine of the browsing user.
One of them is that an applet cannot open a connection to a server with an IP different to the one it originates from. So if the Sybase server is somewhere else, it is more likely you get an  exception.
For testing purposes, you can use MSIE and disable all security on Java. However, in reallife application, you have to use sign your applet (and/or the archive of the applet's code). Furthermore, your applet should request access from the system through a SecurityManager before initiating the connection proces.

Look at:
http://www.javaworld.com/javaworld/jw-10-1998/jw-10-apptowin32.html
To see how to use a SecurityManager.

Cheers.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question