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 224958 - Generating a REST-Client: java.lang.SecurityException: Dangerous reflection access to sun.misc.ClassLoaderUtil
Summary: Generating a REST-Client: java.lang.SecurityException: Dangerous reflection a...
Status: RESOLVED DUPLICATE of bug 224108
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-16 10:28 UTC by markiewb
Modified: 2013-01-23 08:39 UTC (History)
2 users (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 markiewb 2013-01-16 10:28:16 UTC
[ BUILD # : 201301160001 ]
[ JDK VERSION : 1.6.0_38 ]

Reproduction
* create "new java web app" using "new project..." wizard
* create "restful java client" using "new file..." wizard
* choose IDE registered webservice "Amazon/EC2 Service" and let the 
client be generated 
* accept the confirmation dialog -> code gets generated and the output window is shown


ACTUAL: there is an exception in the output window - see below
EXPECTED: there is NO exception in the output window

FYI: This is a follow up issue from http://netbeans.org/bugzilla/show_bug.cgi?id=224876

----
ant -f D:\\ws_netbeans\\WebApplication5 saas.xjc.amazon.ec2service
saas-init-xjc:
saas.xjc.amazon.ec2service:
Consider using <depends>/<produces> so that XJC won't do unnecessary compilation
Compiling file:/D:/ws_netbeans/WebApplication5/src/java/META-INF/AmazonEC2.xsd
Writing output to D:\ws_netbeans\WebApplication5\src\java
D:\ws_netbeans\WebApplication5\build.xml:80: 
java.lang.SecurityException: Dangerous reflection access to sun.misc.ClassLoaderUtil by class com.sun.istack.tools.ProtectedTask detected!
	at org.netbeans.TopSecurityManager.checkMemberAccess(TopSecurityManager.java:428)
	at java.lang.Class.checkMemberAccess(Class.java:2157)
	at java.lang.Class.getDeclaredMethod(Class.java:1934)
	at com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:138)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
	at sun.reflect.GeneratedMethodAccessor243.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:392)
	at org.apache.tools.ant.Target.performTasks(Target.java:413)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
	at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:283)
	at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:541)
	at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
BUILD FAILED (total time: 0 seconds)
Comment 1 Denis Anisimov 2013-01-16 10:56:30 UTC
Caused by http://hg.netbeans.org/main-golden/rev/599d8df6ad83
Comment 2 markiewb 2013-01-22 22:11:15 UTC
Have a look at 224108. The same stacktrace there. Is this issue a duplicate?
Comment 3 Petr Jiricka 2013-01-23 08:35:17 UTC
Sounds like a P1, no?
Comment 4 Denis Anisimov 2013-01-23 08:39:45 UTC
(In reply to comment #2)
> Have a look at 224108. The same stacktrace there. Is this issue a duplicate?
That's true. This is exactly duplicate.

*** This bug has been marked as a duplicate of bug 224108 ***