Solved

com.ms.security.SecurityExceptionEx

Posted on 1998-10-13
3
162 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
Comment Utility
Edited text of question
0
 

Expert Comment

by:sreedharK
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now