Skip to main content



      Home
Home » Modeling » EMF » [CDO]Exception in Creating Folder in "CDO Sessions"
[CDO]Exception in Creating Folder in "CDO Sessions" [message #764120] Sun, 11 December 2011 07:16 Go to next message
Eclipse UserFriend
Hi,
I have installed emf-cdo-R20110913-0010-Site.zip.And using Eclipse 3.7SR1.
When i wan to create a folder in "CDO Sessions" i got the following exception(I also attach a screen shot and log of exceptions) :

Quote:

org.eclipse.emf.cdo.util.InvalidURIException: Invalid URI "cdo://423b1786-ad90-4174-97be-42c7ee950627/sys": java.lang.IllegalStateException: Different object was registered for OID2
at org.eclipse.emf.internal.cdo.view.AbstractCDOView.registerProxyResource(AbstractCDOView.java:1053)
at org.eclipse.emf.cdo.eresource.impl.CDOResourceImpl.registerProxy(CDOResourceImpl.java:902)
at org.eclipse.emf.cdo.eresource.impl.CDOResourceImpl.load(CDOResourceImpl.java:826)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:255)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:270)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:397)
at org.eclipse.emf.cdo.internal.ui.editor.CDOEditor.createModel(CDOEditor.java:1145)
at org.eclipse.emf.cdo.internal.ui.editor.CDOEditor.createPages(CDOEditor.java:1263)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1198)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1597)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:493)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:479)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:808)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:707)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:666)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2942)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756)
at org.eclipse.emf.cdo.ui.CDOEditorUtil$1.run(CDOEditorUtil.java:79)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
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:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.IllegalStateException: Different object was registered for OID2
at org.eclipse.emf.internal.cdo.view.AbstractCDOView.registerObject(AbstractCDOView.java:1069)
at org.eclipse.emf.internal.cdo.view.AbstractCDOView.registerProxyResource(AbstractCDOView.java:1044)
... 63 more




Khosro.
Re: [CDO]Exception in Creating Folder in "CDO Sessions" [message #764123 is a reply to message #764120] Sun, 11 December 2011 07:19 Go to previous messageGo to next message
Eclipse UserFriend
I do not know whether this bug is related to my problem:Cannot load resource on a previously cleared ResourceSet

Khosro.
Re: [CDO]Exception in Creating Folder in "CDO Sessions" [message #764196 is a reply to message #764120] Sun, 11 December 2011 11:25 Go to previous messageGo to next message
Eclipse UserFriend
Am 11.12.2011 13:16, schrieb Khosro Asgharifard Sharabiani:
> Hi,
> I have installed http://www.eclipse.org/downloads/download.php?file=/modeling/emf/cdo/drops/R20110913-0010/zips/emf-cdo-R20110913-0010-Site.zip&protocol=http.And using Eclipse 3.7SR1.
> When i wan to create a folder in "CDO Sessions" i got the following exception(I also attach a screen shot and log of exceptions) :
Is that reproducible? What are the exact steps?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


>
> Quote:
>> org.eclipse.emf.cdo.util.InvalidURIException: Invalid URI "cdo://423b1786-ad90-4174-97be-42c7ee950627/sys": java.lang.IllegalStateException: Different object was registered for OID2
>> at org.eclipse.emf.internal.cdo.view.AbstractCDOView.registerProxyResource(AbstractCDOView.java:1053)
>> at org.eclipse.emf.cdo.eresource.impl.CDOResourceImpl.registerProxy(CDOResourceImpl.java:902)
>> at org.eclipse.emf.cdo.eresource.impl.CDOResourceImpl.load(CDOResourceImpl.java:826)
>> at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:255)
>> at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:270)
>> at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:397)
>> at org.eclipse.emf.cdo.internal.ui.editor.CDOEditor.createModel(CDOEditor.java:1145)
>> at org.eclipse.emf.cdo.internal.ui.editor.CDOEditor.createPages(CDOEditor.java:1263)
>> at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348)
>> at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
>> at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
>> at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
>> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
>> at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
>> at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
>> at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
>> at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
>> at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)
>> at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1198)
>> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1597)
>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:493)
>> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:479)
>> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
>> at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
>> at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
>> at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
>> at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:808)
>> at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:707)
>> at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:666)
>> at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2942)
>> at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
>> at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
>> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
>> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
>> at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
>> at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
>> at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756)
>> at org.eclipse.emf.cdo.ui.CDOEditorUtil$1.run(CDOEditorUtil.java:79)
>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
>> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
>> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
>> at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
>> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
>> 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:344)
>> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>> 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.equinox.launcher.Main.invokeFramework(Main.java:622)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
>> Caused by: java.lang.IllegalStateException: Different object was registered for OID2
>> at org.eclipse.emf.internal.cdo.view.AbstractCDOView.registerObject(AbstractCDOView.java:1069)
>> at org.eclipse.emf.internal.cdo.view.AbstractCDOView.registerProxyResource(AbstractCDOView.java:1044)
>> ... 63 more
>
>
> Khosro.
Re: [CDO]Exception in Creating Folder in "CDO Sessions" [message #764252 is a reply to message #764196] Sun, 11 December 2011 14:10 Go to previous messageGo to next message
Eclipse UserFriend
1.First start CDO Server with the following config ,and also for creating CDO Server i follow CDO Connected Data Objects in section "Creating a CDO server".
Quote:

<?xml version="1.0" encoding="UTF-8"?>
<cdoServer>

<acceptor type="tcp" listenAddr="0.0.0.0" port="2036">
</acceptor>

<repository name="demo">
<property name="ensureReferentialIntegrity" value="true"/>
<property name="supportingAudits" value="true"/>
<property name="supportingBranches" value="true"/>
<property name="supportingEcore" value="true"/>
<store type="db">
<mappingStrategy type="horizontal"/>
<dbAdapter name="mysql"/>
<dataSource
class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
url="jdbc:mysql://localhost:3306/cdotest?createDatabaseIfNotExist=true"
user="root"
password="123456"
/>
</store>
</repository>

</cdoServer>


Then in "CDO Sessions" view ,i clicked on plus sign("Open a new CDO Session") and i connected to CDO Server that has been started as described in above.
Then right click on opened session( Session1) on "CDO Sessions" view and select "Open Transaction",and then right click on opened transaction(Transaction1) and then select "Create Folder",and then exception occurred as i said in previous post.

Khosro.

Re: [CDO]Exception in Creating Folder in &amp;quot;CDO Sessions&amp;quot; [message #764260 is a reply to message #764252] Sun, 11 December 2011 14:33 Go to previous messageGo to next message
Eclipse UserFriend
Am 11.12.2011 20:10, schrieb Khosro Asgharifard Sharabiani:
> 1.First start CDO Server with the following config ,and also for creating CDO Server i follow
> http://www.rcp-vision.com/?p=1285&lang=en in section "Creating a CDO server".
> Quote:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <cdoServer>
>>
>> <acceptor type="tcp" listenAddr="0.0.0.0" port="2036">
>> </acceptor>
>>
>> <repository name="demo">
>> <property name="ensureReferentialIntegrity" value="true"/>
>> <property name="supportingAudits" value="true"/>
>> <property name="supportingBranches" value="true"/>
>> <property name="supportingEcore" value="true"/>
>> <store type="db">
>> <mappingStrategy type="horizontal"/>
>> <dbAdapter name="mysql"/>
>> <dataSource
>> class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
>> url="jdbc:mysql://localhost:3306/cdotest?createDatabaseIfNotExist=true"
>> user="root"
>> password="123456"
>> />
>> </store>
>> </repository>
>>
>> </cdoServer>
>
>
> Then in "CDO Sessions" view ,i clicked on plus sign("Open a new CDO Session") and i connected to CDO Server that has
> been started as described in above.
> Then right click on opened session( Session1) on "CDO Sessions" view and select "Open Transaction",and then right
> click on opened transaction(Transaction1) and then select "Create Folder",and then exception occurred as i said in
> previous post.
That's very basic functionality and I can't reproduce your issue. Without being able to reproduce it I fear that I can't
do much about it ;-(

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: [CDO]Exception in Creating Folder in &amp;quot;CDO Sessions&amp;quot; [message #764399 is a reply to message #764260] Mon, 12 December 2011 00:03 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eike ,
Would you please tell me what information i must provide for you to solve it?
Thanks for your help.

Khosro.
Re: [CDO]Exception in Creating Folder in &amp;amp;quot;CDO Sessions&amp;amp;quot; [message #764416 is a reply to message #764399] Mon, 12 December 2011 01:01 Go to previous messageGo to next message
Eclipse UserFriend
Am 12.12.2011 06:03, schrieb Khosro Asgharifard Sharabiani:
> Hi Eike ,
> Would you please tell me what information i must provide for you to solve it?
First I recommend to try newer builds from:
CDO 4.1 CI: https://hudson.eclipse.org/hudson/job/emf-cdo-integration or
CDO 4.0 CI: https://hudson.eclipse.org/hudson/job/emf-cdo-maintenance

If your problem persists I would have to be able to reproduce it:
1) You could try to write a test case in our test bed (see the org.eclipse.emf.cdo.tests plugin for ~2000 examples)
2) You could send me an executable (something that I can unzip and run) with detailed steps to reproduce the issue.

Sorry for the inconvenience, but you understand that I can't analyze/fix problems without being able to actually
reproduce them ;-(

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: [CDO]Exception in Creating Folder in &amp;amp;quot;CDO Sessions&amp;amp;quot; [message #764453 is a reply to message #764416] Mon, 12 December 2011 03:02 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eike,
You said i test last successful build from https://hudson.eclipse.org/hudson/job/emf-cdo-integration,but i want to know can i install it on my Eclipse 3.7SR1,because i think emf-cdo-integration is for CDO 4.1 and as far as i know CDO 4.1 needs Eclipse 3.8?Am i right?

Khosro.
Re: [CDO]Exception in Creating Folder in &amp;amp;amp;quot;CDO Sessions&amp;amp;amp;quot; [message #764552 is a reply to message #764453] Mon, 12 December 2011 07:19 Go to previous messageGo to next message
Eclipse UserFriend
Am 12.12.2011 09:02, schrieb Khosro Asgharifard Sharabiani:
> Hi Eike,
> You said i test last successful build from https://hudson.eclipse.org/hudson/job/emf-cdo-integration,but i want to
> know can i install it on my Eclipse 3.7SR1,because i think emf-cdo-integration is for CDO 4.1 and as far as i know CDO
> 4.1 needs Eclipse 3.8?Am i right?
We offially give free technical support (here) for these combinations:

- Eclipse 3.8 + EMF 2.8 + CDO 4.1
- Eclipse 3.7 + EMF 2.7 + CDO 4.0

We always try hard to make as much CDO functionality as possible available to users of older Eclipse+EMF versions. But
no official guarantees ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: [CDO]Exception in Creating Folder in &amp;amp;amp;quot;CDO Sessions&amp;amp;amp;quot; [message #764926 is a reply to message #764552] Tue, 13 December 2011 00:30 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eike,
I did not write a test case to produce the problem,because the problem occurred in Eclipse and in "CDO Sessions" view.
After installing latest build https://hudson.eclipse.org/hudson/job/emf-cdo-maintenance/lastSuccessfulBuild/artifact/ my problem did not solved.
The way that you can reproduce my problem is very easy and is as follow :
I have attached my CDO Server.You must first install MYSQL(I use version 5.1) on port 3306 and then import it to your Eclipse and then open "CDOServer.product" and in "Overview" tab click on "Launch An Eclipse Application".And also "cdo-server.xml" locates in "/CDOServer/rootfiles/configuration".
Then follow these steps :
Select "Windows->ShowView->CDO Sessions" view ,then click on plus sign("Open a new CDO Session") and connect to CDO Server that has been started as described in above(For "Server Description" enter "tcp://localhost:2036" and for "Repository Name" enter "demo" and also check "Automatic Package Registry" checkbox).
Then right click on opened session(Session1) on "CDO Sessions" view and select "Open Transaction",and then right click on opened transaction(Transaction1) and then select "Create Folder" ,for example name it "sys1",and then a new tab open and the exception occurred.
I use "eclipse-modeling-indigo-SR1-linux-gtk-x86_64" in Ubuntu 11.10 and JDK 1.6.0_25.

That's all that i did.
I hope that you can reproduce it for yourself.

Khosro.


  • Attachment: CDOServer.zip
    (Size: 587.58KB, Downloaded 230 times)

[Updated on: Tue, 13 December 2011 00:30] by Moderator

Re: [CDO]Exception in Creating Folder in &amp;amp;amp;amp;quot;CDO Sessions&amp;amp;amp;amp; [message #764930 is a reply to message #764926] Tue, 13 December 2011 00:37 Go to previous messageGo to next message
Eclipse UserFriend
Am 13.12.2011 06:30, schrieb Khosro Asgharifard Sharabiani:
> Hi Eike,
> I did not write a test case to produce the problem,because the problem occurred in Eclipse and in "CDO Sessions" view.
> After installing latest buildhttps://hudson.eclipse.org/hudson/job/emf-cdo-maintenance/lastSuccessfulBuild/artifact/ my problem did not solved.
> The way that you can reproduce my problem is very easy and is as follow :
> I have attached my CDO Server.You must first install MYSQL(I use version 5.1) on port 3306 and then import it to your Eclipse and then open "CDOServer.product" and in "Overview" tab click on "Launch An Eclipse Application".And also "cdo-server.xml" locates in "/CDOServer/rootfiles/configuration".
> Then follow these steps :
> Select "Windows->ShowView->CDO Sessions" view ,then click on plus sign("Open a new CDO Session") and connect to CDO Server that has been started as described in above(For "Server Description" enter "tcp://localhost:2036" and for "Repository Name" enter "demo" and also check "Automatic Package Registry" checkbox).
> Then right click on opened session(Session1) on "CDO Sessions" view and select "Open Transaction",and then right click on opened transaction(Transaction1) and then select "Create Folder" ,for example name it "sys1",and then a new tab open and the exception occurred.
> I use "eclipse-modeling-indigo-SR1-linux-gtk-x86_64" in Ubuntu 11.10 and JDK 1.6.0_25.
>
> That's all that i did.
> I hope that you can reproduce it for yourself.
Okay, I could reproduce the problem (even with H2). Please submit a bugzilla against EMF/cdo.core so that we can track
the progress.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: [CDO]Exception in Creating Folder in &amp;amp;amp;amp;quot;CDO Sessions&amp;amp;amp;amp; [message #764937 is a reply to message #764930] Tue, 13 December 2011 00:52 Go to previous messageGo to next message
Eclipse UserFriend
Hold on, this is a pure UI bug! CreateResourceNodeAction.doRun() should not attempt to open a resource editor for new
folders. A simple if statement fixes this:

if (!createFolder)
{
String resourcePath = node.getPath();
CDOEditorUtil.openEditor(getPage(), transaction, resourcePath);
}

Please submit the bugzilla against EMF/cdo.ui

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Am 13.12.2011 06:37, schrieb Eike Stepper:
> Am 13.12.2011 06:30, schrieb Khosro Asgharifard Sharabiani:
>> Hi Eike,
>> I did not write a test case to produce the problem,because the problem occurred in Eclipse and in "CDO Sessions" view.
>> After installing latest buildhttps://hudson.eclipse.org/hudson/job/emf-cdo-maintenance/lastSuccessfulBuild/artifact/
>> my problem did not solved.
>> The way that you can reproduce my problem is very easy and is as follow :
>> I have attached my CDO Server.You must first install MYSQL(I use version 5.1) on port 3306 and then import it to your
>> Eclipse and then open "CDOServer.product" and in "Overview" tab click on "Launch An Eclipse Application".And also
>> "cdo-server.xml" locates in "/CDOServer/rootfiles/configuration".
>> Then follow these steps :
>> Select "Windows->ShowView->CDO Sessions" view ,then click on plus sign("Open a new CDO Session") and connect to CDO
>> Server that has been started as described in above(For "Server Description" enter "tcp://localhost:2036" and for
>> "Repository Name" enter "demo" and also check "Automatic Package Registry" checkbox).
>> Then right click on opened session(Session1) on "CDO Sessions" view and select "Open Transaction",and then right
>> click on opened transaction(Transaction1) and then select "Create Folder" ,for example name it "sys1",and then a new
>> tab open and the exception occurred.
>> I use "eclipse-modeling-indigo-SR1-linux-gtk-x86_64" in Ubuntu 11.10 and JDK 1.6.0_25.
>>
>> That's all that i did.
>> I hope that you can reproduce it for yourself.
> Okay, I could reproduce the problem (even with H2). Please submit a bugzilla against EMF/cdo.core so that we can track
> the progress.
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
Re: [CDO]Exception in Creating Folder in &amp;amp;amp;amp;quot;CDO Sessions&amp;amp;amp;amp; [message #764965 is a reply to message #764937] Tue, 13 December 2011 02:33 Go to previous message
Eclipse UserFriend
For any one that see this post,. :
A bug filled https://bugs.eclipse.org/bugs/show_bug.cgi?id=366491 for CDO 4.1 and
https://bugs.eclipse.org/bugs/show_bug.cgi?id=366492 for CDO 4.0.

At last,thanks for Eike for solving problem.

Khosro.
Previous Topic:setting list contents (reference) via command stack with set/add/remove commands
Next Topic:[Datbinding] binding to a subset of an EMF collection.
Goto Forum:
  


Current Time: Fri Jul 25 16:06:20 EDT 2025

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

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

Back to the top