owenthereal / codefaces

a web-based source control client
3 stars 2 forks source link

[BUG/SVN] when connecting to svn repo with username has problem #83

Closed owenthereal closed 14 years ago

owenthereal commented 14 years ago

java.lang.NoClassDefFoundError: org/eclipse/core/internal/runtime/auth/AuthorizationHandler at org.eclipse.core.runtime.Platform.getAuthorizationInfo(Platform.java:646) at org.tmatesoft.svn.core.internal.wc.EclipseSVNAuthenticationManager$KeyringAuthenticationProvider.requestClientAuthentication(EclipseSVNAuthenticationManager.java:68) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.getFirstAuthentication(DefaultSVNAuthenticationManager.java:194) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:548) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:274) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:262) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:999) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:178) at org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVNBasicClient.java:482) at org.tmatesoft.svn.core.wc.SVNBasicClient.getLocations(SVNBasicClient.java:873) at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:534) at org.tmatesoft.svn.core.wc.SVNWCClient.doInfo(SVNWCClient.java:2561) at org.tmatesoft.svn.core.javahl.SVNClientImpl.info2(SVNClientImpl.java:2203) at org.tmatesoft.svn.core.javahl.SVNClientImpl.info2(SVNClientImpl.java:2162) at org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getInfo(AbstractJhlClientAdapter.java:1946) at org.tigris.subversion.svnclientadapter.AbstractClientAdapter.getInfo(AbstractClientAdapter.java:310) at org.codefaces.core.svn.internal.clientadaptor.SVNClientAdaptor.getRepoInfo(SVNClientAdaptor.java:84) at org.codefaces.core.svn.internal.operations.SVNConnectionOperationHandler.execute(SVNConnectionOperationHandler.java:45) at org.codefaces.core.svn.internal.operations.SVNConnectionOperationHandler.execute(SVNConnectionOperationHandler.java:1) at org.codefaces.core.operations.SCMOperationDispatcher.execute(SCMOperationDispatcher.java:32) at org.codefaces.core.operations.SCMOperation.execute(SCMOperation.java:46) at org.codefaces.core.services.SCMService.connect(SCMService.java:24) at org.codefaces.core.models.Repo.create(Repo.java:38) at org.codefaces.ui.internal.wizard.svn.SVNSettingsSection.handleConnection(SVNSettingsSection.java:51) at org.codefaces.ui.wizards.RepositorySettingsPage$1.run(RepositorySettingsPage.java:164) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:481) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:386) at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1009) at org.codefaces.ui.wizards.RepositorySettingsPage.getNextPage(RepositorySettingsPage.java:170) at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:888) at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:427) at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:609) at org.eclipse.swt.events.SelectionEvent.dispatchToObserver(SelectionEvent.java:194) at org.eclipse.rwt.internal.events.Event.processEvent(Event.java:44) at org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.java:161) at org.eclipse.swt.events.TypedEvent.executeNext(TypedEvent.java:201) at org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1100) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1090) at org.eclipse.jface.window.Window.runEventLoop(Window.java:828) at org.eclipse.jface.window.Window.open(Window.java:804) at org.codefaces.ui.internal.commands.ImportRepoCommandHandler.execute(ImportRepoCommandHandler.java:19) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:274) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:167) at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:245) at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:624) at org.eclipse.ui.menus.CommandContributionItem.access$10(CommandContributionItem.java:610) at org.eclipse.ui.menus.CommandContributionItem$4.handleEvent(CommandContributionItem.java:600) at org.eclipse.swt.internal.widgets.UntypedEventAdapter.dispatchEvent(UntypedEventAdapter.java:651) at org.eclipse.swt.internal.widgets.UntypedEventAdapter.widgetSelected(UntypedEventAdapter.java:88) at org.eclipse.swt.events.SelectionEvent.dispatchToObserver(SelectionEvent.java:194) at org.eclipse.rwt.internal.events.Event.processEvent(Event.java:44) at org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.java:161) at org.eclipse.swt.events.TypedEvent.executeNext(TypedEvent.java:201) at org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1100) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1090) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2390) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2351) at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2206) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:424) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.jface.internal.databinding.realmadapter.RealmAdapter.run(RealmAdapter.java:44) at org.eclipse.rap.ui.internal.RealmAdapterHook.runWithDefault(RealmAdapterHook.java:48) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:427) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157) at org.codefaces.ui.internal.entryPoints.CodeFacesEntryPoint.createUI(CodeFacesEntryPoint.java:17) at org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(EntryPointManager.java:92) at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:244) at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:113) at java.lang.Thread.run(Thread.java:637) at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102) Caused by: java.lang.ClassNotFoundException: org.eclipse.core.internal.runtime.auth.AuthorizationHandler at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 74 more

owenthereal commented 14 years ago

don't insert username for a repo needs username, e.g., http://subclipse.tigris.org/svn/subclipse/trunk (username: guest)

kklo commented 14 years ago

the method getAuthorizationInfo() in Platform.class is deprecated. There is something: " try { return AuthorizationHandler.getAuthorizationInfo(serverUrl, realm, authScheme); } catch (NoClassDefFoundError e) { // The authorization code is not available so just log and continue logAuthNotAvailable(e); } return null;" in the source code. So this is only a WARN-level log message and the no class found exception is already caught. The username works just fine other than having this log message.

related forum thread: http://www.eclipse.org/forums/index.php?t=rview&goto=74450&th=22759