Solved

com.ms.security.SecurityExceptionEx

Posted on 1998-10-13
3
175 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

707 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