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 38283 - Refresh command throws an exception because it wants to execute sh.exe with build-in client.
Summary: Refresh command throws an exception because it wants to execute sh.exe with b...
Status: RESOLVED WORKSFORME
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcsgeneric (show other bugs)
Version: 3.x
Hardware: PC Windows 95/98
: P3 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-23 11:16 UTC by vbrabant
Modified: 2004-02-27 12:14 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 vbrabant 2003-12-23 11:16:58 UTC
That problem appears in 20031222 build.
That problem didn't appear in 20031219 build.

Text appearing in Output Versionning:
The Refresh command failed.
Check the full output of the command on the
Runtime tab in Explorer. The error output follows:
No error output is available.
Runtime.exec failed to execute command sh.exe -c
"cd \"\"F:\Mes
Documents\mydata\netbeans\lasttrunk/refactoring\\src//.\"\"&&
  \"\"cvs\"\" -d
\"\":pserver:vbrabant@cvs.netbeans.org:/cvs\"\" 
-f status -l ".

Text appearing in Dialog Box: 

Annotation: The following command failed to
execute in the system: sh.exe -c cd ""F:\Mes
Documents\mydata\netbeans\lasttrunk/openide\src//.""&&
  ""cvs"" -d
"":pserver:vbrabant@cvs.netbeans.org:/cvs""  -f
status -l  
java.io.IOException: CreateProcess: sh.exe -c "cd
""F:\Mes
Documents\mydata\netbeans\lasttrunk/openide\src//.""&&
  ""cvs"" -d
"":pserver:vbrabant@cvs.netbeans.org:/cvs""  -f
status -l " error=0
	at java.lang.Win32Process.create(Native Method)
	at
java.lang.Win32Process.<init>(Win32Process.java:66)
	at java.lang.Runtime.execInternal(Native Method)
	at java.lang.Runtime.exec(Runtime.java:566)
	at java.lang.Runtime.exec(Runtime.java:491)
	at
org.netbeans.modules.vcscore.cmdline.exec.ExternalCommand.exec(ExternalCommand.java:304)
	at
org.netbeans.modules.vcscore.cmdline.ExecuteCommand.runCommand(ExecuteCommand.java:643)
	at
org.netbeans.modules.vcscore.cmdline.ExecuteCommand.run(ExecuteCommand.java:900)
	at
org.netbeans.modules.vcscore.cmdline.UserCommandSupport.execute(UserCommandSupport.java:350)
	at
org.netbeans.spi.vcs.commands.CommandTaskSupport.execute(CommandTaskSupport.java:74)
	at
org.netbeans.modules.vcscore.cmdline.UserCommandTask.execute(UserCommandTask.java:389)
	at
org.netbeans.api.vcs.commands.CommandTask.runCommandTask(CommandTask.java:112)
	at
org.netbeans.api.vcs.commands.CommandTaskInfoImpl.run(CommandTaskInfoImpl.java:40)
	at
org.netbeans.modules.vcscore.commands.CommandProcessor$5.run(CommandProcessor.java:707)
	at org.openide.util.Task.run(Task.java:136)
	at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:678)
Comment 1 Martin Entlicher 2004-01-29 10:40:25 UTC
Hmm, I do not see anything wrong on the execution string. Do you have
"sh.exe" installed on your computer and do you have it in PATH?

There is also strange path: 
F:\Mes
Documents\mydata\netbeans\lasttrunk/refactoring\\src//.

please make sure that the working directory is filled correctly in the
Customizer.

Also, can you test it with some recent development build?
Comment 2 Martin Entlicher 2004-02-27 12:14:52 UTC
Resolving as worksforme.
Please make sure that sh.exe is in PATH and that the filesystem is
corectly set up (check the Working Directory in Customizer).