[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-users] Out of date error makes connection go bye bye...

From: Kostas Michalopoulos <badsector_at_slashstone.com>
Date: 2007-09-02 05:50:24 CEST

Hi all,

I use Eclipse 3.3 and Subclipse 1.2.4. I have a project there with a few
folders and subfolders and i decided to rename a folder to match a
component name i use in Trac's ticket system. Subclipse created a new
folder and moved all files from the old to the new one and marked the
old folder for deletion. All right and normal (although i wonder if
subversion has a rename function, but anyway). This was all i wanted to
do, so i commit and wait. However, instead of commiting, an error about
the old directory being out of date comes. I thought that synchronizing
might be a good idea, so i hit "synchronize" but then another error
about connection comes.

So i restart Eclipse, thinking that something went wrong (i had it
running for a few hours) and i tried to commit again. I get this error
about the old folder being out of date. I try to synchronize, but again
the error about the connection. So i search in google about the 'svn:
out of date' error message and i came up with a post saying that all it
needs is to do svn update. While this sounds strange to me because i'm
the only who commits to the subversion, i hit 'update' in Eclipse's team
menu only to get again the connection error message.

I restart Eclipse again and i try update as the first thing. The update
completes normally and i try to commit which again completes without an
issue.

So from the above i came to the conclusion that when an out of date
error happens (possibly because a delete or rename?), something icky
happens with the SVN connection and it dies without Subclipse knowing
anything about it. Or something else that i don't know :-).

Some more details:
1. The out of date error is something like:
  svn: Out of date '/path/to/my/old/folder' in transaction 'number-1'
  "number" is the latest revision in the repository. At least it was in
my case.

2. I use svn+ssh method, using my ssh account username & password.

3. One of the connection errors (saved by the error log) is:

org.tigris.subversion.javahl.ClientException: svn: Network connection
closed unexpectedly

with the exception tack trace:

org.tigris.subversion.svnclientadapter.SVNClientException:
org.tigris.subversion.javahl.ClientException: svn: Network connection
closed unexpectedly
at
org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.update(AbstractJhlClientAdapter.java:845)
at
org.tigris.subversion.subclipse.core.commands.UpdateResourcesCommand.run(UpdateResourcesCommand.java:66)
at
org.tigris.subversion.subclipse.ui.operations.UpdateOperation.execute(UpdateOperation.java:70)
at
org.tigris.subversion.subclipse.ui.operations.RepositoryProviderOperation.execute(RepositoryProviderOperation.java:68)
at
org.tigris.subversion.subclipse.ui.operations.SVNOperation.run(SVNOperation.java:89)
at
org.eclipse.team.internal.ui.actions.JobRunnableContext.run(JobRunnableContext.java:144)
at org.eclipse.team.internal.ui.actions.JobRunnableContext
$ResourceJob.runInWorkspace(JobRunnableContext.java:72)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.tigris.subversion.javahl.ClientException: svn: Network
connection closed unexpectedly
at
org.tigris.subversion.javahl.JavaHLObjectFactory.throwException(JavaHLObjectFactory.java:435)
at
org.tmatesoft.svn.core.javahl.SVNClientImpl.throwException(SVNClientImpl.java:1309)
at
org.tmatesoft.svn.core.javahl.SVNClientImpl.update(SVNClientImpl.java:448)
at
org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.update(AbstractJhlClientAdapter.java:842)
... 8 more

session data:

eclipse.buildId=I20070625-1500
java.version=1.6.0_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86

4. Another error is

org.tigris.subversion.javahl.ClientException: svn: Cannot connect to
'svn+ssh://<my svn server>': Sorry, this connection is closed.

with tracback:

org.tigris.subversion.svnclientadapter.SVNClientException:
org.tigris.subversion.javahl.ClientException: svn: Cannot connect to
'svn+ssh://badsector@crimsonfeather.com': Sorry, this connection is
closed.
at
org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.update(AbstractJhlClientAdapter.java:845)
at
org.tigris.subversion.subclipse.core.commands.UpdateResourcesCommand.run(UpdateResourcesCommand.java:66)
at
org.tigris.subversion.subclipse.ui.operations.UpdateOperation.execute(UpdateOperation.java:70)
at
org.tigris.subversion.subclipse.ui.operations.RepositoryProviderOperation.execute(RepositoryProviderOperation.java:68)
at
org.tigris.subversion.subclipse.ui.operations.SVNOperation.run(SVNOperation.java:89)
at
org.eclipse.team.internal.ui.actions.JobRunnableContext.run(JobRunnableContext.java:144)
at org.eclipse.team.internal.ui.actions.JobRunnableContext
$ResourceJob.runInWorkspace(JobRunnableContext.java:72)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.tigris.subversion.javahl.ClientException: svn: Cannot
connect to 'svn+ssh://badsector@crimsonfeather.com': Sorry, this
connection is closed.
at
org.tigris.subversion.javahl.JavaHLObjectFactory.throwException(JavaHLObjectFactory.java:435)
at
org.tmatesoft.svn.core.javahl.SVNClientImpl.throwException(SVNClientImpl.java:1309)
at
org.tmatesoft.svn.core.javahl.SVNClientImpl.update(SVNClientImpl.java:448)
at
org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.update(AbstractJhlClientAdapter.java:842)
... 8 more

That is all. I hope that helps to fix a little but important bug.
Restarting Eclipse to fix the issue isn't a nice thing :-)

Kostas "Bad Sector" Michalopoulos

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Sun Sep 2 05:46:55 2007

This is an archived mail posted to the Subclipse Users mailing list.