I can get this to work if I get the session from the sessions table and manually command line it as below. Export works as well, and the image appears in the new group. Sometimes it takes a few goes to get the correct session and i've found the ones that usually work have useragent=Python service. It runs as well in a function called imageImExviaOmero (more on that below)
- Code: Select all
OMERO.server-Beta-4.3.0/bin/omero -s localhost -k 960f3742-093d-4302-8b16-063d8f743014 sessions group "Manz_public"
Joined session 960f3742-093d-4302-8b16-063d8f743014 (root@localhost:4064). Idle timeout: 10.0 min. Current group: Manz_public
Group 'Manz_public' (id=3) is already active
OMEROserver/OMERO.server-Beta-4.3.0/bin/omero -s localhost -k 0cb10f5c-d52e-461c-968d-1981617bb9fc import /OMERO/DropBox/Manz/TMNT.giftransfer.ome.tif -d 152
But then when I put it in OMERO to run, I get issues. I'll paste my code and the issues below. I think that I am not getting the correct session, either the session is already being used or claims that it only shows read-only permission.
selectfromdb
- Code: Select all
import re
import dbconnect,string
import subprocess
import shlex
def imageImExviaOmero(imgid,PubGroupName,PublicDsId):
#copies image n reimports image into ds that's public
#need to be logged into omero private group
sQuery="select owner_id, name from image where id="
ownerid=str(dbconnect.selectfromdb(sQuery,imgid)[0][0])
extendedfilename=((str(dbconnect.selectfromdb(sQuery,imgid)[0][1]))).replace(" ","_")
#get session info
sQuery1=string.join(["select uuid FROM session WHERE useragent='Python service' ORDER BY started desc limit 1"],"")
# sQuery1=string.join(["select uuid FROM session WHERE owner=",ownerid," AND useragent='Python service' ORDER BY closed desc limit 1"],"")
session=str(dbconnect.selectfromdb(sQuery1,"")[0][0])
omerohomedir="/home/manzomero/OMEROserver/OMERO.server-Beta-4.3.0"
exportstr=string.join([omerohomedir,"/bin/omero -s localhost -k ",session," export --file ",extendedfilename,"transfer.ome.tif Image:",imgid],"")
#need to import using
changesessstr=string.join([omerohomedir,'/bin/omero -s localhost -k ',session,' sessions group "',PubGroupName,'"'],"")
importstr=string.join([omerohomedir,"/bin/omero -s localhost -k ",session," import ",extendedfilename,"transfer.ome.tif -d ",PublicDsId],"")
a=subprocess.call([exportstr],shell=True)
a=subprocess.call([changesessstr],shell=True)
a=subprocess.call([importstr],shell=True)
print (exportstr)
print (changesessstr)
print (importstr)
print subprocess.call(["whoami"],shell=True)
return (string.join([extendedfilename,"transfer.ome.tif"],""))
- Code: Select all
def mvImgtoDsPublicUsingexim(imgId):
#Mvs image to its corresponding public dataset
import string
import ImageImExviaOmero
#get img ds n group
#get ds n group for public ds
sQuery="select c.child, a.id, a.permissions,a.group_id, b.name, a.name from dataset a JOIN experimentergroup b ON a.group_id=b.id JOIN datasetimagelink c ON c.parent=a.id WHERE c.child="
imgId=re.sub("[^0-9]","",imgId)
origImgInfo=selectfromdb(sQuery,imgId)
publicGroup=re.sub("_private","_public",origImgInfo[0][4])
origDsName=origImgInfo[0][5]
sQuery1=string.join(["select a.id, a.permissions,a.group_id,b.name, a.name from dataset a JOIN experimentergroup b ON a.group_id=b.id LEFT JOIN datasetimagelink c ON c.parent=a.id WHERE b.name='",publicGroup,"' AND a.name='",origDsName,"'"],"")
publicData=uniq(selectfromdb(sQuery1,""))
publicDsId=str(publicData[0][0])
publicPermiss="-39"
publicGroupId=str(publicData[0][2])
publicDsId=str(duplicatedsQuery(imgId)[0][0])
#export the image
#move image to new dataset- done by imageImExviaOmero, just need to get the publicDsIdvis
newfilename=ImageImExviaOmero.imageImExviaOmero(imgId,publicGroup,publicDsId)
print newfilename
....
return string.join(["The image ",imgId," has been moved to the group ", publicGroupId, " with permissions " ,publicPermiss],"")
I'm not sure whether to get a fresh session I need to do something different with conn=kwargs['conn']
- Code: Select all
@isUserConnected # wrapper handles login (or redirects to webclient login). Connection passed in **kwargs
def publishimage(request, **kwargs):
imgid=request.POST['imageIds']
conn = kwargs['conn']
from django.template import Context, Template
import dbconnect,string
#things to do to prepare for image publication
#create dataset in corresponding public group
dsresults=dbconnect.duplicatedsQuery(imgid)
#will return a public dataset if exists that corresponds with a private on of id dsid
#find out what ds it sits in
dbconnect.mvImgtoDsPublicUsingexim(imgid)
return HttpResponse("Your image has been published and moved to Public.")
If I leave Python service in as useragent
select uuid FROM session WHERE useragent='Python service' ORDER BY started desc limit 1"
- Code: Select all
select a.id, a.name from dataset a JOIN experimentergroup b ON a.group_id=b.id WHERE a.group_id=3 AND a.name='Dataset2Private'
already exists
Publishing collection
select a.id, a.name from dataset a JOIN experimentergroup b ON a.group_id=b.id WHERE a.group_id=3 AND a.name='Dataset2Private'
already exists
usage: /home/manzomero/OMEROserver/OMERO.server export [-h] -f FILE
[-t {TIFF,XML}]
[--iterate]
obj
/home/manzomero/OMEROserver/OMERO.server export: error: argument -f/--file: invalid NewFileType('wb') value: '/home/manzomero/OMEROserver/OMERO.server-Beta-4.3.0/lib/python/omeroweb/webtest/transfer2.301.ome.tiftransfer.ome.tif'
Bad session key
Bad session key
/home/manzomero/OMEROserver/OMERO.server-Beta-4.3.0/bin/omero -s localhost -k b19ff66b-4acb-489e-a4a0-579386eb13a0 export --file /home/manzomero/OMEROserver/OMERO.server-Beta-4.3.0/lib/python/omeroweb/webtest/transfer2.301.ome.tiftransfer.ome.tif Image:303
/home/manzomero/OMEROserver/OMERO.server-Beta-4.3.0/bin/omero -s localhost -k b19ff66b-4acb-489e-a4a0-579386eb13a0 sessions group "Manz_public"
/home/manzomero/OMEROserver/OMERO.server-Beta-4.3.0/bin/omero -s localhost -k b19ff66b-4acb-489e-a4a0-579386eb13a0 import /home/manzomero/OMEROserver/OMERO.server-Beta-4.3.0/lib/python/omeroweb/webtest/transfer2.301.ome.tiftransfer.ome.tif -d 152
manzomero
0
/home/manzomero/OMEROserver/OMERO.server-Beta-4.3.0/lib/python/omeroweb/webtest/transfer2.301.ome.tiftransfer.ome.tif
Otherwise if I leave it as:-
"select uuid FROM session WHERE owner=",ownerid," ORDER BY started desc limit 1"
I know export isn't working as there's already a file with the same name in that location,
- Code: Select all
[28/Oct/2011 06:01:14] "GET /webclient/render_thumbnail/639/ HTTP/1.1" 200 3259
select a.id, a.name from dataset a JOIN experimentergroup b ON a.group_id=b.id WHERE a.group_id=3 AND a.name='Dataset2Private'
already exists
Publishing collection
select a.id, a.name from dataset a JOIN experimentergroup b ON a.group_id=b.id WHERE a.group_id=3 AND a.name='Dataset2Private'
already exists
usage: /home/manzomero/OMEROserver/OMERO.server export [-h] -f FILE
[-t {TIFF,XML}]
[--iterate]
obj
/home/manzomero/OMEROserver/OMERO.server export: error: argument -f/--file: invalid NewFileType('wb') value: '/OMERO/DropBox/Manz/Tmnt01.giftransfer.ome.tif'
Joined session 3b2c2401-8bb5-4329-bfd2-2dac6d996601 (Manz@localhost:4064). Idle timeout: 10.0 min. Current group: Manz_private
Traceback (most recent call last):
File "/home/manzomero/OMEROserver/OMERO.server-Beta-4.3.0/bin/omero", line 123, in <module>
rv = omero.cli.argv()
File "/home/manzomero/OMEROserver/OMERO.server-Beta-4.3.0/lib/python/omero/cli.py", line 1172, in argv
cli.invoke(args[1:])
File "/home/manzomero/OMEROserver/OMERO.server-Beta-4.3.0/lib/python/omero/cli.py", line 722, in invoke
stop = self.onecmd(line, previous_args)
File "/home/manzomero/OMEROserver/OMERO.server-Beta-4.3.0/lib/python/omero/cli.py", line 791, in onecmd
self.execute(line, previous_args)
File "/home/manzomero/OMEROserver/OMERO.server-Beta-4.3.0/lib/python/omero/cli.py", line 871, in execute
args.func(args)
File "/home/manzomero/OMEROserver/OMERO.server-Beta-4.3.0/lib/python/omero/plugins/sessions.py", line 359, in group
sf.setSecurityContext(omero.model.ExperimenterGroupI(group_id, False))
File "/home/manzomero/OMEROserver/OMERO.server-Beta-4.3.0/lib/python/omero_API_ice.py", line 198, in setSecurityContext
return _M_omero.api.ServiceFactory._op_setSecurityContext.invoke(self, ((obj, ), _ctx))
omero.SecurityViolation: exception ::omero::SecurityViolation
{
serverStackTrace = ome.conditions.SecurityViolation: SecurityContext change cancelled:
Client fbfef3e2-b404-404a-b44b-93ec2d77e0bd has active stateful services:
7f:0:1:1:-627648d0:13348d65098:-7ff4omero.api.ThumbnailStore
7f:0:1:1:-627648d0:13348d65098:-7ff5omero.api.RenderingEngine
Client 144010a9-3f16-4a2e-b5e5-edda26ed92b4 has active stateful services:
7f:0:1:1:-627648d0:13348d65098:-7ff4omero.api.ThumbnailStore
7f:0:1:1:-627648d0:13348d65098:-7ff5omero.api.RenderingEngine
at ome.services.sessions.events.ChangeSecurityContextEvent.throwIfCancelled(ChangeSecurityContextEvent.java:61)
at ome.services.sessions.SessionManagerImpl.setSecurityContext(SessionManagerImpl.java:1114)
at ome.services.blitz.impl.ServiceFactoryI.setSecurityContext(ServiceFactoryI.java:318)
at omero.api._ServiceFactoryDisp.___setSecurityContext(_ServiceFactoryDisp.java:393)
at omero.api._ServiceFactoryDisp.__dispatch(_ServiceFactoryDisp.java:1379)
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.SecurityViolation
message = SecurityContext change cancelled:
Client fbfef3e2-b404-404a-b44b-93ec2d77e0bd has active stateful services:
7f:0:1:1:-627648d0:13348d65098:-7ff4omero.api.ThumbnailStore
7f:0:1:1:-627648d0:13348d65098:-7ff5omero.api.RenderingEngine
Client 144010a9-3f16-4a2e-b5e5-edda26ed92b4 has active stateful services:
7f:0:1:1:-627648d0:13348d65098:-7ff4omero.api.ThumbnailStore
7f:0:1:1:-627648d0:13348d65098:-7ff5omero.api.RenderingEngine
}
Joined session 3b2c2401-8bb5-4329-bfd2-2dac6d996601 (Manz@localhost:4064). Idle timeout: 10.0 min. Current group: Manz_private
2011-10-28 06:01:23,171 5 [ main] INFO ome.formats.importer.ImportConfig - OMERO Version: 4.3.0-77345008
2011-10-28 06:01:23,178 12 [ main] INFO ome.formats.importer.ImportConfig - Bioformats version: 4.3.0 revision: b0a8381 date: 11 June 2011
2011-10-28 06:01:23,280 114 [ main] INFO formats.importer.cli.CommandLineImporter - Log levels -- Bio-Formats: ERROR OMERO.importer: INFO
2011-10-28 06:01:24,615 1449 [ main] INFO ome.formats.importer.ImportCandidates - Depth: 4 Metadata Level: MINIMUM
2011-10-28 06:01:30,900 7734 [ main] INFO ome.formats.importer.ImportCandidates - 1 file(s) parsed into 1 group(s) with 1 call(s) to setId in 6261ms. (6285ms total) [0 unknowns]
2011-10-28 06:01:31,576 8410 [ main] INFO ome.formats.OMEROMetadataStoreClient - Attempting initial SSL connection to localhost:4064
2011-10-28 06:01:35,023 11857 [ main] INFO ome.formats.OMEROMetadataStoreClient - Insecure connection requested, falling back
2011-10-28 06:01:41,105 17939 [ main] WARN ome.system.UpgradeCheck - UPGRADE AVAILABLE:Please upgrade to Beta-4.3.3 See http://trac.openmicroscopy.org.uk/omero for the latest version
2011-10-28 06:01:41,231 18065 [ main] INFO ome.formats.OMEROMetadataStoreClient - Server: 4.3.0
2011-10-28 06:01:41,231 18065 [ main] INFO ome.formats.OMEROMetadataStoreClient - Client: Dev Build
2011-10-28 06:01:41,231 18065 [ main] INFO ome.formats.OMEROMetadataStoreClient - Java Version: 1.6.0_22
2011-10-28 06:01:41,231 18065 [ main] INFO ome.formats.OMEROMetadataStoreClient - OS Name: Linux
2011-10-28 06:01:41,231 18065 [ main] INFO ome.formats.OMEROMetadataStoreClient - OS Arch: amd64
2011-10-28 06:01:41,231 18065 [ main] INFO ome.formats.OMEROMetadataStoreClient - OS Version: 2.6.38-8-generic
2011-10-28 06:01:41,345 18179 [ main] ERROR formats.importer.cli.CommandLineImporter - Error during import process.
java.lang.RuntimeException: omero.SecurityViolation
serverStackTrace = "ome.conditions.SecurityViolation: Cannot read ome.model.containers.Dataset:Id_152
at ome.security.basic.BasicACLVoter.throwLoadViolation(BasicACLVoter.java:112)
at ome.security.CompositeACLVoter.throwLoadViolation(CompositeACLVoter.java:86)
at ome.security.ACLEventListener.onPostLoad(ACLEventListener.java:104)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:250)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:898)
at org.hibernate.loader.Loader.doQuery(Loader.java:773)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:270)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1953)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:86)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:76)
at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3270)
at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:496)
at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:477)
at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:227)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:147)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1082)
at org.hibernate.impl.SessionImpl.immediateLoad(SessionImpl.java:1020)
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:176)
at org.hibernate.Hibernate.initialize(Hibernate.java:428)
at ome.logic.QueryImpl$1.doInHibernate(QueryImpl.java:174)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339)
at ome.logic.QueryImpl.get(QueryImpl.java:157)
at sun.reflect.GeneratedMethodAccessor290.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
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.EventHandler.invoke(EventHandler.java:150)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:111)
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:231)
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(JdkDynamicAopProxy.java:202)
at $Proxy75.get(Unknown Source)
at sun.reflect.GeneratedMethodAccessor290.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
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:43)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy75.get(Unknown Source)
at sun.reflect.GeneratedMethodAccessor684.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
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:136)
at ome.services.blitz.impl.QueryI.get_async(QueryI.java:110)
at omero.api._IQueryTie.get_async(_IQueryTie.java:127)
at omero.api._IQueryDisp.___get(_IQueryDisp.java:170)
at omero.api._IQueryDisp.__dispatch(_IQueryDisp.java:516)
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.SecurityViolation"
message = "Cannot read ome.model.containers.Dataset:Id_152"
at ome.formats.OMEROMetadataStoreClient.getTarget(OMEROMetadataStoreClient.java:2208)
at ome.formats.importer.ImportLibrary.importCandidates(ImportLibrary.java:216)
at ome.formats.importer.cli.CommandLineImporter.start(CommandLineImporter.java:141)
at ome.formats.importer.cli.CommandLineImporter.main(CommandLineImporter.java:386)
Caused by: omero.SecurityViolation
serverStackTrace = "ome.conditions.SecurityViolation: Cannot read ome.model.containers.Dataset:Id_152
at ome.security.basic.BasicACLVoter.throwLoadViolation(BasicACLVoter.java:112)
at ome.security.CompositeACLVoter.throwLoadViolation(CompositeACLVoter.java:86)
at ome.security.ACLEventListener.onPostLoad(ACLEventListener.java:104)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:250)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:898)
at org.hibernate.loader.Loader.doQuery(Loader.java:773)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:270)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1953)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:86)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:76)
at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3270)
at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:496)
at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:477)
at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:227)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:147)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1082)
at org.hibernate.impl.SessionImpl.immediateLoad(SessionImpl.java:1020)
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:176)
at org.hibernate.Hibernate.initialize(Hibernate.java:428)
at ome.logic.QueryImpl$1.doInHibernate(QueryImpl.java:174)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339)
at ome.logic.QueryImpl.get(QueryImpl.java:157)
at sun.reflect.GeneratedMethodAccessor290.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
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.EventHandler.invoke(EventHandler.java:150)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:111)
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:231)
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(JdkDynamicAopProxy.java:202)
at $Proxy75.get(Unknown Source)
at sun.reflect.GeneratedMethodAccessor290.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
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:43)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy75.get(Unknown Source)
at sun.reflect.GeneratedMethodAccessor684.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
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:136)
at ome.services.blitz.impl.QueryI.get_async(QueryI.java:110)
at omero.api._IQueryTie.get_async(_IQueryTie.java:127)
at omero.api._IQueryDisp.___get(_IQueryDisp.java:170)
at omero.api._IQueryDisp.__dispatch(_IQueryDisp.java:516)
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.SecurityViolation"
message = "Cannot read ome.model.containers.Dataset:Id_152"
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at IceInternal.BasicStream$DynamicUserExceptionFactory.createAndThrow(BasicStream.java:2243)
at IceInternal.BasicStream.throwException(BasicStream.java:1632)
at IceInternal.Outgoing.throwUserException(Outgoing.java:442)
at omero.api._IQueryDelM.get(_IQueryDelM.java:547)
at omero.api.IQueryPrxHelper.get(IQueryPrxHelper.java:660)
at omero.api.IQueryPrxHelper.get(IQueryPrxHelper.java:632)
at ome.formats.OMEROMetadataStoreClient.getTarget(OMEROMetadataStoreClient.java:2204)
... 3 more
/home/manzomero/OMEROserver/OMERO.server-Beta-4.3.0/bin/omero -s localhost -k 3b2c2401-8bb5-4329-bfd2-2dac6d996601 export --file /OMERO/DropBox/Manz/Tmnt01.giftransfer.ome.tif Image:686
/home/manzomero/OMEROserver/OMERO.server-Beta-4.3.0/bin/omero -s localhost -k 3b2c2401-8bb5-4329-bfd2-2dac6d996601 sessions group "Manz_public"
/home/manzomero/OMEROserver/OMERO.server-Beta-4.3.0/bin/omero -s localhost -k 3b2c2401-8bb5-4329-bfd2-2dac6d996601 import /OMERO/DropBox/Manz/Tmnt01.giftransfer.ome.tif -d 152