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 157357 - java.io.IOException: Cannot run program "C:\Program Files\glassfish-v3-prelude\bin\updatetool.exe" (in directory "C:\Program Files\glassfish-v3-prelude\bin"): CreateProcess error=740, The requested op
Summary: java.io.IOException: Cannot run program "C:\Program Files\glassfish-v3-prelud...
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vince Kraemer
URL: http://statistics.netbeans.org/except...
Keywords:
: 164417 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-23 11:59 UTC by jshutich
Modified: 2009-05-20 19:03 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 139437


Attachments
stacktrace (1.52 KB, text/plain)
2009-01-23 11:59 UTC, jshutich
Details
stacktrace (1.04 KB, text/plain)
2009-02-13 03:54 UTC, pbelbin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jshutich 2009-01-23 11:59:24 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows Vista, 6.0, x86

User Comments:
jshutich: Installing the GlassFish V3 upgrade center

GUEST: GlasshFish V3 Prelude ????????????????????????

jshutich: Installing the GlassFish V3 upgrade center



Stacktrace: 
java.io.IOException: Cannot run program "C:\Program Files\glassfish-v3-prelude\bin\updatetool.exe" (in directory "C:\Program Files\glassfish-v3-prelude\bin"): CreateProcess error=740, The requested operation requires elevation
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
        at org.openide.execution.NbProcessDescriptor.exec(NbProcessDescriptor.java:199)
        at org.openide.execution.NbProcessDescriptor.exec(NbProcessDescriptor.java:151)
        at org.netbeans.modules.glassfish.common.actions.ViewUpdateCenterAction$1.run(ViewUpdateCenterAction.java:120)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 1 jshutich 2009-01-23 11:59:29 UTC
Created attachment 76179 [details]
stacktrace
Comment 2 pbelbin 2009-02-13 03:54:18 UTC
Build: NetBeans IDE Dev (Build 200902120201)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04
OS: Windows Vista, 6.0, amd64

User Comments: 
I started glassfish v3's update center via the services pane.

Stacktrace: 
java.io.IOException: Cannot run program "C:\Program Files\nbdaily\glassfish-v3-prelude-b28c\bin\updatetool.exe" (in directory "C:\Program Files\nbdaily\glassfish-v3-prelude-b28c\bin"): CreateProcess error=740, The requested operation requires elevation
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
        at org.openide.execution.NbProcessDescriptor.exec(NbProcessDescriptor.java:199)
        at org.openide.execution.NbProcessDescriptor.exec(NbProcessDescriptor.java:151)
        at org.netbeans.modules.glassfish.common.actions.ViewUpdateCenterAction$1.run(ViewUpdateCenterAction.java:120)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
Comment 3 pbelbin 2009-02-13 03:54:24 UTC
Created attachment 76943 [details]
stacktrace
Comment 4 jshutich 2009-02-13 07:50:15 UTC
I ran the updaetool as admin from outside the IDE and it worked ok, guess you just can not run the program from inside 
the NetBeans IDE GUI.
Comment 5 Vince Kraemer 2009-02-18 23:24:15 UTC
this looks like it is related to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6410605...

If you run NB 'as administrator' do things work 'better'...

That is what I just tried and it seemed to work.

Comment 6 Vince Kraemer 2009-02-19 23:09:42 UTC
It doesn't look like this is something that we can fix. I will prevent the exception from hitting the RequestProcessor
and put up a dialog with the suggested work-around.
Comment 7 Vince Kraemer 2009-02-20 00:57:59 UTC
http://hg.netbeans.org/main/rev/cadc0b4d8441
Comment 8 Quality Engineering 2009-02-22 08:01:58 UTC
Integrated into 'main-golden', will be available in build *200902220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/cadc0b4d8441
User: Vince Kraemer <vkraemer@netbeans.org>
Log: #157357 : replace exception with warning message
Comment 9 jshutich 2009-02-22 10:23:24 UTC
Anytime you want to run the Glassfish V3 update tool, start Netbeans with the "run as administrator", then run the 
Glassfish update tool.

Onother issue regarding Glassfish V3, the diretory where the logs are written needs to be read/write by all users.
Comment 10 Vince Kraemer 2009-05-07 17:32:19 UTC
*** Issue 164417 has been marked as a duplicate of this issue. ***