Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] IOTimeoutException
[CDO] IOTimeoutException [message #522226] Sun, 21 March 2010 14:36 Go to next message
Kai Schlamp is currently offline Kai SchlampFriend
Messages: 344
Registered: July 2009
Senior Member
Hello again.

With the current CDO 3 (last stable hudson build) I get the below exception when committing a larger number of objects (around 1000) into the database.
I commit each object on it own, one by one. I am using the DBStore.
Any suggestions what may go wrong here?

org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.RuntimeException)
at org.eclipse.swt.SWT.error(SWT.java:3884)
at org.eclipse.swt.SWT.error(SWT.java:3799)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:137)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3468)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3115)
at org.eclipse.jface.operation.ModalContext$ModalContextThread. block(ModalContext.java:173)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:388)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(Progress MonitorDialog.java:507)
at org.pubcurator.importers.docs.wizards.EutilsWizard.performFi nish(EutilsWizard.java:69)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:752)
at org.pubcurator.core.ui.ExtendedWizardDialog.finishPressed(Ex tendedWizardDialog.java:62)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3493)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3112)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.pubcurator.core.handlers.ImportDocumentsHandler.execute( ImportDocumentsHandler.java:24)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(Handle rProxy.java:294)
at org.eclipse.core.commands.Command.executeWithChecks(Command. java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:169)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.execute Command(SlaveHandlerService.java:241)
at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSel ection(CommandContributionItem.java:770)
at org.eclipse.ui.menus.CommandContributionItem.access$10(Comma ndContributionItem.java:756)
at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(C ommandContributionItem.java:746)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3493)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3112)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.pubcurator.core.Application.start(Application.java:26)
at org.eclipse.swtbot.eclipse.core.UITestApplication.start(UITe stApplication.java:56)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Caused by: java.lang.RuntimeException
at org.eclipse.emf.cdo.internal.net4j.protocol.QueryRequest.con firming(QueryRequest.java:83)
at org.eclipse.emf.cdo.internal.net4j.protocol.QueryRequest.con firming(QueryRequest.java:1)
at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientRequest .confirming(CDOClientRequest.java:85)
at org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI nput(RequestWithConfirmation.java:123)
at org.eclipse.net4j.signal.Signal.doInput(Signal.java:311)
at org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R equestWithConfirmation.java:103)
at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav a:66)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:238)
at org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:428)
at org.eclipse.net4j.signal.RequestWithConfirmation.doSend(Requ estWithConfirmation.java:87)
at org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:73)
at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtoco l.send(CDOClientProtocol.java:350)
at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtoco l.query(CDOClientProtocol.java:190)
at org.eclipse.emf.internal.cdo.query.CDOQueryImpl.getResult(CD OQueryImpl.java:78)
at org.pubcurator.core.sql.DocumentsSql.query(DocumentsSql.java :195)
at org.pubcurator.core.views.DocumentsView.updateDocuments(Docu mentsView.java:388)
at org.pubcurator.importers.docs.operations.FetchOperation$1.ru n(FetchOperation.java:55)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
... 52 more
Caused by: org.eclipse.net4j.util.io.IOTimeoutException
at org.eclipse.net4j.buffer.BufferInputStream.ensureBuffer(Buff erInputStream.java:191)
at org.eclipse.net4j.buffer.BufferInputStream.read(BufferInputS tream.java:104)
at java.io.DataInputStream.readBoolean(DataInputStream.java:225 )
at org.eclipse.net4j.util.io.ExtendedDataInput$Delegating.readB oolean(ExtendedDataInput.java:60)
at org.eclipse.emf.cdo.internal.net4j.protocol.QueryRequest.con firming(QueryRequest.java:64)
... 70 more
Re: [CDO] IOTimeoutException [message #522231 is a reply to message #522226] Sun, 21 March 2010 15:07 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.
--------------080600080304050200060904
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Am 21.03.2010 07:36, schrieb Kai Schlamp:
> Hello again.
>
> With the current CDO 3 (last stable hudson build) I get the below
> exception when committing a larger number of objects (around 1000)
> into the database.
> I commit each object on it own, one by one. I am using the DBStore.
> Any suggestions what may go wrong here?
The stack trace rather implies that you're executing a query, not
committing a transaction. Right?

Have you tried to increase the protocol timeout? See an example in
org.eclipse.emf.cdo.tests.config.impl.SessionConfig.Net4j :

| @Override
*protected **void *configureSession(CDOSession session)
{
((org.eclipse.emf.cdo.net4j.CDOSession)session).options().ge tProtocol().setTimeout(ISignalProtocol.NO_TIMEOUT);
}|


It would help us if you could check whether there's a related FAQ entry
or create one in the wiki ;-)

Cheers
/Eike

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


>
> org.eclipse.swt.SWTException: Failed to execute runnable
> (java.lang.RuntimeException)
> at org.eclipse.swt.SWT.error(SWT.java:3884)
> at org.eclipse.swt.SWT.error(SWT.java:3799)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr
> onizer.java:137)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav
> a:3468)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
> :3115)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.
> block(ModalContext.java:173)
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja
> va:388)
> at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(Progress
> MonitorDialog.java:507)
> at org.pubcurator.importers.docs.wizards.EutilsWizard.performFi
> nish(EutilsWizard.java:69)
> at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi
> alog.java:752)
> at org.pubcurator.core.ui.ExtendedWizardDialog.finishPressed(Ex
> tendedWizardDialog.java:62)
> at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi
> alog.java:373)
> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav
> a:624)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe
> ner.java:228)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja
> va:3493)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
> :3112)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
> at org.eclipse.jface.window.Window.open(Window.java:801)
> at org.pubcurator.core.handlers.ImportDocumentsHandler.execute(
> ImportDocumentsHandler.java:24)
> at org.eclipse.ui.internal.handlers.HandlerProxy.execute(Handle
> rProxy.java:294)
> at org.eclipse.core.commands.Command.executeWithChecks(Command.
> java:476)
> at org.eclipse.core.commands.ParameterizedCommand.executeWithCh
> ecks(ParameterizedCommand.java:508)
> at org.eclipse.ui.internal.handlers.HandlerService.executeComma
> nd(HandlerService.java:169)
> at org.eclipse.ui.internal.handlers.SlaveHandlerService.execute
> Command(SlaveHandlerService.java:241)
> at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSel
> ection(CommandContributionItem.java:770)
> at org.eclipse.ui.menus.CommandContributionItem.access$10(Comma
> ndContributionItem.java:756)
> at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(C
> ommandContributionItem.java:746)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja
> va:3493)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
> :3112)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav
> a:2405)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault
> (Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work
> bench.java:493)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j
> ava:149)
> at org.pubcurator.core.Application.start(Application.java:26)
> at org.eclipse.swtbot.eclipse.core.UITestApplication.start(UITe
> stApplication.java:56)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips
> eAppHandle.java:194)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
> .runApplication(EclipseAppLauncher.java:110)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
> .start(EclipseAppLauncher.java:79)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
> tarter.java:368)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
> tarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
> Caused by: java.lang.RuntimeException
> at org.eclipse.emf.cdo.internal.net4j.protocol.QueryRequest.con
> firming(QueryRequest.java:83)
> at org.eclipse.emf.cdo.internal.net4j.protocol.QueryRequest.con
> firming(QueryRequest.java:1)
> at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientRequest
> .confirming(CDOClientRequest.java:85)
> at org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI
> nput(RequestWithConfirmation.java:123)
> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:311)
> at org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R
> equestWithConfirmation.java:103)
> at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav
> a:66)
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:238)
> at org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr
> otocol.java:428)
> at org.eclipse.net4j.signal.RequestWithConfirmation.doSend(Requ
> estWithConfirmation.java:87)
> at org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques
> tWithConfirmation.java:73)
> at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtoco
> l.send(CDOClientProtocol.java:350)
> at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtoco
> l.query(CDOClientProtocol.java:190)
> at org.eclipse.emf.internal.cdo.query.CDOQueryImpl.getResult(CD
> OQueryImpl.java:78)
> at org.pubcurator.core.sql.DocumentsSql.query(DocumentsSql.java
> :195)
> at org.pubcurator.core.views.DocumentsView.updateDocuments(Docu
> mentsView.java:388)
> at org.pubcurator.importers.docs.operations.FetchOperation$1.ru
> n(FetchOperation.java:55)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr
> onizer.java:134)
> ... 52 more
> Caused by: org.eclipse.net4j.util.io.IOTimeoutException
> at org.eclipse.net4j.buffer.BufferInputStream.ensureBuffer(Buff
> erInputStream.java:191)
> at org.eclipse.net4j.buffer.BufferInputStream.read(BufferInputS
> tream.java:104)
> at java.io.DataInputStream.readBoolean(DataInputStream.java:225 )
> at org.eclipse.net4j.util.io.ExtendedDataInput$Delegating.readB
> oolean(ExtendedDataInput.java:60)
> at org.eclipse.emf.cdo.internal.net4j.protocol.QueryRequest.con
> firming(QueryRequest.java:64)
> ... 70 more

--------------080600080304050200060904
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Am 21.03.2010 07:36, schrieb Kai Schlamp:
<blockquote cite="mid:ho5atn$p8l$1@build.eclipse.org" type="cite">Hello
again.
<br>
<br>
With the current CDO 3 (last stable hudson build) I get the below
exception when committing a larger number of objects (around 1000) into
the database.
<br>
I commit each object on it own, one by one. I am using the DBStore.
<br>
Any suggestions what may go wrong here?
<br>
</blockquote>
The stack trace rather implies that you're executing a query, not
committing a transaction. Right?<br>
<br>
Have you tried to increase the protocol timeout? See an example in
org.eclipse.emf.cdo.tests.config.impl.SessionConfig.Net4j :<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=UTF-8">
<!-- ======================================================== -->
<!-- = 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">    </font><font
color="#646464">@Override</font><br>
<font color="#ffffff">    </font><font color="#7f0055"><b>protected </b></font><font
color="#7f0055"><b>void </b></font><font color="#000000">configureSession</font><font
color="#000000">(</font><font color="#000000">CDOSession session</font><font
color="#000000">)</font><br>
<font color="#ffffff">    </font><font color="#000000">{</font><br>
<font color="#ffffff">      </font><font color="#000000">((</font><font
color="#000000">org.eclipse.emf.cdo.net4j.CDOSession</font ><font
color="#000000">)</font><font color="#000000">session</font><font
color="#000000">)</font><font color="#000000">.options</font><font
color="#000000">()</font><font color="#000000">.getProtocol</font><font
color="#000000">()</font><font color="#000000">.setTimeout</font><font
color="#000000">(<font color="#990000">ISignalProtocol.NO_TIMEOUT</font></font> <font
color="#990000"></font><font color="#000000">)</font><font
color="#000000">;</font><br>
<font color="#ffffff">    </font><font color="#000000">}</font></code>
</td>
<!-- end source code --> </tr>
</tbody>
</table>
</div>
<!-- = END of automatically generated HTML code = -->
<!-- ======================================================== --><br>
It would help us if you could check whether there's a related FAQ entry
or create one in the wiki ;-)<br>
<br>
Cheers<br>
/Eike<br>
<br>
----<br>
<a class="moz-txt-link-freetext" href="http://thegordian.blogspot.com">http://thegordian.blogspot.com</a><br>
<a class="moz-txt-link-freetext" href="http://twitter.com/eikestepper">http://twitter.com/eikestepper</a><br>
<br>
<br>
<blockquote cite="mid:ho5atn$p8l$1@build.eclipse.org" type="cite"><br>
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.RuntimeException)
<br>
    at org.eclipse.swt.SWT.error(SWT.java:3884)
<br>
    at org.eclipse.swt.SWT.error(SWT.java:3799)
<br>
    at  org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr
onizer.java:137)
<br>
    at  org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav
a:3468)
<br>
    at  org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
:3115)
<br>
    at  org.eclipse.jface.operation.ModalContext$ModalContextThread.
block(ModalContext.java:173)
<br>
    at  org.eclipse.jface.operation.ModalContext.run(ModalContext.ja
va:388)
<br>
    at  org.eclipse.jface.dialogs.ProgressMonitorDialog.run(Progress
MonitorDialog.java:507)
<br>
    at  org.pubcurator.importers.docs.wizards.EutilsWizard.performFi
nish(EutilsWizard.java:69)
<br>
    at  org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi
alog.java:752)
<br>
    at  org.pubcurator.core.ui.ExtendedWizardDialog.finishPressed(Ex
tendedWizardDialog.java:62)
<br>
    at  org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi
alog.java:373)
<br>
    at  org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav
a:624)
<br>
    at  org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe
ner.java:228)
<br>
    at  org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
:84)
<br>
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
<br>
    at  org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja
va:3493)
<br>
    at  org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
:3112)
<br>
    at  org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
<br>
    at org.eclipse.jface.window.Window.open(Window.java:801)
<br>
    at  org.pubcurator.core.handlers.ImportDocumentsHandler.execute(
ImportDocumentsHandler.java:24)
<br>
    at  org.eclipse.ui.internal.handlers.HandlerProxy.execute(Handle
rProxy.java:294)
<br>
    at  org.eclipse.core.commands.Command.executeWithChecks(Command.
java:476)
<br>
    at  org.eclipse.core.commands.ParameterizedCommand.executeWithCh
ecks(ParameterizedCommand.java:508)
<br>
    at  org.eclipse.ui.internal.handlers.HandlerService.executeComma
nd(HandlerService.java:169)
<br>
    at  org.eclipse.ui.internal.handlers.SlaveHandlerService.execute
Command(SlaveHandlerService.java:241)
<br>
    at  org.eclipse.ui.menus.CommandContributionItem.handleWidgetSel
ection(CommandContributionItem.java:770)
<br>
    at  org.eclipse.ui.menus.CommandContributionItem.access$10(Comma
ndContributionItem.java:756)
<br>
    at  org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(C
ommandContributionItem.java:746)
<br>
    at  org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
:84)
<br>
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
<br>
    at  org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja
va:3493)
<br>
    at  org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
:3112)
<br>
    at  org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav
a:2405)
<br>
    at  org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
<br>
    at  org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22
21)
<br>
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
<br>
    at  org.eclipse.core.databinding.observable.Realm.runWithDefault
(Realm.java:332)
<br>
    at  org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work
bench.java:493)
<br>
    at  org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j
ava:149)
<br>
    at org.pubcurator.core.Application.start(Application.java:26)
<br>
    at  org.eclipse.swtbot.eclipse.core.UITestApplication.start(UITe
stApplication.java:56)
<br>
    at  org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips
eAppHandle.java:194)
<br>
    at  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
..runApplication(EclipseAppLauncher.java:110)
<br>
    at  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
..start(EclipseAppLauncher.java:79)
<br>
    at  org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
tarter.java:368)
<br>
    at  org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
tarter.java:179)
<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>
    at  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
ssorImpl.java:39)
<br>
    at  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thodAccessorImpl.java:25)
<br>
    at java.lang.reflect.Method.invoke(Method.java:597)
<br>
    at  org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:
559)
<br>
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
<br>
    at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
<br>
    at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
<br>
Caused by: java.lang.RuntimeException
<br>
    at  org.eclipse.emf.cdo.internal.net4j.protocol.QueryRequest.con
firming(QueryRequest.java:83)
<br>
    at  org.eclipse.emf.cdo.internal.net4j.protocol.QueryRequest.con
firming(QueryRequest.java:1)
<br>
    at  org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientRequest
..confirming(CDOClientRequest.java:85)
<br>
    at  org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI
nput(RequestWithConfirmation.java:123)
<br>
    at org.eclipse.net4j.signal.Signal.doInput(Signal.java:311)
<br>
    at  org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R
equestWithConfirmation.java:103)
<br>
    at  org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav
a:66)
<br>
    at org.eclipse.net4j.signal.Signal.runSync(Signal.java:238)
<br>
    at  org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr
otocol.java:428)
<br>
    at  org.eclipse.net4j.signal.RequestWithConfirmation.doSend(Requ
estWithConfirmation.java:87)
<br>
    at  org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques
tWithConfirmation.java:73)
<br>
    at  org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtoco
l.send(CDOClientProtocol.java:350)
<br>
    at  org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtoco
l.query(CDOClientProtocol.java:190)
<br>
    at  org.eclipse.emf.internal.cdo.query.CDOQueryImpl.getResult(CD
OQueryImpl.java:78)
<br>
    at  org.pubcurator.core.sql.DocumentsSql.query(DocumentsSql.java
:195)
<br>
    at  org.pubcurator.core.views.DocumentsView.updateDocuments(Docu
mentsView.java:388)
<br>
    at  org.pubcurator.importers.docs.operations.FetchOperation$1.ru
n(FetchOperation.java:55)
<br>
    at  org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
<br>
    at  org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr
onizer.java:134)
<br>
    ... 52 more
<br>
Caused by: org.eclipse.net4j.util.io.IOTimeoutException
<br>
    at  org.eclipse.net4j.buffer.BufferInputStream.ensureBuffer(Buff
erInputStream.java:191)
<br>
    at  org.eclipse.net4j.buffer.BufferInputStream.read(BufferInputS
tream.java:104)
<br>
    at  java.io.DataInputStream.readBoolean(DataInputStream.java:225 )
<br>
    at  org.eclipse.net4j.util.io.ExtendedDataInput$Delegating.readB
oolean(ExtendedDataInput.java:60)
<br>
    at  org.eclipse.emf.cdo.internal.net4j.protocol.QueryRequest.con
firming(QueryRequest.java:64)
<br>
    ... 70 more
<br>
</blockquote>
</body>
</html>

--------------080600080304050200060904--


Re: [CDO] IOTimeoutException [message #522328 is a reply to message #522231] Mon, 22 March 2010 06:48 Go to previous message
Stefan Winkler is currently offline Stefan WinklerFriend
Messages: 307
Registered: July 2009
Location: Germany
Senior Member
Kai,

I might add that using the DBStore with audit mode and inserting a
collection of 1000s of objects one by one causes
1+2+3+4+5+...+1000 rows in the DB to be created, because for every
revision the collection is written again for the newest revision.
Some databases using their standard configurations might just need some
more time to deal with that. (I for myself have tried with MySQL and for
several millions of objects, the standard parameters lead to really slow
insert/select operations :-( )

If you are ok with slower operations, you can adjust the protocol
timeout (an also be turned of by some NO_TIMEOUT value - should be 0 or
-1, although not advisable for production systems).
An additional solution is to use the range-based audit mapping which has
been implemented recently (doesn't support branching and offline mode,
though).
Thie is the preferrable mapping if you do not do a lot of mid-collection
deletes or inserts.


Cheers,
Stefan



Am 21.03.2010 16:07, schrieb Eike Stepper:
> Am 21.03.2010 07:36, schrieb Kai Schlamp:
>> Hello again.
>>
>> With the current CDO 3 (last stable hudson build) I get the below
>> exception when committing a larger number of objects (around 1000)
>> into the database.
>> I commit each object on it own, one by one. I am using the DBStore.
>> Any suggestions what may go wrong here?
> The stack trace rather implies that you're executing a query, not
> committing a transaction. Right?
>
> Have you tried to increase the protocol timeout? See an example in
> org.eclipse.emf.cdo.tests.config.impl.SessionConfig.Net4j :
>
> | @Override
> *protected **void *configureSession(CDOSession session)
> {
> ((org.eclipse.emf.cdo.net4j.CDOSession)session).options().ge tProtocol().setTimeout(ISignalProtocol.NO_TIMEOUT);
> }|
>
>
> It would help us if you could check whether there's a related FAQ
> entry or create one in the wiki ;-)
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
>>
>> org.eclipse.swt.SWTException: Failed to execute runnable
>> (java.lang.RuntimeException)
>> at org.eclipse.swt.SWT.error(SWT.java:3884)
>> at org.eclipse.swt.SWT.error(SWT.java:3799)
>> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr
>> onizer.java:137)
>> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav
>> a:3468)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
>> :3115)
>> at org.eclipse.jface.operation.ModalContext$ModalContextThread.
>> block(ModalContext.java:173)
>> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja
>> va:388)
>> at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(Progress
>> MonitorDialog.java:507)
>> at org.pubcurator.importers.docs.wizards.EutilsWizard.performFi
>> nish(EutilsWizard.java:69)
>> at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi
>> alog.java:752)
>> at org.pubcurator.core.ui.ExtendedWizardDialog.finishPressed(Ex
>> tendedWizardDialog.java:62)
>> at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi
>> alog.java:373)
>> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav
>> a:624)
>> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe
>> ner.java:228)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
>> :84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja
>> va:3493)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
>> :3112)
>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
>> at org.eclipse.jface.window.Window.open(Window.java:801)
>> at org.pubcurator.core.handlers.ImportDocumentsHandler.execute(
>> ImportDocumentsHandler.java:24)
>> at org.eclipse.ui.internal.handlers.HandlerProxy.execute(Handle
>> rProxy.java:294)
>> at org.eclipse.core.commands.Command.executeWithChecks(Command.
>> java:476)
>> at org.eclipse.core.commands.ParameterizedCommand.executeWithCh
>> ecks(ParameterizedCommand.java:508)
>> at org.eclipse.ui.internal.handlers.HandlerService.executeComma
>> nd(HandlerService.java:169)
>> at org.eclipse.ui.internal.handlers.SlaveHandlerService.execute
>> Command(SlaveHandlerService.java:241)
>> at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSel
>> ection(CommandContributionItem.java:770)
>> at org.eclipse.ui.menus.CommandContributionItem.access$10(Comma
>> ndContributionItem.java:756)
>> at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(C
>> ommandContributionItem.java:746)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
>> :84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja
>> va:3493)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
>> :3112)
>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav
>> a:2405)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
>> at org.eclipse.core.databinding.observable.Realm.runWithDefault
>> (Realm.java:332)
>> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work
>> bench.java:493)
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j
>> ava:149)
>> at org.pubcurator.core.Application.start(Application.java:26)
>> at org.eclipse.swtbot.eclipse.core.UITestApplication.start(UITe
>> stApplication.java:56)
>> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips
>> eAppHandle.java:194)
>> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
>> .runApplication(EclipseAppLauncher.java:110)
>> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
>> .start(EclipseAppLauncher.java:79)
>> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
>> tarter.java:368)
>> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
>> tarter.java:179)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:39)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:
>> 559)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
>> Caused by: java.lang.RuntimeException
>> at org.eclipse.emf.cdo.internal.net4j.protocol.QueryRequest.con
>> firming(QueryRequest.java:83)
>> at org.eclipse.emf.cdo.internal.net4j.protocol.QueryRequest.con
>> firming(QueryRequest.java:1)
>> at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientRequest
>> .confirming(CDOClientRequest.java:85)
>> at org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI
>> nput(RequestWithConfirmation.java:123)
>> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:311)
>> at org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R
>> equestWithConfirmation.java:103)
>> at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav
>> a:66)
>> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:238)
>> at org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr
>> otocol.java:428)
>> at org.eclipse.net4j.signal.RequestWithConfirmation.doSend(Requ
>> estWithConfirmation.java:87)
>> at org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques
>> tWithConfirmation.java:73)
>> at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtoco
>> l.send(CDOClientProtocol.java:350)
>> at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtoco
>> l.query(CDOClientProtocol.java:190)
>> at org.eclipse.emf.internal.cdo.query.CDOQueryImpl.getResult(CD
>> OQueryImpl.java:78)
>> at org.pubcurator.core.sql.DocumentsSql.query(DocumentsSql.java
>> :195)
>> at org.pubcurator.core.views.DocumentsView.updateDocuments(Docu
>> mentsView.java:388)
>> at org.pubcurator.importers.docs.operations.FetchOperation$1.ru
>> n(FetchOperation.java:55)
>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr
>> onizer.java:134)
>> ... 52 more
>> Caused by: org.eclipse.net4j.util.io.IOTimeoutException
>> at org.eclipse.net4j.buffer.BufferInputStream.ensureBuffer(Buff
>> erInputStream.java:191)
>> at org.eclipse.net4j.buffer.BufferInputStream.read(BufferInputS
>> tream.java:104)
>> at java.io.DataInputStream.readBoolean(DataInputStream.java:225 )
>> at org.eclipse.net4j.util.io.ExtendedDataInput$Delegating.readB
>> oolean(ExtendedDataInput.java:60)
>> at org.eclipse.emf.cdo.internal.net4j.protocol.QueryRequest.con
>> firming(QueryRequest.java:64)
>> ... 70 more
Previous Topic:Yet another model repository
Next Topic:[EMF Compare] ModelElementChangeRightTarget when element added on the left ?
Goto Forum:
  


Current Time: Tue Apr 23 12:52:45 GMT 2024

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

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

Back to the top