This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 268600 - svn+ssh:// ssh agent authentication for svn checkouts not working, error reports javahl usage instead of user-selected svnkit
Summary: svn+ssh:// ssh agent authentication for svn checkouts not working, error repo...
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-20 13:57 UTC by netbeans.89423
Modified: 2017-05-26 08:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Error dialog (37.40 KB, image/png)
2017-05-11 22:04 UTC, drequena
Details

Note You need to log in before you can comment on or make changes to this bug.
Description netbeans.89423 2016-10-20 13:57:30 UTC
whenever I selecte "team -> svn -> checkout" or try to import project to svn, I get the error message "org.apache.subversion.javahl.ClientException: E200015: authentication cancelled" indicating javahl usage instead of svnkit which I set as preferred.

Why? I hoped to be able to use my ssh agent through svnkit without javahl bindings.
Comment 1 Ondrej Vrabec 2016-10-20 14:00:10 UTC
Can you paste the error's full stack here? It's not clear from where the exception comes as SVNKit follows javahl API and throws the same exceptions.
Comment 2 drequena 2017-05-11 22:04:37 UTC
Created attachment 164300 [details]
Error dialog
Comment 3 drequena 2017-05-11 22:08:33 UTC
Not the original reporter but I'm having the very same issue, just on a different platform, so it seems this is not platform related.

Version:         Netbeans 8.2
Platform:        Windows 7 x64
Selected client: svnKit
Operation:       import to svn+ssh url 

I've attached a screenshot of the error dialog I get.
Full error info as found in the IDE log follows:

INFO [org.netbeans.modules.subversion]: org.apache.subversion.javahl.ClientException: svn: E200015: authentication cancelled
org.tmatesoft.svn.core.SVNCancelException: svn: E200015: authentication cancelled
	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancel(SVNErrorManager.java:37)
	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancel(SVNErrorManager.java:32)
	at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.getNextAuthentication(DefaultSVNAuthenticationManager.java:232)
	at org.tmatesoft.svn.core.internal.io.svn.SVNSSHConnector.open(SVNSSHConnector.java:134)
	at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.open(SVNConnection.java:77)
	at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:1273)
	at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.getLatestRevision(SVNRepositoryImpl.java:172)
	at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.getRevisionNumber(SvnNgRepositoryAccess.java:118)
	at org.tmatesoft.svn.core.internal.wc2.SvnRepositoryAccess.getLocations(SvnRepositoryAccess.java:184)
	at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.createRepositoryFor(SvnNgRepositoryAccess.java:45)
	at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteGetInfo.run(SvnRemoteGetInfo.java:46)
	at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteGetInfo.run(SvnRemoteGetInfo.java:31)
	at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21)
	at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1235)
	at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
	at org.tmatesoft.svn.core.javahl17.SVNClientImpl.info2(SVNClientImpl.java:1671)
Caused: org.apache.subversion.javahl.ClientException: svn: E200015: authentication cancelled
	at org.apache.subversion.javahl.ClientException.fromException(ClientException.java:68)
	at org.tmatesoft.svn.core.javahl17.SVNClientImpl.getClientException(SVNClientImpl.java:1492)
	at org.tmatesoft.svn.core.javahl17.SVNClientImpl.info2(SVNClientImpl.java:1673)
	at org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getInfo(AbstractJhlClientAdapter.java:2144)
Caused: org.tigris.subversion.svnclientadapter.SVNClientException
	at org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getInfo(AbstractJhlClientAdapter.java:2158)
	at org.tigris.subversion.svnclientadapter.AbstractClientAdapter.getInfo(AbstractClientAdapter.java:310)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.netbeans.modules.subversion.client.SvnClientInvocationHandler.handle(SvnClientInvocationHandler.java:461)
	at org.netbeans.modules.subversion.client.SvnClientInvocationHandler.invokeMethod(SvnClientInvocationHandler.java:406)
	at org.netbeans.modules.subversion.client.SvnClientInvocationHandler.invoke(SvnClientInvocationHandler.java:214)
	at com.sun.proxy.$Proxy24.getInfo(Unknown Source)
[catch] at org.netbeans.modules.subversion.ui.wizards.repositorystep.RepositoryStep$RepositoryStepProgressSupport.perform(RepositoryStep.java:229)
	at org.netbeans.modules.subversion.client.SvnProgressSupport.performIntern(SvnProgressSupport.java:111)
	at org.netbeans.modules.subversion.client.SvnProgressSupport.run(SvnProgressSupport.java:104)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Comment 4 drequena 2017-05-26 08:46:59 UTC
Hi, further info.

As shown in previous stack trace this is an svnkit issue all the way.
Now I've just noticed a warning is issued in the IDE log just before that stack trace:

WARNING [org.netbeans.ProxyClassLoader]: Will not load class org.apache.subversion.javahl.ClientException arbitrarily from one of ModuleCL@5845ee[org.netbeans.libs.svnClientAdapter.svnkit] and ModuleCL@12af5c4[org.netbeans.libs.svnClientAdapter.javahl] starting from SystemClassLoader[669 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE

Hope that helps.

I wonder... Is anyone actually looking at this?