Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » CDO Timeout Exception
CDO Timeout Exception [message #1408566] Fri, 15 August 2014 12:20 Go to next message
UmaShankar Subramani is currently offline UmaShankar SubramaniFriend
Messages: 194
Registered: December 2011
Location: SWEDEN
Senior Member
When I am debugging CDO 4.2.1 I get the following Timeout exception(Given below):

As far as I know, I should include the following piece of code to my source, to increace the timeout value. But I donot know where to add this code.

((org.eclipse.emf.cdo.net4j.CDOSession)session).options().getProtocol().setTimeout(1000000000);


!ENTRY org.eclipse.net4j 4 0 2014-08-10 23:05:36.680
!MESSAGE org.eclipse.net4j.util.concurrent.TimeoutRuntimeException: Timeout after 10001 millis
!STACK 0
org.eclipse.net4j.util.om.monitor.MonitorCanceledException: org.eclipse.net4j.util.concurrent.TimeoutRuntimeException: Timeout after 10001 millis
at org.eclipse.net4j.util.om.monitor.Monitor.checkCanceled(Monitor.java:56)
at org.eclipse.net4j.util.om.monitor.TimeoutMonitor.checkCanceled(TimeoutMonitor.java:116)
at org.eclipse.net4j.util.om.monitor.NestedMonitor.checkCanceled(NestedMonitor.java:55)
at org.eclipse.net4j.util.om.monitor.NestedMonitor.checkCanceled(NestedMonitor.java:55)
at org.eclipse.net4j.util.om.monitor.NestedMonitor.checkCanceled(NestedMonitor.java:55)
at org.eclipse.net4j.util.om.monitor.AbstractMonitor.begin(AbstractMonitor.java:47)
at org.eclipse.net4j.util.om.monitor.NestedMonitor.begin(NestedMonitor.java:61)
at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(ProgressDistributor.java:87)
at org.eclipse.emf.cdo.internal.server.Repository.commitUnsynced(Repository.java:993)
at org.eclipse.emf.cdo.internal.server.Repository.commit(Repository.java:986)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicatingCommit(CommitTransactionIndication.java:315)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicating(CommitTransactionIndication.java:100)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndicationWithMonitoring.indicating(CDOServerIndicationWithMonitoring.java:110)
at org.eclipse.net4j.signal.IndicationWithMonitoring.indicating(IndicationWithMonitoring.java:87)
at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedInput(IndicationWithResponse.java:92)
at org.eclipse.net4j.signal.Signal.doInput(Signal.java:328)
at org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:65)
at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(IndicationWithMonitoring.java:66)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:253)
at org.eclipse.net4j.signal.Signal.run(Signal.java:149)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

[Updated on: Fri, 15 August 2014 08:18]
Re: CDO Timeout Exception [message #1409476 is a reply to message #1408566] Mon, 18 August 2014 07:44 Go to previous message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi UmaShankar,

You can put it just after the CDOSession opening.

Best Regards.

Le 15/08/2014 14:20, UmaShankar Subramani a écrit :
> When I am debugging CDO 4.2.1 I get the following Timeout
> exception(Given below):
>
> As far as I know, I should include the following piece of code to my
> source, to increace the timeout value. But I donot know where to add
> this code.
>
> ((org.eclipse.emf.cdo.net4j.CDOSession)session).options().getProtocol().setTimeout(1000000000);
>
>
>
> !ENTRY org.eclipse.net4j 4 0 2014-08-10 23:05:36.680
> !MESSAGE org.eclipse.net4j.util.concurrent.TimeoutRuntimeException:
> Timeout after 10001 millis
> !STACK 0
> org.eclipse.net4j.util.om.monitor.MonitorCanceledException:
> org.eclipse.net4j.util.concurrent.TimeoutRuntimeException: Timeout after
> 10001 millis
> at org.eclipse.net4j.util.om.monitor.Monitor.checkCanceled(Monitor.java:56)
> at
> org.eclipse.net4j.util.om.monitor.TimeoutMonitor.checkCanceled(TimeoutMonitor.java:116)
>
> at
> org.eclipse.net4j.util.om.monitor.NestedMonitor.checkCanceled(NestedMonitor.java:55)
>
> at
> org.eclipse.net4j.util.om.monitor.NestedMonitor.checkCanceled(NestedMonitor.java:55)
>
> at
> org.eclipse.net4j.util.om.monitor.NestedMonitor.checkCanceled(NestedMonitor.java:55)
>
> at
> org.eclipse.net4j.util.om.monitor.AbstractMonitor.begin(AbstractMonitor.java:47)
>
> at
> org.eclipse.net4j.util.om.monitor.NestedMonitor.begin(NestedMonitor.java:61)
>
> at
> org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(ProgressDistributor.java:87)
>
> at
> org.eclipse.emf.cdo.internal.server.Repository.commitUnsynced(Repository.java:993)
>
> at
> org.eclipse.emf.cdo.internal.server.Repository.commit(Repository.java:986)
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicatingCommit(CommitTransactionIndication.java:315)
>
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicating(CommitTransactionIndication.java:100)
>
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndicationWithMonitoring.indicating(CDOServerIndicationWithMonitoring.java:110)
>
> at
> org.eclipse.net4j.signal.IndicationWithMonitoring.indicating(IndicationWithMonitoring.java:87)
>
> at
> org.eclipse.net4j.signal.IndicationWithResponse.doExtendedInput(IndicationWithResponse.java:92)
>
> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:328)
> at
> org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:65)
>
> at
> org.eclipse.net4j.signal.IndicationWithMonitoring.execute(IndicationWithMonitoring.java:66)
>
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:253)
> at org.eclipse.net4j.signal.Signal.run(Signal.java:149)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> [Updated on: Fri, 15 August 2014 08:18]
>


--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:EMF code to add copied package into another package.
Next Topic:Hiding menu items from context menu of generated editor
Goto Forum:
  


Current Time: Tue Nov 21 04:18:01 GMT 2017

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

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