<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Thanks Will.</p>
<br>
<div class="moz-cite-prefix">On 26/04/2017 11:16, William Moore
(Staff) wrote:<br>
</div>
<blockquote type="cite"
cite="mid:061C29A5-B2E3-4919-9692-D9A744CAC7EB@dundee.ac.uk">
Hi Paul,
<div class=""><br class="">
</div>
<div class="">
<div class=""> You can enable the keepAlive on the client object
with</div>
<div class="">conn.c.enableKeepAlive(300)</div>
<div class="">See 5.2 docs: <a
href="https://downloads.openmicroscopy.org/omero/5.2.0/api/omero/client.html#enableKeepAlive-int-"
class="" moz-do-not-send="true">
https://downloads.openmicroscopy.org/omero/5.2.0/api/omero/client.html#enableKeepAlive-int-</a><br>
</div>
</div>
</blockquote>
<blockquote type="cite"
cite="mid:061C29A5-B2E3-4919-9692-D9A744CAC7EB@dundee.ac.uk">
<div class="">
<div class=""><br class="">
</div>
<div class="">Also you can set this in the etc/omero.properties
file.</div>
<div class="">See discussion at <a
href="https://www.openmicroscopy.org/community/viewtopic.php?f=6&t=495"
class="" moz-do-not-send="true">
https://www.openmicroscopy.org/community/viewtopic.php?f=6&t=495</a>
</div>
</div>
<div class=""><br class="">
</div>
</blockquote>
<br>
My settings are:<br>
<br>
# Sets the duration of inactivity in milliseconds after which<br>
# a login is required.<br>
omero.sessions.timeout=600000<br>
omero.sessions.maximum=0<br>
omero.sessions.sync_interval=120000<br>
omero.sessions.sync_force=1800000<br>
<blockquote type="cite"
cite="mid:061C29A5-B2E3-4919-9692-D9A744CAC7EB@dundee.ac.uk">
<div class="">
</div>
<div class="">Hope that helps,</div>
<div class=""><br class="">
</div>
<div class=""> Will.</div>
</blockquote>
I now get the following exception.<br>
<br>
Traceback (most recent call last):<br>
File
"/Users/pkorir/omero/OMERO.server/lib/python/omero/gateway/__init__.py",
line 4212, in __call__<br>
return self.f(*args, **kwargs)<br>
File
"/Users/pkorir/omero/OMERO.server/lib/python/omero_api_IUpdate_ice.py",
line 107, in saveObject<br>
return _M_omero.api.IUpdate._op_saveObject.invoke(self, ((obj,
), _ctx))<br>
SocketException: Ice.SocketException:<br>
Protocol wrong type for socket<br>
Thu Apr 27 12:33:56 2017 Closing the connection...<br>
Thu Apr 27 12:33:56 2017 Deleting ROIHandler instance... OK<br>
WARNING:omero.client:Cannot get session service for killSession.
Using closeSession<br>
Thu Apr 27 12:33:56 2017 Connection closed.<br>
Traceback (most recent call last):<br>
File "/Users/pkorir/VirtualEnvs/sfftk/bin/sffp", line 11, in
<module><br>
load_entry_point('sfftk-plus', 'console_scripts', 'sffp')()<br>
File
"/Users/pkorir/Documents/workspace/bioimaging-scripts/trunk/sfftk-plus/sfftkplus/sffplus.py",
line 460, in main<br>
return handle_attachroi(args)<br>
File
"/Users/pkorir/Documents/workspace/bioimaging-scripts/trunk/sfftk-plus/sfftkplus/sffplus.py",
line 381, in handle_attachroi<br>
omero_connection.saveRoi(roi)<br>
File
"/Users/pkorir/Documents/workspace/bioimaging-scripts/trunk/sfftk-plus/sfftkplus/omero/handlers.py",
line 149, in saveRoi<br>
updateService.saveObject(roi)<br>
File
"/Users/pkorir/omero/OMERO.server/lib/python/omero/gateway/__init__.py",
line 4215, in __call__<br>
return self.handle_exception(e, *args, **kwargs)<br>
File
"/Users/pkorir/omero/OMERO.server/lib/python/omero/gateway/__init__.py",
line 4212, in __call__<br>
return self.f(*args, **kwargs)<br>
File
"/Users/pkorir/omero/OMERO.server/lib/python/omero_api_IUpdate_ice.py",
line 107, in saveObject<br>
return _M_omero.api.IUpdate._op_saveObject.invoke(self, ((obj,
), _ctx))<br>
Ice.SocketException: Ice.SocketException:<br>
Protocol wrong type for socket<br>
<br>
<pre class="moz-signature" cols="72">--
Paul K. Korir, PhD
Scientific Programmer
EMBL-EBI
01223494422</pre>
</body>
</html>