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 223863

Summary: java.io.IOException: CreateProcess error=740, The requested operation requires elevation
Product: serverplugins Reporter: Exceptions Reporter <exceptions_reporter>
Component: GlassFishAssignee: Vince Kraemer <vkraemer>
Status: RESOLVED WONTFIX    
Severity: normal CC: almircampos, dysonjm, lenin2k
Priority: P3    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 196598
Attachments: stacktrace

Description Exceptions Reporter 2012-12-15 05:38:48 UTC
This bug was originally marked as duplicate of bug 205618, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.2 (Build 201207171143)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b11
OS: Windows 7

User Comments:
GUEST: After registering Glassfish3 as Server in NetbeanIDE,
 in Services/Servers-Glassfish Server 3.x/ rightclick to View Update Center
Dialoge popup .. to install Update center..
failed.. exception occurred..

GUEST: Trying to allow Netbeans to install the update center for Glassfish V3

dysonjm: when i trying to view update centre.Please help me

GUEST: i always try to run the glassfish update tool and this is the problem that gives me

lenin2k: The updatetool doesnt run on my computer, I need to download the j2ee 6 tutorial example code




Stacktrace: 
java.io.IOException: CreateProcess error=740, The requested operation requires elevation
   at java.lang.ProcessImpl.create(ProcessImpl.java:0)
   at java.lang.ProcessImpl.<init>(ProcessImpl.java:189)
   at java.lang.ProcessImpl.start(ProcessImpl.java:133)
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
   at org.openide.execution.NbProcessDescriptor.exec(NbProcessDescriptor.java:202)
   at org.openide.execution.NbProcessDescriptor.exec(NbProcessDescriptor.java:154)
Comment 1 Exceptions Reporter 2012-12-15 05:38:50 UTC
Created attachment 129397 [details]
stacktrace
Comment 2 TomasKraus 2013-01-02 09:52:48 UTC
This exception is related to Windows security. Looks like we need to run this process as an administrator.
Comment 3 TomasKraus 2013-01-02 10:10:19 UTC
Here is a nice blog about UAC in Vista/Windows 7 and how to implement it in Java:
http://mark.koli.ch/2009/12/uac-prompt-from-java-createprocess-error740-the-requested-operation-requires-elevation.html
Comment 4 TomasKraus 2013-01-02 10:31:35 UTC
Unfortunately there is no way to resolve this in Java. It should be done in Windows native code - updatetool.exe in our case.
There are suggestions to run an application using 'cmd.exe /c'.

There is Java related bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6410605
Comment 5 TomasKraus 2013-01-02 10:32:20 UTC
Targeting to next release. This will take longer to resolve.
Comment 6 TomasKraus 2013-03-26 10:39:30 UTC
*** Bug 205618 has been marked as a duplicate of this bug. ***
Comment 7 TomasKraus 2013-09-24 12:34:43 UTC
I'm closing this issue because there is no way to fix this on NB/plugin side.