I've been experimenting with the omcero.cli command line tool and I've succesfully logged and uploaded an image wich is abailable later via omero.insight.
Now I would like to be able to download this image( as in omero.insight [right click]>Download )
I've tried with:
bin/omero download 252 downloadedimage.jpg
(252 is the Image ID of the image I want to download)
and I get the following error:
- Code: Select all
Using session 10ca1e03-1b95-4585-b54c-6adda2f80fba (root@localhost:4064). Idle t
imeout: 60.0 min. Current group: system
Traceback (most recent call last):
File "C:\OMERO.server-5.0.0-ice34-b19\bin\\omero", line 125, in <module>
rv = omero.cli.argv()
File "C:\OMERO.server-5.0.0-ice34-b19\lib\python\omero\cli.py", line 1195, in
argv
cli.invoke(args[1:])
File "C:\OMERO.server-5.0.0-ice34-b19\lib\python\omero\cli.py", line 745, in i
nvoke
stop = self.onecmd(line, previous_args)
File "C:\OMERO.server-5.0.0-ice34-b19\lib\python\omero\cli.py", line 814, in o
necmd
self.execute(line, previous_args)
File "C:\OMERO.server-5.0.0-ice34-b19\lib\python\omero\cli.py", line 894, in e
xecute
args.func(args)
File "C:\OMERO.server-5.0.0-ice34-b19\lib\python\omero\plugins\download.py", l
ine 39, in __call__
client.download(orig_file, target_file)
File "C:\OMERO.server-5.0.0-ice34-b19\lib\python\omero\clients.py", line 756,
in download
ofile = self.__sf.getQueryService().get("OriginalFile", ofile.id.val)
File "C:\OMERO.server-5.0.0-ice34-b19\lib\python\omero_api_IQuery_ice.py", lin
e 117, in get
return _M_omero.api.IQuery._op_get.invoke(self, ((klass, id), _ctx))
omero.ValidationException: exception ::omero::ValidationException
{
serverStackTrace = ome.conditions.ValidationException: No row with the given
identifier exists: [ome.model.core.OriginalFile#252]; nested exception is org.h
ibernate.ObjectNotFoundException: No row with the given identifier exists: [ome.
model.core.OriginalFile#252]
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHiberna
teAccessException(SessionFactoryUtils.java:663)
at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernate
AccessException(HibernateAccessor.java:412)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(Hibern
ateTemplate.java:411)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(Hibernat
eTemplate.java:339)
at ome.logic.QueryImpl.get(QueryImpl.java:159)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:150)
at ome.security.basic.EventHandler.invoke(EventHandler.java:154)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(Hibern
ateInterceptor.java:111)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
at org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:108)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanu
pFilter.java:241)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:116)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:202)
at com.sun.proxy.$Proxy81.get(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:150)
at ome.security.basic.BasicSecurityWiring.invoke(BasicSecurityWiring.jav
a:98)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
at ome.services.blitz.fire.AopContextInitializer.invoke(AopContextInitia
lizer.java:43)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:202)
at com.sun.proxy.$Proxy81.get(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at ome.services.blitz.util.IceMethodInvoker.invoke(IceMethodInvoker.java
:179)
at ome.services.throttling.Callback.run(Callback.java:56)
at ome.services.throttling.InThreadThrottlingStrategy.callInvokerOnRawAr
gs(InThreadThrottlingStrategy.java:56)
at ome.services.blitz.impl.AbstractAmdServant.callInvokerOnRawArgs(Abstr
actAmdServant.java:149)
at ome.services.blitz.impl.QueryI.get_async(QueryI.java:110)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:150)
at omero.cmd.CallContext.invoke(CallContext.java:78)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:202)
at com.sun.proxy.$Proxy82.get_async(Unknown Source)
at omero.api._IQueryTie.get_async(_IQueryTie.java:136)
at omero.api._IQueryDisp.___get(_IQueryDisp.java:182)
at omero.api._IQueryDisp.__dispatch(_IQueryDisp.java:528)
at IceInternal.Incoming.invoke(Incoming.java:159)
at Ice.ConnectionI.invokeAll(ConnectionI.java:2357)
at Ice.ConnectionI.dispatch(ConnectionI.java:1208)
at Ice.ConnectionI.message(ConnectionI.java:1163)
at IceInternal.ThreadPool.run(ThreadPool.java:302)
at IceInternal.ThreadPool.access$300(ThreadPool.java:12)
at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:643)
at java.lang.Thread.run(Unknown Source)
serverExceptionClass = ome.conditions.ValidationException
message = No row with the given identifier exists: [ome.model.core.OriginalF
ile#252]; nested exception is org.hibernate.ObjectNotFoundException: No row with
the given identifier exists: [ome.model.core.OriginalFile#252]
}
Any thougs on how I can acomplish this?
Regards.