Task #2455 (closed)
Opened 9 years ago
Closed 9 years ago
BUG: Tagging
| Reported by: | wmoore | Owned by: | atarkowska |
|---|---|---|---|
| Priority: | minor | Milestone: | OMERO-Beta4.2 |
| Component: | General | Version: | n.a. |
| Keywords: | n.a. | Cc: | |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | 0.0d |
| Sprint: | 2010-06-24 (12) |
Description (last modified by wmoore)
I tried selecting multiple images to tag, some of these I'd already tagged. Chose an existing tag from the list and hit save.
Stack trace below.
Change History (6)
comment:1 Changed 9 years ago by wmoore
comment:2 Changed 9 years ago by wmoore
- Description modified (diff)
- Owner set to atarkowska
comment:3 Changed 9 years ago by cxallan
- Sprint changed from 2010-05-27 (10) to 2010-06-10 (11)
comment:4 Changed 9 years ago by atarkowska
- Status changed from new to assigned
comment:5 Changed 9 years ago by jburel
- Sprint changed from 2010-06-10 (11) to 2010-06-24 (12)
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
Traceback (most recent call last): File "/Users/will/Documents/workspace/Omero/dist/lib/python/django/core/handlers/base.py", line 92, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/Users/will/Documents/workspace/Omero/dist/lib/python/omeroweb/webclient/views.py", line 178, in wrapped return f(request, *args, **kwargs) File "/Users/will/Documents/workspace/Omero/dist/lib/python/omeroweb/webclient/views.py", line 1041, in manage_annotation_multi manager.createAnnotationsLinks('tag', tags, oids) File "/Users/will/Documents/workspace/Omero/dist/lib/python/omeroweb/webclient/controller/container.py", line 661, in createAnnotationsLinks self.conn.saveArray(new_links) File "/Users/will/Documents/workspace/Omero/dist/lib/python/omeroweb/extlib/gateway.py", line 1504, in saveArray u.saveArray(objs) File "/Users/will/Documents/workspace/Omero/dist/lib/python/omero/gateway/__init__.py", line 1787, in wrapped return inner(*args, **kwargs) File "/Users/will/Documents/workspace/Omero/dist/lib/python/omero/gateway/__init__.py", line 1748, in inner return f(*args, **kwargs) File "/Users/will/Documents/workspace/Omero/dist/lib/python/omero_api_IUpdate_ice.py", line 103, in saveArray return _M_omero.api.IUpdate._op_saveArray.invoke(self, ((graph, ), _ctx)) ValidationException: exception ::omero::ValidationException { serverStackTrace = ome.conditions.ValidationException: could not insert: [ome.model.annotations.ImageAnnotationLink]; SQL [insert into imageannotationlink (child, creation_id, external_id, group_id, owner_id, permissions, update_id, parent, version, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; constraint [imageannotationlink_parent_key]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [ome.model.annotations.ImageAnnotationLink] at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:637) at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412) at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:117) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:108) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:175) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:111) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy66.saveArray(Unknown Source) 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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at ome.security.basic.BasicSecurityWiring.invoke(BasicSecurityWiring.java:83) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at ome.services.blitz.fire.AopContextInitializer.invoke(AopContextInitializer.java:40) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy66.saveArray(Unknown Source) 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.blitz.util.IceMethodInvoker.invoke(IceMethodInvoker.java:179) at ome.services.throttling.Callback.run(Callback.java:56) at ome.services.throttling.InThreadThrottlingStrategy.callInvokerOnRawArgs(InThreadThrottlingStrategy.java:56) at ome.services.blitz.impl.AbstractAmdServant.callInvokerOnRawArgs(AbstractAmdServant.java:132) at ome.services.blitz.impl.UpdateI.saveArray_async(UpdateI.java:70) at omero.api._IUpdateTie.saveArray_async(_IUpdateTie.java:99) at omero.api._IUpdateDisp.___saveArray(_IUpdateDisp.java:207) at omero.api._IUpdateDisp.__dispatch(_IUpdateDisp.java:369) 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 = ome.conditions.ValidationException message = could not insert: [ome.model.annotations.ImageAnnotationLink]; SQL [insert into imageannotationlink (child, creation_id, external_id, group_id, owner_id, permissions, update_id, parent, version, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; constraint [imageannotationlink_parent_key]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [ome.model.annotations.ImageAnnotationLink] } <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {u'description': [u''], u'tags': [u'3254'], u'image': [u'1969', u'1980'], u'content': [u''], u'tag': [u''], u'annotation_file': [u'']}>, COOKIES:{'sessionid': '4cfc09be649f6a4a01188f246e1ef113'}, META:{'Apple_PubSub_Socket_Render': '/tmp/launch-MJZYXg/Render', 'COMMAND_MODE': 'unix2003', 'CONTENT_LENGTH': '896', 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------711586348295320693620179034', 'DISPLAY': '/tmp/launch-4kdusc/:0', 'DJANGO_SETTINGS_MODULE': 'omeroweb.settings', 'DYLD_LIBRARY_PATH': '/Applications/IMOD/lib::/opt/Ice-3.3.1/lib:/opt/hdf/lib', 'EDITOR': 'nano', 'EMAN2BASE': '/Applications/EMAN2/', 'EMAN2DIR': '/Applications/EMAN2//EMAN2.cvs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HDF5_DIR': '/usr/local/HDF5', 'HOME': '/Users/will', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=4cfc09be649f6a4a01188f246e1ef113', 'HTTP_HOST': 'localhost:8000', 'HTTP_KEEP_ALIVE': '115', 'HTTP_REFERER': 'http://localhost:8000/webclient/metadata_details/multiaction/annotatemany/?&image=1969&image=1980', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3', 'ICE_HOME': '/opt/Ice-3.3.1', 'IMOD_CALIB_DIR': '/usr/local/ImodCalib', 'IMOD_DIR': '/Applications/IMOD', 'IMOD_PLUGIN_DIR': '/Applications/IMOD/lib/imodplug', 'IMOD_QTLIBDIR': '/Applications/IMOD/qtlib', 'LANG': 'en_GB.UTF-8', 'LD_LIBRARY_PATH': '/usr/local/HDF5/lib:/opt/SZIP/lib', 'LOGNAME': 'will', 'MANPATH': '/opt/local/share/man:/usr/share/man:/usr/local/share/man:/usr/X11/man', 'OLDPWD': '/Users/will/Documents/workspace/Omero', 'PATH': '/Applications/EMAN2//EMAN2.cvs/bin:/Applications/EMAN2//EMAN2.cvs/sparx/bin:/opt/local/bin:/opt/local/sbin:/Applications/IMOD/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Library/PostgreSQL/8.3/bin/:/Applications/Chimera.app/Contents/Resources/bin/:/opt/Ice-3.3.1/bin:/usr/local/HDF5/bin:/Applications/spiderweb/spider/bin/:/Applications/spiderweb/web/bin/', 'PATH_INFO': u'/webclient/metadata_details/multiaction/', 'PWD': '/Users/will/Documents/workspace/Omero/dist', 'PYTHONPATH': '/Applications/EMAN2/EMAN2.cvs/bin/:/Applications/EMAN2//EMAN2.cvs/lib:/Applications/EMAN2//EMAN2.cvs/sparx/libpy:/Applications/EMAN2//extlib/site-packages:/Applications/CecogPackage/CecogAnalyzer.app/Contents/Resources/lib/python2.5/:/Users/will/Documents/workspace/Omero/dist/lib/python/:/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/:/opt/Ice-3.3.1/python:', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'POST', 'RUN_MAIN': 'true', 'SCRIPT_NAME': u'', 'SECURITYSESSIONID': 'aa1530', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.5.1', 'SHELL': '/bin/bash', 'SHLVL': '1', 'SPBIN_DIR': 'Applications/spiderweb/spider/bin/', 'SPIDER_DIR': 'Applications/spiderweb/spider', 'SPMAN_DIR': 'Applications/spiderweb/spider/man/', 'SPPROC_DIR': 'Applications/spiderweb/spider/proc/', 'SPRGB_DIR': '/Applications/spiderweb/web/rgb/', 'SSH_AUTH_SOCK': '/tmp/launch-f0mjAu/Listeners', 'TERM': 'xterm-color', 'TERM_PROGRAM': 'Apple_Terminal', 'TERM_PROGRAM_VERSION': '240.2', 'TMPDIR': '/var/folders/mk/mkOc3rWtEp8VZpBVn5VFpE+++TI/-Tmp-/', 'TZ': 'Europe/London', 'USER': 'will', 'WEBBIN_DIR': '/Applications/spiderweb/web/bin', 'WEBMAN_DIR': '/Applications/spiderweb/web/man/', 'WEB_DIR': '/Applications/spiderweb/web', '_': '/usr/bin/python', '__CF_USER_TEXT_ENCODING': '0x1F5:0:0', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x170b0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x2650fb0>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>