Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [CDO] TimeoutRuntimeException when trying to open session
[CDO] TimeoutRuntimeException when trying to open session [message #502656] Wed, 09 December 2009 10:12 Go to next message
Walter Hargassner is currently offline Walter HargassnerFriend
Messages: 5
Registered: November 2009
Junior Member
I'm trying to setup an osgi framework including the CDO server and some
other plugins containing some "business code". I created a launch
configuration running the application "org.eclipse.emf.cdo.server.app".

The server starts properly and can be accessed by an external CDO Client
(CDO Sessions View). If I try to open a session from one of the bundles
containing my business code, it hangs and timesout with the following
exception:

org.eclipse.net4j.channel.ChannelException:
org.eclipse.net4j.util.concurrent.TimeoutRuntimeException: Registration
timeout after 10000 milliseconds
at
org.eclipse.spi.net4j.ChannelMultiplexer.openChannel(Channel Multiplexer.java:171)
at
org.eclipse.spi.net4j.ChannelMultiplexer.openChannel(Channel Multiplexer.java:1)
at
org.eclipse.net4j.signal.failover.NOOPFailOverStrategy.handl eOpen(NOOPFailOverStrategy.java:53)
at
....

I try to open the session with the following code:

boolean automaticPackageRegistry = true;
String description =
" tcp://localhost:2036?repositoryName=repo1&automaticPacka geRegistry="
+ Boolean.toString(automaticPackageRegistry);
cdoSession = (CDOSession)
IPluginContainer.INSTANCE.getElement("org.eclipse.emf.cdo.sessions ",
"cdo", description);

If I start the server and the osgi-framework without the server in extra
launch-configurations, everything works fine.

Probably you have any hints for me, I have to take care of?

BR,
Walter
Re: [CDO] TimeoutRuntimeException when trying to open session [message #502705 is a reply to message #502656] Wed, 09 December 2009 14:03 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Walter,

In the future, please ask for CDO support in the EMF newsgroup which
I've added to the recipients.

Is the timeout exception the first one htat appears in the log? I could
imagine that you did *not* deploy the org.eclipse.emf.cdo.net4j plugin
to your server. It's needed for Net4j based client CDOSessions. Can you
give me the list of installed Net4 and CDO plugins on your server? And
which CDO version are you using?

Cheers
/Eike

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



Walter Hargassner schrieb:
> I'm trying to setup an osgi framework including the CDO server and
> some other plugins containing some "business code". I created a launch
> configuration running the application "org.eclipse.emf.cdo.server.app".
>
> The server starts properly and can be accessed by an external CDO
> Client (CDO Sessions View). If I try to open a session from one of the
> bundles containing my business code, it hangs and timesout with the
> following exception:
>
> org.eclipse.net4j.channel.ChannelException:
> org.eclipse.net4j.util.concurrent.TimeoutRuntimeException:
> Registration timeout after 10000 milliseconds
> at
> org.eclipse.spi.net4j.ChannelMultiplexer.openChannel(Channel Multiplexer.java:171)
>
> at
> org.eclipse.spi.net4j.ChannelMultiplexer.openChannel(Channel Multiplexer.java:1)
>
> at
> org.eclipse.net4j.signal.failover.NOOPFailOverStrategy.handl eOpen(NOOPFailOverStrategy.java:53)
>
> at
> ....
>
> I try to open the session with the following code:
>
> boolean automaticPackageRegistry = true;
> String description =
> " tcp://localhost:2036?repositoryName=repo1&automaticPacka geRegistry="
> + Boolean.toString(automaticPackageRegistry);
> cdoSession = (CDOSession)
> IPluginContainer.INSTANCE.getElement("org.eclipse.emf.cdo.sessions ",
> "cdo", description);
>
> If I start the server and the osgi-framework without the server in
> extra launch-configurations, everything works fine.
>
> Probably you have any hints for me, I have to take care of?
>
> BR,
> Walter


Re: [CDO] TimeoutRuntimeException when trying to open session [message #621898 is a reply to message #502656] Wed, 09 December 2009 14:03 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Walter,

In the future, please ask for CDO support in the EMF newsgroup which
I've added to the recipients.

Is the timeout exception the first one htat appears in the log? I could
imagine that you did *not* deploy the org.eclipse.emf.cdo.net4j plugin
to your server. It's needed for Net4j based client CDOSessions. Can you
give me the list of installed Net4 and CDO plugins on your server? And
which CDO version are you using?

Cheers
/Eike

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



Walter Hargassner schrieb:
> I'm trying to setup an osgi framework including the CDO server and
> some other plugins containing some "business code". I created a launch
> configuration running the application "org.eclipse.emf.cdo.server.app".
>
> The server starts properly and can be accessed by an external CDO
> Client (CDO Sessions View). If I try to open a session from one of the
> bundles containing my business code, it hangs and timesout with the
> following exception:
>
> org.eclipse.net4j.channel.ChannelException:
> org.eclipse.net4j.util.concurrent.TimeoutRuntimeException:
> Registration timeout after 10000 milliseconds
> at
> org.eclipse.spi.net4j.ChannelMultiplexer.openChannel(Channel Multiplexer.java:171)
>
> at
> org.eclipse.spi.net4j.ChannelMultiplexer.openChannel(Channel Multiplexer.java:1)
>
> at
> org.eclipse.net4j.signal.failover.NOOPFailOverStrategy.handl eOpen(NOOPFailOverStrategy.java:53)
>
> at
> ....
>
> I try to open the session with the following code:
>
> boolean automaticPackageRegistry = true;
> String description =
> " tcp://localhost:2036?repositoryName=repo1&automaticPacka geRegistry="
> + Boolean.toString(automaticPackageRegistry);
> cdoSession = (CDOSession)
> IPluginContainer.INSTANCE.getElement("org.eclipse.emf.cdo.sessions ",
> "cdo", description);
>
> If I start the server and the osgi-framework without the server in
> extra launch-configurations, everything works fine.
>
> Probably you have any hints for me, I have to take care of?
>
> BR,
> Walter


Previous Topic:[CDO] TimeoutRuntimeException when trying to open session
Next Topic:[MTF] Proposal
Goto Forum:
  


Current Time: Fri Apr 19 10:53:06 GMT 2024

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

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

Back to the top