[Logo] JCVSForum - Community Support For JCVS Users and Developers
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
still unsolved ensureEntryHierarchy - index out of bounds?  XML
Forum Index » JCVS Developers
Author Message
bbernd


[Avatar]

Joined: 14/03/2006 05:58:23
Messages: 1
Location: Munich, Germany
Offline

Hello,
I've read, that a very old thread addresses the same problem but was not ended with a solution.

The problem is that if you create a "special" cvs module, jcvs will create a index out of bounds exception. I say special because i dont see the difference to the modules where it works fine.

The Stack:

the thread where the discussion ends was:
http://www.jcvs.org/jcvsforum/posts/list/741.page
Is there a solution for that problem?

regards,

bbernd
time


[Avatar]

Joined: 05/06/2004 18:09:23
Messages: 367
Location: Bangkok
Offline

I hate to say it, but the only way we will make any progress on this problem is to dissect the trace log. There is something about "&" modules that causes my algorithm to break. If we can identify the difference, then we can fix it. Please turn on some tracing for the special module, and then for a normal module. Then let us compare the logs to see if there is an obvious difference.
[Email] [WWW]
Anonymous



I cannot deliver a stacktrace. but we created a fix.
The problem that we run into was, that the path to the module is on a windows cvsnt different from a linux server one delivers "/module-name/" the other returns "repository-path/module/". The Problem only occurs for tagged modules.

The fix we made:
before


fixed:


For us it works now fine. Maybe there are several causes for the problem.

Something completely different:
I modified the connect, so that it can use PKI Authentication for SSH. (connect with local Private key file, no passwords are required).
The URL for a cvs connect would be like:
cvs -d :ssh;key='c:\user.ppk':user@machine.example.org:/usr/local/cvs co

Most of it is allready included in j2ssh module. The missing part was only to pass the PKI File and create the right ssh client instance.
It doesn't used putty's private key format, but the openssl id-rsa format.
If you like to include it into the main development, here is the complete modification (additional you need a setter and getter for the filename in CVSRequest but this is trivial):

CVSClient.java, Method establishSSHConnection.


You made a real good job with jcvs, it is very nice not to gooble stdout or stderr from a console window during executing a cvs console prog, thx.

bbernd
time


[Avatar]

Joined: 05/06/2004 18:09:23
Messages: 367
Location: Bangkok
Offline

Thank you so much for finding the fix and posting it. Also for the other contribution you made.

[FIX][TODO]
[Email] [WWW]
dudu1975



Joined: 19/10/2006 20:45:51
Messages: 1
Offline

That fix worked for me too! Thanks a lot!!!!!

For now I putted the CVSProject source with the fix into my project. Waiting for the nex release! hehehe

Regards,
Dudu
[Email]
mt79



Joined: 22/10/2006 06:34:25
Messages: 4
Location: Munich
Offline

Hello,

I had the same problem described here and I patched the sources, but now I'm running into a different problem:



My log file looks like this:



Could you please help?
time


[Avatar]

Joined: 05/06/2004 18:09:23
Messages: 367
Location: Bangkok
Offline

The problem is not immediately obvious to me.
I will look some more when I get a chance.
tim.

[TODO]

This message was edited 1 time. Last update was at 12/11/2006 22:13:38

[Email] [WWW]
dominic



Joined: 25/10/2009 19:46:33
Messages: 1
Offline

Are there any plans to provide a new release of JCVS that includes the patched CVSProject file with the bug fix above?

Many thanks,

Dominic Edwards.
[Email]
 
Forum Index » JCVS Developers
Go to:   
Powered by JForum 2.1.9 © JForum Team