[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

com.ms.security.SecurityExceptionEx

Posted on 1998-10-13
3
Medium Priority
?
188 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

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…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

650 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