RE: Protocol error: root request missing

"Seshan, Sriram" <[email protected]> Wed, 30 Jul 2003 15:35:27 -0400
Newsgroups gmane.comp.java.netbeans.modules.javacvs.devel
Message-ID <[email protected]>
I noticed this as well. Apparently this is a bug in CVS implementations
which expect a Root request to be sent even prior to a UseUnchangedRequest
or ValidRequestsRequest. As far as I understand the CVS spec it is not
required. However I am testing a change here where Netbeans sends the
RootRequest ahead of any request and it seems to fix the problem (See
Client.java -  move the Root request ahead of any request for the fix). If
someone can confirm the spec for me we can open a problem with CVS as well.
Sending the Root request ahead is harmless anyway as long as you send it
only once.





-----Original Message-----
From: Martin Entlicher [mailto:[email protected]]
Sent: Wednesday, July 30, 2003 12:10 PM
To: [email protected]
Subject: Re: [javacvs-dev] Protocol error: root request missing


Well, I'm not sure whether this is a bug in the library, or a misuse. I
would
have to deep dive into the code.
Do you use the 3.5 version of the library?
There were recently made some changes to the logic when RootRequest is sent
(in
issue #34665). The dev version of the library may fix this.

-Martin

"Card, Justin" wrote:
> 
> I'm working to incorporate the JavaCVS library into a project I'm working
on, but whenever I try to update a file or list of files, I keep getting the
error in the subject.
> 
> The code I'm using to connect and do the update is listed below, and the
cvs server is running cvs version 1.11.1p1
> 
> Any help on this matter would be greatly appreciated.
> 
> Thanks,
> Justin Card
> 
> if(m_client == null)
>         {
>         m_client = new Client(m_connection, new StandardAdminHandler());
> 
>         m_client.getEventManager().addCVSListener(this);
> }
> 
> UpdateCommand com = new UpdateCommand();
> com.setFiles(files);
> com.setRecursive(true);
> 
> GlobalOptions options = new GlobalOptions();
> options.setCVSRoot(":pserver:"+m_user+"@"+m_server+":"+m_repositoryPath);
> 
> try {
>         m_client.executeCommand(com,options);
> } catch (CommandException e) {
>         e.printStackTrace();
>         return COMMAND_EXCEPTION;
> } catch (AuthenticationException e) {
>         e.printStackTrace();
>         return INVALID_PASSWORD;
> }
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.