?
Solved

com.ms.security.SecurityExceptionEx

Posted on 1998-10-13
3
Medium Priority
?
181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 40 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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:
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

752 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