Task #9024 (closed)
Opened 7 years ago
Closed 7 years ago
Bug: Script integration tests failing
| Reported by: | sbesson | Owned by: | jamoore |
|---|---|---|---|
| Priority: | major | Milestone: | OMERO-4.4 |
| Component: | General | Version: | n.a. |
| Keywords: | n.a. | Cc: | |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | n.a. |
| Sprint: | n.a. |
Description
Script integration tests run on a local server (67f450c).
./build.py -f components/tools/OmeroPy/build.xml test -DTEST test.integration.scripts
Half of the tests failed when calling omero.processor.usermode_processor.
Error can be reproduced with
import omero
import omero.processor
client = omero.client("localhost")
client.createSession("test","omero")
impl = omero.processor.usermode_processor(client)
returns
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/sebastien/code/openmicroscopy/dist/lib/python/omero/processor.py", line 924, in usermode_processor
ctx.add_servant(client.adapter, impl)
File "/Users/sebastien/code/openmicroscopy/dist/lib/python/omero/util/decorators.py", line 81, in with_lock
return func(*args, **kwargs)
File "/Users/sebastien/code/openmicroscopy/dist/lib/python/omero/util/__init__.py", line 285, in add_servant
servant.setProxy(prx)
File "/Users/sebastien/code/openmicroscopy/dist/lib/python/omero/processor.py", line 679, in setProxy
self.register_session(session)
File "/Users/sebastien/code/openmicroscopy/dist/lib/python/omero/processor.py", line 712, in register_session
session.sharedResources().addProcessor(prx)
File "/Users/sebastien/code/openmicroscopy/dist/lib/python/omero_SharedResources_ice.py", line 89, in addProcessor
return _M_omero.grid.SharedResources._op_addProcessor.invoke(self, ((proc, ), _ctx))
Ice.ObjectNotExistException: exception ::Ice::ObjectNotExistException
{
id =
{
name = 61BD8915-3822-4360-85F5-0E6A3FA584C6
category =
}
facet =
operation = ice_id
}
Change History (2)
comment:1 Changed 7 years ago by jmoore
- Cc jmoore removed
- Owner set to jmoore
comment:2 Changed 7 years ago by jmoore
- Resolution set to fixed
- Status changed from new to closed
Merged and pushed to sprint17-bugfixes:
21cd5fe - (processor-fixes) Use client.getCategory() throughout processor.py (See #2485, #9024) (74 minutes ago) <jmoore> 6aad1a4 - Fix usermode_processor hang on simple server call (74 minutes ago) <jmoore> f686cd2 - Fix NPE on ProcessorCallbackI.close (74 minutes ago) <jmoore> 87af0e2 - Propagate Current.ctx throughout ScriptI (See #8121) (74 minutes ago) <jmoore> 536c4e5 - User client.getCategory for usermode_processor (See #2485) (74 minutes ago) <jmoore>
There are still some failing tests but no longer due to this issue.
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
This may be related to #2485