Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [ECP][CDO] connect to cdo repository without branching support
[ECP][CDO] connect to cdo repository without branching support [message #1066385] Tue, 02 July 2013 12:01 Go to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
Hi all
I am getting the following exception when connecting to a remote CDO repository in the EMFClient:

Caused by: java.lang.UnsupportedOperationException
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreAccessor.loadSubBranches(HibernateStoreAccessor.java:439)
at org.eclipse.emf.cdo.internal.server.Repository.loadSubBranches(Repository.java:412)
at org.eclipse.emf.cdo.internal.common.branch.CDOBranchImpl.getBranches(CDOBranchImpl.java:175)
at org.eclipse.emf.cdo.internal.common.branch.CDOBranchImpl.getBranches(CDOBranchImpl.java:189)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.LoadSubBranchesIndication.responding(LoadSubBranchesIndication.java:45)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndication.responding(CDOServerIndication.java:134)
at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedOutput(IndicationWithResponse.java:98)
at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:298)
at org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:67)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerReadIndication.execute(CDOServerReadIndication.java:36)


We are using the hibernate store which does not support branching. Is it possible to connect without branching?

Thanks!
Re: [ECP][CDO] connect to cdo repository without branching support [message #1066392 is a reply to message #1066385] Tue, 02 July 2013 12:13 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
BTW: branching is turned off in the server config:

<property name="supportingBranches" value="false"/>
Re: [ECP][CDO] connect to cdo repository without branching support [message #1066417 is a reply to message #1066385] Tue, 02 July 2013 14:57 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 02.07.2013 14:01, schrieb Erdal Karaca:
> Hi all
> I am getting the following exception when connecting to a remote CDO repository in the EMFClient:
>
> Caused by: java.lang.UnsupportedOperationException
> at
> org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreAccessor.loadSubBranches(HibernateStoreAccessor.java:439)
> at org.eclipse.emf.cdo.internal.server.Repository.loadSubBranches(Repository.java:412)
> at org.eclipse.emf.cdo.internal.common.branch.CDOBranchImpl.getBranches(CDOBranchImpl.java:175)
> at org.eclipse.emf.cdo.internal.common.branch.CDOBranchImpl.getBranches(CDOBranchImpl.java:189)
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.LoadSubBranchesIndication.responding(LoadSubBranchesIndication.java:45)
> at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndication.responding(CDOServerIndication.java:134)
> at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedOutput(IndicationWithResponse.java:98)
> at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:298)
> at org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:67)
> at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerReadIndication.execute(CDOServerReadIndication.java:36)
>
>
> We are using the hibernate store which does not support branching. Is it possible to connect without branching?
This could be a pure UI issue but I'm not sure. If the CDO repo is configured without branching support the ECP UI
should not try to request sub branches of the MAIN branch. I could also imagine to relax the CDO server such that it
returns an empty collection instead of throwing an exception. I leave it to you where you report a bugzilla ;-)

Cheers
/Eike

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


Re: [ECP][CDO] connect to cdo repository without branching support [message #1066418 is a reply to message #1066417] Tue, 02 July 2013 15:04 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
I did exactly that and got no more exceptions, but I still cannot "browse" the repository: UI has no option to create a new CDO project (I can only create a new empty project and select an existing xmi file).

Eike Stepper wrote on Tue, 02 July 2013 16:57
I could also imagine to relax the CDO server such that it
returns an empty collection instead of throwing an exception.

Re: [ECP][CDO] connect to cdo repository without branching support [message #1066481 is a reply to message #1066418] Tue, 02 July 2013 19:51 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi,

do you mean, the CDO Repository node in the repository browser has no
children? It is intended to select one of these and check them out as
projects.
The UI of the CDO provider currently does not allow to create projects
in the model explorer, which are not connected to any repository. The
other option you are refering to is provided by the file provider.

Regards

Jonas


Am 02.07.2013 17:04, schrieb Erdal Karaca:
> I did exactly that and got no more exceptions, but I still cannot
> "browse" the repository: UI has no option to create a new CDO project (I
> can only create a new empty project and select an existing xmi file).
>
> Eike Stepper wrote on Tue, 02 July 2013 16:57
>> I could also imagine to relax the CDO server such that it returns an
>> empty collection instead of throwing an exception.
>
>
Re: [ECP][CDO] connect to cdo repository without branching support [message #1066895 is a reply to message #1066481] Fri, 05 July 2013 05:45 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 02.07.2013 21:51, schrieb Jonas Helming:
> Hi,
>
> do you mean, the CDO Repository node in the repository browser has no children? It is intended to select one of these
> and check them out as projects.
> The UI of the CDO provider currently does not allow to create projects in the model explorer, which are not connected
> to any repository.
I tried it out yesterday and I can confirm: There is no Checkout action anymore on the branches that are displayed
inside the CDO repo. I checked the sources (and the Git history) for quite some while but couldn't figure out how/when
something changed that caused this. I'm pretty sure that I didn't touch ECP or its CDO provider for more than a year, so
someone else must have caused this regression.

I checked that CDOBranchWrapper properly implements ECPCheckoutSource and that there's a command handler contributed in
the framework's plugin.xml. Where else should I look? How can I debug why that contribution does not lead to a visible
action in the popup menu?

Cheers
/Eike

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



> The other option you are refering to is provided by the file provider.
>
> Regards
>
> Jonas
>
>
> Am 02.07.2013 17:04, schrieb Erdal Karaca:
>> I did exactly that and got no more exceptions, but I still cannot
>> "browse" the repository: UI has no option to create a new CDO project (I
>> can only create a new empty project and select an existing xmi file).
>>
>> Eike Stepper wrote on Tue, 02 July 2013 16:57
>>> I could also imagine to relax the CDO server such that it returns an
>>> empty collection instead of throwing an exception.
>>
>>
>


Re: [ECP][CDO] connect to cdo repository without branching support [message #1066948 is a reply to message #1066895] Fri, 05 July 2013 08:38 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi,
I just checked, I have a check-out action either in latest develop state
and in 1.0.0. I did not check the functionality, though.
Can you describe where you tested this?
Regards

Jonas

Am 05.07.2013 07:45, schrieb Eike Stepper:
> Am 02.07.2013 21:51, schrieb Jonas Helming:
>> Hi,
>>
>> do you mean, the CDO Repository node in the repository browser has no
>> children? It is intended to select one of these and check them out as
>> projects.
>> The UI of the CDO provider currently does not allow to create projects
>> in the model explorer, which are not connected to any repository.
> I tried it out yesterday and I can confirm: There is no Checkout action
> anymore on the branches that are displayed inside the CDO repo. I
> checked the sources (and the Git history) for quite some while but
> couldn't figure out how/when something changed that caused this. I'm
> pretty sure that I didn't touch ECP or its CDO provider for more than a
> year, so someone else must have caused this regression.
>
> I checked that CDOBranchWrapper properly implements ECPCheckoutSource
> and that there's a command handler contributed in the framework's
> plugin.xml. Where else should I look? How can I debug why that
> contribution does not lead to a visible action in the popup menu?
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
>
>> The other option you are refering to is provided by the file provider.
>>
>> Regards
>>
>> Jonas
>>
>>
>> Am 02.07.2013 17:04, schrieb Erdal Karaca:
>>> I did exactly that and got no more exceptions, but I still cannot
>>> "browse" the repository: UI has no option to create a new CDO project (I
>>> can only create a new empty project and select an existing xmi file).
>>>
>>> Eike Stepper wrote on Tue, 02 July 2013 16:57
>>>> I could also imagine to relax the CDO server such that it returns an
>>>> empty collection instead of throwing an exception.
>>>
>>>
>>
>
Re: [ECP][CDO] connect to cdo repository without branching support [message #1067824 is a reply to message #1066418] Wed, 10 July 2013 17:25 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi Erdal,
is this still open?
Could you create a BR for that?
Cheers
Jonas

Am 02.07.2013 17:04, schrieb Erdal Karaca:
> I did exactly that and got no more exceptions, but I still cannot
> "browse" the repository: UI has no option to create a new CDO project (I
> can only create a new empty project and select an existing xmi file).
>
> Eike Stepper wrote on Tue, 02 July 2013 16:57
>> I could also imagine to relax the CDO server such that it returns an
>> empty collection instead of throwing an exception.
>
>
Re: [ECP][CDO] connect to cdo repository without branching support [message #1067835 is a reply to message #1067824] Wed, 10 July 2013 19:20 Go to previous message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
Hi Jonas,
This is still unresolved:

412705: [CDO] Cannot checkout MAIN branch
https://bugs.eclipse.org/bugs/show_bug.cgi?id=412705

The intention is to include the ECP Perspective in an existing Eclipse RCP application which uses CDO.
Previous Topic:[EMF Store] External Editor
Next Topic:Java code from Ecore
Goto Forum:
  


Current Time: Fri Mar 29 12:23:03 GMT 2024

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

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

Back to the top