Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] FactoryNotFoundException: Factory not found: org.eclipse.net4j.serverProtocols[cdo]
[CDO] FactoryNotFoundException: Factory not found: org.eclipse.net4j.serverProtocols[cdo] [message #431729] Thu, 23 July 2009 11:51 Go to next message
Kai Schlamp is currently offline Kai SchlampFriend
Messages: 344
Registered: July 2009
Senior Member
Hi.

I just switched to the latest CDO CVS Head as target for my RCP application. When I start the app
now I get the below exception.

I included those plugins as dependencies:
org.eclipse.emf.cdo
org.eclipse.emf.cdo.common
org.eclipse.emf.cdo.net4j
org.eclipse.emf.cdo.server
org.eclipse.emf.cdo.server.db
org.eclipse.net4j
org.eclipse.net4j.db
org.eclipse.net4j.db.h2
org.eclipse.net4j.jvm
org.eclipse.net4j.tcp
org.eclipse.net4j.util

What else do I need to add to get those mentioned server protocols?

Regards,
Kai


The exception:
org.eclipse.net4j.channel.ChannelException:
org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not found:
org.eclipse.net4j.serverProtocols[cdo]
at org.eclipse.net4j.internal.jvm.JVMConnector.registerChannelW ithPeer(JVMConnector.java:128)
at org.eclipse.spi.net4j.ChannelMultiplexer.openChannel(Channel Multiplexer.java:156)
at org.eclipse.spi.net4j.ChannelMultiplexer.openChannel(Channel Multiplexer.java:1)
at org.eclipse.net4j.signal.failover.NOOPFailOverStrategy.handl eOpen(NOOPFailOverStrategy.java:53)
at org.eclipse.net4j.signal.SignalProtocol.open(SignalProtocol. java:167)
at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtoco l.openSession(CDOClientProtocol.java:82)
at
org.eclipse.emf.cdo.internal.net4j.CDONet4jSessionConfigurat ionImpl.activateSession(CDONet4jSessionConfigurationImpl.jav a:156)
at org.eclipse.emf.internal.cdo.session.CDOSessionImpl.doActiva te(CDOSessionImpl.java:711)
at org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:65)
at
org.eclipse.emf.internal.cdo.session.CDOSessionConfiguration Impl.openSession(CDOSessionConfigurationImpl.java:121)
at
org.eclipse.emf.cdo.internal.net4j.CDONet4jSessionConfigurat ionImpl.openSession(CDONet4jSessionConfigurationImpl.java:11 6)
at org.pubcurator.core.managers.ServerManager.createSession(Ser verManager.java:166)
at org.pubcurator.core.managers.ServerManager.connectToServer(S erverManager.java:208)
at org.pubcurator.core.managers.ServerManager.connectToLocalSer ver(ServerManager.java:186)
at org.pubcurator.core.ApplicationWorkbenchAdvisor$1$1.run(Appl icationWorkbenchAdvisor.java:87)
at org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:121)
Caused by: org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not found:
org.eclipse.net4j.serverProtocols[cdo]
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.ContainerProtocolProvider.getProtocol(Cont ainerProtocolProvider.java:51)
at org.eclipse.spi.net4j.ChannelMultiplexer.createProtocol(Chan nelMultiplexer.java:245)
at org.eclipse.spi.net4j.ChannelMultiplexer.inverseOpenChannel( ChannelMultiplexer.java:179)
at org.eclipse.net4j.internal.jvm.JVMConnector.registerChannelW ithPeer(JVMConnector.java:116)
... 15 more
Re: [CDO] FactoryNotFoundException: Factory not found: org.eclipse.net4j.serverProtocols[cdo] [message #431730 is a reply to message #431729] Thu, 23 July 2009 12:04 Go to previous messageGo to next message
Kai Schlamp is currently offline Kai SchlampFriend
Messages: 344
Registered: July 2009
Senior Member
I solved that problem somehow ... maybe org.eclipse.cdo.net4j.

But a new problem appeared ... new thread.

Kai Schlamp wrote:
> Hi.
>
> I just switched to the latest CDO CVS Head as target for my RCP
> application. When I start the app now I get the below exception.
>
> I included those plugins as dependencies:
> org.eclipse.emf.cdo
> org.eclipse.emf.cdo.common
> org.eclipse.emf.cdo.net4j
> org.eclipse.emf.cdo.server
> org.eclipse.emf.cdo.server.db
> org.eclipse.net4j
> org.eclipse.net4j.db
> org.eclipse.net4j.db.h2
> org.eclipse.net4j.jvm
> org.eclipse.net4j.tcp
> org.eclipse.net4j.util
>
> What else do I need to add to get those mentioned server protocols?
>
> Regards,
> Kai
>
>
> The exception:
> org.eclipse.net4j.channel.ChannelException:
> org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not
> found: org.eclipse.net4j.serverProtocols[cdo]
> at
> org.eclipse.net4j.internal.jvm.JVMConnector.registerChannelW ithPeer(JVMConnector.java:128)
>
> at
> org.eclipse.spi.net4j.ChannelMultiplexer.openChannel(Channel Multiplexer.java:156)
>
> at
> org.eclipse.spi.net4j.ChannelMultiplexer.openChannel(Channel Multiplexer.java:1)
>
> at
> org.eclipse.net4j.signal.failover.NOOPFailOverStrategy.handl eOpen(NOOPFailOverStrategy.java:53)
>
> at
> org.eclipse.net4j.signal.SignalProtocol.open(SignalProtocol. java:167)
> at
> org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtoco l.openSession(CDOClientProtocol.java:82)
>
> at
> org.eclipse.emf.cdo.internal.net4j.CDONet4jSessionConfigurat ionImpl.activateSession(CDONet4jSessionConfigurationImpl.jav a:156)
>
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionImpl.doActiva te(CDOSessionImpl.java:711)
>
> at
> org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:65)
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionConfiguration Impl.openSession(CDOSessionConfigurationImpl.java:121)
>
> at
> org.eclipse.emf.cdo.internal.net4j.CDONet4jSessionConfigurat ionImpl.openSession(CDONet4jSessionConfigurationImpl.java:11 6)
>
> at
> org.pubcurator.core.managers.ServerManager.createSession(Ser verManager.java:166)
>
> at
> org.pubcurator.core.managers.ServerManager.connectToServer(S erverManager.java:208)
>
> at
> org.pubcurator.core.managers.ServerManager.connectToLocalSer ver(ServerManager.java:186)
>
> at
> org.pubcurator.core.ApplicationWorkbenchAdvisor$1$1.run(Appl icationWorkbenchAdvisor.java:87)
>
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:121)
>
> Caused by: org.eclipse.net4j.util.container.FactoryNotFoundException:
> Factory not found: org.eclipse.net4j.serverProtocols[cdo]
> 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.ContainerProtocolProvider.getProtocol(Cont ainerProtocolProvider.java:51)
>
> at
> org.eclipse.spi.net4j.ChannelMultiplexer.createProtocol(Chan nelMultiplexer.java:245)
>
> at
> org.eclipse.spi.net4j.ChannelMultiplexer.inverseOpenChannel( ChannelMultiplexer.java:179)
>
> at
> org.eclipse.net4j.internal.jvm.JVMConnector.registerChannelW ithPeer(JVMConnector.java:116)
>
> ... 15 more
Re: [CDO] FactoryNotFoundException: Factory not found: org.eclipse.net4j.serverProtocols[cdo] [message #431753 is a reply to message #431729] Thu, 23 July 2009 17:06 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6457
Registered: July 2009
Senior Member
Kai,

Comments below...



Kai Schlamp schrieb:
> Hi.
>
> I just switched to the latest CDO CVS Head as target for my RCP
> application. When I start the app now I get the below exception.
>
> I included those plugins as dependencies:
> org.eclipse.emf.cdo
> org.eclipse.emf.cdo.common
> org.eclipse.emf.cdo.net4j
^ This one is only needed for client-side sessions.

But this one is missing for a server setup: org.eclipse.emf.cdo.server.net4j

HTH

Cheers
/Eike

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


> org.eclipse.emf.cdo.server
> org.eclipse.emf.cdo.server.db
> org.eclipse.net4j
> org.eclipse.net4j.db
> org.eclipse.net4j.db.h2
> org.eclipse.net4j.jvm
> org.eclipse.net4j.tcp
> org.eclipse.net4j.util
>
> What else do I need to add to get those mentioned server protocols?
>
> Regards,
> Kai
>
>
> The exception:
> org.eclipse.net4j.channel.ChannelException:
> org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not
> found: org.eclipse.net4j.serverProtocols[cdo]
> at
> org.eclipse.net4j.internal.jvm.JVMConnector.registerChannelW ithPeer(JVMConnector.java:128)
>
> at
> org.eclipse.spi.net4j.ChannelMultiplexer.openChannel(Channel Multiplexer.java:156)
>
> at
> org.eclipse.spi.net4j.ChannelMultiplexer.openChannel(Channel Multiplexer.java:1)
>
> at
> org.eclipse.net4j.signal.failover.NOOPFailOverStrategy.handl eOpen(NOOPFailOverStrategy.java:53)
>
> at
> org.eclipse.net4j.signal.SignalProtocol.open(SignalProtocol. java:167)
> at
> org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtoco l.openSession(CDOClientProtocol.java:82)
>
> at
> org.eclipse.emf.cdo.internal.net4j.CDONet4jSessionConfigurat ionImpl.activateSession(CDONet4jSessionConfigurationImpl.jav a:156)
>
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionImpl.doActiva te(CDOSessionImpl.java:711)
>
> at
> org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:65)
> at
> org.eclipse.emf.internal.cdo.session.CDOSessionConfiguration Impl.openSession(CDOSessionConfigurationImpl.java:121)
>
> at
> org.eclipse.emf.cdo.internal.net4j.CDONet4jSessionConfigurat ionImpl.openSession(CDONet4jSessionConfigurationImpl.java:11 6)
>
> at
> org.pubcurator.core.managers.ServerManager.createSession(Ser verManager.java:166)
>
> at
> org.pubcurator.core.managers.ServerManager.connectToServer(S erverManager.java:208)
>
> at
> org.pubcurator.core.managers.ServerManager.connectToLocalSer ver(ServerManager.java:186)
>
> at
> org.pubcurator.core.ApplicationWorkbenchAdvisor$1$1.run(Appl icationWorkbenchAdvisor.java:87)
>
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:121)
>
> Caused by: org.eclipse.net4j.util.container.FactoryNotFoundException:
> Factory not found: org.eclipse.net4j.serverProtocols[cdo]
> 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.ContainerProtocolProvider.getProtocol(Cont ainerProtocolProvider.java:51)
>
> at
> org.eclipse.spi.net4j.ChannelMultiplexer.createProtocol(Chan nelMultiplexer.java:245)
>
> at
> org.eclipse.spi.net4j.ChannelMultiplexer.inverseOpenChannel( ChannelMultiplexer.java:179)
>
> at
> org.eclipse.net4j.internal.jvm.JVMConnector.registerChannelW ithPeer(JVMConnector.java:116)
>
> ... 15 more


Re: [CDO] FactoryNotFoundException: Factory not found: org.eclipse.net4j.serverProtocols[cdo] [message #431804 is a reply to message #431753] Mon, 27 July 2009 15:16 Go to previous messageGo to next message
Kai Schlamp is currently offline Kai SchlampFriend
Messages: 344
Registered: July 2009
Senior Member
>> I included those plugins as dependencies:
>> org.eclipse.emf.cdo
>> org.eclipse.emf.cdo.common
>> org.eclipse.emf.cdo.net4j
> ^ This one is only needed for client-side sessions.
>
> But this one is missing for a server setup: org.eclipse.emf.cdo.server.net4j

Yes, that's what is causing the exception. It seems no other bundle depends on it (not even
optionally)? Normally I just go to the "Run Configurations" dialog and click "Add Required
Plug-ins". With CDO 2.0 every needed plugin was added. Now with CDO CVS Head I have to add the
bundle org.eclipse.emf.cdo.server.net4j manually.
Is that intended?
Re: [CDO] FactoryNotFoundException: Factory not found: org.eclipse.net4j.serverProtocols[cdo] [message #431849 is a reply to message #431804] Tue, 28 July 2009 08:51 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6457
Registered: July 2009
Senior Member
Kai Schlamp schrieb:
>>
>> But this one is missing for a server setup:
>> org.eclipse.emf.cdo.server.net4j
>
> Yes, that's what is causing the exception. It seems no other bundle
> depends on it (not even optionally)? Normally I just go to the "Run
> Configurations" dialog and click "Add Required Plug-ins". With CDO 2.0
> every needed plugin was added. Now with CDO CVS Head I have to add the
> bundle org.eclipse.emf.cdo.server.net4j manually.
> Is that intended?
Yes, CDO does no longer depend on Net4j transport. Hence our favorite
launch config button does not catch these upstream dependencies anymore.

Notice that you can now define your own server extensions (like the
Net4j server extension) to the CDOServerApplication via the
org.eclipse.emf.cdo.server.appExtensions extension point.

Cheers
/Eike

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


Previous Topic:XMLResource.OPTION_USE_DEPRECATED_METHODS option in EMF Book
Next Topic:is EMF right solution for me? - Overriding load / save format
Goto Forum:
  


Current Time: Fri Dec 06 10:51:44 GMT 2019

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

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

Back to the top