Error when logging in to SG from eclipse vault plugin

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

tiono
Posts: 8
Joined: Tue Jul 01, 2008 8:32 pm
Contact:

Error when logging in to SG from eclipse vault plugin

Post by tiono » Tue Jul 01, 2008 8:55 pm

Hi,

I want to use vault plugin for eclipse. I installed the plugin by adding source gear update site as remote site in eclipse. installation running well.

after restart eclipse, i try to import vault project. after i fill username, password, and server and click the button, then i got error message that ask me to see the detail in <workspace>/.metadata/.log

When i open that file and sorted out the content, i got error message that you can see at the end of my post.

I'm running eclipse 3.2.2 on ubuntu 8.04 amd64 bit version.

Hope you can help me solve this problem.

Thanks and best regards,
Tiono



Error message generated when error happen :
===============================================

!ENTRY org.eclipse.ui 4 4 2008-07-02 08:21:00.753
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2008-07-02 08:21:00.754
!MESSAGE java.lang.reflect.InvocationTargetException
!STACK 0
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.sourcegear.vault.team.wizards.LoginWizardPage.AttemptLogin(LoginWizardPage.java:45)
at com.sourcegear.vault.team.wizards.LoginWizardPage.onPageFinished(LoginWizardPage.java:74)
at com.cdesg.uihelper.wizard.ExtendedWizardPage.getNextPage(ExtendedWizardPage.java:123)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:751)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:351)
at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:660)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3180)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2856)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.ImportResourcesAction.run(ImportResourcesAction.java:159)
at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3180)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2856)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at java.lang.reflect.Method.invoke(libgcj.so.81)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:350)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:851)
at com.sourcegear.vault.team.wizards.LoginWizardPage.AttemptLogin(LoginWizardPage.java:42)
...36 more
Caused by: java.lang.NoClassDefFoundError: system.Net.WebRequest
at java.lang.Class.initializeClass(libgcj.so.81)
at java.lang.Class.forName(libgcj.so.81)
at system.TypeResolver.loadClass(TypeResolver.java:341)
at system.TypeResolver.resolve(TypeResolver.java:69)
at system.Type.GetType(Type.java:538)
at clr.compiler.TypeInfo.createParameterInfo(TypeInfo.java:488)
at system.Web.Services.Protocols.SoapHttpClientProtocol$SoapHttpClientProtocolAttrib.createMethodData(Unknown Source)
at clr.compiler.TypeInfo.getMethods(TypeInfo.java:576)
at clr.compiler.TypeInfo.getMethodCash(TypeInfo.java:994)
at system.Reflection.Cash.MethodCash.initInheritedMethods(MethodCash.java:234)
at system.Reflection.Cash.MethodCash.<init>(MethodCash.java:52)
at clr.compiler.TypeInfo.getMethodCash(TypeInfo.java:994)
at system.Type.GetMethods(Type.java:1006)
at system.Web.Services.Protocols.LogicalTypeInfo.<init>(TypeStubManager.cs:303)
at system.Web.Services.Protocols.TypeStubManager.__CreateClass__0x00000001(TypeStubManager.cs)
at system.Web.Services.Protocols.TypeStubManager.GetLogicalTypeInfo(TypeStubManager.cs:423)
at system.Web.Services.Protocols.TypeStubManager.GetTypeStub(TypeStubManager.cs:409)
at system.Web.Services.Protocols.SoapHttpClientProtocol.<init>(SoapHttpClientProtocol.cs:78)
at VaultClientNetLib.ClientService.VaultService.<init>(Unknown Source)
at VaultClientNetLib.VaultConnection.__CreateClass__0x00000005(Unknown Source)
at VaultClientNetLib.VaultConnection.InitService(Unknown Source)
at VaultClientOperationsLib.ClientInstance.Init(Unknown Source)
at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:2435)
at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:2586)
at com.sourcegear.vault.ui.commands.ConnectCommand.doRun(ConnectCommand.java:57)
at com.cdesg.core.command.Command.run(Command.java:77)
at com.cdesg.uihelper.command.RunnableWithProgressCommandAdapter.run(RunnableWithProgressCommandAdapter.java:67)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Image

tiono
Posts: 8
Joined: Tue Jul 01, 2008 8:32 pm
Contact:

Post by tiono » Tue Jul 01, 2008 8:58 pm

vault plugin that i use is the latest version one. vault server also the latest one.
Image

shannon

Post by shannon » Wed Jul 02, 2008 8:21 am

What version of java are you using? Ubuntu defaults to using gcj, our plugin isn't going to work with that. You should get a Sun version of java.

Manoj
Posts: 1
Joined: Tue Jul 15, 2008 11:09 pm

Same Problem for me

Post by Manoj » Tue Jul 15, 2008 11:15 pm

I am using JDK 1.6 jdk1.6.0_05, Valut plugin and server latest version.
Whenever i try to log on i get the same error. Help me out.
My Os is Windows Xp SP3

shannon

Post by shannon » Wed Jul 16, 2008 7:08 am

Can you post the full stack trace? The exception at the top is generic, there is usually a more specific one about halfway down the stack.

tiono
Posts: 8
Joined: Tue Jul 01, 2008 8:32 pm
Contact:

Re: Error when logging in to SG from eclipse vault plugin

Post by tiono » Wed Aug 20, 2008 3:15 am

Sorry for the time delay from my last post.

I've update my ubuntu java to java 1.6.0_06 ( i run command java -version at terminal prompt ), then i clear log file in <workspace>/metadata/ directory. then try to import project from vault again. Enter username, password and server, then click next button, and error alert show up.

I check log file again and here is the content log file content. What should i do next?

=====================================================================

!ENTRY org.eclipse.ui 4 4 2008-08-20 16:05:53.888
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2008-08-20 16:05:53.888
!MESSAGE java.lang.reflect.InvocationTargetException
!STACK 0
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.sourcegear.vault.team.wizards.LoginWizardPage.AttemptLogin(LoginWizardPage.java:45)
at com.sourcegear.vault.team.wizards.LoginWizardPage.onPageFinished(LoginWizardPage.java:74)
at com.cdesg.uihelper.wizard.ExtendedWizardPage.getNextPage(ExtendedWizardPage.java:123)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:751)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:351)
at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:660)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3180)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2856)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.ImportResourcesAction.run(ImportResourcesAction.java:159)
at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3180)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2856)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at java.lang.reflect.Method.invoke(libgcj.so.81)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:350)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:851)
at com.sourcegear.vault.team.wizards.LoginWizardPage.AttemptLogin(LoginWizardPage.java:42)
...36 more
Caused by: java.lang.NoClassDefFoundError: system.Net.WebRequest
at java.lang.Class.initializeClass(libgcj.so.81)
at java.lang.Class.forName(libgcj.so.81)
at system.TypeResolver.loadClass(TypeResolver.java:341)
at system.TypeResolver.resolve(TypeResolver.java:69)
at system.Type.GetType(Type.java:538)
at clr.compiler.TypeInfo.createParameterInfo(TypeInfo.java:488)
at system.Web.Services.Protocols.SoapHttpClientProtocol$SoapHttpClientProtocolAttrib.createMethodData(Unknown Source)
at clr.compiler.TypeInfo.getMethods(TypeInfo.java:576)
at clr.compiler.TypeInfo.getMethodCash(TypeInfo.java:994)
at system.Reflection.Cash.MethodCash.initInheritedMethods(MethodCash.java:234)
at system.Reflection.Cash.MethodCash.<init>(MethodCash.java:52)
at clr.compiler.TypeInfo.getMethodCash(TypeInfo.java:994)
at system.Type.GetMethods(Type.java:1006)
at system.Web.Services.Protocols.LogicalTypeInfo.<init>(TypeStubManager.cs:303)
at system.Web.Services.Protocols.TypeStubManager.__CreateClass__0x00000001(TypeStubManager.cs)
at system.Web.Services.Protocols.TypeStubManager.GetLogicalTypeInfo(TypeStubManager.cs:423)
at system.Web.Services.Protocols.TypeStubManager.GetTypeStub(TypeStubManager.cs:409)
at system.Web.Services.Protocols.SoapHttpClientProtocol.<init>(SoapHttpClientProtocol.cs:78)
at VaultClientNetLib.ClientService.VaultService.<init>(Unknown Source)
at VaultClientNetLib.VaultConnection.__CreateClass__0x00000005(Unknown Source)
at VaultClientNetLib.VaultConnection.InitService(Unknown Source)
at VaultClientOperationsLib.ClientInstance.Init(Unknown Source)
at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:2435)
at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:2586)
at com.sourcegear.vault.ui.commands.ConnectCommand.doRun(ConnectCommand.java:57)
at com.cdesg.core.command.Command.run(Command.java:77)
at com.cdesg.uihelper.command.RunnableWithProgressCommandAdapter.run(RunnableWithProgressCommandAdapter.java:67)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Image

shannon

Re: Error when logging in to SG from eclipse vault plugin

Post by shannon » Wed Aug 20, 2008 6:46 am

According to the stack trace, it's still using gcj as the default java.

Try looking at these instructions for changing your default java on Ubuntu:
https://help.ubuntu.com/community/Java

tiono
Posts: 8
Joined: Tue Jul 01, 2008 8:32 pm
Contact:

Re: Error when logging in to SG from eclipse vault plugin

Post by tiono » Wed Aug 20, 2008 9:33 pm

I already set default java to java-6-sun using below command line

sudo update-alternatives --config java

then I run eclipse and try to import from vault again, and get error in log shown below. Do I need to set something at eclipse first so eclipse know which java to use?

==========================================================================


!ENTRY org.eclipse.ui 4 4 2008-08-21 10:30:34.392
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2008-08-21 10:30:34.392
!MESSAGE java.lang.reflect.InvocationTargetException
!STACK 0
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.sourcegear.vault.team.wizards.LoginWizardPage.AttemptLogin(LoginWizardPage.java:45)
at com.sourcegear.vault.team.wizards.LoginWizardPage.onPageFinished(LoginWizardPage.java:74)
at com.cdesg.uihelper.wizard.ExtendedWizardPage.getNextPage(ExtendedWizardPage.java:123)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:751)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:351)
at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:660)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3180)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2856)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.ImportResourcesAction.run(ImportResourcesAction.java:159)
at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3180)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2856)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at java.lang.reflect.Method.invoke(libgcj.so.81)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:350)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:851)
at com.sourcegear.vault.team.wizards.LoginWizardPage.AttemptLogin(LoginWizardPage.java:42)
...36 more
Caused by: java.lang.NoClassDefFoundError: system.Net.WebRequest
at java.lang.Class.initializeClass(libgcj.so.81)
at java.lang.Class.forName(libgcj.so.81)
at system.TypeResolver.loadClass(TypeResolver.java:341)
at system.TypeResolver.resolve(TypeResolver.java:69)
at system.Type.GetType(Type.java:538)
at clr.compiler.TypeInfo.createParameterInfo(TypeInfo.java:488)
at system.Web.Services.Protocols.SoapHttpClientProtocol$SoapHttpClientProtocolAttrib.createMethodData(Unknown Source)
at clr.compiler.TypeInfo.getMethods(TypeInfo.java:576)
at clr.compiler.TypeInfo.getMethodCash(TypeInfo.java:994)
at system.Reflection.Cash.MethodCash.initInheritedMethods(MethodCash.java:234)
at system.Reflection.Cash.MethodCash.<init>(MethodCash.java:52)
at clr.compiler.TypeInfo.getMethodCash(TypeInfo.java:994)
at system.Type.GetMethods(Type.java:1006)
at system.Web.Services.Protocols.LogicalTypeInfo.<init>(TypeStubManager.cs:303)
at system.Web.Services.Protocols.TypeStubManager.__CreateClass__0x00000001(TypeStubManager.cs)
at system.Web.Services.Protocols.TypeStubManager.GetLogicalTypeInfo(TypeStubManager.cs:423)
at system.Web.Services.Protocols.TypeStubManager.GetTypeStub(TypeStubManager.cs:409)
at system.Web.Services.Protocols.SoapHttpClientProtocol.<init>(SoapHttpClientProtocol.cs:78)
at VaultClientNetLib.ClientService.VaultService.<init>(Unknown Source)
at VaultClientNetLib.VaultConnection.__CreateClass__0x00000005(Unknown Source)
at VaultClientNetLib.VaultConnection.InitService(Unknown Source)
at VaultClientOperationsLib.ClientInstance.Init(Unknown Source)
at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:2435)
at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:2586)
at com.sourcegear.vault.ui.commands.ConnectCommand.doRun(ConnectCommand.java:57)
at com.cdesg.core.command.Command.run(Command.java:77)
at com.cdesg.uihelper.command.RunnableWithProgressCommandAdapter.run(RunnableWithProgressCommandAdapter.java:67)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Image

tiono
Posts: 8
Joined: Tue Jul 01, 2008 8:32 pm
Contact:

Re: Error when logging in to SG from eclipse vault plugin

Post by tiono » Thu Aug 21, 2008 1:55 am

I followed how-to about using sun's java in eclipse that i found at http://ubuntuforums.org/showthread.php?t=201378 and my eclipse run faster after that.

At eclipse windows > preferences > java > installed jres, I add new JRE which point to /usr/lib/jvm/java-6-sun and then check it as the default JRE.

Then i try to import project again from sourcegear vault and still get the same error message. Do I take the wrong way to connect and use the plugin?

Here is the error log
==============================================================================================================================

!ENTRY org.eclipse.ui 4 4 2008-08-21 14:47:38.100
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2008-08-21 14:47:38.101
!MESSAGE java.lang.reflect.InvocationTargetException
!STACK 0
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.sourcegear.vault.team.wizards.LoginWizardPage.AttemptLogin(LoginWizardPage.java:45)
at com.sourcegear.vault.team.wizards.LoginWizardPage.onPageFinished(LoginWizardPage.java:74)
at com.cdesg.uihelper.wizard.ExtendedWizardPage.getNextPage(ExtendedWizardPage.java:123)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:751)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:351)
at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:660)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3180)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2856)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.ImportResourcesAction.run(ImportResourcesAction.java:159)
at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3180)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2856)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: java.lang.reflect.InvocationTargetException
at com.cdesg.uihelper.command.RunnableWithProgressCommandAdapter.run(RunnableWithProgressCommandAdapter.java:75)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: System.Xml.XmlException: Document element did not appear. file:///home/tiono/.sourcegear/Client/settings.xml Line 1, position 1.
at system.Xml.XmlTextReader.__CreateClass__0x0000000e(XmlTextReader.cs)
at system.Xml.XmlTextReader.NotWFError(XmlTextReader.cs:929)
at system.Xml.XmlTextReader.Read(XmlTextReader.cs:596)
at system.Xml.XmlDocument.ReadNode(XmlDocument.cs:797)
at system.Xml.XmlDocument.Load(XmlDocument.cs:664)
at VaultClientOperationsLib.LocalSettings$VaultClientConfigReader.SetConfigSetting(Unknown Source)
at VaultClientOperationsLib.LocalSettings.SetString(Unknown Source)
at VaultClientOperationsLib.ClientInstance.LoadDefaultLocalOptions(Unknown Source)
at VaultClientOperationsLib.ClientInstance.Init(Unknown Source)
at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:2435)
at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:2586)
at com.sourcegear.vault.ui.commands.ConnectCommand.doRun(ConnectCommand.java:57)
at com.cdesg.core.command.Command.run(Command.java:77)
at com.cdesg.uihelper.command.RunnableWithProgressCommandAdapter.run(RunnableWithProgressCommandAdapter.java:67)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

at system.Xml.XmlTextReader.__CreateClass__0x0000000e(XmlTextReader.cs)
at system.Xml.XmlTextReader.NotWFError(XmlTextReader.cs:929)
at system.Xml.XmlTextReader.Read(XmlTextReader.cs:596)
at system.Xml.XmlDocument.ReadNode(XmlDocument.cs:797)
at system.Xml.XmlDocument.Load(XmlDocument.cs:664)
at VaultClientOperationsLib.LocalSettings$VaultClientConfigReader.SetConfigSetting(Unknown Source)
at VaultClientOperationsLib.LocalSettings.SetString(Unknown Source)
at VaultClientOperationsLib.ClientInstance.LoadDefaultLocalOptions(Unknown Source)
at VaultClientOperationsLib.ClientInstance.Init(Unknown Source)
at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:2435)
at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:2586)
at com.sourcegear.vault.ui.commands.ConnectCommand.doRun(ConnectCommand.java:57)
at com.cdesg.core.command.Command.run(Command.java:77)
at com.cdesg.uihelper.command.RunnableWithProgressCommandAdapter.run(RunnableWithProgressCommandAdapter.java:67)
... 1 more
Image

shannon

Re: Error when logging in to SG from eclipse vault plugin

Post by shannon » Thu Aug 21, 2008 7:06 am

This new stack trace is different from the previous ones, so you must now be using the sun jre. I think it's having trouble finding an xml file where we store your settings: file:///home/tiono/.sourcegear/Client/settings.xml

Can you see if that file exists? If not, can you see if it exists in a different location?

tiono
Posts: 8
Joined: Tue Jul 01, 2008 8:32 pm
Contact:

Re: Error when logging in to SG from eclipse vault plugin

Post by tiono » Thu Aug 21, 2008 10:30 am

settings.xml exist at /home/tiono/.sourcegear/Client/ but the content is empty. not a single character. what should i do next?

Thanks.
Image

shannon

Re: Error when logging in to SG from eclipse vault plugin

Post by shannon » Thu Aug 21, 2008 10:53 am

Something may have gone wrong with the creation of that file when you ran the first time with gcj. Close Eclipse, delete the settings.xml file and then open Eclipse and try import again. This should recreate the file properly.

tiono
Posts: 8
Joined: Tue Jul 01, 2008 8:32 pm
Contact:

Re: Error when logging in to SG from eclipse vault plugin

Post by tiono » Mon Aug 25, 2008 3:03 am

Thank you for your assistance shannon, now i can login and select repository when import, but after I select one, then nothing happen, the download never finish although it last very long already. If i login from SG Vault client under windows, it is very fast. what could be the problem?
Image

tiono
Posts: 8
Joined: Tue Jul 01, 2008 8:32 pm
Contact:

Re: Error when logging in to SG from eclipse vault plugin

Post by tiono » Mon Aug 25, 2008 4:02 am

I think I get it why it took so long, seems like whole files are downloaded first, am i right?

One most important question, Can i set working folder for each folder at my eclipse project like in Windows SourceGear Vault Client? If vault plugin for eclipse couldn't do that, then I think I can stop using the plugin.

Thanks in advance.
Image

shannon

Re: Error when logging in to SG from eclipse vault plugin

Post by shannon » Mon Aug 25, 2008 8:57 am

Each project in your Eclipse workspace can have it's own working folder setting. Having folders within a project that exist somewhere else on disk leads to linked resources, which our plugin doesn't support.

One of my co-workers suggested you try this: create a new directory for the workspace and symlink all of the projects under that workspace.

Post Reply