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

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.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