Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Questions regarding the new offline/failover example
[CDO] Questions regarding the new offline/failover example [message #978201] Fri, 09 November 2012 22:46 Go to next message
Cristian Mising name is currently offline Cristian Mising nameFriend
Messages: 74
Registered: July 2009
Member
Hello,

First of all thanks Eike for the new offline/failover RCP example.

My question: when the client goes offline and it commits a transaction, then an offline branch is created. On reconnection: can I merge the offline branch with the initial branch, from the main server?

I have noticed a few issues with the example:
* the node directory is missing from the client project, which prevents starting the launch config. I have created it manually and it worked.
* with the initial launch configuration (after modifying it with "Add Required Plugins"): opening a CDO editor for a resource failed, throwing this:

org.eclipse.e4.core.di.InjectionException: java.lang.IllegalArgumentException: can't find IDadditions
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
	at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
...
Caused by: java.lang.IllegalArgumentException: can't find IDadditions
	at org.eclipse.jface.action.ContributionManager.insertAfter(ContributionManager.java:334)
	at org.eclipse.jface.action.SubContributionManager.insertAfter(SubContributionManager.java:159)
	at org.eclipse.emf.cdo.internal.ui.editor.CDOActionBarContributor.contributeToMenu(CDOActionBarContributor.java:242)
	at org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:167)
	at org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor.init(EditingDomainActionBarContributor.java:139)
	at org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:146)
	at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:405)
	at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:320)
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:288)
	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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
	... 76 more
[ERROR] NullPointerException
java.lang.NullPointerException
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3087)
	at org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:2996)
	at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2978)
...


I'm new to e4, so I don't really understand what's going on. However, I have modified the launch config so that it includes all plugins from the target eclipse install, and the problem was solved.

Best regards,
Cristian.
Re: [CDO] Questions regarding the new offline/failover example [message #978463 is a reply to message #978201] Sat, 10 November 2012 03:59 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 5574
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Am 09.11.2012 23:46, schrieb Cristian Mising name:<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">Hello,
<br>
<br>
First of all thanks Eike for the new offline/failover RCP example.
<br>
</blockquote>
You've found it! It's not not 100% finished, yet. I'm still working
on one bug in the core (related to switching the view/transaction
target/branch) that I uncovered with the new example suite. I plan
to write a blog about the example this weekend when I'm done ;-)<br>
<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
My question: when the client goes offline and it commits a
transaction, then an offline branch is created. On reconnection:
can I merge the offline branch with the initial branch, from the
main server?
<br>
</blockquote>
Yes, but it requires the pending changes I mentioned above. From my
local workspace I can already do this:<br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12247" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12248" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12249" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12250" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12251" alt=""><br>
<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
<br>
I have noticed a few issues with the example:
<br>
* the node directory is missing from the client project, which
prevents starting the launch config. I have created it manually
and it worked.<br>
</blockquote>
How have you created the example? By checking it out from Git or by
using the example installer wizard?<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">*
with the initial launch configuration (after modifying it with
"Add Required Plugins"): opening a CDO editor for a resource
failed, throwing this:
<br>
<br>
<br>
org.eclipse.e4.core.di.InjectionException:
java.lang.IllegalArgumentException: can't find IDadditions
<br>
    at
org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)<br>
    at
org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)<br>
..
<br>
Caused by: java.lang.IllegalArgumentException: can't find
IDadditions
<br>
    at
org.eclipse.jface.action.ContributionManager.insertAfter(ContributionManager.java:334)<br>
    at
org.eclipse.jface.action.SubContributionManager.insertAfter(SubContributionManager.java:159)<br>
    at
org.eclipse.emf.cdo.internal.ui.editor.CDOActionBarContributor.contributeToMenu(CDOActionBarContributor.java:242)<br>
    at
org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:167)<br>
    at
org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor.init(EditingDomainActionBarContributor.java:139)<br>
    at
org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:146)<br>
    at
org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:405)<br>
    at
org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:320)<br>
    at
org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:288)<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
<br>
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
<br>
    at java.lang.reflect.Method.invoke(Unknown Source)
<br>
    at
org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)<br>
    ... 76 more
<br>
[ERROR] NullPointerException
<br>
java.lang.NullPointerException
<br>
    at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3087)<br>
    at
org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:2996)
<br>
    at
org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2978)
<br>
..
<br>
</blockquote>
Hmm, hard to tell whether this is an e4 compatibility layer issue or
something else. A big part of my example suite effort was to free
our cdo.ui plugin from IDE dependencies, e.g., RCP'ify the
CDOEditor. Maybe you need to update your code. I'm still
committing/pushing every once in a day.<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
I'm new to e4, so I don't really understand what's going on.
However, I have modified the launch config so that it includes all
plugins from the target eclipse install, and the problem was
solved.
<br>
</blockquote>
I know this is nasty but I don't have a better approach. Especially
because the example apps are really one app. They share the same
code and launch config. That's why I tried to minimize the plugins
in the launch. I'll keep this in mind and write an extra bold hint
to the readme that will pop up after the example installer wizard.<br>
<br>
Cheers<br>
/Eike<br>
<br>
----<br>
<a class="moz-txt-link-freetext" href="http://www.esc-net.de">http://www.esc-net.de</a><br>
<a class="moz-txt-link-freetext" href="http://thegordian.blogspot.com">http://thegordian.blogspot.com</a><br>
<a class="moz-txt-link-freetext" href="http://twitter.com/eikestepper">http://twitter.com/eikestepper</a><br>
<br>
<br>
</body>
</html>
  • Attachment: efifieii.png
    (Size: 50.12KB, Downloaded 78 times)
  • Attachment: caefhcbi.png
    (Size: 39.31KB, Downloaded 86 times)
  • Attachment: agbfjice.png
    (Size: 40.98KB, Downloaded 86 times)
  • Attachment: hedjbaia.png
    (Size: 40.00KB, Downloaded 80 times)
  • Attachment: ebjahhic.png
    (Size: 38.52KB, Downloaded 84 times)
Re: [CDO] Questions regarding the new offline/failover example [message #978468 is a reply to message #978201] Sat, 10 November 2012 03:59 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 5574
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Am 09.11.2012 23:46, schrieb Cristian Mising name:<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">Hello,
<br>
<br>
First of all thanks Eike for the new offline/failover RCP example.
<br>
</blockquote>
You've found it! It's not not 100% finished, yet. I'm still working
on one bug in the core (related to switching the view/transaction
target/branch) that I uncovered with the new example suite. I plan
to write a blog about the example this weekend when I'm done ;-)<br>
<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
My question: when the client goes offline and it commits a
transaction, then an offline branch is created. On reconnection:
can I merge the offline branch with the initial branch, from the
main server?
<br>
</blockquote>
Yes, but it requires the pending changes I mentioned above. From my
local workspace I can already do this:<br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12252" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12253" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12254" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12255" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12256" alt=""><br>
<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
<br>
I have noticed a few issues with the example:
<br>
* the node directory is missing from the client project, which
prevents starting the launch config. I have created it manually
and it worked.<br>
</blockquote>
How have you created the example? By checking it out from Git or by
using the example installer wizard?<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">*
with the initial launch configuration (after modifying it with
"Add Required Plugins"): opening a CDO editor for a resource
failed, throwing this:
<br>
<br>
<br>
org.eclipse.e4.core.di.InjectionException:
java.lang.IllegalArgumentException: can't find IDadditions
<br>
    at
org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)<br>
    at
org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)<br>
..
<br>
Caused by: java.lang.IllegalArgumentException: can't find
IDadditions
<br>
    at
org.eclipse.jface.action.ContributionManager.insertAfter(ContributionManager.java:334)<br>
    at
org.eclipse.jface.action.SubContributionManager.insertAfter(SubContributionManager.java:159)<br>
    at
org.eclipse.emf.cdo.internal.ui.editor.CDOActionBarContributor.contributeToMenu(CDOActionBarContributor.java:242)<br>
    at
org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:167)<br>
    at
org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor.init(EditingDomainActionBarContributor.java:139)<br>
    at
org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:146)<br>
    at
org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:405)<br>
    at
org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:320)<br>
    at
org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:288)<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
<br>
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
<br>
    at java.lang.reflect.Method.invoke(Unknown Source)
<br>
    at
org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)<br>
    ... 76 more
<br>
[ERROR] NullPointerException
<br>
java.lang.NullPointerException
<br>
    at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3087)<br>
    at
org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:2996)
<br>
    at
org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2978)
<br>
..
<br>
</blockquote>
Hmm, hard to tell whether this is an e4 compatibility layer issue or
something else. A big part of my example suite effort was to free
our cdo.ui plugin from IDE dependencies, e.g., RCP'ify the
CDOEditor. Maybe you need to update your code. I'm still
committing/pushing every once in a day.<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
I'm new to e4, so I don't really understand what's going on.
However, I have modified the launch config so that it includes all
plugins from the target eclipse install, and the problem was
solved.
<br>
</blockquote>
I know this is nasty but I don't have a better approach. Especially
because the example apps are really one app. They share the same
code and launch config. That's why I tried to minimize the plugins
in the launch. I'll keep this in mind and write an extra bold hint
to the readme that will pop up after the example installer wizard.<br>
<br>
Cheers<br>
/Eike<br>
<br>
----<br>
<a class="moz-txt-link-freetext" href="http://www.esc-net.de">http://www.esc-net.de</a><br>
<a class="moz-txt-link-freetext" href="http://thegordian.blogspot.com">http://thegordian.blogspot.com</a><br>
<a class="moz-txt-link-freetext" href="http://twitter.com/eikestepper">http://twitter.com/eikestepper</a><br>
<br>
<br>
</body>
</html>
  • Attachment: efifieii.png
    (Size: 50.12KB, Downloaded 78 times)
  • Attachment: caefhcbi.png
    (Size: 39.31KB, Downloaded 84 times)
  • Attachment: agbfjice.png
    (Size: 40.98KB, Downloaded 73 times)
  • Attachment: hedjbaia.png
    (Size: 40.00KB, Downloaded 79 times)
  • Attachment: ebjahhic.png
    (Size: 38.52KB, Downloaded 72 times)
Re: [CDO] Questions regarding the new offline/failover example [message #978473 is a reply to message #978201] Sat, 10 November 2012 03:59 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 5574
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Am 09.11.2012 23:46, schrieb Cristian Mising name:<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">Hello,
<br>
<br>
First of all thanks Eike for the new offline/failover RCP example.
<br>
</blockquote>
You've found it! It's not not 100% finished, yet. I'm still working
on one bug in the core (related to switching the view/transaction
target/branch) that I uncovered with the new example suite. I plan
to write a blog about the example this weekend when I'm done ;-)<br>
<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
My question: when the client goes offline and it commits a
transaction, then an offline branch is created. On reconnection:
can I merge the offline branch with the initial branch, from the
main server?
<br>
</blockquote>
Yes, but it requires the pending changes I mentioned above. From my
local workspace I can already do this:<br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12257" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12258" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12259" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12260" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12261" alt=""><br>
<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
<br>
I have noticed a few issues with the example:
<br>
* the node directory is missing from the client project, which
prevents starting the launch config. I have created it manually
and it worked.<br>
</blockquote>
How have you created the example? By checking it out from Git or by
using the example installer wizard?<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">*
with the initial launch configuration (after modifying it with
"Add Required Plugins"): opening a CDO editor for a resource
failed, throwing this:
<br>
<br>
<br>
org.eclipse.e4.core.di.InjectionException:
java.lang.IllegalArgumentException: can't find IDadditions
<br>
    at
org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)<br>
    at
org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)<br>
..
<br>
Caused by: java.lang.IllegalArgumentException: can't find
IDadditions
<br>
    at
org.eclipse.jface.action.ContributionManager.insertAfter(ContributionManager.java:334)<br>
    at
org.eclipse.jface.action.SubContributionManager.insertAfter(SubContributionManager.java:159)<br>
    at
org.eclipse.emf.cdo.internal.ui.editor.CDOActionBarContributor.contributeToMenu(CDOActionBarContributor.java:242)<br>
    at
org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:167)<br>
    at
org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor.init(EditingDomainActionBarContributor.java:139)<br>
    at
org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:146)<br>
    at
org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:405)<br>
    at
org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:320)<br>
    at
org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:288)<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
<br>
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
<br>
    at java.lang.reflect.Method.invoke(Unknown Source)
<br>
    at
org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)<br>
    ... 76 more
<br>
[ERROR] NullPointerException
<br>
java.lang.NullPointerException
<br>
    at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3087)<br>
    at
org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:2996)
<br>
    at
org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2978)
<br>
..
<br>
</blockquote>
Hmm, hard to tell whether this is an e4 compatibility layer issue or
something else. A big part of my example suite effort was to free
our cdo.ui plugin from IDE dependencies, e.g., RCP'ify the
CDOEditor. Maybe you need to update your code. I'm still
committing/pushing every once in a day.<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
I'm new to e4, so I don't really understand what's going on.
However, I have modified the launch config so that it includes all
plugins from the target eclipse install, and the problem was
solved.
<br>
</blockquote>
I know this is nasty but I don't have a better approach. Especially
because the example apps are really one app. They share the same
code and launch config. That's why I tried to minimize the plugins
in the launch. I'll keep this in mind and write an extra bold hint
to the readme that will pop up after the example installer wizard.<br>
<br>
Cheers<br>
/Eike<br>
<br>
----<br>
<a class="moz-txt-link-freetext" href="http://www.esc-net.de">http://www.esc-net.de</a><br>
<a class="moz-txt-link-freetext" href="http://thegordian.blogspot.com">http://thegordian.blogspot.com</a><br>
<a class="moz-txt-link-freetext" href="http://twitter.com/eikestepper">http://twitter.com/eikestepper</a><br>
<br>
<br>
</body>
</html>
  • Attachment: efifieii.png
    (Size: 50.12KB, Downloaded 77 times)
  • Attachment: caefhcbi.png
    (Size: 39.31KB, Downloaded 81 times)
  • Attachment: agbfjice.png
    (Size: 40.98KB, Downloaded 79 times)
  • Attachment: hedjbaia.png
    (Size: 40.00KB, Downloaded 79 times)
  • Attachment: ebjahhic.png
    (Size: 38.52KB, Downloaded 73 times)
Re: [CDO] Questions regarding the new offline/failover example [message #978478 is a reply to message #978201] Sat, 10 November 2012 03:59 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 5574
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Am 09.11.2012 23:46, schrieb Cristian Mising name:<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">Hello,
<br>
<br>
First of all thanks Eike for the new offline/failover RCP example.
<br>
</blockquote>
You've found it! It's not not 100% finished, yet. I'm still working
on one bug in the core (related to switching the view/transaction
target/branch) that I uncovered with the new example suite. I plan
to write a blog about the example this weekend when I'm done ;-)<br>
<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
My question: when the client goes offline and it commits a
transaction, then an offline branch is created. On reconnection:
can I merge the offline branch with the initial branch, from the
main server?
<br>
</blockquote>
Yes, but it requires the pending changes I mentioned above. From my
local workspace I can already do this:<br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12262" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12263" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12264" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12265" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12266" alt=""><br>
<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
<br>
I have noticed a few issues with the example:
<br>
* the node directory is missing from the client project, which
prevents starting the launch config. I have created it manually
and it worked.<br>
</blockquote>
How have you created the example? By checking it out from Git or by
using the example installer wizard?<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">*
with the initial launch configuration (after modifying it with
"Add Required Plugins"): opening a CDO editor for a resource
failed, throwing this:
<br>
<br>
<br>
org.eclipse.e4.core.di.InjectionException:
java.lang.IllegalArgumentException: can't find IDadditions
<br>
    at
org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)<br>
    at
org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)<br>
..
<br>
Caused by: java.lang.IllegalArgumentException: can't find
IDadditions
<br>
    at
org.eclipse.jface.action.ContributionManager.insertAfter(ContributionManager.java:334)<br>
    at
org.eclipse.jface.action.SubContributionManager.insertAfter(SubContributionManager.java:159)<br>
    at
org.eclipse.emf.cdo.internal.ui.editor.CDOActionBarContributor.contributeToMenu(CDOActionBarContributor.java:242)<br>
    at
org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:167)<br>
    at
org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor.init(EditingDomainActionBarContributor.java:139)<br>
    at
org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:146)<br>
    at
org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:405)<br>
    at
org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:320)<br>
    at
org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:288)<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
<br>
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
<br>
    at java.lang.reflect.Method.invoke(Unknown Source)
<br>
    at
org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)<br>
    ... 76 more
<br>
[ERROR] NullPointerException
<br>
java.lang.NullPointerException
<br>
    at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3087)<br>
    at
org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:2996)
<br>
    at
org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2978)
<br>
..
<br>
</blockquote>
Hmm, hard to tell whether this is an e4 compatibility layer issue or
something else. A big part of my example suite effort was to free
our cdo.ui plugin from IDE dependencies, e.g., RCP'ify the
CDOEditor. Maybe you need to update your code. I'm still
committing/pushing every once in a day.<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
I'm new to e4, so I don't really understand what's going on.
However, I have modified the launch config so that it includes all
plugins from the target eclipse install, and the problem was
solved.
<br>
</blockquote>
I know this is nasty but I don't have a better approach. Especially
because the example apps are really one app. They share the same
code and launch config. That's why I tried to minimize the plugins
in the launch. I'll keep this in mind and write an extra bold hint
to the readme that will pop up after the example installer wizard.<br>
<br>
Cheers<br>
/Eike<br>
<br>
----<br>
<a class="moz-txt-link-freetext" href="http://www.esc-net.de">http://www.esc-net.de</a><br>
<a class="moz-txt-link-freetext" href="http://thegordian.blogspot.com">http://thegordian.blogspot.com</a><br>
<a class="moz-txt-link-freetext" href="http://twitter.com/eikestepper">http://twitter.com/eikestepper</a><br>
<br>
<br>
</body>
</html>
  • Attachment: efifieii.png
    (Size: 50.12KB, Downloaded 74 times)
  • Attachment: caefhcbi.png
    (Size: 39.31KB, Downloaded 76 times)
  • Attachment: agbfjice.png
    (Size: 40.98KB, Downloaded 73 times)
  • Attachment: hedjbaia.png
    (Size: 40.00KB, Downloaded 72 times)
  • Attachment: ebjahhic.png
    (Size: 38.52KB, Downloaded 72 times)
Re: [CDO] Questions regarding the new offline/failover example [message #978483 is a reply to message #978201] Sat, 10 November 2012 03:59 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 5574
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Am 09.11.2012 23:46, schrieb Cristian Mising name:<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">Hello,
<br>
<br>
First of all thanks Eike for the new offline/failover RCP example.
<br>
</blockquote>
You've found it! It's not not 100% finished, yet. I'm still working
on one bug in the core (related to switching the view/transaction
target/branch) that I uncovered with the new example suite. I plan
to write a blog about the example this weekend when I'm done ;-)<br>
<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
My question: when the client goes offline and it commits a
transaction, then an offline branch is created. On reconnection:
can I merge the offline branch with the initial branch, from the
main server?
<br>
</blockquote>
Yes, but it requires the pending changes I mentioned above. From my
local workspace I can already do this:<br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12267" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12268" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12269" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12270" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12271" alt=""><br>
<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
<br>
I have noticed a few issues with the example:
<br>
* the node directory is missing from the client project, which
prevents starting the launch config. I have created it manually
and it worked.<br>
</blockquote>
How have you created the example? By checking it out from Git or by
using the example installer wizard?<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">*
with the initial launch configuration (after modifying it with
"Add Required Plugins"): opening a CDO editor for a resource
failed, throwing this:
<br>
<br>
<br>
org.eclipse.e4.core.di.InjectionException:
java.lang.IllegalArgumentException: can't find IDadditions
<br>
    at
org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)<br>
    at
org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)<br>
..
<br>
Caused by: java.lang.IllegalArgumentException: can't find
IDadditions
<br>
    at
org.eclipse.jface.action.ContributionManager.insertAfter(ContributionManager.java:334)<br>
    at
org.eclipse.jface.action.SubContributionManager.insertAfter(SubContributionManager.java:159)<br>
    at
org.eclipse.emf.cdo.internal.ui.editor.CDOActionBarContributor.contributeToMenu(CDOActionBarContributor.java:242)<br>
    at
org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:167)<br>
    at
org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor.init(EditingDomainActionBarContributor.java:139)<br>
    at
org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:146)<br>
    at
org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:405)<br>
    at
org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:320)<br>
    at
org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:288)<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
<br>
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
<br>
    at java.lang.reflect.Method.invoke(Unknown Source)
<br>
    at
org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)<br>
    ... 76 more
<br>
[ERROR] NullPointerException
<br>
java.lang.NullPointerException
<br>
    at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3087)<br>
    at
org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:2996)
<br>
    at
org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2978)
<br>
..
<br>
</blockquote>
Hmm, hard to tell whether this is an e4 compatibility layer issue or
something else. A big part of my example suite effort was to free
our cdo.ui plugin from IDE dependencies, e.g., RCP'ify the
CDOEditor. Maybe you need to update your code. I'm still
committing/pushing every once in a day.<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
I'm new to e4, so I don't really understand what's going on.
However, I have modified the launch config so that it includes all
plugins from the target eclipse install, and the problem was
solved.
<br>
</blockquote>
I know this is nasty but I don't have a better approach. Especially
because the example apps are really one app. They share the same
code and launch config. That's why I tried to minimize the plugins
in the launch. I'll keep this in mind and write an extra bold hint
to the readme that will pop up after the example installer wizard.<br>
<br>
Cheers<br>
/Eike<br>
<br>
----<br>
<a class="moz-txt-link-freetext" href="http://www.esc-net.de">http://www.esc-net.de</a><br>
<a class="moz-txt-link-freetext" href="http://thegordian.blogspot.com">http://thegordian.blogspot.com</a><br>
<a class="moz-txt-link-freetext" href="http://twitter.com/eikestepper">http://twitter.com/eikestepper</a><br>
<br>
<br>
</body>
</html>
  • Attachment: efifieii.png
    (Size: 50.12KB, Downloaded 82 times)
  • Attachment: caefhcbi.png
    (Size: 39.31KB, Downloaded 75 times)
  • Attachment: agbfjice.png
    (Size: 40.98KB, Downloaded 75 times)
  • Attachment: hedjbaia.png
    (Size: 40.00KB, Downloaded 63 times)
  • Attachment: ebjahhic.png
    (Size: 38.52KB, Downloaded 64 times)
Re: [CDO] Questions regarding the new offline/failover example [message #978488 is a reply to message #978201] Sat, 10 November 2012 03:59 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 5574
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Am 09.11.2012 23:46, schrieb Cristian Mising name:<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">Hello,
<br>
<br>
First of all thanks Eike for the new offline/failover RCP example.
<br>
</blockquote>
You've found it! It's not not 100% finished, yet. I'm still working
on one bug in the core (related to switching the view/transaction
target/branch) that I uncovered with the new example suite. I plan
to write a blog about the example this weekend when I'm done ;-)<br>
<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
My question: when the client goes offline and it commits a
transaction, then an offline branch is created. On reconnection:
can I merge the offline branch with the initial branch, from the
main server?
<br>
</blockquote>
Yes, but it requires the pending changes I mentioned above. From my
local workspace I can already do this:<br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12272" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12273" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12274" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12275" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12276" alt=""><br>
<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
<br>
I have noticed a few issues with the example:
<br>
* the node directory is missing from the client project, which
prevents starting the launch config. I have created it manually
and it worked.<br>
</blockquote>
How have you created the example? By checking it out from Git or by
using the example installer wizard?<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">*
with the initial launch configuration (after modifying it with
"Add Required Plugins"): opening a CDO editor for a resource
failed, throwing this:
<br>
<br>
<br>
org.eclipse.e4.core.di.InjectionException:
java.lang.IllegalArgumentException: can't find IDadditions
<br>
    at
org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)<br>
    at
org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)<br>
..
<br>
Caused by: java.lang.IllegalArgumentException: can't find
IDadditions
<br>
    at
org.eclipse.jface.action.ContributionManager.insertAfter(ContributionManager.java:334)<br>
    at
org.eclipse.jface.action.SubContributionManager.insertAfter(SubContributionManager.java:159)<br>
    at
org.eclipse.emf.cdo.internal.ui.editor.CDOActionBarContributor.contributeToMenu(CDOActionBarContributor.java:242)<br>
    at
org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:167)<br>
    at
org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor.init(EditingDomainActionBarContributor.java:139)<br>
    at
org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:146)<br>
    at
org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:405)<br>
    at
org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:320)<br>
    at
org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:288)<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
<br>
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
<br>
    at java.lang.reflect.Method.invoke(Unknown Source)
<br>
    at
org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)<br>
    ... 76 more
<br>
[ERROR] NullPointerException
<br>
java.lang.NullPointerException
<br>
    at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3087)<br>
    at
org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:2996)
<br>
    at
org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2978)
<br>
..
<br>
</blockquote>
Hmm, hard to tell whether this is an e4 compatibility layer issue or
something else. A big part of my example suite effort was to free
our cdo.ui plugin from IDE dependencies, e.g., RCP'ify the
CDOEditor. Maybe you need to update your code. I'm still
committing/pushing every once in a day.<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
I'm new to e4, so I don't really understand what's going on.
However, I have modified the launch config so that it includes all
plugins from the target eclipse install, and the problem was
solved.
<br>
</blockquote>
I know this is nasty but I don't have a better approach. Especially
because the example apps are really one app. They share the same
code and launch config. That's why I tried to minimize the plugins
in the launch. I'll keep this in mind and write an extra bold hint
to the readme that will pop up after the example installer wizard.<br>
<br>
Cheers<br>
/Eike<br>
<br>
----<br>
<a class="moz-txt-link-freetext" href="http://www.esc-net.de">http://www.esc-net.de</a><br>
<a class="moz-txt-link-freetext" href="http://thegordian.blogspot.com">http://thegordian.blogspot.com</a><br>
<a class="moz-txt-link-freetext" href="http://twitter.com/eikestepper">http://twitter.com/eikestepper</a><br>
<br>
<br>
</body>
</html>
  • Attachment: efifieii.png
    (Size: 50.12KB, Downloaded 66 times)
  • Attachment: caefhcbi.png
    (Size: 39.31KB, Downloaded 62 times)
  • Attachment: agbfjice.png
    (Size: 40.98KB, Downloaded 58 times)
  • Attachment: hedjbaia.png
    (Size: 40.00KB, Downloaded 66 times)
  • Attachment: ebjahhic.png
    (Size: 38.52KB, Downloaded 80 times)
Re: [CDO] Questions regarding the new offline/failover example [message #978493 is a reply to message #978201] Sat, 10 November 2012 03:59 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 5574
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Am 09.11.2012 23:46, schrieb Cristian Mising name:<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">Hello,
<br>
<br>
First of all thanks Eike for the new offline/failover RCP example.
<br>
</blockquote>
You've found it! It's not not 100% finished, yet. I'm still working
on one bug in the core (related to switching the view/transaction
target/branch) that I uncovered with the new example suite. I plan
to write a blog about the example this weekend when I'm done ;-)<br>
<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
My question: when the client goes offline and it commits a
transaction, then an offline branch is created. On reconnection:
can I merge the offline branch with the initial branch, from the
main server?
<br>
</blockquote>
Yes, but it requires the pending changes I mentioned above. From my
local workspace I can already do this:<br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12277" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12278" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12279" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12280" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12281" alt=""><br>
<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
<br>
I have noticed a few issues with the example:
<br>
* the node directory is missing from the client project, which
prevents starting the launch config. I have created it manually
and it worked.<br>
</blockquote>
How have you created the example? By checking it out from Git or by
using the example installer wizard?<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">*
with the initial launch configuration (after modifying it with
"Add Required Plugins"): opening a CDO editor for a resource
failed, throwing this:
<br>
<br>
<br>
org.eclipse.e4.core.di.InjectionException:
java.lang.IllegalArgumentException: can't find IDadditions
<br>
    at
org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)<br>
    at
org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)<br>
..
<br>
Caused by: java.lang.IllegalArgumentException: can't find
IDadditions
<br>
    at
org.eclipse.jface.action.ContributionManager.insertAfter(ContributionManager.java:334)<br>
    at
org.eclipse.jface.action.SubContributionManager.insertAfter(SubContributionManager.java:159)<br>
    at
org.eclipse.emf.cdo.internal.ui.editor.CDOActionBarContributor.contributeToMenu(CDOActionBarContributor.java:242)<br>
    at
org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:167)<br>
    at
org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor.init(EditingDomainActionBarContributor.java:139)<br>
    at
org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:146)<br>
    at
org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:405)<br>
    at
org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:320)<br>
    at
org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:288)<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
<br>
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
<br>
    at java.lang.reflect.Method.invoke(Unknown Source)
<br>
    at
org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)<br>
    ... 76 more
<br>
[ERROR] NullPointerException
<br>
java.lang.NullPointerException
<br>
    at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3087)<br>
    at
org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:2996)
<br>
    at
org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2978)
<br>
..
<br>
</blockquote>
Hmm, hard to tell whether this is an e4 compatibility layer issue or
something else. A big part of my example suite effort was to free
our cdo.ui plugin from IDE dependencies, e.g., RCP'ify the
CDOEditor. Maybe you need to update your code. I'm still
committing/pushing every once in a day.<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
I'm new to e4, so I don't really understand what's going on.
However, I have modified the launch config so that it includes all
plugins from the target eclipse install, and the problem was
solved.
<br>
</blockquote>
I know this is nasty but I don't have a better approach. Especially
because the example apps are really one app. They share the same
code and launch config. That's why I tried to minimize the plugins
in the launch. I'll keep this in mind and write an extra bold hint
to the readme that will pop up after the example installer wizard.<br>
<br>
Cheers<br>
/Eike<br>
<br>
----<br>
<a class="moz-txt-link-freetext" href="http://www.esc-net.de">http://www.esc-net.de</a><br>
<a class="moz-txt-link-freetext" href="http://thegordian.blogspot.com">http://thegordian.blogspot.com</a><br>
<a class="moz-txt-link-freetext" href="http://twitter.com/eikestepper">http://twitter.com/eikestepper</a><br>
<br>
<br>
</body>
</html>
  • Attachment: efifieii.png
    (Size: 50.12KB, Downloaded 86 times)
  • Attachment: caefhcbi.png
    (Size: 39.31KB, Downloaded 80 times)
  • Attachment: agbfjice.png
    (Size: 40.98KB, Downloaded 79 times)
  • Attachment: hedjbaia.png
    (Size: 40.00KB, Downloaded 82 times)
  • Attachment: ebjahhic.png
    (Size: 38.52KB, Downloaded 79 times)
Re: [CDO] Questions regarding the new offline/failover example [message #978498 is a reply to message #978201] Sat, 10 November 2012 03:59 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 5574
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Am 09.11.2012 23:46, schrieb Cristian Mising name:<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">Hello,
<br>
<br>
First of all thanks Eike for the new offline/failover RCP example.
<br>
</blockquote>
You've found it! It's not not 100% finished, yet. I'm still working
on one bug in the core (related to switching the view/transaction
target/branch) that I uncovered with the new example suite. I plan
to write a blog about the example this weekend when I'm done ;-)<br>
<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
My question: when the client goes offline and it commits a
transaction, then an offline branch is created. On reconnection:
can I merge the offline branch with the initial branch, from the
main server?
<br>
</blockquote>
Yes, but it requires the pending changes I mentioned above. From my
local workspace I can already do this:<br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12282" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12283" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12284" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12285" alt=""><br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=12286" alt=""><br>
<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
<br>
I have noticed a few issues with the example:
<br>
* the node directory is missing from the client project, which
prevents starting the launch config. I have created it manually
and it worked.<br>
</blockquote>
How have you created the example? By checking it out from Git or by
using the example installer wizard?<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">*
with the initial launch configuration (after modifying it with
"Add Required Plugins"): opening a CDO editor for a resource
failed, throwing this:
<br>
<br>
<br>
org.eclipse.e4.core.di.InjectionException:
java.lang.IllegalArgumentException: can't find IDadditions
<br>
    at
org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)<br>
    at
org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)<br>
..
<br>
Caused by: java.lang.IllegalArgumentException: can't find
IDadditions
<br>
    at
org.eclipse.jface.action.ContributionManager.insertAfter(ContributionManager.java:334)<br>
    at
org.eclipse.jface.action.SubContributionManager.insertAfter(SubContributionManager.java:159)<br>
    at
org.eclipse.emf.cdo.internal.ui.editor.CDOActionBarContributor.contributeToMenu(CDOActionBarContributor.java:242)<br>
    at
org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:167)<br>
    at
org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor.init(EditingDomainActionBarContributor.java:139)<br>
    at
org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:146)<br>
    at
org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:405)<br>
    at
org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:320)<br>
    at
org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:288)<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
<br>
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
<br>
    at java.lang.reflect.Method.invoke(Unknown Source)
<br>
    at
org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)<br>
    ... 76 more
<br>
[ERROR] NullPointerException
<br>
java.lang.NullPointerException
<br>
    at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3087)<br>
    at
org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:2996)
<br>
    at
org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2978)
<br>
..
<br>
</blockquote>
Hmm, hard to tell whether this is an e4 compatibility layer issue or
something else. A big part of my example suite effort was to free
our cdo.ui plugin from IDE dependencies, e.g., RCP'ify the
CDOEditor. Maybe you need to update your code. I'm still
committing/pushing every once in a day.<br>
<br>
<blockquote cite="mid:k7k14u$ije$1@xxxxxxxxe.org" type="cite">
I'm new to e4, so I don't really understand what's going on.
However, I have modified the launch config so that it includes all
plugins from the target eclipse install, and the problem was
solved.
<br>
</blockquote>
I know this is nasty but I don't have a better approach. Especially
because the example apps are really one app. They share the same
code and launch config. That's why I tried to minimize the plugins
in the launch. I'll keep this in mind and write an extra bold hint
to the readme that will pop up after the example installer wizard.<br>
<br>
Cheers<br>
/Eike<br>
<br>
----<br>
<a class="moz-txt-link-freetext" href="http://www.esc-net.de">http://www.esc-net.de</a><br>
<a class="moz-txt-link-freetext" href="http://thegordian.blogspot.com">http://thegordian.blogspot.com</a><br>
<a class="moz-txt-link-freetext" href="http://twitter.com/eikestepper">http://twitter.com/eikestepper</a><br>
<br>
<br>
</body>
</html>
  • Attachment: efifieii.png
    (Size: 50.12KB, Downloaded 68 times)
  • Attachment: caefhcbi.png
    (Size: 39.31KB, Downloaded 85 times)
  • Attachment: agbfjice.png
    (Size: 40.98KB, Downloaded 74 times)
  • Attachment: hedjbaia.png
    (Size: 40.00KB, Downloaded 81 times)
  • Attachment: ebjahhic.png
    (Size: 38.52KB, Downloaded 75 times)
Re: [CDO] Questions regarding the new offline/failover example [message #978527 is a reply to message #978201] Sat, 10 November 2012 05:09 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 5574
Registered: July 2009
Senior Member
Am 09.11.2012 23:46, schrieb Cristian Mising name:
> * the node directory is missing from the client project, which prevents starting the launch config. I have created it
> manually and it worked.
First I wondered why because the code already created it:

public NodeManager(File root)
{
this.root = root;

if (!root.exists())
{
root.mkdirs();
}


But then I read your problem statement again and I realized that it's really a launch config issue. Now I changed this:

-Dnode.manager.root=${resource_loc:/org.eclipse.emf.cdo.examples.client.offline/nodes}

to this:

-Dnode.manager.root=${resource_loc:/org.eclipse.emf.cdo.examples.client.offline}/nodes

I was also able to fix the remaining problem I mentioned. A new I-build is running and will appear on the downloads page
in a hour or so ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: [CDO] Questions regarding the new offline/failover example [message #978704 is a reply to message #978201] Sat, 10 November 2012 08:39 Go to previous messageGo to next message
Cristian Mising name is currently offline Cristian Mising nameFriend
Messages: 74
Registered: July 2009
Member
Thanks Eike.

I have downloaded the new version, and it works great!
I'm looking forward to your blog post.

I have noticed an issue yesterday (in the previous version and this one as well), regarding the existing examples master/clone. Maybe you are already aware of it, but if not, I past the log details.

The clone repository, continuously opens sessions:

Opened Session2 [repo1]
Opened Session3 [repo1]
Opened Session4 [repo1]
Opened Session5 [repo1]
Opened Session6 [repo1]
...


And the server keeps showing this:

TCPSelector [debug] Reading java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371]
TCPSelector [debug.buffer] Obtained Buffer@16[INITIAL]
TCPSelector [debug.buffer] Read 12 bytes
05 00 10 00 00 00 0b 00 03 63 64 6f 
TCPSelector [debug.lifecycle] Activating SignalProtocol[cdo]
TCPSelector [debug.lifecycle.dump] DUMP  CDOServerProtocol
  Protocol.type = cdo
  Protocol.executorService = java.util.concurrent.ThreadPoolExecutor@66daad3a[Running, pool size = 1, active threads = 0, queued tasks = 0, completed tasks = 45]
  Protocol.bufferProvider = Channel[-32,768, SERVER]
  Protocol.infraStructure = null
  Protocol.channel = Channel[-32,768, SERVER]
  Protocol.userID = null
  SignalProtocol.timeout = 10000
  SignalProtocol.streamWrapper = null
  SignalProtocol.signals = 
  SignalProtocol.nextCorrelationID = 1
  SignalProtocol.failingOver = false
  negotiationTimeout = 15000
  repositoryProvider = org.eclipse.emf.cdo.spi.server.PluginRepositoryProvider@2ee5d3df
  packageURICompressor = StringCompressor[client=false]

TCPSelector [debug.connector] Opening channel with protocol cdo
TCPSelector [debug.lifecycle] Activating Channel[16, SERVER, cdo]
TCPSelector [debug.lifecycle] Activating ReceiveSerializer
TCPSelector [debug.lifecycle.dump] DUMP  ReceiveSerializer
  Worker.daemon = true
  Worker.activationTimeout = 10000
  Worker.deactivationTimeout = 10000
  QueueWorker.queue = 
  QueueWorker.pollMillis = 100

TCPSelector [debug.lifecycle.dump] DUMP  Channel
  userID = null
  channelMultiplexer = TCPServerConnector[127.0.0.1:60,371]
  id = 16
  receiveExecutor = java.util.concurrent.ThreadPoolExecutor@66daad3a[Running, pool size = 1, active threads = 0, queued tasks = 0, completed tasks = 45]
  receiveHandler = SignalProtocol[cdo]
  receiveSerializer = ReceiveSerializer
  sendQueue = 
  sentBuffers = 0
  receivedBuffers = 0

TCPSelector [debug.buffer] Created Buffer@17[INITIAL]
TCPSelector [debug.buffer] Obtained Buffer@17[INITIAL]
TCPSelector [debug.channel] Handling buffer: Buffer@17[PUTTING] --> Channel[Control, SERVER]
TCPSelector [debug] Ordering server operation INTEREST WRITE java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = true
TCPSelector [debug.buffer] Retaining Buffer@16[RELEASED]
TCPSelector [debug] Executing server operation INTEREST WRITE java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = true
TCPSelector [debug] Setting interest READ|WRITE (was read)
TCPSelector [debug] Writing java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371]
TCPSelector [debug.buffer] Writing 5 bytes
03 00 10 00 00 
TCPSelector [debug.buffer] Retaining Buffer@17[RELEASED]
TCPSelector [debug] Ordering server operation INTEREST WRITE java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = false
TCPSelector [debug] Executing server operation INTEREST WRITE java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = false
TCPSelector [debug] Setting interest READ (was read|write)
TCPSelector [debug] Reading java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371]
TCPSelector [debug.buffer] Obtained Buffer@16[INITIAL]
TCPSelector [debug.buffer] Read 27 bytes (EOS)
00 00 00 01 00 01 00 00 00 01 00 00 00 0a 01 00 05 72 65 70 6f 31 00 00 01 7c 7c 
TCPSelector [debug.channel] Handling buffer from multiplexer: Buffer@16[GETTING] --> Channel[16, SERVER, cdo]
Net4jReceiveSerializer-Channel[16, SERVER, cdo] [debug.signal] Received buffer for correlation 1
Net4jReceiveSerializer-Channel[16, SERVER, cdo] [debug.signal] Got signalID: 1
net4j-Thread-1 [debug.signal] ================ Indicating: Signal[protocol=cdo, id=1, name=OpenSessionIndication, correlation=-1]
net4j-Thread-1 [debug.protocol] Read repositoryName: repo1
net4j-Thread-1 [debug.protocol] Read userID: null
net4j-Thread-1 [debug.protocol] Read passiveUpdateEnabled: true
net4j-Thread-1 [debug.protocol] Read passiveUpdateMode: ADDITIONS
net4j-Thread-1 [debug.buffer] Retaining Buffer@16[RELEASED]
net4j-Thread-1 [debug.protocol] Read lockNotificationMode: ALWAYS
net4j-Thread-1 [debug.signal] ================ Responding: Signal[protocol=cdo, id=1, name=OpenSessionIndication, correlation=-1]
net4j-Thread-1 [debug.session] Opening session 17
net4j-Thread-1 [debug.lifecycle] Activating Session[17]
net4j-Thread-1 [debug.lifecycle.dump] DUMP  Session
  ShareableLifecycle.refCount = null
  manager = SessionManager
  protocol = SignalProtocol[cdo]
  sessionID = 17
  userID = null
  passiveUpdateEnabled = true
  passiveUpdateMode = INVALIDATIONS
  lockNotificationMode = IF_REQUIRED_BY_VIEWS
  lastUpdateTime = 0
  views = 
  lastTempViewID = 0
  subscribed = false

net4j-Thread-1 [debug.protocol] Writing sessionID: 17
net4j-Thread-1 [debug.buffer] Obtained Buffer@17[INITIAL]
net4j-Thread-1 [debug.protocol] Writing userID: null
net4j-Thread-1 [debug.protocol] Writing repositoryUUID: repo1
net4j-Thread-1 [debug.protocol] Writing CDOIDObject of subtype 4 (UUID)
net4j-Thread-1 [debug.protocol] Writing 3 package units
net4j-Thread-1 [debug] Writing CDOPackageUnit[id=http://www.eclipse.org/emf/2002/Ecore, state=LOADED, type=LEGACY, originalType=LEGACY, timeStamp=2012-11-10 09:28:09.691]
net4j-Thread-1 [debug] Writing CDOPackageInfo[packageURI=http://www.eclipse.org/emf/2002/Ecore, parentURI=null]
net4j-Thread-1 [debug] Writing CDOPackageUnit[id=http://www.eclipse.org/emf/CDO/Eresource/4.0.0, state=LOADED, type=NATIVE, originalType=NATIVE, timeStamp=2012-11-10 09:28:09.691]
net4j-Thread-1 [debug] Writing CDOPackageInfo[packageURI=http://www.eclipse.org/emf/CDO/Eresource/4.0.0, parentURI=null]
net4j-Thread-1 [debug] Writing CDOPackageUnit[id=http://www.eclipse.org/emf/CDO/Etypes/4.0.0, state=LOADED, type=NATIVE, originalType=NATIVE, timeStamp=2012-11-10 09:28:09.691]
net4j-Thread-1 [debug] Writing CDOPackageInfo[packageURI=http://www.eclipse.org/emf/CDO/Etypes/4.0.0, parentURI=null]
net4j-Thread-1 [debug.channel] Handling buffer: Buffer@17[PUTTING] --> Channel[16, SERVER, cdo]
net4j-Thread-1 [debug] Ordering server operation INTEREST WRITE java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = true
TCPSelector [debug] Executing server operation INTEREST WRITE java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = true
TCPSelector [debug] Setting interest READ|WRITE (was read)
TCPSelector [debug] Writing java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371]
TCPSelector [debug.buffer] Writing 300 bytes (EOS)
00 00 00 00 00 00 00 11 00 01 00 05 72 65 70 6f 31 00 7e 7b 01 00 02 64 62 00 00 00 00 01 7a 00 00 01 3a 16 6e 1b 5b 00 00 01 3a 16 6e 1b 5b 04 00 00 00 10 70 30 29 50 2b 10 11 1d 7d 6f 43 68 0e 32 08 4a 01 01 00 00 00 7d 00 00 00 03 00 01 00 00 01 3a 16 6e 1b 5b 00 00 00 01 7f 00 00 00 00 00 00 00 02 01 00 25 68 74 74 70 3a 2f 2f 77 77 77 2e 65 63 6c 69 70 73 65 2e 6f 72 67 2f 65 6d 66 2f 32 30 30 32 2f 45 63 6f 72 65 00 01 00 00 00 00 00 00 00 00 01 3a 16 6e 1b 5b 00 00 00 01 7f 00 00 00 00 00 00 01 02 01 00 2e 68 74 74 70 3a 2f 2f 77 77 77 2e 65 63 6c 69 70 73 65 2e 6f 72 67 2f 65 6d 66 2f 43 44 4f 2f 45 72 65 73 6f 75 72 63 65 2f 34 2e 30 2e 30 00 01 00 00 00 00 00 00 00 00 01 3a 16 6e 1b 5b 00 00 00 01 7f 00 00 00 00 00 00 02 02 01 00 2b 68 74 74 70 3a 2f 2f 77 77 77 2e 65 63 6c 69 70 73 65 2e 6f 72 67 2f 65 6d 66 2f 43 44 4f 2f 45 74 79 70 65 73 2f 34 2e 30 2e 30 00 01 00 00 00 00 
TCPSelector [debug.buffer] Retaining Buffer@17[RELEASED]
TCPSelector [debug] Ordering server operation INTEREST WRITE java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = false
TCPSelector [debug] Executing server operation INTEREST WRITE java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = false
TCPSelector [debug] Setting interest READ (was read|write)
TCPSelector [debug] Reading java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371]
TCPSelector [debug.buffer] Obtained Buffer@16[INITIAL]
TCPSelector [debug.buffer] Read 6 bytes (EOS)
00 00 00 02 00 17 
TCPSelector [debug.channel] Handling buffer from multiplexer: Buffer@16[GETTING] --> Channel[16, SERVER, cdo]
Net4jReceiveSerializer-Channel[16, SERVER, cdo] [debug.signal] Received buffer for correlation 2
Net4jReceiveSerializer-Channel[16, SERVER, cdo] [debug.signal] Got signalID: 23
net4j-Thread-1 [debug.signal] ================ Indicating: Signal[protocol=cdo, id=23, name=RepositoryTimeIndication, correlation=-2]
net4j-Thread-1 [debug.signal] ================ Responding: Signal[protocol=cdo, id=23, name=RepositoryTimeIndication, correlation=-2]
net4j-Thread-1 [debug.protocol] Writing indicated: 2012-11-10 09:29:01.605
net4j-Thread-1 [debug.buffer] Obtained Buffer@17[INITIAL]
net4j-Thread-1 [debug.protocol] Writing responded: 2012-11-10 09:29:01.605
net4j-Thread-1 [debug.channel] Handling buffer: Buffer@17[PUTTING] --> Channel[16, SERVER, cdo]
net4j-Thread-1 [debug] Ordering server operation INTEREST WRITE java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = true
TCPSelector [debug] Executing server operation INTEREST WRITE java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = true
TCPSelector [debug] Setting interest READ|WRITE (was read)
TCPSelector [debug] Writing java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371]
TCPSelector [debug.buffer] Writing 20 bytes (EOS)
00 00 00 01 00 00 01 3a 16 6f 50 25 00 00 01 3a 16 6f 50 25 
TCPSelector [debug.buffer] Retaining Buffer@17[RELEASED]
TCPSelector [debug] Ordering server operation INTEREST WRITE java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = false
TCPSelector [debug] Executing server operation INTEREST WRITE java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = false
TCPSelector [debug] Setting interest READ (was read|write)
TCPSelector [debug] Reading java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371]
TCPSelector [debug.buffer] Obtained Buffer@17[INITIAL]
TCPSelector [debug.buffer] Read 26 bytes (EOS)
00 00 00 03 00 2b 00 00 00 01 00 00 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 
TCPSelector [debug.channel] Handling buffer from multiplexer: Buffer@17[GETTING] --> Channel[16, SERVER, cdo]
Net4jReceiveSerializer-Channel[16, SERVER, cdo] [debug.signal] Received buffer for correlation 3
Net4jReceiveSerializer-Channel[16, SERVER, cdo] [debug.signal] Got signalID: 43
net4j-Thread-1 [debug.signal] ================ Indicating: Signal[protocol=cdo, id=43, name=ReplicateRepositoryRawIndication, correlation=-3]
net4j-Thread-1 [debug.buffer] Retaining Buffer@17[RELEASED]
net4j-Thread-1 [debug.signal] ================ Responding: Signal[protocol=cdo, id=43, name=ReplicateRepositoryRawIndication, correlation=-3]
net4j-Thread-1 [debug.buffer] Obtained Buffer@17[INITIAL]
net4j-Thread-1 [debug.sql] SELECT id, name, base_id, base_time FROM cdo_branches WHERE id BETWEEN 1 AND 0
net4j-Thread-1 [debug.sql] SELECT commit_time, previous_time, branch_id, user_id, commit_comment FROM cdo_commit_infos WHERE commit_time BETWEEN 1 AND 1352536089691
net4j-Thread-1 [debug.sql] SELECT id, user_id, view_branch, view_time, read_only FROM cdo_lock_areas
net4j-Thread-1 [debug.sql] SELECT area_id, object_id, lock_grade FROM cdo_locks
net4j-Thread-1 [debug.sql] SELECT p_u.id, p_u.original_type, p_u.time_stamp, p_u.package_data FROM cdo_package_units p_u WHERE p_u.id<>'http://www.eclipse.org/emf/2002/Ecore' AND p_u.id<>'http://www.eclipse.org/emf/CDO/Eresource/4.0.0' AND p_u.id<>'http://www.eclipse.org/emf/CDO/Etypes/4.0.0' AND p_u.time_stamp BETWEEN 1 AND 1352536089691
net4j-Thread-1 [debug.sql] SELECT p_i.uri, p_i.parent, p_i.unit FROM cdo_package_infos p_i, cdo_package_units p_u WHERE p_u.id<>'http://www.eclipse.org/emf/2002/Ecore' AND p_u.id<>'http://www.eclipse.org/emf/CDO/Eresource/4.0.0' AND p_u.id<>'http://www.eclipse.org/emf/CDO/Etypes/4.0.0' AND p_u.time_stamp BETWEEN 1 AND 1352536089691 AND p_i.unit=p_u.id
net4j-Thread-1 [debug.sql] SELECT "a_t".cdo_id, "a_t".cdo_version, "a_t".cdo_branch, "a_t".cdo_created, "a_t".cdo_revised, "a_t".cdo_resource, "a_t".cdo_container, "a_t".cdo_feature, "a_t".folder, "a_t".name, "a_t".contents, "a_t".encoding FROM eresource_CDOTextResource "a_t" WHERE "a_t".cdo_created BETWEEN 1 AND 1352536089691
net4j-Thread-1 [debug.sql] SELECT "a_t".cdo_id, "a_t".cdo_version, "a_t".cdo_branch, "a_t".cdo_created, "a_t".cdo_revised, "a_t".cdo_resource, "a_t".cdo_container, "a_t".cdo_feature, "a_t".folder, "a_t".name, "a_t".contents FROM eresource_CDOBinaryResource "a_t" WHERE "a_t".cdo_created BETWEEN 1 AND 1352536089691
net4j-Thread-1 [debug.sql] SELECT "a_t".cdo_id, "a_t".cdo_version, "a_t".cdo_branch, "a_t".cdo_created, "a_t".cdo_revised, "a_t".cdo_resource, "a_t".cdo_container, "a_t".cdo_feature, "a_t".folder, "a_t".name, "a_t".contents FROM eresource_CDOResource "a_t" WHERE "a_t".cdo_created BETWEEN 1 AND 1352536089691
net4j-Thread-1 [debug.sql] SELECT "l_t".cdo_source, "l_t".cdo_branch, "l_t".cdo_version, "l_t".cdo_idx, "l_t".cdo_value FROM eresource_CDOResource_contents_list "l_t", eresource_CDOResource "a_t" WHERE "a_t".cdo_created BETWEEN 1 AND 1352536089691 AND "a_t".cdo_id="l_t".cdo_source AND "a_t".cdo_version="l_t".cdo_version AND "a_t".cdo_branch="l_t".cdo_branch
net4j-Thread-1 [debug.sql] SELECT "a_t".cdo_id, "a_t".cdo_version, "a_t".cdo_branch, "a_t".cdo_created, "a_t".cdo_revised, "a_t".cdo_resource, "a_t".cdo_container, "a_t".cdo_feature, "a_t".source, "a_t".modelElement, "a_t".annotations, "a_t".details, "a_t".contents, "a_t".references0 FROM etypes_Annotation "a_t" WHERE "a_t".cdo_created BETWEEN 1 AND 1352536089691
net4j-Thread-1 [debug.sql] SELECT "l_t".cdo_source, "l_t".cdo_branch, "l_t".cdo_version, "l_t".cdo_idx, "l_t".cdo_value FROM etypes_Annotation_annotations_list "l_t", etypes_Annotation "a_t" WHERE "a_t".cdo_created BETWEEN 1 AND 1352536089691 AND "a_t".cdo_id="l_t".cdo_source AND "a_t".cdo_version="l_t".cdo_version AND "a_t".cdo_branch="l_t".cdo_branch
net4j-Thread-1 [debug.sql] SELECT "l_t".cdo_source, "l_t".cdo_branch, "l_t".cdo_version, "l_t".cdo_idx, "l_t".cdo_value FROM etypes_Annotation_details_list "l_t", etypes_Annotation "a_t" WHERE "a_t".cdo_created BETWEEN 1 AND 1352536089691 AND "a_t".cdo_id="l_t".cdo_source AND "a_t".cdo_version="l_t".cdo_version AND "a_t".cdo_branch="l_t".cdo_branch
net4j-Thread-1 [debug.sql] SELECT "l_t".cdo_source, "l_t".cdo_branch, "l_t".cdo_version, "l_t".cdo_idx, "l_t".cdo_value FROM etypes_Annotation_contents_list "l_t", etypes_Annotation "a_t" WHERE "a_t".cdo_created BETWEEN 1 AND 1352536089691 AND "a_t".cdo_id="l_t".cdo_source AND "a_t".cdo_version="l_t".cdo_version AND "a_t".cdo_branch="l_t".cdo_branch
net4j-Thread-1 [debug.sql] SELECT "l_t".cdo_source, "l_t".cdo_branch, "l_t".cdo_version, "l_t".cdo_idx, "l_t".cdo_value FROM etypes_Annotation_references_list "l_t", etypes_Annotation "a_t" WHERE "a_t".cdo_created BETWEEN 1 AND 1352536089691 AND "a_t".cdo_id="l_t".cdo_source AND "a_t".cdo_version="l_t".cdo_version AND "a_t".cdo_branch="l_t".cdo_branch
net4j-Thread-1 [debug.sql] SELECT "a_t".cdo_id, "a_t".cdo_version, "a_t".cdo_branch, "a_t".cdo_created, "a_t".cdo_revised, "a_t".cdo_resource, "a_t".cdo_container, "a_t".cdo_feature, "a_t".folder, "a_t".name, "a_t".nodes FROM eresource_CDOResourceFolder "a_t" WHERE "a_t".cdo_created BETWEEN 1 AND 1352536089691
net4j-Thread-1 [debug.sql] SELECT "l_t".cdo_source, "l_t".cdo_branch, "l_t".cdo_version, "l_t".cdo_idx, "l_t".cdo_value FROM eresource_CDOResourceFolder_nodes_list "l_t", eresource_CDOResourceFolder "a_t" WHERE "a_t".cdo_created BETWEEN 1 AND 1352536089691 AND "a_t".cdo_id="l_t".cdo_source AND "a_t".cdo_version="l_t".cdo_version AND "a_t".cdo_branch="l_t".cdo_branch
net4j-Thread-1 [debug.sql] SELECT cdo_id, cdo_class, cdo_created FROM cdo_objects WHERE cdo_created BETWEEN 1 AND 1352536089691
net4j-Thread-1 [debug.channel] Handling buffer: Buffer@17[PUTTING] --> Channel[16, SERVER, cdo]
net4j-Thread-1 [debug] Ordering server operation INTEREST WRITE java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = true
TCPSelector [debug] Executing server operation INTEREST WRITE java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = true
TCPSelector [debug] Setting interest READ|WRITE (was read)
TCPSelector [debug] Writing java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371]
TCPSelector [debug.buffer] Writing 714 bytes (EOS)
00 00 00 02 00 00 00 00 00 00 01 3a 16 6e 1b 5b 00 00 00 00 00 00 00 01 01 00 00 01 3a 16 6e 1b 5b 01 00 00 01 3a 16 6e 1b 5b 01 00 00 00 00 01 00 0a 43 44 4f 5f 53 59 53 54 45 4d 00 01 00 0c 3c 69 6e 69 74 69 61 6c 69 7a 65 3e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 7f 00 00 00 00 00 00 03 02 01 00 3e 68 74 74 70 3a 2f 2f 77 77 77 2e 65 63 6c 69 70 73 65 2e 6f 72 67 2f 65 6d 66 2f 43 44 4f 2f 45 72 65 73 6f 75 72 63 65 2f 34 2e 30 2e 30 23 43 44 4f 54 65 78 74 52 65 73 6f 75 72 63 65 00 01 00 00 00 00 7f 00 00 00 00 00 00 04 02 01 00 40 68 74 74 70 3a 2f 2f 77 77 77 2e 65 63 6c 69 70 73 65 2e 6f 72 67 2f 65 6d 66 2f 43 44 4f 2f 45 72 65 73 6f 75 72 63 65 2f 34 2e 30 2e 30 23 43 44 4f 42 69 6e 61 72 79 52 65 73 6f 75 72 63 65 00 01 00 00 00 00 7f 00 00 00 00 00 00 05 02 01 00 3a 68 74 74 70 3a 2f 2f 77 77 77 2e 65 63 6c 69 70 73 65 2e 6f 72 67 2f 65 6d 66 2f 43 44 4f 2f 45 72 65 73 6f 75 72 63 65 2f 34 2e 30 2e 30 23 43 44 4f 52 65 73 6f 75 72 63 65 00 01 00 00 00 01 01 00 18 40 5f 6a 38 5f 57 55 43 73 51 45 65 4b 43 62 37 79 58 44 6a 4c 33 53 67 00 00 00 00 01 00 00 00 00 00 00 01 3a 16 6e 1b 5b 00 00 00 00 00 00 00 00 01 00 18 40 5f 6a 38 5f 57 55 43 73 51 45 65 4b 43 62 37 79 58 44 6a 4c 33 53 67 00 01 00 01 30 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 7f 00 00 00 00 00 00 06 02 01 00 36 68 74 74 70 3a 2f 2f 77 77 77 2e 65 63 6c 69 70 73 65 2e 6f 72 67 2f 65 6d 66 2f 43 44 4f 2f 45 74 79 70 65 73 2f 34 2e 30 2e 30 23 41 6e 6e 6f 74 61 74 69 6f 6e 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7f 00 00 00 00 00 00 07 02 01 00 40 68 74 74 70 3a 2f 2f 77 77 77 2e 65 63 6c 69 70 73 65 2e 6f 72 67 2f 65 6d 66 2f 43 44 4f 2f 45 72 65 73 6f 75 72 63 65 2f 34 2e 30 2e 30 23 43 44 4f 52 65 73 6f 75 72 63 65 46 6f 6c 64 65 72 00 01 00 00 00 00 00 00 00 00 00 00 00 01 01 00 18 40 5f 6a 38 5f 57 55 43 73 51 45 65 4b 43 62 37 79 58 44 6a 4c 33 53 67 00 01 00 3c 68 74 74 70 3a 2f 2f 77 77 77 2e 65 63 6c 69 70 73 65 2e 6f 72 67 2f 65 6d 66 2f 43 44 4f 2f 45 72 65 73 6f 75 72 63 65 2f 34 2e 30 2e 30 23 2f 2f 43 44 4f 52 65 73 6f 75 72 63 65 00 01 00 00 01 3a 16 6e 1b 5b 
TCPSelector [debug.buffer] Retaining Buffer@17[RELEASED]
TCPSelector [debug] Ordering server operation INTEREST WRITE java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = false
TCPSelector [debug] Executing server operation INTEREST WRITE java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = false
TCPSelector [debug] Setting interest READ (was read|write)


Best regards,
Cristian.
Re: [CDO] Questions regarding the new offline/failover example [message #979929 is a reply to message #978704] Sun, 11 November 2012 07:29 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 5574
Registered: July 2009
Senior Member
Am 10.11.2012 09:39, schrieb Cristian Mising name:
> Thanks Eike.
>
> I have downloaded the new version, and it works great!
> I'm looking forward to your blog post.
>
> I have noticed an issue yesterday (in the previous version and this one as well), regarding the existing examples
> master/clone. Maybe you are already aware of it, but if not, I past the log details.
> The clone repository, continuously opens sessions:
>
>
> Opened Session2 [repo1]
> Opened Session3 [repo1]
> Opened Session4 [repo1]
> Opened Session5 [repo1]
> Opened Session6 [repo1]
> ..
I can not reproduce this here. Do you suspect an actual problem?

Cheers
/Eike

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



>
>
> And the server keeps showing this:
>
>
> TCPSelector [debug] Reading java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371]
> TCPSelector [debug.buffer] Obtained Buffer@16[INITIAL]
> TCPSelector [debug.buffer] Read 12 bytes
> 05 00 10 00 00 00 0b 00 03 63 64 6f TCPSelector [debug.lifecycle] Activating SignalProtocol[cdo]
> TCPSelector [debug.lifecycle.dump] DUMP CDOServerProtocol
> Protocol.type = cdo
> Protocol.executorService = java.util.concurrent.ThreadPoolExecutor@66daad3a[Running, pool size = 1, active threads =
> 0, queued tasks = 0, completed tasks = 45]
> Protocol.bufferProvider = Channel[-32,768, SERVER]
> Protocol.infraStructure = null
> Protocol.channel = Channel[-32,768, SERVER]
> Protocol.userID = null
> SignalProtocol.timeout = 10000
> SignalProtocol.streamWrapper = null
> SignalProtocol.signals = SignalProtocol.nextCorrelationID = 1
> SignalProtocol.failingOver = false
> negotiationTimeout = 15000
> repositoryProvider = org.eclipse.emf.cdo.spi.server.PluginRepositoryProvider@2ee5d3df
> packageURICompressor = StringCompressor[client=false]
>
> TCPSelector [debug.connector] Opening channel with protocol cdo
> TCPSelector [debug.lifecycle] Activating Channel[16, SERVER, cdo]
> TCPSelector [debug.lifecycle] Activating ReceiveSerializer
> TCPSelector [debug.lifecycle.dump] DUMP ReceiveSerializer
> Worker.daemon = true
> Worker.activationTimeout = 10000
> Worker.deactivationTimeout = 10000
> QueueWorker.queue = QueueWorker.pollMillis = 100
>
> TCPSelector [debug.lifecycle.dump] DUMP Channel
> userID = null
> channelMultiplexer = TCPServerConnector[127.0.0.1:60,371]
> id = 16
> receiveExecutor = java.util.concurrent.ThreadPoolExecutor@66daad3a[Running, pool size = 1, active threads = 0, queued
> tasks = 0, completed tasks = 45]
> receiveHandler = SignalProtocol[cdo]
> receiveSerializer = ReceiveSerializer
> sendQueue = sentBuffers = 0
> receivedBuffers = 0
>
> TCPSelector [debug.buffer] Created Buffer@17[INITIAL]
> TCPSelector [debug.buffer] Obtained Buffer@17[INITIAL]
> TCPSelector [debug.channel] Handling buffer: Buffer@17[PUTTING] --> Channel[Control, SERVER]
> TCPSelector [debug] Ordering server operation INTEREST WRITE java.nio.channels.SocketChannel[connected
> local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = true
> TCPSelector [debug.buffer] Retaining Buffer@16[RELEASED]
> TCPSelector [debug] Executing server operation INTEREST WRITE java.nio.channels.SocketChannel[connected
> local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = true
> TCPSelector [debug] Setting interest READ|WRITE (was read)
> TCPSelector [debug] Writing java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371]
> TCPSelector [debug.buffer] Writing 5 bytes
> 03 00 10 00 00 TCPSelector [debug.buffer] Retaining Buffer@17[RELEASED]
> TCPSelector [debug] Ordering server operation INTEREST WRITE java.nio.channels.SocketChannel[connected
> local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = false
> TCPSelector [debug] Executing server operation INTEREST WRITE java.nio.channels.SocketChannel[connected
> local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = false
> TCPSelector [debug] Setting interest READ (was read|write)
> TCPSelector [debug] Reading java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371]
> TCPSelector [debug.buffer] Obtained Buffer@16[INITIAL]
> TCPSelector [debug.buffer] Read 27 bytes (EOS)
> 00 00 00 01 00 01 00 00 00 01 00 00 00 0a 01 00 05 72 65 70 6f 31 00 00 01 7c 7c TCPSelector [debug.channel] Handling
> buffer from multiplexer: Buffer@16[GETTING] --> Channel[16, SERVER, cdo]
> Net4jReceiveSerializer-Channel[16, SERVER, cdo] [debug.signal] Received buffer for correlation 1
> Net4jReceiveSerializer-Channel[16, SERVER, cdo] [debug.signal] Got signalID: 1
> net4j-Thread-1 [debug.signal] ================ Indicating: Signal[protocol=cdo, id=1, name=OpenSessionIndication,
> correlation=-1]
> net4j-Thread-1 [debug.protocol] Read repositoryName: repo1
> net4j-Thread-1 [debug.protocol] Read userID: null
> net4j-Thread-1 [debug.protocol] Read passiveUpdateEnabled: true
> net4j-Thread-1 [debug.protocol] Read passiveUpdateMode: ADDITIONS
> net4j-Thread-1 [debug.buffer] Retaining Buffer@16[RELEASED]
> net4j-Thread-1 [debug.protocol] Read lockNotificationMode: ALWAYS
> net4j-Thread-1 [debug.signal] ================ Responding: Signal[protocol=cdo, id=1, name=OpenSessionIndication,
> correlation=-1]
> net4j-Thread-1 [debug.session] Opening session 17
> net4j-Thread-1 [debug.lifecycle] Activating Session[17]
> net4j-Thread-1 [debug.lifecycle.dump] DUMP Session
> ShareableLifecycle.refCount = null
> manager = SessionManager
> protocol = SignalProtocol[cdo]
> sessionID = 17
> userID = null
> passiveUpdateEnabled = true
> passiveUpdateMode = INVALIDATIONS
> lockNotificationMode = IF_REQUIRED_BY_VIEWS
> lastUpdateTime = 0
> views = lastTempViewID = 0
> subscribed = false
>
> net4j-Thread-1 [debug.protocol] Writing sessionID: 17
> net4j-Thread-1 [debug.buffer] Obtained Buffer@17[INITIAL]
> net4j-Thread-1 [debug.protocol] Writing userID: null
> net4j-Thread-1 [debug.protocol] Writing repositoryUUID: repo1
> net4j-Thread-1 [debug.protocol] Writing CDOIDObject of subtype 4 (UUID)
> net4j-Thread-1 [debug.protocol] Writing 3 package units
> net4j-Thread-1 [debug] Writing CDOPackageUnit[id=http://www.eclipse.org/emf/2002/Ecore, state=LOADED, type=LEGACY,
> originalType=LEGACY, timeStamp=2012-11-10 09:28:09.691]
> net4j-Thread-1 [debug] Writing CDOPackageInfo[packageURI=http://www.eclipse.org/emf/2002/Ecore, parentURI=null]
> net4j-Thread-1 [debug] Writing CDOPackageUnit[id=http://www.eclipse.org/emf/CDO/Eresource/4.0.0, state=LOADED,
> type=NATIVE, originalType=NATIVE, timeStamp=2012-11-10 09:28:09.691]
> net4j-Thread-1 [debug] Writing CDOPackageInfo[packageURI=http://www.eclipse.org/emf/CDO/Eresource/4.0.0, parentURI=null]
> net4j-Thread-1 [debug] Writing CDOPackageUnit[id=http://www.eclipse.org/emf/CDO/Etypes/4.0.0, state=LOADED,
> type=NATIVE, originalType=NATIVE, timeStamp=2012-11-10 09:28:09.691]
> net4j-Thread-1 [debug] Writing CDOPackageInfo[packageURI=http://www.eclipse.org/emf/CDO/Etypes/4.0.0, parentURI=null]
> net4j-Thread-1 [debug.channel] Handling buffer: Buffer@17[PUTTING] --> Channel[16, SERVER, cdo]
> net4j-Thread-1 [debug] Ordering server operation INTEREST WRITE java.nio.channels.SocketChannel[connected
> local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = true
> TCPSelector [debug] Executing server operation INTEREST WRITE java.nio.channels.SocketChannel[connected
> local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = true
> TCPSelector [debug] Setting interest READ|WRITE (was read)
> TCPSelector [debug] Writing java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371]
> TCPSelector [debug.buffer] Writing 300 bytes (EOS)
> 00 00 00 00 00 00 00 11 00 01 00 05 72 65 70 6f 31 00 7e 7b 01 00 02 64 62 00 00 00 00 01 7a 00 00 01 3a 16 6e 1b 5b
> 00 00 01 3a 16 6e 1b 5b 04 00 00 00 10 70 30 29 50 2b 10 11 1d 7d 6f 43 68 0e 32 08 4a 01 01 00 00 00 7d 00 00 00 03
> 00 01 00 00 01 3a 16 6e 1b 5b 00 00 00 01 7f 00 00 00 00 00 00 00 02 01 00 25 68 74 74 70 3a 2f 2f 77 77 77 2e 65 63
> 6c 69 70 73 65 2e 6f 72 67 2f 65 6d 66 2f 32 30 30 32 2f 45 63 6f 72 65 00 01 00 00 00 00 00 00 00 00 01 3a 16 6e 1b
> 5b 00 00 00 01 7f 00 00 00 00 00 00 01 02 01 00 2e 68 74 74 70 3a 2f 2f 77 77 77 2e 65 63 6c 69 70 73 65 2e 6f 72 67
> 2f 65 6d 66 2f 43 44 4f 2f 45 72 65 73 6f 75 72 63 65 2f 34 2e 30 2e 30 00 01 00 00 00 00 00 00 00 00 01 3a 16 6e 1b
> 5b 00 00 00 01 7f 00 00 00 00 00 00 02 02 01 00 2b 68 74 74 70 3a 2f 2f 77 77 77 2e 65 63 6c 69 70 73 65 2e 6f 72 67
> 2f 65 6d 66 2f 43 44 4f 2f 45 74 79 70 65 73 2f 34 2e 30 2e 30 00 01 00 00 00 00 TCPSelector [debug.buffer] Retaining
> Buffer@17[RELEASED]
> TCPSelector [debug] Ordering server operation INTEREST WRITE java.nio.channels.SocketChannel[connected
> local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = false
> TCPSelector [debug] Executing server operation INTEREST WRITE java.nio.channels.SocketChannel[connected
> local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = false
> TCPSelector [debug] Setting interest READ (was read|write)
> TCPSelector [debug] Reading java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371]
> TCPSelector [debug.buffer] Obtained Buffer@16[INITIAL]
> TCPSelector [debug.buffer] Read 6 bytes (EOS)
> 00 00 00 02 00 17 TCPSelector [debug.channel] Handling buffer from multiplexer: Buffer@16[GETTING] --> Channel[16,
> SERVER, cdo]
> Net4jReceiveSerializer-Channel[16, SERVER, cdo] [debug.signal] Received buffer for correlation 2
> Net4jReceiveSerializer-Channel[16, SERVER, cdo] [debug.signal] Got signalID: 23
> net4j-Thread-1 [debug.signal] ================ Indicating: Signal[protocol=cdo, id=23, name=RepositoryTimeIndication,
> correlation=-2]
> net4j-Thread-1 [debug.signal] ================ Responding: Signal[protocol=cdo, id=23, name=RepositoryTimeIndication,
> correlation=-2]
> net4j-Thread-1 [debug.protocol] Writing indicated: 2012-11-10 09:29:01.605
> net4j-Thread-1 [debug.buffer] Obtained Buffer@17[INITIAL]
> net4j-Thread-1 [debug.protocol] Writing responded: 2012-11-10 09:29:01.605
> net4j-Thread-1 [debug.channel] Handling buffer: Buffer@17[PUTTING] --> Channel[16, SERVER, cdo]
> net4j-Thread-1 [debug] Ordering server operation INTEREST WRITE java.nio.channels.SocketChannel[connected
> local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = true
> TCPSelector [debug] Executing server operation INTEREST WRITE java.nio.channels.SocketChannel[connected
> local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = true
> TCPSelector [debug] Setting interest READ|WRITE (was read)
> TCPSelector [debug] Writing java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371]
> TCPSelector [debug.buffer] Writing 20 bytes (EOS)
> 00 00 00 01 00 00 01 3a 16 6f 50 25 00 00 01 3a 16 6f 50 25 TCPSelector [debug.buffer] Retaining Buffer@17[RELEASED]
> TCPSelector [debug] Ordering server operation INTEREST WRITE java.nio.channels.SocketChannel[connected
> local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = false
> TCPSelector [debug] Executing server operation INTEREST WRITE java.nio.channels.SocketChannel[connected
> local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = false
> TCPSelector [debug] Setting interest READ (was read|write)
> TCPSelector [debug] Reading java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371]
> TCPSelector [debug.buffer] Obtained Buffer@17[INITIAL]
> TCPSelector [debug.buffer] Read 26 bytes (EOS)
> 00 00 00 03 00 2b 00 00 00 01 00 00 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 TCPSelector [debug.channel] Handling
> buffer from multiplexer: Buffer@17[GETTING] --> Channel[16, SERVER, cdo]
> Net4jReceiveSerializer-Channel[16, SERVER, cdo] [debug.signal] Received buffer for correlation 3
> Net4jReceiveSerializer-Channel[16, SERVER, cdo] [debug.signal] Got signalID: 43
> net4j-Thread-1 [debug.signal] ================ Indicating: Signal[protocol=cdo, id=43,
> name=ReplicateRepositoryRawIndication, correlation=-3]
> net4j-Thread-1 [debug.buffer] Retaining Buffer@17[RELEASED]
> net4j-Thread-1 [debug.signal] ================ Responding: Signal[protocol=cdo, id=43,
> name=ReplicateRepositoryRawIndication, correlation=-3]
> net4j-Thread-1 [debug.buffer] Obtained Buffer@17[INITIAL]
> net4j-Thread-1 [debug.sql] SELECT id, name, base_id, base_time FROM cdo_branches WHERE id BETWEEN 1 AND 0
> net4j-Thread-1 [debug.sql] SELECT commit_time, previous_time, branch_id, user_id, commit_comment FROM cdo_commit_infos
> WHERE commit_time BETWEEN 1 AND 1352536089691
> net4j-Thread-1 [debug.sql] SELECT id, user_id, view_branch, view_time, read_only FROM cdo_lock_areas
> net4j-Thread-1 [debug.sql] SELECT area_id, object_id, lock_grade FROM cdo_locks
> net4j-Thread-1 [debug.sql] SELECT p_u.id, p_u.original_type, p_u.time_stamp, p_u.package_data FROM cdo_package_units
> p_u WHERE p_u.id<>'http://www.eclipse.org/emf/2002/Ecore' AND p_u.id<>'http://www.eclipse.org/emf/CDO/Eresource/4.0.0'
> AND p_u.id<>'http://www.eclipse.org/emf/CDO/Etypes/4.0.0' AND p_u.time_stamp BETWEEN 1 AND 1352536089691
> net4j-Thread-1 [debug.sql] SELECT p_i.uri, p_i.parent, p_i.unit FROM cdo_package_infos p_i, cdo_package_units p_u
> WHERE p_u.id<>'http://www.eclipse.org/emf/2002/Ecore' AND p_u.id<>'http://www.eclipse.org/emf/CDO/Eresource/4.0.0' AND
> p_u.id<>'http://www.eclipse.org/emf/CDO/Etypes/4.0.0' AND p_u.time_stamp BETWEEN 1 AND 1352536089691 AND p_i.unit=p_u.id
> net4j-Thread-1 [debug.sql] SELECT "a_t".cdo_id, "a_t".cdo_version, "a_t".cdo_branch, "a_t".cdo_created,
> "a_t".cdo_revised, "a_t".cdo_resource, "a_t".cdo_container, "a_t".cdo_feature, "a_t".folder, "a_t".name,
> "a_t".contents, "a_t".encoding FROM eresource_CDOTextResource "a_t" WHERE "a_t".cdo_created BETWEEN 1 AND 1352536089691
> net4j-Thread-1 [debug.sql] SELECT "a_t".cdo_id, "a_t".cdo_version, "a_t".cdo_branch, "a_t".cdo_created,
> "a_t".cdo_revised, "a_t".cdo_resource, "a_t".cdo_container, "a_t".cdo_feature, "a_t".folder, "a_t".name,
> "a_t".contents FROM eresource_CDOBinaryResource "a_t" WHERE "a_t".cdo_created BETWEEN 1 AND 1352536089691
> net4j-Thread-1 [debug.sql] SELECT "a_t".cdo_id, "a_t".cdo_version, "a_t".cdo_branch, "a_t".cdo_created,
> "a_t".cdo_revised, "a_t".cdo_resource, "a_t".cdo_container, "a_t".cdo_feature, "a_t".folder, "a_t".name,
> "a_t".contents FROM eresource_CDOResource "a_t" WHERE "a_t".cdo_created BETWEEN 1 AND 1352536089691
> net4j-Thread-1 [debug.sql] SELECT "l_t".cdo_source, "l_t".cdo_branch, "l_t".cdo_version, "l_t".cdo_idx,
> "l_t".cdo_value FROM eresource_CDOResource_contents_list "l_t", eresource_CDOResource "a_t" WHERE "a_t".cdo_created
> BETWEEN 1 AND 1352536089691 AND "a_t".cdo_id="l_t".cdo_source AND "a_t".cdo_version="l_t".cdo_version AND
> "a_t".cdo_branch="l_t".cdo_branch
> net4j-Thread-1 [debug.sql] SELECT "a_t".cdo_id, "a_t".cdo_version, "a_t".cdo_branch, "a_t".cdo_created,
> "a_t".cdo_revised, "a_t".cdo_resource, "a_t".cdo_container, "a_t".cdo_feature, "a_t".source, "a_t".modelElement,
> "a_t".annotations, "a_t".details, "a_t".contents, "a_t".references0 FROM etypes_Annotation "a_t" WHERE
> "a_t".cdo_created BETWEEN 1 AND 1352536089691
> net4j-Thread-1 [debug.sql] SELECT "l_t".cdo_source, "l_t".cdo_branch, "l_t".cdo_version, "l_t".cdo_idx,
> "l_t".cdo_value FROM etypes_Annotation_annotations_list "l_t", etypes_Annotation "a_t" WHERE "a_t".cdo_created BETWEEN
> 1 AND 1352536089691 AND "a_t".cdo_id="l_t".cdo_source AND "a_t".cdo_version="l_t".cdo_version AND
> "a_t".cdo_branch="l_t".cdo_branch
> net4j-Thread-1 [debug.sql] SELECT "l_t".cdo_source, "l_t".cdo_branch, "l_t".cdo_version, "l_t".cdo_idx,
> "l_t".cdo_value FROM etypes_Annotation_details_list "l_t", etypes_Annotation "a_t" WHERE "a_t".cdo_created BETWEEN 1
> AND 1352536089691 AND "a_t".cdo_id="l_t".cdo_source AND "a_t".cdo_version="l_t".cdo_version AND
> "a_t".cdo_branch="l_t".cdo_branch
> net4j-Thread-1 [debug.sql] SELECT "l_t".cdo_source, "l_t".cdo_branch, "l_t".cdo_version, "l_t".cdo_idx,
> "l_t".cdo_value FROM etypes_Annotation_contents_list "l_t", etypes_Annotation "a_t" WHERE "a_t".cdo_created BETWEEN 1
> AND 1352536089691 AND "a_t".cdo_id="l_t".cdo_source AND "a_t".cdo_version="l_t".cdo_version AND
> "a_t".cdo_branch="l_t".cdo_branch
> net4j-Thread-1 [debug.sql] SELECT "l_t".cdo_source, "l_t".cdo_branch, "l_t".cdo_version, "l_t".cdo_idx,
> "l_t".cdo_value FROM etypes_Annotation_references_list "l_t", etypes_Annotation "a_t" WHERE "a_t".cdo_created BETWEEN
> 1 AND 1352536089691 AND "a_t".cdo_id="l_t".cdo_source AND "a_t".cdo_version="l_t".cdo_version AND
> "a_t".cdo_branch="l_t".cdo_branch
> net4j-Thread-1 [debug.sql] SELECT "a_t".cdo_id, "a_t".cdo_version, "a_t".cdo_branch, "a_t".cdo_created,
> "a_t".cdo_revised, "a_t".cdo_resource, "a_t".cdo_container, "a_t".cdo_feature, "a_t".folder, "a_t".name, "a_t".nodes
> FROM eresource_CDOResourceFolder "a_t" WHERE "a_t".cdo_created BETWEEN 1 AND 1352536089691
> net4j-Thread-1 [debug.sql] SELECT "l_t".cdo_source, "l_t".cdo_branch, "l_t".cdo_version, "l_t".cdo_idx,
> "l_t".cdo_value FROM eresource_CDOResourceFolder_nodes_list "l_t", eresource_CDOResourceFolder "a_t" WHERE
> "a_t".cdo_created BETWEEN 1 AND 1352536089691 AND "a_t".cdo_id="l_t".cdo_source AND
> "a_t".cdo_version="l_t".cdo_version AND "a_t".cdo_branch="l_t".cdo_branch
> net4j-Thread-1 [debug.sql] SELECT cdo_id, cdo_class, cdo_created FROM cdo_objects WHERE cdo_created BETWEEN 1 AND
> 1352536089691
> net4j-Thread-1 [debug.channel] Handling buffer: Buffer@17[PUTTING] --> Channel[16, SERVER, cdo]
> net4j-Thread-1 [debug] Ordering server operation INTEREST WRITE java.nio.channels.SocketChannel[connected
> local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = true
> TCPSelector [debug] Executing server operation INTEREST WRITE java.nio.channels.SocketChannel[connected
> local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = true
> TCPSelector [debug] Setting interest READ|WRITE (was read)
> TCPSelector [debug] Writing java.nio.channels.SocketChannel[connected local=/127.0.0.1:2036 remote=/127.0.0.1:60371]
> TCPSelector [debug.buffer] Writing 714 bytes (EOS)
> 00 00 00 02 00 00 00 00 00 00 01 3a 16 6e 1b 5b 00 00 00 00 00 00 00 01 01 00 00 01 3a 16 6e 1b 5b 01 00 00 01 3a 16
> 6e 1b 5b 01 00 00 00 00 01 00 0a 43 44 4f 5f 53 59 53 54 45 4d 00 01 00 0c 3c 69 6e 69 74 69 61 6c 69 7a 65 3e 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 7f 00 00 00 00 00 00 03 02 01 00 3e 68 74 74 70 3a 2f 2f 77
> 77 77 2e 65 63 6c 69 70 73 65 2e 6f 72 67 2f 65 6d 66 2f 43 44 4f 2f 45 72 65 73 6f 75 72 63 65 2f 34 2e 30 2e 30 23
> 43 44 4f 54 65 78 74 52 65 73 6f 75 72 63 65 00 01 00 00 00 00 7f 00 00 00 00 00 00 04 02 01 00 40 68 74 74 70 3a 2f
> 2f 77 77 77 2e 65 63 6c 69 70 73 65 2e 6f 72 67 2f 65 6d 66 2f 43 44 4f 2f 45 72 65 73 6f 75 72 63 65 2f 34 2e 30 2e
> 30 23 43 44 4f 42 69 6e 61 72 79 52 65 73 6f 75 72 63 65 00 01 00 00 00 00 7f 00 00 00 00 00 00 05 02 01 00 3a 68 74
> 74 70 3a 2f 2f 77 77 77 2e 65 63 6c 69 70 73 65 2e 6f 72 67 2f 65 6d 66 2f 43 44 4f 2f 45 72 65 73 6f 75 72 63 65 2f
> 34 2e 30 2e 30 23 43 44 4f 52 65 73 6f 75 72 63 65 00 01 00 00 00 01 01 00 18 40 5f 6a 38 5f 57 55 43 73 51 45 65 4b
> 43 62 37 79 58 44 6a 4c 33 53 67 00 00 00 00 01 00 00 00 00 00 00 01 3a 16 6e 1b 5b 00 00 00 00 00 00 00 00 01 00 18
> 40 5f 6a 38 5f 57 55 43 73 51 45 65 4b 43 62 37 79 58 44 6a 4c 33 53 67 00 01 00 01 30 00 00 00 00 00 00 00 01 00 00
> 00 00 00 00 00 00 7f 00 00 00 00 00 00 06 02 01 00 36 68 74 74 70 3a 2f 2f 77 77 77 2e 65 63 6c 69 70 73 65 2e 6f 72
> 67 2f 65 6d 66 2f 43 44 4f 2f 45 74 79 70 65 73 2f 34 2e 30 2e 30 23 41 6e 6e 6f 74 61 74 69 6f 6e 00 01 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7f 00 00 00 00 00 00 07 02 01 00 40 68 74 74 70 3a 2f 2f 77 77 77 2e
> 65 63 6c 69 70 73 65 2e 6f 72 67 2f 65 6d 66 2f 43 44 4f 2f 45 72 65 73 6f 75 72 63 65 2f 34 2e 30 2e 30 23 43 44 4f
> 52 65 73 6f 75 72 63 65 46 6f 6c 64 65 72 00 01 00 00 00 00 00 00 00 00 00 00 00 01 01 00 18 40 5f 6a 38 5f 57 55 43
> 73 51 45 65 4b 43 62 37 79 58 44 6a 4c 33 53 67 00 01 00 3c 68 74 74 70 3a 2f 2f 77 77 77 2e 65 63 6c 69 70 73 65 2e
> 6f 72 67 2f 65 6d 66 2f 43 44 4f 2f 45 72 65 73 6f 75 72 63 65 2f 34 2e 30 2e 30 23 2f 2f 43 44 4f 52 65 73 6f 75 72
> 63 65 00 01 00 00 01 3a 16 6e 1b 5b TCPSelector [debug.buffer] Retaining Buffer@17[RELEASED]
> TCPSelector [debug] Ordering server operation INTEREST WRITE java.nio.channels.SocketChannel[connected
> local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = false
> TCPSelector [debug] Executing server operation INTEREST WRITE java.nio.channels.SocketChannel[connected
> local=/127.0.0.1:2036 remote=/127.0.0.1:60371] = false
> TCPSelector [debug] Setting interest READ (was read|write)
>
>
> Best regards,
> Cristian.
Previous Topic:Bug ? Resolving Ecore Cross References
Next Topic:[CDO/Dawn] Cannot retrieve resources created via a ResourceSet
Goto Forum:
  


Current Time: Sun Nov 23 11:19:47 GMT 2014

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

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