Task #3977 (closed)
Opened 13 years ago
Closed 13 years ago
Bug: some dbs returns different array types
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | critical | Milestone: | OMERO-Beta4.3 |
Component: | ORM | Version: | n.a. |
Keywords: | n.a. | Cc: | |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | 0.0d |
Sprint: | 2011-01-27 (4) |
Description
See #2290
May also be related to #3969 based on string-array (or clob) change
The fix put in for String arrays fails for other databases. An abstract method may need to parse the arrays for each database type.
/Users/moore/GlencoeSoftware.git/git/omero.git/dist/tag.py in <module>() 36 37 link_annotation(id1, tag) ---> 38 link_annotation(id2, tag) 39 40 /Users/moore/GlencoeSoftware.git/git/omero.git/dist/tag.py in link_annotation(image_id, tag) 32 link = omero.model.ImageAnnotationLinkI() 33 link.link(image, tag) ---> 34 link = u.saveAndReturnObject(link) 35 return link
causes
serverExceptionClass = ome.conditions.InternalException message = Wrapped Exception: (java.lang.RuntimeException): ticket:2290 - bad array type: [Ljava.lang.Object;@34b70082
Change History (5)
comment:1 Changed 13 years ago by jmoore
comment:2 Changed 13 years ago by jmoore
- Remaining Time set to 0.25
comment:3 Changed 13 years ago by jmoore
- Status changed from new to accepted
comment:4 Changed 13 years ago by jmoore
- Status changed from accepted to new
comment:5 Changed 13 years ago by jmoore
- Remaining Time changed from 0.25 to 0
- Resolution set to fixed
- Status changed from new to closed
Very simple fix, to just check for empty arrays and if so, return String[][]. Commit will be sent with the story branch.
Very simple