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 #2733 (closed)

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

BUG: ClassCastException on getShare

Reported by: omero-qa Owned by: jamoore
Priority: critical Milestone: OMERO-Beta4.2.1
Component: from QA Version: 4.1
Keywords: n.a. Cc: ecalexander2@…, noc@…, m.woodbridge@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2010-10-28 (18)

Description (last modified by jmoore)

http://qa.openmicroscopy.org.uk/qa/feedback/2657/

Comment: Tried to share image with someone in my same group.

Traceback (most recent call last):

  File "/home/omero/omero/lib/python/django/core/handlers/base.py", line 92, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/home/omero/omero/lib/python/omeroweb/webclient/views.py", line 166, in wrapped
    sh = conn.getShare(share_id)

  File "/home/omero/omero/lib/python/omeroweb/extlib/gateway.py", line 1050, in getShare
    sh = sh_serv.getShare(long(oid))

  File "/home/omero/omero/lib/python/omero/gateway/__init__.py", line 1841, in wrapped
    return inner(*args, **kwargs)

  File "/home/omero/omero/lib/python/omero/gateway/__init__.py", line 1774, in inner
    return f(*args, **kwargs)

  File "/home/omero/omero/lib/python/omero_api_IShare_ice.py", line 131, in getShare
    return _M_omero.api.IShare._op_getShare.invoke(self, ((shareId, ), _ctx))

InternalException: exception ::omero::InternalException
{
    serverStackTrace = java.lang.IllegalArgumentException: java.lang.ClassCastException@1f72ad0
	at sun.reflect.GeneratedMethodAccessor1535.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at ome.services.throttling.Task.response(Task.java:63)
	at ome.services.throttling.Callback.run(Callback.java:57)
	at ome.services.throttling.InThreadThrottlingStrategy.callInvokerOnRawArgs(InThreadThrottlingStrategy.java:56)
	at ome.services.blitz.impl.AbstractAmdServant.callInvokerOnRawArgs(AbstractAmdServant.java:132)
	at ome.services.blitz.impl.ShareI.getShare_async(ShareI.java:227)
	at omero.api._IShareTie.getShare_async(_IShareTie.java:268)
	at omero.api._IShareDisp.___getShare(_IShareDisp.java:410)
	at omero.api._IShareDisp.__dispatch(_IShareDisp.java:1473)
	at IceInternal.Incoming.invoke(Incoming.java:159)
	at Ice.ConnectionI.invokeAll(ConnectionI.java:2037)
	at Ice.ConnectionI.message(ConnectionI.java:972)
	at IceInternal.ThreadPool.run(ThreadPool.java:577)
	at IceInternal.ThreadPool.access$100(ThreadPool.java:12)
	at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:971)

    serverExceptionClass = java.lang.IllegalArgumentException
    message = Failed to invoke: ome.services.throttling.Callback@a1bbeb2 (omero.api._AMD_IShare_getShare@23849d4d )
}


<ModPythonRequest
path:/webclient/load_public/2846/,
GET:<QueryDict: {u'view': [u'icon']}>,
POST:<QueryDict: {}>,
COOKIES:{'SESS2b5a35389e232c6e04e008dfa5cd1e21': '3323f5f0685709f555d3970cc88ed07b',
 'sessionid': 'f418c438bb31dd1d822c349dc85e52a8'},
META:{'AUTH_TYPE': None,
 'CONTENT_LENGTH': 0,
 'CONTENT_TYPE': None,
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'text/html, */*',
 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
 'HTTP_ACCEPT_LANGUAGE': 'en-us',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'SESS2b5a35389e232c6e04e008dfa5cd1e21=3323f5f0685709f555d3970cc88ed07b; sessionid=f418c438bb31dd1d822c349dc85e52a8',
 'HTTP_HOST': 'open.microscopy.wisc.edu',
 'HTTP_REFERER': 'http://open.microscopy.wisc.edu/webclient/public/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/531.21.11 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10',
 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
 'PATH_INFO': u'/webclient/load_public/2846/',
 'PATH_TRANSLATED': None,
 'QUERY_STRING': 'view=icon',
 'REMOTE_ADDR': '144.92.48.236',
 'REMOTE_HOST': None,
 'REMOTE_IDENT': None,
 'REMOTE_USER': None,
 'REQUEST_METHOD': 'GET',
 'SCRIPT_NAME': '',
 'SERVER_NAME': 'open.microscopy.wisc.edu',
 'SERVER_PORT': 80,
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SOFTWARE': 'mod_python'}>

Change History (21)

comment:1 Changed 14 years ago by atarkowska

  • Milestone changed from Unscheduled to OMERO-Beta4.2.1
  • Owner changed from atarkowska to jmoore
  • Sprint set to 2010-08-26 (15)

comment:2 Changed 14 years ago by atarkowska

  • Cc noc@… m.woodbridge@… added

comment:3 Changed 14 years ago by jburel

  • Sprint changed from 2010-08-26 (15) to 2010-09-09 (16)

comment:4 Changed 14 years ago by jmoore

  • Summary changed from BUG:Feedback 2657 to BUG: ClassCastException on getShare

Are we able to reproduce this?

comment:5 Changed 14 years ago by atarkowska

yes, but now is

exception ::omero::InternalException
{
    serverStackTrace = java.lang.IllegalArgumentException: argument type mismatch
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at ome.services.throttling.Task.response(Task.java:63)
	at ome.services.throttling.Callback.run(Callback.java:57)
	at ome.services.throttling.InThreadThrottlingStrategy.callInvokerOnRawArgs(InThreadThrottlingStrategy.java:56)
	at ome.services.blitz.impl.AbstractAmdServant.callInvokerOnRawArgs(AbstractAmdServant.java:133)
	at ome.services.blitz.impl.ShareI.getShare_async(ShareI.java:227)
	at omero.api._IShareTie.getShare_async(_IShareTie.java:268)
	at omero.api._IShareDisp.___getShare(_IShareDisp.java:410)
	at omero.api._IShareDisp.__dispatch(_IShareDisp.java:1473)
	at IceInternal.Incoming.invoke(Incoming.java:159)
	at Ice.ConnectionI.invokeAll(ConnectionI.java:2037)
	at Ice.ConnectionI.message(ConnectionI.java:972)
	at IceInternal.ThreadPool.run(ThreadPool.java:577)
	at IceInternal.ThreadPool.access$100(ThreadPool.java:12)
	at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:971)

    serverExceptionClass = java.lang.IllegalArgumentException
    message = Failed to invoke: ome.services.throttling.Callback@c3a4a5 (omero.api._AMD_IShare_getShare@6e6836 )
}

comment:6 Changed 14 years ago by atarkowska

that error happened in r8085

comment:7 Changed 14 years ago by jmoore

  • Remaining Time set to 0.5

comment:8 Changed 14 years ago by cxallan

  • Priority changed from minor to critical

comment:9 Changed 14 years ago by jmoore

  • Owner jmoore deleted

comment:10 Changed 14 years ago by atarkowska

(In [8150]) test, see #2733

comment:11 Changed 14 years ago by jmoore

(In [8158]) Beginning of ShareITest (See #2733)

comment:12 Changed 14 years ago by jburel

  • Sprint changed from 2010-09-09 (16) to 2010-09-30 (17)

comment:13 Changed 14 years ago by jmoore

  • Description modified (diff)
  • Owner set to jmoore
  • Status changed from new to assigned

comment:14 Changed 14 years ago by jmoore

(In [8304]) Intermediate fix for ClassCastException in `IShare.getShare (See #2733)

This was caused by r7501. Before this can be accepted, though, tests
must be added to define who should be allowed to load the share objects.
(See the line marked "pass")

comment:15 Changed 14 years ago by jmoore

  • Owner jmoore deleted
  • Status changed from assigned to new

comment:16 Changed 14 years ago by jburel

  • Sprint changed from 2010-09-30 (17) to 2010-10-28 (18)

Moved from sprint 2010-09-30 (17)

comment:17 Changed 14 years ago by jmoore

  • Owner set to jmoore

comment:18 Changed 14 years ago by jmoore

  • Remaining Time changed from 0.5 to 0.25

comment:19 Changed 14 years ago by jmoore

  • Status changed from new to assigned

comment:20 Changed 14 years ago by jmoore

  • Remaining Time changed from 0.25 to 0
  • Resolution set to fixed
  • Status changed from assigned to closed

(In [8357]) Unloading Share unless passed out of ShareBean or SessionManagerImpl (Fix #2733)

comment:21 Changed 14 years ago by jmoore

(In [8439]) Adding 2733 to shares more extensively (Fix #3214, See #2733)

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.69530 sec.)

We're Hiring!