This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 6674 - Copying classes from .JAR file throws an exception
Summary: Copying classes from .JAR file throws an exception
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: anovak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-05-13 19:09 UTC by Jan Palka
Modified: 2008-12-23 10:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Palka 2000-05-13 19:09:08 UTC
Mount HotJavaBean.jar (e.g. from X2) and copy the sunw package into r/w FS in Forte.  You may got a bunch of exceptions:  (the Forte is unusable after this operation)

Exception occurred during event dispatching:
java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
	at java.security.AccessController.checkPermission(AccessController.java:399)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
	at java.lang.Class.getClassLoader(Class.java:433)
	at sunw.hotjava.bean.BeanPolicy.currentLoadedClass(BeanPolicy.java:93)
	at sunw.hotjava.bean.BeanPolicy.currentClassLoader(BeanPolicy.java:77)
	at sunw.hotjava.security.CommonSecurity.checkPackageAccess(CommonSecurity.java:531)
	at java.lang.ClassLoader$1.run(ClassLoader.java:324)
	at java.security.AccessController.doPrivileged(Native Method)

	at java.lang.ClassLoader.checkPackageAccess(ClassLoader.java:322)
	at org.netbeans.core.NotifyException.updateState(NotifyException.java:129)
	at org.netbeans.core.NotifyException.access$1(NotifyException.java:126)
	at org.netbeans.core.NotifyException$1.run(NotifyException.java:104)
	...
Comment 1 Marek Grummich 2000-07-25 09:09:59 UTC
Priority is changed to P4 (normal).
Comment 2 anovak 2000-08-14 13:22:59 UTC
fixed in main trunk
too risky to fix it in Boston

I changed SecurityModel from classloader based
(trusted x untrusted classloaders) to permission
based (class loaded with NbClassLoader may not
set own SecurityManager).

Actually, there are still some exceptions. But they
are wanted (SecurityExceptions).
Comment 3 Marian Mirilovic 2002-04-18 15:18:21 UTC
closed