Re: Protocol error: root request missing
Martin Entlicher <[email protected]> Wed, 30 Jul 2003 18:10:24 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Organization | Sun Microsystems |
| Message-ID | <[email protected]> |
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]