Blogs Blogs


Subclipse fails with org.eclipse.swt.SWTException: Invalid thread access

I encountered this problem while trying to checkout Liferay's source in Eclipse, using the Subclipse plugin. The manifestation was as follows:

* anonymous access to the SVN required empty password; saving of the empty password didn't seem to work;
* on pressing 'Finish' in the wizard, either Subclipse, or the whole Eclipse would give an error message, which presents itself in the log files as:

!ENTRY 4 2 2011-03-14 20:47:56.033
!MESSAGE An internal error occurred during: "SVN Checkout".
org.eclipse.swt.SWTException: Invalid thread access
	at org.eclipse.swt.SWT.error(
	at org.eclipse.swt.SWT.error(
	at org.eclipse.swt.SWT.error(
	at org.eclipse.swt.widgets.Widget.error(
	at org.eclipse.swt.widgets.Widget.checkWidget(
	at org.eclipse.swt.widgets.Control.isVisible(
	at org.eclipse.swt.widgets.ProgressBar.timerProc(
	at org.eclipse.swt.widgets.Display.windowTimerProc(
	at org.tigris.subversion.javahl.SVNClient.list(Native Method)
	at org.tigris.subversion.javahl.SVNClient.list(
	at org.tigris.subversion.javahl.SVNClient.list(
	at org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getList(
	at org.tigris.subversion.subclipse.core.commands.CheckoutCommand.basicRun(
	at org.tigris.subversion.subclipse.core.commands.CheckoutCommand$
	at org.tigris.subversion.subclipse.core.SVNProviderPlugin$
	at org.tigris.subversion.subclipse.ui.operations.CheckoutAsProjectOperation.execute(
	at org.tigris.subversion.subclipse.ui.operations.CheckoutAsProjectOperation.execute(

According to this wiki article, the problem is with GNOME keyring. The proposed solution worked flawlessly; hence, I quote it here:

There is currently a bug in the new support for GNOME keyring in Subversion 1.6. It works OK when using the command line, but not when other users of the libraries use it. Until this is fixed, you can workaround the problem by turning off this feature. To do this, open the file ~/.subversion/config and add the following:

### Set password stores used by Subversion. They should be
### delimited by spaces or commas. The order of values determines
### the order in which password stores are used.
### Valid password stores:
###   gnome-keyring        (Unix-like systems)
###   kwallet              (Unix-like systems)
###   keychain             (Mac OS X)
###   windows-cryptoapi    (Windows)
password-stores = 

The empty value for "password-stores" disables the feature. Passwords will be stored in plain text in the auth folder as with all previous version of Subversion.

Trackback URL: