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 227922 - Dangerous reflection access to sun.misc.URLClassPath by class org.glassfish.gmbal.typelib.TypeEvaluator$2 detected!
Summary: Dangerous reflection access to sun.misc.URLClassPath by class org.glassfish.g...
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 7.3
Hardware: Macintosh (x86) Mac OS X
: P2 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-25 19:59 UTC by lanthale
Modified: 2013-04-08 14:03 UTC (History)
1 user (show)

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 lanthale 2013-03-25 19:59:19 UTC
I am accessing a Glassfish 3.2.1 with RMI-OOP using the jar files from glassfish packaged inside a module. I switched my application from JDK 6 on OSX to JDK 7u17 on OSX and getting now always the following warning messages (glassfish compiled with JDK 6 on OSX). The same application started with JDK 6 on OSX does not have that issues.


Truncated stack trace:

INFO [org.netbeans.TopSecurityManager]
java.lang.Exception: Dangerous reflection access to sun.misc.URLClassPath by class org.glassfish.gmbal.typelib.TypeEvaluator$2 detected!
[catch] at org.netbeans.TopSecurityManager.checkMemberAccess(TopSecurityManager.java:440)
	at java.lang.Class.checkMemberAccess(Class.java:2174)
	at java.lang.Class.getDeclaredFields(Class.java:1759)
	at org.glassfish.gmbal.typelib.TypeEvaluator$2.run(TypeEvaluator.java:248)


INFO [org.netbeans.TopSecurityManager]
java.lang.Exception: Dangerous reflection access to sun.misc.URLClassPath by class org.glassfish.gmbal.typelib.TypeEvaluator$1 detected!
[catch] at org.netbeans.TopSecurityManager.checkMemberAccess(TopSecurityManager.java:440)
	at java.lang.Class.checkMemberAccess(Class.java:2174)
	at java.lang.Class.getDeclaredMethods(Class.java:1807)
	at org.glassfish.gmbal.typelib.TypeEvaluator$1.run(TypeEvaluator.java:232)

INFO [org.netbeans.TopSecurityManager]: Dangerous reflection access to sun.misc.URLClassPath$Loader by class org.glassfish.gmbal.typelib.TypeEvaluator$2 detected!
INFO [org.netbeans.TopSecurityManager]: Dangerous reflection access to sun.misc.URLClassPath$Loader by class org.glassfish.gmbal.typelib.TypeEvaluator$1 detected!
INFO [org.netbeans.TopSecurityManager]: Dangerous reflection access to sun.misc.Resource by class org.glassfish.gmbal.typelib.TypeEvaluator$2 detected!
INFO [org.netbeans.TopSecurityManager]: Dangerous reflection access to sun.misc.Resource by class org.glassfish.gmbal.typelib.TypeEvaluator$1 detected!
INFO [org.netbeans.TopSecurityManager]: Dangerous reflection access to sun.misc.JavaSecurityAccess by class org.glassfish.gmbal.typelib.TypeEvaluator$2 detected!
INFO [org.netbeans.TopSecurityManager]: Dangerous reflection access to sun.misc.JavaSecurityAccess by class org.glassfish.gmbal.typelib.TypeEvaluator$1 detected!
INFO [org.netbeans.TopSecurityManager]
java.lang.Exception: Dangerous reflection access to sun.misc.Unsafe by class sun.corba.Bridge$2 detected!
[catch] at org.netbeans.TopSecurityManager.checkMemberAccess(TopSecurityManager.java:440)
	at java.lang.Class.checkMemberAccess(Class.java:2174)
	at java.lang.Class.getDeclaredField(Class.java:1896)
	at sun.corba.Bridge$2.run(Bridge.java:124)
	at java.security.AccessController.doPrivileged(Native Method)
Comment 1 Jiri Rechtacek 2013-04-08 14:03:36 UTC
org.glassfish.gmbal.typelib.TypeEvaluator is not a part of NetBeans code line so we cannot fix it on NetBeans side. It should be reported to Glassfish bug tracking system.