Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

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

Very simple

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.

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.71482 sec.)

We're Hiring!