Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Re: [CDO] TimeoutRuntimeException when trying to open session
Re: [CDO] TimeoutRuntimeException when trying to open session [message #502710] Wed, 09 December 2009 14:03 Go to next 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 #502715 is a reply to message #502710] Wed, 09 December 2009 14:24 Go to previous messageGo to next message
Walter Hargassner is currently offline Walter HargassnerFriend
Messages: 5
Registered: November 2009
Junior Member
Hi Eike,

sorry, didn't intend to use the e.t.emft newsgroup.

Yes, it is the first exception in the log.

I'm using Eclipse 3.5.1 and CDO 2.0.0.

I've the following bundles (besides my own bundles) installed on my server:


org.eclipse.core.contenttype
org.eclipse.core.expressions
org.eclipse.core.filesystem
org.eclipse.core.jobs
org.eclipse.core.resources
org.eclipse.core runtime
org.eclipse.core.runtime.compatibility.auth
org.eclipse.core.runtime.compatibility.registry
org.eclipse.core.variables
org.eclipse.emf.cdo
org.eclipse.emf.cdo.common
org.eclipse.emf.cdo.server
org.eclipse.emf.common
org.eclipse.emf.ecore
org.eclipse.emf.ecore.xmi
org.eclipse.equinox.app
org.eclipse.equinox.common
org.eclipse.equinox.preferences
org.eclipse.equinox.registry
org.eclipse.net4j
org.eclipse.net4j.tcp
org.eclipse.net4j.util
org.eclipse.osgi
org.eclipse.osgi.services

(and some others that are not of relevance IMHO).

As mentioned before, running it in two separate processes, I have no
problem at all. Somehow it seems to me, as if I have a deadlock somewhere.

BR,
Walter

Eike Stepper schrieb:
> 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 #502790 is a reply to message #502715] Wed, 09 December 2009 17:09 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------070604090404070100090007
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi Walter,

On my laptop I have currently only a 3.0 workspace but maybe you can try
the following snippet from the gastro example (Model.java):

| @Override
*protected **void *doActivate() *throws *Exception
{
*super*.doActivate();
String server = IConfiguration.INSTANCE.getServer();
String repository = IConfiguration.INSTANCE.getRepository();

IConnector connector = (IConnector)IPluginContainer.INSTANCE.getElement( //
"org.eclipse.net4j.connectors", "tcp", server);

CDOSessionConfiguration config = CDONet4jUtil.createSessionConfiguration();
config.setConnector(connector);
config.setRepositoryName(repository);

session = config.openSession();
}|


Does that work? It should, since many of our tests are doing the same
thing, connect to a TCP acceptor in the same VM. By the way, a
JCMConnector should perform better. You'd need a JVMAcceptor then in
addition to your TCPAcceptor.

Cheers
/Eike

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



Walter Hargassner schrieb:
> Hi Eike,
>
> sorry, didn't intend to use the e.t.emft newsgroup.
>
> Yes, it is the first exception in the log.
>
> I'm using Eclipse 3.5.1 and CDO 2.0.0.
>
> I've the following bundles (besides my own bundles) installed on my
> server:
>
>
> org.eclipse.core.contenttype
> org.eclipse.core.expressions
> org.eclipse.core.filesystem
> org.eclipse.core.jobs
> org.eclipse.core.resources
> org.eclipse.core runtime
> org.eclipse.core.runtime.compatibility.auth
> org.eclipse.core.runtime.compatibility.registry
> org.eclipse.core.variables
> org.eclipse.emf.cdo
> org.eclipse.emf.cdo.common
> org.eclipse.emf.cdo.server
> org.eclipse.emf.common
> org.eclipse.emf.ecore
> org.eclipse.emf.ecore.xmi
> org.eclipse.equinox.app
> org.eclipse.equinox.common
> org.eclipse.equinox.preferences
> org.eclipse.equinox.registry
> org.eclipse.net4j
> org.eclipse.net4j.tcp
> org.eclipse.net4j.util
> org.eclipse.osgi
> org.eclipse.osgi.services
>
> (and some others that are not of relevance IMHO).
>
> As mentioned before, running it in two separate processes, I have no
> problem at all. Somehow it seems to me, as if I have a deadlock
> somewhere.
>
> BR,
> Walter
>
> Eike Stepper schrieb:
>> 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

--------------070604090404070100090007
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Walter,<br>
<br>
On my laptop I have currently only a 3.0 workspace but maybe you can
try the following snippet from the gastro example (Model.java):<br>
<br>
<title></title>
<style type="text/css">
<!--code { font-family: Courier New, Courier; font-size: 10pt; margin: 0px; }-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- ======================================================== -->
<!-- = Java Sourcecode to HTML automatically converted code = --><!-- = Java2Html Converter 5.0 [2006-02-26] by Markus Gebhard markus@jave.de = -->
<!-- = Further information: http://www.java2html.de = -->
<div class="java" align="left">
<table bgcolor="#ffffff" border="0" cellpadding="3" cellspacing="0">
<tbody>
<tr>
<!-- start source code --> <td align="left" nowrap="nowrap"
valign="top"> <code><font color="#ffffff">


Re: [CDO] TimeoutRuntimeException when trying to open session [message #502902 is a reply to message #502790] Thu, 10 December 2009 08:33 Go to previous message
Walter Hargassner is currently offline Walter HargassnerFriend
Messages: 5
Registered: November 2009
Junior Member
Hi Eike,

thank you, that works now.

BR,
Walter

Eike Stepper schrieb:
> Hi Walter,
>
> On my laptop I have currently only a 3.0 workspace but maybe you can try
> the following snippet from the gastro example (Model.java):
>
> | @Override
> *protected **void *doActivate() *throws *Exception
> {
> *super*.doActivate();
> String server = IConfiguration.INSTANCE.getServer();
> String repository = IConfiguration.INSTANCE.getRepository();
>
> IConnector connector = (IConnector)IPluginContainer.INSTANCE.getElement( //
> "org.eclipse.net4j.connectors", "tcp", server);
>
> CDOSessionConfiguration config = CDONet4jUtil.createSessionConfiguration();
> config.setConnector(connector);
> config.setRepositoryName(repository);
>
> session = config.openSession();
> }|
>
>
> Does that work? It should, since many of our tests are doing the same
> thing, connect to a TCP acceptor in the same VM. By the way, a
> JCMConnector should perform better. You'd need a JVMAcceptor then in
> addition to your TCPAcceptor.
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
>
> Walter Hargassner schrieb:
>> Hi Eike,
>>
>> sorry, didn't intend to use the e.t.emft newsgroup.
>>
>> Yes, it is the first exception in the log.
>>
>> I'm using Eclipse 3.5.1 and CDO 2.0.0.
>>
>> I've the following bundles (besides my own bundles) installed on my
>> server:
>>
>>
>> org.eclipse.core.contenttype
>> org.eclipse.core.expressions
>> org.eclipse.core.filesystem
>> org.eclipse.core.jobs
>> org.eclipse.core.resources
>> org.eclipse.core runtime
>> org.eclipse.core.runtime.compatibility.auth
>> org.eclipse.core.runtime.compatibility.registry
>> org.eclipse.core.variables
>> org.eclipse.emf.cdo
>> org.eclipse.emf.cdo.common
>> org.eclipse.emf.cdo.server
>> org.eclipse.emf.common
>> org.eclipse.emf.ecore
>> org.eclipse.emf.ecore.xmi
>> org.eclipse.equinox.app
>> org.eclipse.equinox.common
>> org.eclipse.equinox.preferences
>> org.eclipse.equinox.registry
>> org.eclipse.net4j
>> org.eclipse.net4j.tcp
>> org.eclipse.net4j.util
>> org.eclipse.osgi
>> org.eclipse.osgi.services
>>
>> (and some others that are not of relevance IMHO).
>>
>> As mentioned before, running it in two separate processes, I have no
>> problem at all. Somehow it seems to me, as if I have a deadlock
>> somewhere.
>>
>> BR,
>> Walter
>>
>> Eike Stepper schrieb:
>>> 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:java package of an EPackage
Next Topic:Teneo: constraint error using mssql
Goto Forum:
  


Current Time: Fri Apr 26 15:32:24 GMT 2024

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

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

Back to the top