Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » cdo - unimplemented methods and missing repositories
cdo - unimplemented methods and missing repositories [message #385161] Mon, 27 July 2009 18:07 Go to next message
Eclipse User
Originally posted by: hamak.email.cz

Hi.
For the past couple of days I've been trying to learn cdo and to get it
to work with hibernate and mysql but unsuccessfully. I use Eclipse
Galileo on linux and I have followed these guides:
http://wiki.eclipse.org/CDO_Source_Installation and
http://wiki.eclipse.org/Getting_started_with_CDO_Galileo.

The first problem I have is that there is an error in CDOIDHibernateImpl
because methods isExternal(), isNull() etc. are not implemented. These
methods are commented out in its primitive class AbstractCDOID. Is it right
to uncomment them or is there another way to solve it?

The second problem concerns repositories. When I run CDO server(it
starts without any errors) and try
to connect to it in the CDO Sessions view I get an error that says

Repository /repo1 not found
org.eclipse.emf.cdo.util.ServerException: Repository /repo1 not found
at
org.eclipse.emf.internal.cdo.net4j.protocol.OpenSessionReque st.confirming(OpenSessionRequest.java:79)
at
org.eclipse.emf.internal.cdo.net4j.protocol.OpenSessionReque st.confirming(OpenSessionRequest.java:1)
at
org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientRequest .confirming(CDOClientRequest.java:77)
at
org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI nput(RequestWithConfirmation.java:123)
at org.eclipse.net4j.signal.Signal.doInput(Signal.java:312)
at
org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R equestWithConfirmation.java:103)
at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav a:66)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
at
org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:423)
at
org.eclipse.net4j.signal.RequestWithConfirmation.doSend(Requ estWithConfirmation.java:87)
at
org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:73)
at
org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.send(CDOClientProtocol.java:286)
at
org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.openSession(CDOClientProtocol.java:78)
at
org.eclipse.emf.internal.cdo.session.CDOSessionImpl$Delegati ngSessionProtocol.openSession(CDOSessionImpl.java:1572)
at
org.eclipse.emf.internal.cdo.session.CDOSessionImpl.doActiva te(CDOSessionImpl.java:716)
at org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:65)
at
org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:94)
at
org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:84)
at
org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:285)
at
org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:265)
at
org.eclipse.emf.cdo.internal.ui.actions.OpenSessionAction.do Run(OpenSessionAction.java:67)
at
org.eclipse.net4j.util.ui.actions.LongRunningAction$1.run(Lo ngRunningAction.java:185)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)



and the console of the CDO sever says:

[ERROR] Factory not found: org.eclipse.emf.cdo.server.repositories[default]
org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not
found: org.eclipse.emf.cdo.server.repositories[default]
at
org.eclipse.net4j.util.container.ManagedContainer.getFactory (ManagedContainer.java:193)
at
org.eclipse.net4j.util.container.ManagedContainer.createElem ent(ManagedContainer.java:490)
at
org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:281)
at
org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:265)
at
org.eclipse.emf.cdo.spi.server.RepositoryFactory.get(Reposit oryFactory.java:43)
at
org.eclipse.emf.cdo.spi.server.ContainerRepositoryProvider.g etRepository(ContainerRepositoryProvider.java:41)
at
org.eclipse.emf.cdo.server.internal.net4j.protocol.OpenSessi onIndication.responding(OpenSessionIndication.java:85)
at
org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServer Indication.responding(CDOServerIndication.java:112)
at
org.eclipse.net4j.signal.IndicationWithResponse.doExtendedOu tput(IndicationWithResponse.java:96)
at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:282)
at
org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:65)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
at org.eclipse.net4j.signal.Signal.run(Signal.java:147)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

Thanks for your help
Ondrej Hamak
Re: cdo - unimplemented methods and missing repositories [message #385162 is a reply to message #385161] Mon, 27 July 2009 21:11 Go to previous messageGo to next message
Mario Winterer is currently offline Mario Winterer
Messages: 136
Registered: July 2009
Senior Member
Hi Ondrej!

I cannot help with the first problem but maybe the second.
Skip the leading '/' in '/repo1' and try 'repo1' only. It worked for me!

Mario

"Ondrej Hamak" <hamak@email.cz> schrieb im Newsbeitrag
news:h4kqdf$g21$1@build.eclipse.org...
> Hi.
> For the past couple of days I've been trying to learn cdo and to get it
> to work with hibernate and mysql but unsuccessfully. I use Eclipse
> Galileo on linux and I have followed these guides:
> http://wiki.eclipse.org/CDO_Source_Installation and
> http://wiki.eclipse.org/Getting_started_with_CDO_Galileo.
>
> The first problem I have is that there is an error in CDOIDHibernateImpl
> because methods isExternal(), isNull() etc. are not implemented. These
> methods are commented out in its primitive class AbstractCDOID. Is it
> right
> to uncomment them or is there another way to solve it?
>
> The second problem concerns repositories. When I run CDO server(it starts
> without any errors) and try
> to connect to it in the CDO Sessions view I get an error that says
>
> Repository /repo1 not found
> org.eclipse.emf.cdo.util.ServerException: Repository /repo1 not found
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.OpenSessionReque st.confirming(OpenSessionRequest.java:79)
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.OpenSessionReque st.confirming(OpenSessionRequest.java:1)
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientRequest .confirming(CDOClientRequest.java:77)
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI nput(RequestWithConfirmation.java:123)
> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:312)
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R equestWithConfirmation.java:103)
> at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav a:66)
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
> at
> org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:423)
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doSend(Requ estWithConfirmation.java:87)
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:73)
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.send(CDOClientProtocol.java:286)
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.openSession(CDOClientProtocol.java:78)
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionImpl$Delegati ngSessionProtocol.openSession(CDOSessionImpl.java:1572)
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionImpl.doActiva te(CDOSessionImpl.java:716)
> at org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:65)
> at
> org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:94)
> at
> org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:84)
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:285)
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:265)
> at
> org.eclipse.emf.cdo.internal.ui.actions.OpenSessionAction.do Run(OpenSessionAction.java:67)
> at
> org.eclipse.net4j.util.ui.actions.LongRunningAction$1.run(Lo ngRunningAction.java:185)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
>
> and the console of the CDO sever says:
>
> [ERROR] Factory not found:
> org.eclipse.emf.cdo.server.repositories[default]
> org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not
> found: org.eclipse.emf.cdo.server.repositories[default]
> at
> org.eclipse.net4j.util.container.ManagedContainer.getFactory (ManagedContainer.java:193)
> at
> org.eclipse.net4j.util.container.ManagedContainer.createElem ent(ManagedContainer.java:490)
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:281)
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:265)
> at
> org.eclipse.emf.cdo.spi.server.RepositoryFactory.get(Reposit oryFactory.java:43)
> at
> org.eclipse.emf.cdo.spi.server.ContainerRepositoryProvider.g etRepository(ContainerRepositoryProvider.java:41)
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.OpenSessi onIndication.responding(OpenSessionIndication.java:85)
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServer Indication.responding(CDOServerIndication.java:112)
> at
> org.eclipse.net4j.signal.IndicationWithResponse.doExtendedOu tput(IndicationWithResponse.java:96)
> at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:282)
> at
> org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:65)
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
> at org.eclipse.net4j.signal.Signal.run(Signal.java:147)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:908)
> at java.lang.Thread.run(Thread.java:619)
>
> Thanks for your help
> Ondrej Hamak
Re: cdo - unimplemented methods and missing repositories [message #385163 is a reply to message #385161] Tue, 28 July 2009 03:46 Go to previous messageGo to next message
Martin Taal is currently offline Martin Taal
Messages: 5339
Registered: July 2009
Senior Member
Hi Ondrej,
To add some info. We did a fairly complete rework of the hibernatestore in CDO 3.0 (which is the current CVS HEAD),
after Galileo. The current cvs HEAD version passes all testcases and seems to be pretty complete (although not tested in
production...). This version also adds HQL query support.
My plan is to backport the CDO 3.0 hibernatestore to CDO 2.0.1 but it will be a few weeks before I have done that I am
afraid.... Also for the backport I am not sure that I can backport everything because of api constraints.

With this I would advice to either use CDO 3.0 from cvs, or wait for the CDO 3.0 build or wait for a CDO 2.0.1 build
with my backport...

I am not sure though when the next build of CDO (3.0) will be (which includes the changes I mention above).

gr. Martin

Ondrej Hamak wrote:
> Hi.
> For the past couple of days I've been trying to learn cdo and to get it
> to work with hibernate and mysql but unsuccessfully. I use Eclipse
> Galileo on linux and I have followed these guides:
> http://wiki.eclipse.org/CDO_Source_Installation and
> http://wiki.eclipse.org/Getting_started_with_CDO_Galileo.
>
> The first problem I have is that there is an error in CDOIDHibernateImpl
> because methods isExternal(), isNull() etc. are not implemented. These
> methods are commented out in its primitive class AbstractCDOID. Is it right
> to uncomment them or is there another way to solve it?
>
> The second problem concerns repositories. When I run CDO server(it
> starts without any errors) and try
> to connect to it in the CDO Sessions view I get an error that says
>
> Repository /repo1 not found
> org.eclipse.emf.cdo.util.ServerException: Repository /repo1 not found
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.OpenSessionReque st.confirming(OpenSessionRequest.java:79)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.OpenSessionReque st.confirming(OpenSessionRequest.java:1)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientRequest .confirming(CDOClientRequest.java:77)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI nput(RequestWithConfirmation.java:123)
>
> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:312)
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R equestWithConfirmation.java:103)
>
> at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav a:66)
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
> at
> org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:423)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doSend(Requ estWithConfirmation.java:87)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:73)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.send(CDOClientProtocol.java:286)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.openSession(CDOClientProtocol.java:78)
>
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionImpl$Delegati ngSessionProtocol.openSession(CDOSessionImpl.java:1572)
>
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionImpl.doActiva te(CDOSessionImpl.java:716)
>
> at
> org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:65)
> at
> org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:94)
>
> at
> org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:84)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:285)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:265)
>
> at
> org.eclipse.emf.cdo.internal.ui.actions.OpenSessionAction.do Run(OpenSessionAction.java:67)
>
> at
> org.eclipse.net4j.util.ui.actions.LongRunningAction$1.run(Lo ngRunningAction.java:185)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
>
> and the console of the CDO sever says:
>
> [ERROR] Factory not found: org.eclipse.emf.cdo.server.repositories[default]
> org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not
> found: org.eclipse.emf.cdo.server.repositories[default]
> at
> org.eclipse.net4j.util.container.ManagedContainer.getFactory (ManagedContainer.java:193)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.createElem ent(ManagedContainer.java:490)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:281)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:265)
>
> at
> org.eclipse.emf.cdo.spi.server.RepositoryFactory.get(Reposit oryFactory.java:43)
>
> at
> org.eclipse.emf.cdo.spi.server.ContainerRepositoryProvider.g etRepository(ContainerRepositoryProvider.java:41)
>
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.OpenSessi onIndication.responding(OpenSessionIndication.java:85)
>
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServer Indication.responding(CDOServerIndication.java:112)
>
> at
> org.eclipse.net4j.signal.IndicationWithResponse.doExtendedOu tput(IndicationWithResponse.java:96)
>
> at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:282)
> at
> org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:65)
>
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
> at org.eclipse.net4j.signal.Signal.run(Signal.java:147)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:886)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:908)
>
> at java.lang.Thread.run(Thread.java:619)
>
> Thanks for your help
> Ondrej Hamak


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: cdo - unimplemented methods and missing repositories [message #385164 is a reply to message #385161] Tue, 28 July 2009 09:10 Go to previous messageGo to next message
Eike Stepper is currently offline Eike Stepper
Messages: 5538
Registered: July 2009
Senior Member
Ondrej,

Comments below...


Ondrej Hamak schrieb:
> Hi.
> For the past couple of days I've been trying to learn cdo and to get it
> to work with hibernate and mysql but unsuccessfully. I use Eclipse
> Galileo on linux and I have followed these guides:
> http://wiki.eclipse.org/CDO_Source_Installation and
> http://wiki.eclipse.org/Getting_started_with_CDO_Galileo.
>
> The first problem I have is that there is an error in CDOIDHibernateImpl
> because methods isExternal(), isNull() etc. are not implemented. These
> methods are commented out in its primitive class AbstractCDOID. Is it
> right
> to uncomment them or is there another way to solve it?
As Martin said, we completely reworked the HibernateStore. Now the
org.eclipse.emf.cdo.server.hibernate.id bundle is no longer needed (in
HEAD!). Please just delete it from your workspace. I've also removed it
from the PSF files now.

>
> The second problem concerns repositories. When I run CDO server(it
> starts without any errors) and try
> to connect to it in the CDO Sessions view I get an error that says
>
> Repository /repo1 not found
> org.eclipse.emf.cdo.util.ServerException: Repository /repo1 not found
I also bet that the leading slash must be removed.
And I think that latest HEAD now throws a RepositoryNotFoundException
instead of just a FactoryNotFoundException if the named repository can
not be found in the managed container (and no factory is present to
create it).

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper


> at
> org.eclipse.emf.internal.cdo.net4j.protocol.OpenSessionReque st.confirming(OpenSessionRequest.java:79)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.OpenSessionReque st.confirming(OpenSessionRequest.java:1)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientRequest .confirming(CDOClientRequest.java:77)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI nput(RequestWithConfirmation.java:123)
>
> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:312)
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R equestWithConfirmation.java:103)
>
> at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav a:66)
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
> at
> org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:423)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doSend(Requ estWithConfirmation.java:87)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:73)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.send(CDOClientProtocol.java:286)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.openSession(CDOClientProtocol.java:78)
>
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionImpl$Delegati ngSessionProtocol.openSession(CDOSessionImpl.java:1572)
>
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionImpl.doActiva te(CDOSessionImpl.java:716)
>
> at
> org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:65)
> at
> org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:94)
>
> at
> org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:84)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:285)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:265)
>
> at
> org.eclipse.emf.cdo.internal.ui.actions.OpenSessionAction.do Run(OpenSessionAction.java:67)
>
> at
> org.eclipse.net4j.util.ui.actions.LongRunningAction$1.run(Lo ngRunningAction.java:185)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
>
> and the console of the CDO sever says:
>
> [ERROR] Factory not found:
> org.eclipse.emf.cdo.server.repositories[default]
> org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not
> found: org.eclipse.emf.cdo.server.repositories[default]
> at
> org.eclipse.net4j.util.container.ManagedContainer.getFactory (ManagedContainer.java:193)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.createElem ent(ManagedContainer.java:490)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:281)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:265)
>
> at
> org.eclipse.emf.cdo.spi.server.RepositoryFactory.get(Reposit oryFactory.java:43)
>
> at
> org.eclipse.emf.cdo.spi.server.ContainerRepositoryProvider.g etRepository(ContainerRepositoryProvider.java:41)
>
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.OpenSessi onIndication.responding(OpenSessionIndication.java:85)
>
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServer Indication.responding(CDOServerIndication.java:112)
>
> at
> org.eclipse.net4j.signal.IndicationWithResponse.doExtendedOu tput(IndicationWithResponse.java:96)
>
> at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:282)
> at
> org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:65)
>
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
> at org.eclipse.net4j.signal.Signal.run(Signal.java:147)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:886)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:908)
>
> at java.lang.Thread.run(Thread.java:619)
>
> Thanks for your help
> Ondrej Hamak
Re: cdo - unimplemented methods and missing repositories [message #385165 is a reply to message #385161] Tue, 28 July 2009 09:18 Go to previous message
Eike Stepper is currently offline Eike Stepper
Messages: 5538
Registered: July 2009
Senior Member
Ondrej,

Please do not cross-post the same question to multiple newsgroups. CDO
is supported in the EMF newsgroup.

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Ondrej Hamak schrieb:
> Hi.
> For the past couple of days I've been trying to learn cdo and to get it
> to work with hibernate and mysql but unsuccessfully. I use Eclipse
> Galileo on linux and I have followed these guides:
> http://wiki.eclipse.org/CDO_Source_Installation and
> http://wiki.eclipse.org/Getting_started_with_CDO_Galileo.
>
> The first problem I have is that there is an error in CDOIDHibernateImpl
> because methods isExternal(), isNull() etc. are not implemented. These
> methods are commented out in its primitive class AbstractCDOID. Is it
> right
> to uncomment them or is there another way to solve it?
>
> The second problem concerns repositories. When I run CDO server(it
> starts without any errors) and try
> to connect to it in the CDO Sessions view I get an error that says
>
> Repository /repo1 not found
> org.eclipse.emf.cdo.util.ServerException: Repository /repo1 not found
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.OpenSessionReque st.confirming(OpenSessionRequest.java:79)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.OpenSessionReque st.confirming(OpenSessionRequest.java:1)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientRequest .confirming(CDOClientRequest.java:77)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI nput(RequestWithConfirmation.java:123)
>
> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:312)
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R equestWithConfirmation.java:103)
>
> at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav a:66)
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
> at
> org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:423)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doSend(Requ estWithConfirmation.java:87)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:73)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.send(CDOClientProtocol.java:286)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.openSession(CDOClientProtocol.java:78)
>
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionImpl$Delegati ngSessionProtocol.openSession(CDOSessionImpl.java:1572)
>
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionImpl.doActiva te(CDOSessionImpl.java:716)
>
> at
> org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:65)
> at
> org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:94)
>
> at
> org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:84)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:285)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:265)
>
> at
> org.eclipse.emf.cdo.internal.ui.actions.OpenSessionAction.do Run(OpenSessionAction.java:67)
>
> at
> org.eclipse.net4j.util.ui.actions.LongRunningAction$1.run(Lo ngRunningAction.java:185)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
>
> and the console of the CDO sever says:
>
> [ERROR] Factory not found:
> org.eclipse.emf.cdo.server.repositories[default]
> org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not
> found: org.eclipse.emf.cdo.server.repositories[default]
> at
> org.eclipse.net4j.util.container.ManagedContainer.getFactory (ManagedContainer.java:193)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.createElem ent(ManagedContainer.java:490)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:281)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:265)
>
> at
> org.eclipse.emf.cdo.spi.server.RepositoryFactory.get(Reposit oryFactory.java:43)
>
> at
> org.eclipse.emf.cdo.spi.server.ContainerRepositoryProvider.g etRepository(ContainerRepositoryProvider.java:41)
>
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.OpenSessi onIndication.responding(OpenSessionIndication.java:85)
>
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServer Indication.responding(CDOServerIndication.java:112)
>
> at
> org.eclipse.net4j.signal.IndicationWithResponse.doExtendedOu tput(IndicationWithResponse.java:96)
>
> at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:282)
> at
> org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:65)
>
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
> at org.eclipse.net4j.signal.Signal.run(Signal.java:147)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:886)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:908)
>
> at java.lang.Thread.run(Thread.java:619)
>
> Thanks for your help
> Ondrej Hamak
Re: cdo - unimplemented methods and missing repositories [message #617533 is a reply to message #385161] Mon, 27 July 2009 21:11 Go to previous message
Mario Winterer is currently offline Mario Winterer
Messages: 136
Registered: July 2009
Senior Member
Hi Ondrej!

I cannot help with the first problem but maybe the second.
Skip the leading '/' in '/repo1' and try 'repo1' only. It worked for me!

Mario

"Ondrej Hamak" <hamak@email.cz> schrieb im Newsbeitrag
news:h4kqdf$g21$1@build.eclipse.org...
> Hi.
> For the past couple of days I've been trying to learn cdo and to get it
> to work with hibernate and mysql but unsuccessfully. I use Eclipse
> Galileo on linux and I have followed these guides:
> http://wiki.eclipse.org/CDO_Source_Installation and
> http://wiki.eclipse.org/Getting_started_with_CDO_Galileo
>
> The first problem I have is that there is an error in CDOIDHibernateImpl
> because methods isExternal(), isNull() etc. are not implemented. These
> methods are commented out in its primitive class AbstractCDOID. Is it
> right
> to uncomment them or is there another way to solve it?
>
> The second problem concerns repositories. When I run CDO server(it starts
> without any errors) and try
> to connect to it in the CDO Sessions view I get an error that says
>
> Repository /repo1 not found
> org.eclipse.emf.cdo.util.ServerException: Repository /repo1 not found
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.OpenSessionReque st.confirming(OpenSessionRequest.java:79)
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.OpenSessionReque st.confirming(OpenSessionRequest.java:1)
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientRequest .confirming(CDOClientRequest.java:77)
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI nput(RequestWithConfirmation.java:123)
> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:312)
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R equestWithConfirmation.java:103)
> at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav a:66)
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
> at
> org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:423)
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doSend(Requ estWithConfirmation.java:87)
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:73)
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.send(CDOClientProtocol.java:286)
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.openSession(CDOClientProtocol.java:78)
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionImpl$Delegati ngSessionProtocol.openSession(CDOSessionImpl.java:1572)
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionImpl.doActiva te(CDOSessionImpl.java:716)
> at org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:65)
> at
> org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:94)
> at
> org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:84)
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:285)
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:265)
> at
> org.eclipse.emf.cdo.internal.ui.actions.OpenSessionAction.do Run(OpenSessionAction.java:67)
> at
> org.eclipse.net4j.util.ui.actions.LongRunningAction$1.run(Lo ngRunningAction.java:185)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
>
> and the console of the CDO sever says:
>
> [ERROR] Factory not found:
> org.eclipse.emf.cdo.server.repositories[default]
> org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not
> found: org.eclipse.emf.cdo.server.repositories[default]
> at
> org.eclipse.net4j.util.container.ManagedContainer.getFactory (ManagedContainer.java:193)
> at
> org.eclipse.net4j.util.container.ManagedContainer.createElem ent(ManagedContainer.java:490)
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:281)
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:265)
> at
> org.eclipse.emf.cdo.spi.server.RepositoryFactory.get(Reposit oryFactory.java:43)
> at
> org.eclipse.emf.cdo.spi.server.ContainerRepositoryProvider.g etRepository(ContainerRepositoryProvider.java:41)
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.OpenSessi onIndication.responding(OpenSessionIndication.java:85)
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServer Indication.responding(CDOServerIndication.java:112)
> at
> org.eclipse.net4j.signal.IndicationWithResponse.doExtendedOu tput(IndicationWithResponse.java:96)
> at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:282)
> at
> org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:65)
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
> at org.eclipse.net4j.signal.Signal.run(Signal.java:147)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:908)
> at java.lang.Thread.run(Thread.java:619)
>
> Thanks for your help
> Ondrej Hamak
Re: cdo - unimplemented methods and missing repositories [message #617535 is a reply to message #385161] Tue, 28 July 2009 03:46 Go to previous message
Martin Taal is currently offline Martin Taal
Messages: 5339
Registered: July 2009
Senior Member
Hi Ondrej,
To add some info. We did a fairly complete rework of the hibernatestore in CDO 3.0 (which is the current CVS HEAD),
after Galileo. The current cvs HEAD version passes all testcases and seems to be pretty complete (although not tested in
production...). This version also adds HQL query support.
My plan is to backport the CDO 3.0 hibernatestore to CDO 2.0.1 but it will be a few weeks before I have done that I am
afraid.... Also for the backport I am not sure that I can backport everything because of api constraints.

With this I would advice to either use CDO 3.0 from cvs, or wait for the CDO 3.0 build or wait for a CDO 2.0.1 build
with my backport...

I am not sure though when the next build of CDO (3.0) will be (which includes the changes I mention above).

gr. Martin

Ondrej Hamak wrote:
> Hi.
> For the past couple of days I've been trying to learn cdo and to get it
> to work with hibernate and mysql but unsuccessfully. I use Eclipse
> Galileo on linux and I have followed these guides:
> http://wiki.eclipse.org/CDO_Source_Installation and
> http://wiki.eclipse.org/Getting_started_with_CDO_Galileo
>
> The first problem I have is that there is an error in CDOIDHibernateImpl
> because methods isExternal(), isNull() etc. are not implemented. These
> methods are commented out in its primitive class AbstractCDOID. Is it right
> to uncomment them or is there another way to solve it?
>
> The second problem concerns repositories. When I run CDO server(it
> starts without any errors) and try
> to connect to it in the CDO Sessions view I get an error that says
>
> Repository /repo1 not found
> org.eclipse.emf.cdo.util.ServerException: Repository /repo1 not found
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.OpenSessionReque st.confirming(OpenSessionRequest.java:79)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.OpenSessionReque st.confirming(OpenSessionRequest.java:1)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientRequest .confirming(CDOClientRequest.java:77)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI nput(RequestWithConfirmation.java:123)
>
> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:312)
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R equestWithConfirmation.java:103)
>
> at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav a:66)
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
> at
> org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:423)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doSend(Requ estWithConfirmation.java:87)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:73)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.send(CDOClientProtocol.java:286)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.openSession(CDOClientProtocol.java:78)
>
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionImpl$Delegati ngSessionProtocol.openSession(CDOSessionImpl.java:1572)
>
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionImpl.doActiva te(CDOSessionImpl.java:716)
>
> at
> org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:65)
> at
> org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:94)
>
> at
> org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:84)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:285)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:265)
>
> at
> org.eclipse.emf.cdo.internal.ui.actions.OpenSessionAction.do Run(OpenSessionAction.java:67)
>
> at
> org.eclipse.net4j.util.ui.actions.LongRunningAction$1.run(Lo ngRunningAction.java:185)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
>
> and the console of the CDO sever says:
>
> [ERROR] Factory not found: org.eclipse.emf.cdo.server.repositories[default]
> org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not
> found: org.eclipse.emf.cdo.server.repositories[default]
> at
> org.eclipse.net4j.util.container.ManagedContainer.getFactory (ManagedContainer.java:193)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.createElem ent(ManagedContainer.java:490)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:281)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:265)
>
> at
> org.eclipse.emf.cdo.spi.server.RepositoryFactory.get(Reposit oryFactory.java:43)
>
> at
> org.eclipse.emf.cdo.spi.server.ContainerRepositoryProvider.g etRepository(ContainerRepositoryProvider.java:41)
>
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.OpenSessi onIndication.responding(OpenSessionIndication.java:85)
>
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServer Indication.responding(CDOServerIndication.java:112)
>
> at
> org.eclipse.net4j.signal.IndicationWithResponse.doExtendedOu tput(IndicationWithResponse.java:96)
>
> at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:282)
> at
> org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:65)
>
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
> at org.eclipse.net4j.signal.Signal.run(Signal.java:147)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:886)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:908)
>
> at java.lang.Thread.run(Thread.java:619)
>
> Thanks for your help
> Ondrej Hamak


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: cdo - unimplemented methods and missing repositories [message #617538 is a reply to message #385161] Tue, 28 July 2009 09:10 Go to previous message
Eike Stepper is currently offline Eike Stepper
Messages: 5538
Registered: July 2009
Senior Member
Ondrej,

Comments below...


Ondrej Hamak schrieb:
> Hi.
> For the past couple of days I've been trying to learn cdo and to get it
> to work with hibernate and mysql but unsuccessfully. I use Eclipse
> Galileo on linux and I have followed these guides:
> http://wiki.eclipse.org/CDO_Source_Installation and
> http://wiki.eclipse.org/Getting_started_with_CDO_Galileo
>
> The first problem I have is that there is an error in CDOIDHibernateImpl
> because methods isExternal(), isNull() etc. are not implemented. These
> methods are commented out in its primitive class AbstractCDOID. Is it
> right
> to uncomment them or is there another way to solve it?
As Martin said, we completely reworked the HibernateStore. Now the
org.eclipse.emf.cdo.server.hibernate.id bundle is no longer needed (in
HEAD!). Please just delete it from your workspace. I've also removed it
from the PSF files now.

>
> The second problem concerns repositories. When I run CDO server(it
> starts without any errors) and try
> to connect to it in the CDO Sessions view I get an error that says
>
> Repository /repo1 not found
> org.eclipse.emf.cdo.util.ServerException: Repository /repo1 not found
I also bet that the leading slash must be removed.
And I think that latest HEAD now throws a RepositoryNotFoundException
instead of just a FactoryNotFoundException if the named repository can
not be found in the managed container (and no factory is present to
create it).

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper


> at
> org.eclipse.emf.internal.cdo.net4j.protocol.OpenSessionReque st.confirming(OpenSessionRequest.java:79)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.OpenSessionReque st.confirming(OpenSessionRequest.java:1)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientRequest .confirming(CDOClientRequest.java:77)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI nput(RequestWithConfirmation.java:123)
>
> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:312)
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R equestWithConfirmation.java:103)
>
> at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav a:66)
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
> at
> org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:423)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doSend(Requ estWithConfirmation.java:87)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:73)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.send(CDOClientProtocol.java:286)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.openSession(CDOClientProtocol.java:78)
>
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionImpl$Delegati ngSessionProtocol.openSession(CDOSessionImpl.java:1572)
>
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionImpl.doActiva te(CDOSessionImpl.java:716)
>
> at
> org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:65)
> at
> org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:94)
>
> at
> org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:84)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:285)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:265)
>
> at
> org.eclipse.emf.cdo.internal.ui.actions.OpenSessionAction.do Run(OpenSessionAction.java:67)
>
> at
> org.eclipse.net4j.util.ui.actions.LongRunningAction$1.run(Lo ngRunningAction.java:185)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
>
> and the console of the CDO sever says:
>
> [ERROR] Factory not found:
> org.eclipse.emf.cdo.server.repositories[default]
> org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not
> found: org.eclipse.emf.cdo.server.repositories[default]
> at
> org.eclipse.net4j.util.container.ManagedContainer.getFactory (ManagedContainer.java:193)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.createElem ent(ManagedContainer.java:490)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:281)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:265)
>
> at
> org.eclipse.emf.cdo.spi.server.RepositoryFactory.get(Reposit oryFactory.java:43)
>
> at
> org.eclipse.emf.cdo.spi.server.ContainerRepositoryProvider.g etRepository(ContainerRepositoryProvider.java:41)
>
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.OpenSessi onIndication.responding(OpenSessionIndication.java:85)
>
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServer Indication.responding(CDOServerIndication.java:112)
>
> at
> org.eclipse.net4j.signal.IndicationWithResponse.doExtendedOu tput(IndicationWithResponse.java:96)
>
> at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:282)
> at
> org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:65)
>
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
> at org.eclipse.net4j.signal.Signal.run(Signal.java:147)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:886)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:908)
>
> at java.lang.Thread.run(Thread.java:619)
>
> Thanks for your help
> Ondrej Hamak
Re: cdo - unimplemented methods and missing repositories [message #617541 is a reply to message #385161] Tue, 28 July 2009 09:18 Go to previous message
Eike Stepper is currently offline Eike Stepper
Messages: 5538
Registered: July 2009
Senior Member
Ondrej,

Please do not cross-post the same question to multiple newsgroups. CDO
is supported in the EMF newsgroup.

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Ondrej Hamak schrieb:
> Hi.
> For the past couple of days I've been trying to learn cdo and to get it
> to work with hibernate and mysql but unsuccessfully. I use Eclipse
> Galileo on linux and I have followed these guides:
> http://wiki.eclipse.org/CDO_Source_Installation and
> http://wiki.eclipse.org/Getting_started_with_CDO_Galileo
>
> The first problem I have is that there is an error in CDOIDHibernateImpl
> because methods isExternal(), isNull() etc. are not implemented. These
> methods are commented out in its primitive class AbstractCDOID. Is it
> right
> to uncomment them or is there another way to solve it?
>
> The second problem concerns repositories. When I run CDO server(it
> starts without any errors) and try
> to connect to it in the CDO Sessions view I get an error that says
>
> Repository /repo1 not found
> org.eclipse.emf.cdo.util.ServerException: Repository /repo1 not found
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.OpenSessionReque st.confirming(OpenSessionRequest.java:79)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.OpenSessionReque st.confirming(OpenSessionRequest.java:1)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientRequest .confirming(CDOClientRequest.java:77)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI nput(RequestWithConfirmation.java:123)
>
> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:312)
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R equestWithConfirmation.java:103)
>
> at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav a:66)
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
> at
> org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:423)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doSend(Requ estWithConfirmation.java:87)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:73)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.send(CDOClientProtocol.java:286)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.openSession(CDOClientProtocol.java:78)
>
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionImpl$Delegati ngSessionProtocol.openSession(CDOSessionImpl.java:1572)
>
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionImpl.doActiva te(CDOSessionImpl.java:716)
>
> at
> org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:65)
> at
> org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:94)
>
> at
> org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:84)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:285)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:265)
>
> at
> org.eclipse.emf.cdo.internal.ui.actions.OpenSessionAction.do Run(OpenSessionAction.java:67)
>
> at
> org.eclipse.net4j.util.ui.actions.LongRunningAction$1.run(Lo ngRunningAction.java:185)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
>
> and the console of the CDO sever says:
>
> [ERROR] Factory not found:
> org.eclipse.emf.cdo.server.repositories[default]
> org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not
> found: org.eclipse.emf.cdo.server.repositories[default]
> at
> org.eclipse.net4j.util.container.ManagedContainer.getFactory (ManagedContainer.java:193)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.createElem ent(ManagedContainer.java:490)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:281)
>
> at
> org.eclipse.net4j.util.container.ManagedContainer.getElement (ManagedContainer.java:265)
>
> at
> org.eclipse.emf.cdo.spi.server.RepositoryFactory.get(Reposit oryFactory.java:43)
>
> at
> org.eclipse.emf.cdo.spi.server.ContainerRepositoryProvider.g etRepository(ContainerRepositoryProvider.java:41)
>
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.OpenSessi onIndication.responding(OpenSessionIndication.java:85)
>
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServer Indication.responding(CDOServerIndication.java:112)
>
> at
> org.eclipse.net4j.signal.IndicationWithResponse.doExtendedOu tput(IndicationWithResponse.java:96)
>
> at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:282)
> at
> org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:65)
>
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
> at org.eclipse.net4j.signal.Signal.run(Signal.java:147)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:886)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:908)
>
> at java.lang.Thread.run(Thread.java:619)
>
> Thanks for your help
> Ondrej Hamak
Previous Topic:cdo - unimplemented methods and missing repositories
Next Topic:Help: Advice on GUI Designer to choose?
Goto Forum:
  


Current Time: Tue Oct 21 20:01:26 GMT 2014

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

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