Task #10431 (closed)
Opened 11 years ago
Closed 11 years ago
Bug: OMERO.tables addData returns an InternalException when called on an uninitialised table
Reported by: | spli | Owned by: | spli |
---|---|---|---|
Priority: | major | Milestone: | OMERO-4.4.7 |
Component: | API | Version: | n.a. |
Keywords: | n.a. | Cc: | analysis@… |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | 0.0d |
Sprint: | Bugs Fixing |
Description
> res.newTable(1,'/test.h5') > t.addData([omero.grid.LongColumn('a','a',[0])]) InternalException: exception ::omero::InternalException { serverStackTrace = Traceback (most recent call last): File "/Users/simon/work/openmicroscopy/dist/lib/python/omero/util/decorators.py", line 61, in exc_handler rv = func(*args, **kwargs) File "/Users/simon/work/openmicroscopy/dist/lib/python/omero/util/decorators.py", line 28, in handler return func(*args, **kwargs) File "/Users/simon/work/openmicroscopy/dist/lib/python/omero/tables.py", line 677, in addData self.storage.append(cols) File "/Users/simon/work/openmicroscopy/dist/lib/python/omero/util/decorators.py", line 81, in with_lock return func(*args, **kwargs) File "/Users/simon/work/openmicroscopy/dist/lib/python/omero/tables.py", line 381, in append self.__mea.append(records) AttributeError: 'NoneType' object has no attribute 'append' serverExceptionClass = message = Internal exception }
Instead it should return a more informative error, for example
> t.getHeaders() ApiUsageException: exception ::omero::ApiUsageException { serverStackTrace = serverExceptionClass = message = Not yet initialized }
Change History (4)
comment:1 Changed 11 years ago by jburel
- Sprint set to Bugs Fixing
comment:2 Changed 11 years ago by spli
- Status changed from new to accepted
comment:3 Changed 11 years ago by spli
- Remaining Time set to 0.2
comment:4 Changed 11 years ago by spli
- Remaining Time changed from 0.2 to 0
- Resolution set to fixed
- Status changed from accepted to closed
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
https://github.com/openmicroscopy/openmicroscopy/pull/801
https://github.com/openmicroscopy/openmicroscopy/pull/818