Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Creating/connecting to local repository
[CDO] Creating/connecting to local repository [message #1385903] Thu, 12 June 2014 08:22 Go to next message
Tomas Sandkvist is currently offline Tomas SandkvistFriend
Messages: 149
Registered: October 2013
Senior Member
I have installed Eclipse SR2 with Papyrus SR2a, when I create a CDO repository I never get the dialog for setting a password that I believe should be shown (as far as I can understand. The following shows in the log:

!ENTRY org.eclipse.papyrus.cdo.ui 4 0 2014-06-12 10:19:57.297
!MESSAGE Unexpected exception in async repository connection.
!STACK 0
java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
at org.eclipse.ui.internal.WorkbenchWindow$13.run(WorkbenchWindow.java:1829)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1826)
at org.eclipse.papyrus.cdo.internal.ui.actions.AddRepositoryAction.run(AddRepositoryAction.java:64)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Caused by: org.eclipse.net4j.util.lifecycle.LifecycleException: Could not activate TCPClientConnector[localhost:2 036]
at org.eclipse.net4j.util.container.ManagedContainer.activateElement(ManagedContainer.java:355)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:325)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:81)
at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:98)
at org.eclipse.emf.cdo.internal.net4j.Net4jConnectorInjector.getConnector(Net4jConnectorInjector.java:72)
at org.eclipse.emf.cdo.internal.net4j.Net4jConnectorInjector.process(Net4jConnectorInjector.java:38)
at org.eclipse.net4j.util.container.ManagedContainer.postProcessElement(ManagedContainer.java:570)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:321)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
at org.eclipse.papyrus.cdo.internal.core.PapyrusRepository.connect(PapyrusRepository.java:212)
at org.eclipse.papyrus.cdo.internal.ui.actions.AddRepositoryAction$1.run(AddRepositoryAction.java:70)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Root exception:
org.eclipse.net4j.util.lifecycle.LifecycleException: Could not activate TCPClientConnector[localhost:2 036]
at org.eclipse.net4j.util.container.ManagedContainer.activateElement(ManagedContainer.java:355)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:325)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:81)
at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:98)
at org.eclipse.emf.cdo.internal.net4j.Net4jConnectorInjector.getConnector(Net4jConnectorInjector.java:72)
at org.eclipse.emf.cdo.internal.net4j.Net4jConnectorInjector.process(Net4jConnectorInjector.java:38)
at org.eclipse.net4j.util.container.ManagedContainer.postProcessElement(ManagedContainer.java:570)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:321)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
at org.eclipse.papyrus.cdo.internal.core.PapyrusRepository.connect(PapyrusRepository.java:212)
at org.eclipse.papyrus.cdo.internal.ui.actions.AddRepositoryAction$1.run(AddRepositoryAction.java:70)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)


Subsequently, when I try to connect to the repository, I get the following errors in the log:

!ENTRY org.eclipse.papyrus.cdo.ui 4 0 2014-06-12 10:21:03.022
!MESSAGE Unexpected exception in async repository connection.
!STACK 0
java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
at org.eclipse.ui.internal.WorkbenchWindow$13.run(WorkbenchWindow.java:1829)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1826)
at org.eclipse.papyrus.cdo.internal.ui.actions.ConnectRepositoryAction.run(ConnectRepositoryAction.java:44)
at org.eclipse.papyrus.cdo.internal.ui.actions.AbstractRepositoryAction.run(AbstractRepositoryAction.java:81)
at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Caused by: org.eclipse.net4j.util.lifecycle.LifecycleException: Could not activate TCPClientConnector[localhost:2 036]
at org.eclipse.net4j.util.container.ManagedContainer.activateElement(ManagedContainer.java:355)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:325)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:81)
at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:98)
at org.eclipse.emf.cdo.internal.net4j.Net4jConnectorInjector.getConnector(Net4jConnectorInjector.java:72)
at org.eclipse.emf.cdo.internal.net4j.Net4jConnectorInjector.process(Net4jConnectorInjector.java:38)
at org.eclipse.net4j.util.container.ManagedContainer.postProcessElement(ManagedContainer.java:570)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:321)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
at org.eclipse.papyrus.cdo.internal.core.PapyrusRepository.connect(PapyrusRepository.java:212)
at org.eclipse.papyrus.cdo.internal.ui.actions.ConnectRepositoryAction$1.run(ConnectRepositoryAction.java:50)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Root exception:
org.eclipse.net4j.util.lifecycle.LifecycleException: Could not activate TCPClientConnector[localhost:2 036]
at org.eclipse.net4j.util.container.ManagedContainer.activateElement(ManagedContainer.java:355)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:325)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:81)
at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:98)
at org.eclipse.emf.cdo.internal.net4j.Net4jConnectorInjector.getConnector(Net4jConnectorInjector.java:72)
at org.eclipse.emf.cdo.internal.net4j.Net4jConnectorInjector.process(Net4jConnectorInjector.java:38)
at org.eclipse.net4j.util.container.ManagedContainer.postProcessElement(ManagedContainer.java:570)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:321)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
at org.eclipse.papyrus.cdo.internal.core.PapyrusRepository.connect(PapyrusRepository.java:212)
at org.eclipse.papyrus.cdo.internal.ui.actions.ConnectRepositoryAction$1.run(ConnectRepositoryAction.java:50)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)


Is there something more I should have installed (which is not obvious) or is this some other problem?

Regards,
Tomas Sandkvist
Re: [CDO] Creating/connecting to local repository [message #1385948 is a reply to message #1385903] Thu, 12 June 2014 12:20 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Tomas,

Do you have the org.eclipse.net4j.tcp bundle installed in your server's
OSGi instance? This is needed for the server side of the TCP
connector. In any case, a typical reason for this is that the server
is either not running or at least not listening on the port (default is
2036) that your client is trying to connect to. Password negotiation
happens after the connection to the server is established, because it's
actually initiated by the server.

The org.eclipse.emf.cdo.server.product plug-in includes a
CDOServer.launch launch configuration that you could look at to see
what bundles it includes. Try launching that and compare the
configuration/behaviour with your case.

HTH,

Christian


On 2014-06-12 08:22:13 +0000, Tomas Sandkvist said:

> I have installed Eclipse SR2 with Papyrus SR2a, when I create a CDO
> repository I never get the dialog for setting a password that I believe
> should be shown (as far as I can understand. The following shows in the
> log:
>
> !ENTRY org.eclipse.papyrus.cdo.ui 4 0 2014-06-12 10:19:57.297
> !MESSAGE Unexpected exception in async repository connection.
> !STACK 0
> java.lang.reflect.InvocationTargetException
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
> at org.eclipse.ui.internal.WorkbenchWindow$13.run(WorkbenchWindow.java:1829)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
> at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1826)
> at
> org.eclipse.papyrus.cdo.internal.ui.actions.AddRepositoryAction.run(AddRepositoryAction.java:64)
>
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
>
> at
> org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
>
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
>
> at
> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
>
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
> Caused by: org.eclipse.net4j.util.lifecycle.LifecycleException: Could
> not activate TCPClientConnector[localhost:2 036]
> at
> org.eclipse.net4j.util.container.ManagedContainer.activateElement(ManagedContainer.java:355)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:325)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
>
> at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:81)
> at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:98)
> at
> org.eclipse.emf.cdo.internal.net4j.Net4jConnectorInjector.getConnector(Net4jConnectorInjector.java:72)
>
> at
> org.eclipse.emf.cdo.internal.net4j.Net4jConnectorInjector.process(Net4jConnectorInjector.java:38)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.postProcessElement(ManagedContainer.java:570)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:321)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
>
> at
> org.eclipse.papyrus.cdo.internal.core.PapyrusRepository.connect(PapyrusRepository.java:212)
>
> at
> org.eclipse.papyrus.cdo.internal.ui.actions.AddRepositoryAction$1.run(AddRepositoryAction.java:70)
>
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>
> Root exception:
> org.eclipse.net4j.util.lifecycle.LifecycleException: Could not activate
> TCPClientConnector[localhost:2 036]
> at
> org.eclipse.net4j.util.container.ManagedContainer.activateElement(ManagedContainer.java:355)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:325)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
>
> at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:81)
> at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:98)
> at
> org.eclipse.emf.cdo.internal.net4j.Net4jConnectorInjector.getConnector(Net4jConnectorInjector.java:72)
>
> at
> org.eclipse.emf.cdo.internal.net4j.Net4jConnectorInjector.process(Net4jConnectorInjector.java:38)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.postProcessElement(ManagedContainer.java:570)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:321)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
>
> at
> org.eclipse.papyrus.cdo.internal.core.PapyrusRepository.connect(PapyrusRepository.java:212)
>
> at
> org.eclipse.papyrus.cdo.internal.ui.actions.AddRepositoryAction$1.run(AddRepositoryAction.java:70)
>
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>
>
>
> Subsequently, when I try to connect to the repository, I get the
> following errors in the log:
>
> !ENTRY org.eclipse.papyrus.cdo.ui 4 0 2014-06-12 10:21:03.022
> !MESSAGE Unexpected exception in async repository connection.
> !STACK 0
> java.lang.reflect.InvocationTargetException
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
> at org.eclipse.ui.internal.WorkbenchWindow$13.run(WorkbenchWindow.java:1829)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
> at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1826)
> at
> org.eclipse.papyrus.cdo.internal.ui.actions.ConnectRepositoryAction.run(ConnectRepositoryAction.java:44)
>
> at
> org.eclipse.papyrus.cdo.internal.ui.actions.AbstractRepositoryAction.run(AbstractRepositoryAction.java:81)
>
> at
> org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
>
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
>
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
>
> at
> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
>
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
> Caused by: org.eclipse.net4j.util.lifecycle.LifecycleException: Could
> not activate TCPClientConnector[localhost:2 036]
> at
> org.eclipse.net4j.util.container.ManagedContainer.activateElement(ManagedContainer.java:355)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:325)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
>
> at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:81)
> at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:98)
> at
> org.eclipse.emf.cdo.internal.net4j.Net4jConnectorInjector.getConnector(Net4jConnectorInjector.java:72)
>
> at
> org.eclipse.emf.cdo.internal.net4j.Net4jConnectorInjector.process(Net4jConnectorInjector.java:38)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.postProcessElement(ManagedContainer.java:570)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:321)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
>
> at
> org.eclipse.papyrus.cdo.internal.core.PapyrusRepository.connect(PapyrusRepository.java:212)
>
> at
> org.eclipse.papyrus.cdo.internal.ui.actions.ConnectRepositoryAction$1.run(ConnectRepositoryAction.java:50)
>
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>
> Root exception:
> org.eclipse.net4j.util.lifecycle.LifecycleException: Could not activate
> TCPClientConnector[localhost:2 036]
> at
> org.eclipse.net4j.util.container.ManagedContainer.activateElement(ManagedContainer.java:355)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:325)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
>
> at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:81)
> at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:98)
> at
> org.eclipse.emf.cdo.internal.net4j.Net4jConnectorInjector.getConnector(Net4jConnectorInjector.java:72)
>
> at
> org.eclipse.emf.cdo.internal.net4j.Net4jConnectorInjector.process(Net4jConnectorInjector.java:38)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.postProcessElement(ManagedContainer.java:570)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:321)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
>
> at
> org.eclipse.papyrus.cdo.internal.core.PapyrusRepository.connect(PapyrusRepository.java:212)
>
> at
> org.eclipse.papyrus.cdo.internal.ui.actions.ConnectRepositoryAction$1.run(ConnectRepositoryAction.java:50)
>
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>
>
>
> Is there something more I should have installed (which is not obvious)
> or is this some other problem?
>
> Regards,
> Tomas Sandkvist
Re: [CDO] Creating/connecting to local repository [message #1386026 is a reply to message #1385948] Fri, 13 June 2014 05:38 Go to previous messageGo to next message
Tomas Sandkvist is currently offline Tomas SandkvistFriend
Messages: 149
Registered: October 2013
Senior Member
Hi Christian!

OK, so I need a server (What's an 'OSGi instance'?) also for CDO on localhost? Meaning that the default installation of Eclipse/Papyrus does not contain all the parts needed? Didn't realize that.

[EDIT] Found "Getting started with CDO Helios" and "An introduction to CDO 4.0", both these points out that it appears to be some serious setting up, way beyond my knowledge, of a database, some info also seems outdated. In the intro to CDO 4.0 a MySQL database appears to be used, but no information on how to install and setup. IS there any other/better alternative today? OR should I pick up a MySQL installer from it's website and no other tweaking needed?

When I look at the CDO update site (http://download.eclipse.org/modeling/emf/cdo/updates/releases) from within my Eclipse installation, I get to know that I already from the beginning have all parts installed of:

- CDO R20100614-1613
- CDO R20100914-1022
- CDO R20110215-2220

After that there are several releases available, including two uncategorized tools, CDO Model Repository EPP and CDO Release Engineering Version Tool.

I have updated to the latest release, did a new try, but same problem. Is there some setup necessary? Can't find any settings to do within Eclipse preferences?

All I could find was that Net4j is now part of the CDO distribution, which give the impression that everything should be setup to go when installed.

You said:
The org.eclipse.emf.cdo.server.product plug-in includes a
CDOServer.launch launch configuration that you could look at to see
what bundles it includes. Try launching that and compare the
configuration/behaviour with your case.

How do I go about to do that? (remember, your're talking to a noob on the verge to programming illiterate here...)

Regards,
Tomas Sandkvist

[Updated on: Fri, 13 June 2014 06:28]

Report message to a moderator

Re: [CDO] Creating/connecting to local repository [message #1386772 is a reply to message #1386026] Fri, 20 June 2014 10:50 Go to previous message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Tomas,

Sorry for the delayed reply. See some answers in-line, below.

HTH,

Christian


On 2014-06-13 05:39:00 +0000, Tomas Sandkvist said:

> Hi Christian!
>
> OK, so I need a server (What's an 'OSGi instance'?) also for CDO on
> localhost? Meaning that the default installation of Eclipse/Papyrus
> does not contain all the parts needed? Didn't realize that.

Perhaps 'Equinox instance' or 'Eclipse instance' would be more precise.
Anyways, it's an instance of the Equinox/Eclipse implementation of
OSGi. You'll need to be familiar with OSGi to use Eclipse effectively
as an application/server development platform. Best to read up on
that; it's outside the scope of this forum.

If you'll be working with CDO in any capacity, I recommend installing
the CDO SDK. That has all the bits you'll need, including possibly
some that aren't included in the Papyrus Extra Features.


> When I look at the CDO update site
> (http://download.eclipse.org/modeling/emf/cdo/updates/releases) from
> within my Eclipse installation, I get to know that I already from the
> beginning have all parts installed of:
>
> - CDO R20100614-1613
> - CDO R20100914-1022
> - CDO R20110215-2220

Wow. Those are old.


> After that there are several releases available, including two
> uncategorized tools, CDO Model Repository EPP and CDO Release
> Engineering Version Tool.
>
> I have updated to the latest release, did a new try, but same problem.
> Is there some setup necessary? Can't find any settings to do within
> Eclipse preferences?

Sorry, to what problem are you referring? The set-up necessary is
configuration of the cdo-server.xml file. The tutorial/documentation
material on the CDO Wiki should help with that.


> All I could find was that Net4j is now part of the CDO distribution,
> which give the impression that everything should be setup to go when
> installed.

Yes, but you have to make sure that the bundles you need are all
installed in the server. By default an Eclipse launch configuration
will include all the bundles in the current PDE target.


> You said:
> The org.eclipse.emf.cdo.server.product plug-in includes a
> CDOServer.launch launch configuration that you could look at to see
> what bundles it includes. Try launching that and compare the
> configuration/behaviour with your case.
>
> How do I go about to do that? (remember, your're talking to a noob on
> the verge to programming illiterate here...)

Right, you need to learn about Eclipse's launch configurations. The
on-line help included with the Eclipse SDK covers that subject.


> Regards,
> Tomas Sandkvist
Previous Topic:EMF to file
Next Topic:[EMF databinding] bind specific element in an EList by index
Goto Forum:
  


Current Time: Fri Apr 19 10:00:49 GMT 2024

Powered by FUDForum. Page generated in 0.01956 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top