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 72139 - Any CVS command fails with "The pipe is being closed"
Summary: Any CVS command fails with "The pipe is being closed"
Status: RESOLVED WONTFIX
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: CVS (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-01 21:16 UTC by johnpm
Modified: 2007-01-04 17: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 johnpm 2006-02-01 21:16:59 UTC
Previously running 4.1, just installed 5.0 RC2. Running CVSNT with a local 
repository. On opening project, modified files are correctly shown in blue 
etc, but trying to run any CVS command (show changes, diff etc) brings up 
a "Command failed" window saying "The pipe is being closed". Log file has 
IOExceptions for each attempt to run a command:

java.io.IOException: The pipe is being closed
	at java.io.FileOutputStream.writeBytes(Native Method)
	at java.io.FileOutputStream.write(FileOutputStream.java:260)
	at java.io.BufferedOutputStream.flushBuffer
(BufferedOutputStream.java:65)
[catch] at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
	at java.io.FilterOutputStream.flush(FilterOutputStream.java:123)
	at org.netbeans.lib.cvsclient.Client.processRequests(Client.java:507)
	at org.netbeans.lib.cvsclient.command.log.LogCommand.execute
(LogCommand.java:132)
	at org.netbeans.lib.cvsclient.Client.executeCommand(Client.java:629)
	at org.netbeans.modules.versioning.system.cvss.CommandRunnable$1.run
(CommandRunnable.java:71)
	at java.lang.Thread.run(Thread.java:595)
Comment 1 Peter Pis 2006-02-02 13:42:18 UTC
It works fine for me. What kind of CVSNT server do you use? Can you perform
checkout from your cvsnt server without any problems? 
Comment 2 johnpm 2006-02-02 13:52:45 UTC
I'm using the free CVS NT server and client code downloaded from march-
hare.com, version 2.5.03.2151. Everything works OK in NB 4.1. In NB 5.0RC2 
initially checkout wouldn't work (came up with invalid server response) but 
after updating to the latest CVS NT (as above) checkout started behaving, but 
I still get the "pipe is being closed" message when I try anything else. Must 
be accessing the repository OK or it wouldn't be able to show the modified 
statuses, right?
Comment 3 Peter Pis 2006-02-02 15:04:51 UTC
Is there windows path used in "Root" file from "CVS" folders? (for example
"D:\...") Unfortunately, javacvs built-in can't handle windows paths. The same
behaviour is for 4.1. (in case of :local: access method, command line cvs should
have been used.) Latest versions of CVSNT server use unix paths, so javacvs
client can work with it as well. 

http://www.netbeans.org/kb/faqs/version-control-system.html#FaqHowToAccessLocalCVS
Comment 4 johnpm 2006-02-02 15:30:36 UTC
Contents of ROOT files is

:local:D:\cvsrepo

The CVS_EXE environment variable is already set up to point to cvs.exe and the 
repository path in the Checkout... dialog is set to :local:/cvsrepo. The CVS 
NT locking service is running. I can start from scratch and make a new 
repository etc tonight if that helps, with access via sspi or pserver or 
whatever, but everything is OK under 4.1, so I'm still not clear on why it 
doesn't work under 5.0RC2?
Comment 5 Peter Pis 2006-02-02 16:10:16 UTC
It doesn't work cos of 

"Contents of ROOT files is

:local:D:\cvsrepo" -> windows path, javacvs built-in client can't handle it.

In "Control Panel -> CVSNT" tool there is "Repository" tab. Use the path from
"Name" column.
Comment 6 Peter Pis 2006-02-02 16:18:09 UTC
See issue #65366. This switcher can help you to change cvsroot in your case of
already checked out project. If you want to use it currently, you have to build
it on your own. (you have to have nb sources checked out - it's located in
"javacvs/util_switcher" - in console type "ant nbm")
Comment 7 johnpm 2006-02-02 21:44:07 UTC
I started fresh with the 5.0 release version, removed the old working 
directory and did a fresh checkout using V5.0. The ROOT files now contain the 
repository name rather than the path and all is working OK, thanks.
Comment 8 Peter Pis 2006-02-03 08:07:58 UTC
Wontfix.