[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling] Re: cdo - unimplemented methods and missing repositories

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.OpenSessionRequest.confirming(OpenSessionRequest.java:79)


at
org.eclipse.emf.internal.cdo.net4j.protocol.OpenSessionRequest.confirming(OpenSessionRequest.java:1)


at
org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientRequest.confirming(CDOClientRequest.java:77)


at
org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedInput(RequestWithConfirmation.java:123)


at org.eclipse.net4j.signal.Signal.doInput(Signal.java:312)
at
org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(RequestWithConfirmation.java:103)


at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.java:66)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
at
org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalProtocol.java:423)


at
org.eclipse.net4j.signal.RequestWithConfirmation.doSend(RequestWithConfirmation.java:87)


at
org.eclipse.net4j.signal.RequestWithConfirmation.send(RequestWithConfirmation.java:73)


at
org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtocol.send(CDOClientProtocol.java:286)


at
org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtocol.openSession(CDOClientProtocol.java:78)


at
org.eclipse.emf.internal.cdo.session.CDOSessionImpl$DelegatingSessionProtocol.openSession(CDOSessionImpl.java:1572)


at
org.eclipse.emf.internal.cdo.session.CDOSessionImpl.doActivate(CDOSessionImpl.java:716)


at org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycle.java:65)
at
org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(LifecycleUtil.java:94)


at
org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(LifecycleUtil.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.doRun(OpenSessionAction.java:67)


at
org.eclipse.net4j.util.ui.actions.LongRunningAction$1.run(LongRunningAction.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.createElement(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(RepositoryFactory.java:43)


at
org.eclipse.emf.cdo.spi.server.ContainerRepositoryProvider.getRepository(ContainerRepositoryProvider.java:41)


at
org.eclipse.emf.cdo.server.internal.net4j.protocol.OpenSessionIndication.responding(OpenSessionIndication.java:85)


at
org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndication.responding(CDOServerIndication.java:112)


at
org.eclipse.net4j.signal.IndicationWithResponse.doExtendedOutput(IndicationWithResponse.java:96)


at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:282)
at
org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.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(ThreadPoolExecutor.java:886)


at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.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@xxxxxxxxxxxxxx - mtaal@xxxxxxxxx
Web: www.springsite.com - www.elver.org