|
|
Re: [CDO]Exception in Creating Folder in "CDO Sessions" [message #764196 is a reply to message #764120] |
Sun, 11 December 2011 16:25 |
|
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.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Re: [CDO]Exception in Creating Folder in "CDO Sessions" [message #764260 is a reply to message #764252] |
Sun, 11 December 2011 19:33 |
|
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
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 #764926 is a reply to message #764552] |
Tue, 13 December 2011 05:30 |
Khosro Asgharifard Sharabiani Messages: 35 Registered: December 2011 |
Member |
|
|
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.
[Updated on: Tue, 13 December 2011 05:30] Report message to a moderator
|
|
|
Re: [CDO]Exception in Creating Folder in &amp;amp;amp;quot;CDO Sessions&amp;amp;amp; [message #764930 is a reply to message #764926] |
Tue, 13 December 2011 05:37 |
|
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
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; [message #764937 is a reply to message #764930] |
Tue, 13 December 2011 05:52 |
|
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
>
>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Powered by
FUDForum. Page generated in 0.03742 seconds