Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Applet runtime error (SecurityException)

0 views
Skip to first unread message

Peter Yannias

unread,
Mar 22, 2000, 3:00:00 AM3/22/00
to
Configuration Information:
Product: Visual Cafe for Windows Database Edition 3.0

Using Visual Cafe DB Developers Edition 3.0c

The applet loads and runs correctly under Netscape V4. When run under
two different versions of IE V5 I receive the following error message
during the load of .class files. After which the applet for the most
part works, except the JTable fails to display which of course is the
main part of this applet. There is also a JPanel with about a dozen
JLabels that displays correctly.

=-=-=


Microsoft (R) VM for Java, 5.0 Release 5.0.0.3167

com.ms.security.SecurityExceptionEx[NQSResultsTable.<init>]:
java.io.IOException: bad path: C:\WINNT\Java\lib\swing.properties
at com/ms/security/permissions/FileIOPermission.check

When I create a file C:\WINNT\Java\lib\swing.properties the error
changes to:

Microsoft (R) VM for Java, 5.0 Release 5.0.0.3167

com.ms.security.SecurityExceptionEx[NQSResultsTable.<init>]: cannot
access file C:\WINNT\Java\lib\swing.properties
at com/ms/security/permissions/FileIOPermission.check


And under a newer version of IE this error is delivered:

Microsoft (R) VM for Java, 5.0 Release 5.0.0.3234
com.ms.security.SecurityExceptionEx[com/sun/java/swing/SystemEventQueueUtilities.initSystemEventQueue]: Event queue access denied.
at com/ms/security/permissions/UIPermission.check
(UIPermission.java)


Thanks

Tim Dutton (Symantec)

unread,
Mar 22, 2000, 3:00:00 AM3/22/00
to
Peter,

Take a look at this document in our online Knowledge Base:

Title: 'Security Exceptions on Local Applet'
Document ID: 19971118143059
Web URL:
http://service1.symantec.com/SUPPORT/devtools.nsf/docid/19971118143059&src=w


Regards,

Tim Dutton
Internet Tools Technical Support
Symantec Corporation

Peter Yannias

unread,
Mar 22, 2000, 3:00:00 AM3/22/00
to
Tim,
I looked at that article prior to submitting my original report. It
addresses Netscape and I'm seeing the problem with the MSIE browser
only. I have experimented with some of the IE security properties but
haven't found the one that does the trick (if there even is one). An
earlier version of my applet worked fine under both browsers but I
switched from javax.swing.* to com.sun.java.swing.* for things such
as the JTable. I suspect this change of packages has something to do
with it. I'm going to continue to experiment with IE security
properties, but if you can suggest something else I'd appreciate it.

Thanks,
Peter Yannias
MCI Worldcom

Tim Dutton (Symantec)

unread,
Mar 23, 2000, 3:00:00 AM3/23/00
to
Hi Peter,

Since you changed the Swing version of your project, you may need to
do a rebuild. To clean out a project:
- Go to the project directory and delete the ve2, vep, vws, and cdb
files (you basically want to get rid of all but the source files).
- Start Visual Cafe and create a new project of type Empty Project
- Save the new project into the existing project folder (where your
source files are).
- Use Insert->Files Into Project to add your source files to the new
empty project
- Go to Project->Options and make sure all of your settings are
specified correctly
- Choose Save All and Project->Rebuild All

0 new messages