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 #12781 (accepted)

Opened 10 years ago

Last modified 5 years ago

Bug: CLI import to a dataset in a different group to current fails.

Reported by: cblackburn Owned by: cblackburn
Priority: critical Milestone: FacilityManagers
Component: Import Version: 5.1.0-m1
Keywords: n.a. Cc: server@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description (last modified by cblackburn)

Using a local build of origin/develop with a user having datasets in several different groups, a targeted import fails if the target dataset is not in the current group. See console output in first comment.

Change History (20)

comment:1 Changed 10 years ago by cblackburn

jrs-macbookpro:ome cblackburn$ omero import  ~/Work/Images/dv/CFPNEAT01_R3D.dv -d 1
Previously logged in to localhost:4064 as root
Server: [localhost:4064]
Username: [root]user-0
Password:
Created session 6f8c2eac-df7d-40bd-a101-896cf8f12497 (user-0@localhost:4064). Idle timeout: 10.0 min. Current group: pg-0
2015-03-10 10:26:51,062 1269       [      main] INFO          ome.formats.importer.ImportConfig - OMERO Version: 5.1.0-m6-ice35-SNAPSHOT
2015-03-10 10:26:51,138 1345       [      main] INFO          ome.formats.importer.ImportConfig - Bioformats version: 5.1.0-m6-ice35-SNAPSHOT revision: b47a1fb date: 10 March 2015
2015-03-10 10:26:51,196 1403       [      main] INFO   formats.importer.cli.CommandLineImporter - Log levels -- Bio-Formats: ERROR OMERO.importer: INFO
2015-03-10 10:26:52,782 2989       [      main] INFO      ome.formats.importer.ImportCandidates - Depth: 4 Metadata Level: MINIMUM
2015-03-10 10:26:53,239 3446       [      main] INFO      ome.formats.importer.ImportCandidates - 1 file(s) parsed into 1 group(s) with 1 call(s) to setId in 351ms. (457ms total) [0 unknowns]
2015-03-10 10:26:53,676 3883       [      main] INFO       ome.formats.OMEROMetadataStoreClient - Attempting initial SSL connection to localhost:4064
2015-03-10 10:26:55,553 5760       [      main] INFO       ome.formats.OMEROMetadataStoreClient - Insecure connection requested, falling back
2015-03-10 10:26:57,302 7509       [      main] INFO       ome.formats.OMEROMetadataStoreClient - Server: 5.1.0
2015-03-10 10:26:57,302 7509       [      main] INFO       ome.formats.OMEROMetadataStoreClient - Client: 5.1.0-m6-ice35-SNAPSHOT
2015-03-10 10:26:57,302 7509       [      main] INFO       ome.formats.OMEROMetadataStoreClient - Java Version: 1.7.0_25
2015-03-10 10:26:57,302 7509       [      main] INFO       ome.formats.OMEROMetadataStoreClient - OS Name: Mac OS X
2015-03-10 10:26:57,302 7509       [      main] INFO       ome.formats.OMEROMetadataStoreClient - OS Arch: x86_64
2015-03-10 10:26:57,302 7509       [      main] INFO       ome.formats.OMEROMetadataStoreClient - OS Version: 10.10.2
2015-03-10 10:26:57,925 8132       [      main] INFO       ome.formats.OMEROMetadataStoreClient - Call context: {omero.group:3}
2015-03-10 10:26:57,952 8159       [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILESET_UPLOAD_PREPARATION
2015-03-10 10:26:59,144 9351       [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILESET_UPLOAD_START
2015-03-10 10:26:59,198 9405       [      main] INFO   ts.importer.transfers.UploadFileTransfer - Transferring /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv...
2015-03-10 10:26:59,257 9464       [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILE_UPLOAD_STARTED: /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv
2015-03-10 10:27:01,194 11401      [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILE_UPLOAD_COMPLETE: /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv
2015-03-10 10:27:01,208 11415      [      main] INFO   ts.importer.transfers.UploadFileTransfer - Transferring /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv.log...
2015-03-10 10:27:01,227 11434      [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILE_UPLOAD_STARTED: /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv.log
2015-03-10 10:27:01,295 11502      [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILE_UPLOAD_COMPLETE: /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv.log
2015-03-10 10:27:01,789 11996      [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILESET_UPLOAD_END
2015-03-10 10:27:02,490 12697      [      main] INFO   ormats.importer.cli.LoggingImportMonitor - IMPORT_STARTED Logfile: 24
2015-03-10 10:27:04,894 15101      [l.Client-1] INFO   ormats.importer.cli.LoggingImportMonitor - METADATA_IMPORTED Step: 1 of 5  Logfile: 24
2015-03-10 10:27:05,833 16040      [l.Client-0] INFO   ormats.importer.cli.LoggingImportMonitor - PIXELDATA_PROCESSED Step: 2 of 5  Logfile: 24
2015-03-10 10:27:06,937 17144      [l.Client-1] INFO   ormats.importer.cli.LoggingImportMonitor - THUMBNAILS_GENERATED Step: 3 of 5  Logfile: 24
2015-03-10 10:27:07,001 17208      [l.Client-0] INFO   ormats.importer.cli.LoggingImportMonitor - METADATA_PROCESSED Step: 4 of 5  Logfile: 24
2015-03-10 10:27:07,022 17229      [l.Client-1] INFO   ormats.importer.cli.LoggingImportMonitor - OBJECTS_RETURNED Step: 5 of 5  Logfile: 24
2015-03-10 10:27:08,159 18366      [l.Client-0] INFO   ormats.importer.cli.LoggingImportMonitor - IMPORT_DONE Imported file: /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv
Imported pixels:
1
Other imported objects:
Fileset:1
Image:1
2015-03-10 10:27:08,160 18367      [l.Client-0] INFO      ome.formats.importer.cli.ErrorHandler - Number of errors: 0

==> Summary
2 files uploaded, 1 fileset created, 1 image imported, 0 errors in 0:00:10.363
jrs-macbookpro:ome cblackburn$ omero import  ~/Work/Images/dv/CFPNEAT01_R3D.dv -d 2
Using session 6f8c2eac-df7d-40bd-a101-896cf8f12497 (user-0@localhost:4064). Idle timeout: 10.0 min. Current group: pg-0
2015-03-10 10:27:17,231 479        [      main] INFO          ome.formats.importer.ImportConfig - OMERO Version: 5.1.0-m6-ice35-SNAPSHOT
2015-03-10 10:27:17,248 496        [      main] INFO          ome.formats.importer.ImportConfig - Bioformats version: 5.1.0-m6-ice35-SNAPSHOT revision: b47a1fb date: 10 March 2015
2015-03-10 10:27:17,257 505        [      main] INFO   formats.importer.cli.CommandLineImporter - Log levels -- Bio-Formats: ERROR OMERO.importer: INFO
2015-03-10 10:27:17,742 990        [      main] INFO      ome.formats.importer.ImportCandidates - Depth: 4 Metadata Level: MINIMUM
2015-03-10 10:27:17,860 1108       [      main] INFO      ome.formats.importer.ImportCandidates - 1 file(s) parsed into 1 group(s) with 1 call(s) to setId in 111ms. (118ms total) [0 unknowns]
2015-03-10 10:27:20,032 3280       [      main] INFO       ome.formats.OMEROMetadataStoreClient - Attempting initial SSL connection to localhost:4064
2015-03-10 10:27:20,943 4191       [      main] INFO       ome.formats.OMEROMetadataStoreClient - Insecure connection requested, falling back
2015-03-10 10:27:21,371 4619       [      main] INFO       ome.formats.OMEROMetadataStoreClient - Server: 5.1.0
2015-03-10 10:27:21,372 4620       [      main] INFO       ome.formats.OMEROMetadataStoreClient - Client: 5.1.0-m6-ice35-SNAPSHOT
2015-03-10 10:27:21,372 4620       [      main] INFO       ome.formats.OMEROMetadataStoreClient - Java Version: 1.7.0_25
2015-03-10 10:27:21,372 4620       [      main] INFO       ome.formats.OMEROMetadataStoreClient - OS Name: Mac OS X
2015-03-10 10:27:21,372 4620       [      main] INFO       ome.formats.OMEROMetadataStoreClient - OS Arch: x86_64
2015-03-10 10:27:21,372 4620       [      main] INFO       ome.formats.OMEROMetadataStoreClient - OS Version: 10.10.2
2015-03-10 10:27:21,555 4803       [      main] INFO       ome.formats.OMEROMetadataStoreClient - Call context: {omero.group:5}
2015-03-10 10:27:21,579 4827       [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILESET_UPLOAD_PREPARATION
2015-03-10 10:27:22,044 5292       [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILESET_UPLOAD_START
2015-03-10 10:27:22,055 5303       [      main] INFO   ts.importer.transfers.UploadFileTransfer - Transferring /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv...
2015-03-10 10:27:22,076 5324       [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILE_UPLOAD_STARTED: /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv
2015-03-10 10:27:23,653 6901       [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILE_UPLOAD_COMPLETE: /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv
2015-03-10 10:27:23,837 7085       [      main] INFO   ts.importer.transfers.UploadFileTransfer - Transferring /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv.log...
2015-03-10 10:27:23,857 7105       [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILE_UPLOAD_STARTED: /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv.log
2015-03-10 10:27:24,206 7454       [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILE_UPLOAD_COMPLETE: /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv.log
2015-03-10 10:27:24,704 7952       [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILESET_UPLOAD_END
2015-03-10 10:27:24,804 8052       [      main] INFO   ormats.importer.cli.LoggingImportMonitor - IMPORT_STARTED Logfile: 28
2015-03-10 10:27:25,140 8388       [l.Client-1] ERROR     ome.formats.importer.cli.ErrorHandler - INTERNAL_EXCEPTION: /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv
java.lang.RuntimeException: Failure response on import!
Category: ::omero::grid::ImportRequest
Name: import-request-failure
Parameters: {message=omero.SecurityViolation
    serverStackTrace = "ome.conditions.SecurityViolation: Cannot read ome.model.containers.Dataset:Id_2
                        	at ome.security.basic.BasicACLVoter.throwLoadViolation(BasicACLVoter.java:171)
                        	at ome.security.CompositeACLVoter.throwLoadViolation(CompositeACLVoter.java:92)
                        	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.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215)
                        	at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:191)
                        	at ome.model.containers.Dataset_$$_javassist_5.getDetails(Dataset_$$_javassist_5.java)
                        	at ome.security.basic.OmeroInterceptor.evaluateLinkages(OmeroInterceptor.java:438)
                        	at ome.security.basic.OmeroInterceptor.onSave(OmeroInterceptor.java:160)
                        	at org.hibernate.event.def.AbstractSaveEventListener.substituteValuesIfNecessary(AbstractSaveEventListener.java:414)
                        	at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:293)
                        	at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)
                        	at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:144)
                        	at org.hibernate.event.def.DefaultMergeEventListener.saveTransientEntity(DefaultMergeEventListener.java:415)
                        	at org.hibernate.event.def.DefaultMergeEventListener.mergeTransientEntity(DefaultMergeEventListener.java:341)
                        	at org.hibernate.event.def.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:303)
                        	at org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener.entityIsTransient(IdTransferringMergeEventListener.java:59)
                        	at ome.security.basic.MergeEventListener.entityIsTransient(MergeEventListener.java:161)
                        	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:258)
                        	at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:94)
                        	at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:871)
                        	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:853)
                        	at org.hibernate.engine.CascadingAction$6.cascade(CascadingAction.java:279)
                        	at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:392)
                        	at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:335)
                        	at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:204)
                        	at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:425)
                        	at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:362)
                        	at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:338)
                        	at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:204)
                        	at org.hibernate.engine.Cascade.cascade(Cascade.java:161)
                        	at org.hibernate.event.def.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:476)
                        	at org.hibernate.event.def.DefaultMergeEventListener.mergeTransientEntity(DefaultMergeEventListener.java:388)
                        	at org.hibernate.event.def.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:303)
                        	at org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener.entityIsTransient(IdTransferringMergeEventListener.java:59)
                        	at ome.security.basic.MergeEventListener.entityIsTransient(MergeEventListener.java:161)
                        	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:258)
                        	at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:94)
                        	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:84)
                        	at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:80)
                        	at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:861)
                        	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:845)
                        	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:849)
                        	at ome.logic.UpdateImpl.internalMerge(UpdateImpl.java:274)
                        	at ome.logic.UpdateImpl$4.run(UpdateImpl.java:148)
                        	at ome.logic.UpdateImpl$4.run(UpdateImpl.java:143)
                        	at ome.logic.UpdateImpl.doAction(UpdateImpl.java:312)
                        	at ome.logic.UpdateImpl.doAction(UpdateImpl.java:303)
                        	at ome.logic.UpdateImpl.saveAndReturnArray(UpdateImpl.java:143)
                        	at ome.formats.OMEROMetadataStore.saveToDB(OMEROMetadataStore.java:2182)
                        	at ome.services.blitz.impl.MetadataStoreI$3.doWork(MetadataStoreI.java:224)
                        	at sun.reflect.GeneratedMethodAccessor301.invoke(Unknown Source)
                        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        	at java.lang.reflect.Method.invoke(Method.java:606)
                        	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.services.util.Executor$Impl$Interceptor.invoke(Executor.java:566)
                        	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                        	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(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: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(JdkDynamicAopProxy.java:202)
                        	at com.sun.proxy.$Proxy72.doWork(Unknown Source)
                        	at ome.services.util.Executor$Impl.execute(Executor.java:447)
                        	at ome.services.util.Executor$Impl.execute(Executor.java:391)
                        	at ome.services.throttling.Adapter.run(Adapter.java:51)
                        	at ome.services.throttling.InThreadThrottlingStrategy.runnableCall(InThreadThrottlingStrategy.java:89)
                        	at ome.services.blitz.impl.AbstractAmdServant.runnableCall(AbstractAmdServant.java:163)
                        	at ome.services.blitz.impl.MetadataStoreI.saveToDB_async(MetadataStoreI.java:218)
                        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        	at java.lang.reflect.Method.invoke(Method.java:606)
                        	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 omero.cmd.CallContext.invoke(CallContext.java:78)
                        	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                        	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
                        	at com.sun.proxy.$Proxy104.saveToDB_async(Unknown Source)
                        	at omero.api._MetadataStoreTie.saveToDB_async(_MetadataStoreTie.java:84)
                        	at omero.api._MetadataStoreDisp.___saveToDB(_MetadataStoreDisp.java:246)
                        	at omero.api._MetadataStoreDisp.__dispatch(_MetadataStoreDisp.java:388)
                        	at IceInternal.Incoming.invoke(Incoming.java:222)
                        	at Ice.ConnectionI.invokeAll(ConnectionI.java:2482)
                        	at Ice.ConnectionI.dispatch(ConnectionI.java:1258)
                        	at Ice.ConnectionI.message(ConnectionI.java:1213)
                        	at IceInternal.ThreadPool.run(ThreadPool.java:321)
                        	at IceInternal.ThreadPool.access$300(ThreadPool.java:12)
                        	at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:693)
                        	at java.lang.Thread.run(Thread.java:724)
                        "
    serverExceptionClass = "ome.conditions.SecurityViolation"
    message = "Cannot read ome.model.containers.Dataset:Id_2", stacktrace=java.lang.RuntimeException: omero.SecurityViolation
    serverStackTrace = "ome.conditions.SecurityViolation: Cannot read ome.model.containers.Dataset:Id_2
                        	at ome.security.basic.BasicACLVoter.throwLoadViolation(BasicACLVoter.java:171)
                        	at ome.security.CompositeACLVoter.throwLoadViolation(CompositeACLVoter.java:92)
                        	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.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215)
                        	at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:191)
                        	at ome.model.containers.Dataset_$$_javassist_5.getDetails(Dataset_$$_javassist_5.java)
                        	at ome.security.basic.OmeroInterceptor.evaluateLinkages(OmeroInterceptor.java:438)
                        	at ome.security.basic.OmeroInterceptor.onSave(OmeroInterceptor.java:160)
                        	at org.hibernate.event.def.AbstractSaveEventListener.substituteValuesIfNecessary(AbstractSaveEventListener.java:414)
                        	at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:293)
                        	at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)
                        	at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:144)
                        	at org.hibernate.event.def.DefaultMergeEventListener.saveTransientEntity(DefaultMergeEventListener.java:415)
                        	at org.hibernate.event.def.DefaultMergeEventListener.mergeTransientEntity(DefaultMergeEventListener.java:341)
                        	at org.hibernate.event.def.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:303)
                        	at org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener.entityIsTransient(IdTransferringMergeEventListener.java:59)
                        	at ome.security.basic.MergeEventListener.entityIsTransient(MergeEventListener.java:161)
                        	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:258)
                        	at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:94)
                        	at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:871)
                        	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:853)
                        	at org.hibernate.engine.CascadingAction$6.cascade(CascadingAction.java:279)
                        	at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:392)
                        	at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:335)
                        	at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:204)
                        	at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:425)
                        	at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:362)
                        	at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:338)
                        	at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:204)
                        	at org.hibernate.engine.Cascade.cascade(Cascade.java:161)
                        	at org.hibernate.event.def.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:476)
                        	at org.hibernate.event.def.DefaultMergeEventListener.mergeTransientEntity(DefaultMergeEventListener.java:388)
                        	at org.hibernate.event.def.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:303)
                        	at org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener.entityIsTransient(IdTransferringMergeEventListener.java:59)
                        	at ome.security.basic.MergeEventListener.entityIsTransient(MergeEventListener.java:161)
                        	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:258)
                        	at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:94)
                        	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:84)
                        	at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:80)
                        	at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:861)
                        	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:845)
                        	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:849)
                        	at ome.logic.UpdateImpl.internalMerge(UpdateImpl.java:274)
                        	at ome.logic.UpdateImpl$4.run(UpdateImpl.java:148)
                        	at ome.logic.UpdateImpl$4.run(UpdateImpl.java:143)
                        	at ome.logic.UpdateImpl.doAction(UpdateImpl.java:312)
                        	at ome.logic.UpdateImpl.doAction(UpdateImpl.java:303)
                        	at ome.logic.UpdateImpl.saveAndReturnArray(UpdateImpl.java:143)
                        	at ome.formats.OMEROMetadataStore.saveToDB(OMEROMetadataStore.java:2182)
                        	at ome.services.blitz.impl.MetadataStoreI$3.doWork(MetadataStoreI.java:224)
                        	at sun.reflect.GeneratedMethodAccessor301.invoke(Unknown Source)
                        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        	at java.lang.reflect.Method.invoke(Method.java:606)
                        	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.services.util.Executor$Impl$Interceptor.invoke(Executor.java:566)
                        	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                        	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(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: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(JdkDynamicAopProxy.java:202)
                        	at com.sun.proxy.$Proxy72.doWork(Unknown Source)
                        	at ome.services.util.Executor$Impl.execute(Executor.java:447)
                        	at ome.services.util.Executor$Impl.execute(Executor.java:391)
                        	at ome.services.throttling.Adapter.run(Adapter.java:51)
                        	at ome.services.throttling.InThreadThrottlingStrategy.runnableCall(InThreadThrottlingStrategy.java:89)
                        	at ome.services.blitz.impl.AbstractAmdServant.runnableCall(AbstractAmdServant.java:163)
                        	at ome.services.blitz.impl.MetadataStoreI.saveToDB_async(MetadataStoreI.java:218)
                        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        	at java.lang.reflect.Method.invoke(Method.java:606)
                        	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 omero.cmd.CallContext.invoke(CallContext.java:78)
                        	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                        	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
                        	at com.sun.proxy.$Proxy104.saveToDB_async(Unknown Source)
                        	at omero.api._MetadataStoreTie.saveToDB_async(_MetadataStoreTie.java:84)
                        	at omero.api._MetadataStoreDisp.___saveToDB(_MetadataStoreDisp.java:246)
                        	at omero.api._MetadataStoreDisp.__dispatch(_MetadataStoreDisp.java:388)
                        	at IceInternal.Incoming.invoke(Incoming.java:222)
                        	at Ice.ConnectionI.invokeAll(ConnectionI.java:2482)
                        	at Ice.ConnectionI.dispatch(ConnectionI.java:1258)
                        	at Ice.ConnectionI.message(ConnectionI.java:1213)
                        	at IceInternal.ThreadPool.run(ThreadPool.java:321)
                        	at IceInternal.ThreadPool.access$300(ThreadPool.java:12)
                        	at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:693)
                        	at java.lang.Thread.run(Thread.java:724)
                        "
    serverExceptionClass = "ome.conditions.SecurityViolation"
    message = "Cannot read ome.model.containers.Dataset:Id_2"
	at ome.formats.OMEROMetadataStoreClient.saveToDB(OMEROMetadataStoreClient.java:1868)
	at ome.services.blitz.repo.ManagedImportRequestI.importMetadata(ManagedImportRequestI.java:533)
	at ome.services.blitz.repo.ManagedImportRequestI.step(ManagedImportRequestI.java:403)
	at omero.cmd.HandleI.steps(HandleI.java:437)
	at omero.cmd.HandleI$1.doWork(HandleI.java:365)
	at omero.cmd.HandleI$1.doWork(HandleI.java:361)
	at sun.reflect.GeneratedMethodAccessor301.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	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.services.util.Executor$Impl$Interceptor.invoke(Executor.java:566)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	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(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: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(JdkDynamicAopProxy.java:202)
	at com.sun.proxy.$Proxy72.doWork(Unknown Source)
	at ome.services.util.Executor$Impl.execute(Executor.java:447)
	at omero.cmd.HandleI.run(HandleI.java:359)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at ome.services.util.Executor$Impl$1.call(Executor.java:488)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:724)
Caused by: omero.SecurityViolation
    serverStackTrace = "ome.conditions.SecurityViolation: Cannot read ome.model.containers.Dataset:Id_2
                        	at ome.security.basic.BasicACLVoter.throwLoadViolation(BasicACLVoter.java:171)
                        	at ome.security.CompositeACLVoter.throwLoadViolation(CompositeACLVoter.java:92)
                        	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.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215)
                        	at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:191)
                        	at ome.model.containers.Dataset_$$_javassist_5.getDetails(Dataset_$$_javassist_5.java)
                        	at ome.security.basic.OmeroInterceptor.evaluateLinkages(OmeroInterceptor.java:438)
                        	at ome.security.basic.OmeroInterceptor.onSave(OmeroInterceptor.java:160)
                        	at org.hibernate.event.def.AbstractSaveEventListener.substituteValuesIfNecessary(AbstractSaveEventListener.java:414)
                        	at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:293)
                        	at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)
                        	at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:144)
                        	at org.hibernate.event.def.DefaultMergeEventListener.saveTransientEntity(DefaultMergeEventListener.java:415)
                        	at org.hibernate.event.def.DefaultMergeEventListener.mergeTransientEntity(DefaultMergeEventListener.java:341)
                        	at org.hibernate.event.def.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:303)
                        	at org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener.entityIsTransient(IdTransferringMergeEventListener.java:59)
                        	at ome.security.basic.MergeEventListener.entityIsTransient(MergeEventListener.java:161)
                        	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:258)
                        	at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:94)
                        	at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:871)
                        	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:853)
                        	at org.hibernate.engine.CascadingAction$6.cascade(CascadingAction.java:279)
                        	at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:392)
                        	at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:335)
                        	at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:204)
                        	at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:425)
                        	at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:362)
                        	at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:338)
                        	at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:204)
                        	at org.hibernate.engine.Cascade.cascade(Cascade.java:161)
                        	at org.hibernate.event.def.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:476)
                        	at org.hibernate.event.def.DefaultMergeEventListener.mergeTransientEntity(DefaultMergeEventListener.java:388)
                        	at org.hibernate.event.def.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:303)
                        	at org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener.entityIsTransient(IdTransferringMergeEventListener.java:59)
                        	at ome.security.basic.MergeEventListener.entityIsTransient(MergeEventListener.java:161)
                        	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:258)
                        	at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:94)
                        	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:84)
                        	at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:80)
                        	at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:861)
                        	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:845)
                        	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:849)
                        	at ome.logic.UpdateImpl.internalMerge(UpdateImpl.java:274)
                        	at ome.logic.UpdateImpl$4.run(UpdateImpl.java:148)
                        	at ome.logic.UpdateImpl$4.run(UpdateImpl.java:143)
                        	at ome.logic.UpdateImpl.doAction(UpdateImpl.java:312)
                        	at ome.logic.UpdateImpl.doAction(UpdateImpl.java:303)
                        	at ome.logic.UpdateImpl.saveAndReturnArray(UpdateImpl.java:143)
                        	at ome.formats.OMEROMetadataStore.saveToDB(OMEROMetadataStore.java:2182)
                        	at ome.services.blitz.impl.MetadataStoreI$3.doWork(MetadataStoreI.java:224)
                        	at sun.reflect.GeneratedMethodAccessor301.invoke(Unknown Source)
                        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        	at java.lang.reflect.Method.invoke(Method.java:606)
                        	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.services.util.Executor$Impl$Interceptor.invoke(Executor.java:566)
                        	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                        	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(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: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(JdkDynamicAopProxy.java:202)
                        	at com.sun.proxy.$Proxy72.doWork(Unknown Source)
                        	at ome.services.util.Executor$Impl.execute(Executor.java:447)
                        	at ome.services.util.Executor$Impl.execute(Executor.java:391)
                        	at ome.services.throttling.Adapter.run(Adapter.java:51)
                        	at ome.services.throttling.InThreadThrottlingStrategy.runnableCall(InThreadThrottlingStrategy.java:89)
                        	at ome.services.blitz.impl.AbstractAmdServant.runnableCall(AbstractAmdServant.java:163)
                        	at ome.services.blitz.impl.MetadataStoreI.saveToDB_async(MetadataStoreI.java:218)
                        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        	at java.lang.reflect.Method.invoke(Method.java:606)
                        	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 omero.cmd.CallContext.invoke(CallContext.java:78)
                        	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                        	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
                        	at com.sun.proxy.$Proxy104.saveToDB_async(Unknown Source)
                        	at omero.api._MetadataStoreTie.saveToDB_async(_MetadataStoreTie.java:84)
                        	at omero.api._MetadataStoreDisp.___saveToDB(_MetadataStoreDisp.java:246)
                        	at omero.api._MetadataStoreDisp.__dispatch(_MetadataStoreDisp.java:388)
                        	at IceInternal.Incoming.invoke(Incoming.java:222)
                        	at Ice.ConnectionI.invokeAll(ConnectionI.java:2482)
                        	at Ice.ConnectionI.dispatch(ConnectionI.java:1258)
                        	at Ice.ConnectionI.message(ConnectionI.java:1213)
                        	at IceInternal.ThreadPool.run(ThreadPool.java:321)
                        	at IceInternal.ThreadPool.access$300(ThreadPool.java:12)
                        	at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:693)
                        	at java.lang.Thread.run(Thread.java:724)
                        "
    serverExceptionClass = "ome.conditions.SecurityViolation"
    message = "Cannot read ome.model.containers.Dataset:Id_2"
	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:526)
	at java.lang.Class.newInstance(Class.java:374)
	at IceInternal.BasicStream.createUserException(BasicStream.java:2615)
	at IceInternal.BasicStream.access$300(BasicStream.java:12)
	at IceInternal.BasicStream$EncapsDecoder11.throwException(BasicStream.java:3406)
	at IceInternal.BasicStream.throwException(BasicStream.java:2077)
	at IceInternal.Outgoing.throwUserException(Outgoing.java:538)
	at omero.api._MetadataStoreDelM.saveToDB(_MetadataStoreDelM.java:184)
	at omero.api.MetadataStorePrxHelper.saveToDB(MetadataStorePrxHelper.java:573)
	at omero.api.MetadataStorePrxHelper.saveToDB(MetadataStorePrxHelper.java:545)
	at ome.formats.OMEROMetadataStoreClient.saveToDB(OMEROMetadataStoreClient.java:1852)
	... 34 more
}

	at ome.formats.importer.ImportLibrary$ImportCallback.onFinished(ImportLibrary.java:656)
	at omero.cmd.CmdCallbackI.finished(CmdCallbackI.java:301)
	at omero.cmd._CmdCallbackDisp.___finished(_CmdCallbackDisp.java:118)
	at omero.cmd._CmdCallbackDisp.__dispatch(_CmdCallbackDisp.java:145)
	at IceInternal.Incoming.invoke(Incoming.java:222)
	at Ice.ConnectionI.invokeAll(ConnectionI.java:2482)
	at Ice.ConnectionI.dispatch(ConnectionI.java:1258)
	at Ice.ConnectionI.message(ConnectionI.java:1213)
	at IceInternal.ThreadPool.run(ThreadPool.java:321)
	at IceInternal.ThreadPool.access$300(ThreadPool.java:12)
	at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:693)
	at java.lang.Thread.run(Thread.java:724)

java.lang.RuntimeException: Failure response on import!
Category: ::omero::grid::ImportRequest
Name: import-request-failure
Parameters: {message=omero.SecurityViolation
    serverStackTrace = "ome.conditions.SecurityViolation: Cannot read ome.model.containers.Dataset:Id_2
                        	at ome.security.basic.BasicACLVoter.throwLoadViolation(BasicACLVoter.java:171)
                        	at ome.security.CompositeACLVoter.throwLoadViolation(CompositeACLVoter.java:92)
                        	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.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215)
                        	at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:191)
                        	at ome.model.containers.Dataset_$$_javassist_5.getDetails(Dataset_$$_javassist_5.java)
                        	at ome.security.basic.OmeroInterceptor.evaluateLinkages(OmeroInterceptor.java:438)
                        	at ome.security.basic.OmeroInterceptor.onSave(OmeroInterceptor.java:160)
                        	at org.hibernate.event.def.AbstractSaveEventListener.substituteValuesIfNecessary(AbstractSaveEventListener.java:414)
                        	at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:293)
                        	at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)
                        	at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:144)
                        	at org.hibernate.event.def.DefaultMergeEventListener.saveTransientEntity(DefaultMergeEventListener.java:415)
                        	at org.hibernate.event.def.DefaultMergeEventListener.mergeTransientEntity(DefaultMergeEventListener.java:341)
                        	at org.hibernate.event.def.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:303)
                        	at org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener.entityIsTransient(IdTransferringMergeEventListener.java:59)
                        	at ome.security.basic.MergeEventListener.entityIsTransient(MergeEventListener.java:161)
                        	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:258)
                        	at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:94)
                        	at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:871)
                        	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:853)
                        	at org.hibernate.engine.CascadingAction$6.cascade(CascadingAction.java:279)
                        	at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:392)
                        	at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:335)
                        	at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:204)
                        	at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:425)
                        	at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:362)
                        	at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:338)
                        	at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:204)
                        	at org.hibernate.engine.Cascade.cascade(Cascade.java:161)
                        	at org.hibernate.event.def.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:476)
                        	at org.hibernate.event.def.DefaultMergeEventListener.mergeTransientEntity(DefaultMergeEventListener.java:388)
                        	at org.hibernate.event.def.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:303)
                        	at org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener.entityIsTransient(IdTransferringMergeEventListener.java:59)
                        	at ome.security.basic.MergeEventListener.entityIsTransient(MergeEventListener.java:161)
                        	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:258)
                        	at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:94)
                        	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:84)
                        	at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:80)
                        	at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:861)
                        	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:845)
                        	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:849)
                        	at ome.logic.UpdateImpl.internalMerge(UpdateImpl.java:274)
                        	at ome.logic.UpdateImpl$4.run(UpdateImpl.java:148)
                        	at ome.logic.UpdateImpl$4.run(UpdateImpl.java:143)
                        	at ome.logic.UpdateImpl.doAction(UpdateImpl.java:312)
                        	at ome.logic.UpdateImpl.doAction(UpdateImpl.java:303)
                        	at ome.logic.UpdateImpl.saveAndReturnArray(UpdateImpl.java:143)
                        	at ome.formats.OMEROMetadataStore.saveToDB(OMEROMetadataStore.java:2182)
                        	at ome.services.blitz.impl.MetadataStoreI$3.doWork(MetadataStoreI.java:224)
                        	at sun.reflect.GeneratedMethodAccessor301.invoke(Unknown Source)
                        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        	at java.lang.reflect.Method.invoke(Method.java:606)
                        	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.services.util.Executor$Impl$Interceptor.invoke(Executor.java:566)
                        	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                        	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(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: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(JdkDynamicAopProxy.java:202)
                        	at com.sun.proxy.$Proxy72.doWork(Unknown Source)
                        	at ome.services.util.Executor$Impl.execute(Executor.java:447)
                        	at ome.services.util.Executor$Impl.execute(Executor.java:391)
                        	at ome.services.throttling.Adapter.run(Adapter.java:51)
                        	at ome.services.throttling.InThreadThrottlingStrategy.runnableCall(InThreadThrottlingStrategy.java:89)
                        	at ome.services.blitz.impl.AbstractAmdServant.runnableCall(AbstractAmdServant.java:163)
                        	at ome.services.blitz.impl.MetadataStoreI.saveToDB_async(MetadataStoreI.java:218)
                        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        	at java.lang.reflect.Method.invoke(Method.java:606)
                        	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 omero.cmd.CallContext.invoke(CallContext.java:78)
                        	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                        	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
                        	at com.sun.proxy.$Proxy104.saveToDB_async(Unknown Source)
                        	at omero.api._MetadataStoreTie.saveToDB_async(_MetadataStoreTie.java:84)
                        	at omero.api._MetadataStoreDisp.___saveToDB(_MetadataStoreDisp.java:246)
                        	at omero.api._MetadataStoreDisp.__dispatch(_MetadataStoreDisp.java:388)
                        	at IceInternal.Incoming.invoke(Incoming.java:222)
                        	at Ice.ConnectionI.invokeAll(ConnectionI.java:2482)
                        	at Ice.ConnectionI.dispatch(ConnectionI.java:1258)
                        	at Ice.ConnectionI.message(ConnectionI.java:1213)
                        	at IceInternal.ThreadPool.run(ThreadPool.java:321)
                        	at IceInternal.ThreadPool.access$300(ThreadPool.java:12)
                        	at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:693)
                        	at java.lang.Thread.run(Thread.java:724)
                        "
    serverExceptionClass = "ome.conditions.SecurityViolation"
    message = "Cannot read ome.model.containers.Dataset:Id_2", stacktrace=java.lang.RuntimeException: omero.SecurityViolation
    serverStackTrace = "ome.conditions.SecurityViolation: Cannot read ome.model.containers.Dataset:Id_2
                        	at ome.security.basic.BasicACLVoter.throwLoadViolation(BasicACLVoter.java:171)
                        	at ome.security.CompositeACLVoter.throwLoadViolation(CompositeACLVoter.java:92)
                        	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.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215)
                        	at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:191)
                        	at ome.model.containers.Dataset_$$_javassist_5.getDetails(Dataset_$$_javassist_5.java)
                        	at ome.security.basic.OmeroInterceptor.evaluateLinkages(OmeroInterceptor.java:438)
                        	at ome.security.basic.OmeroInterceptor.onSave(OmeroInterceptor.java:160)
                        	at org.hibernate.event.def.AbstractSaveEventListener.substituteValuesIfNecessary(AbstractSaveEventListener.java:414)
                        	at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:293)
                        	at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)
                        	at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:144)
                        	at org.hibernate.event.def.DefaultMergeEventListener.saveTransientEntity(DefaultMergeEventListener.java:415)
                        	at org.hibernate.event.def.DefaultMergeEventListener.mergeTransientEntity(DefaultMergeEventListener.java:341)
                        	at org.hibernate.event.def.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:303)
                        	at org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener.entityIsTransient(IdTransferringMergeEventListener.java:59)
                        	at ome.security.basic.MergeEventListener.entityIsTransient(MergeEventListener.java:161)
                        	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:258)
                        	at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:94)
                        	at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:871)
                        	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:853)
                        	at org.hibernate.engine.CascadingAction$6.cascade(CascadingAction.java:279)
                        	at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:392)
                        	at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:335)
                        	at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:204)
                        	at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:425)
                        	at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:362)
                        	at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:338)
                        	at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:204)
                        	at org.hibernate.engine.Cascade.cascade(Cascade.java:161)
                        	at org.hibernate.event.def.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:476)
                        	at org.hibernate.event.def.DefaultMergeEventListener.mergeTransientEntity(DefaultMergeEventListener.java:388)
                        	at org.hibernate.event.def.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:303)
                        	at org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener.entityIsTransient(IdTransferringMergeEventListener.java:59)
                        	at ome.security.basic.MergeEventListener.entityIsTransient(MergeEventListener.java:161)
                        	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:258)
                        	at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:94)
                        	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:84)
                        	at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:80)
                        	at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:861)
                        	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:845)
                        	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:849)
                        	at ome.logic.UpdateImpl.internalMerge(UpdateImpl.java:274)
                        	at ome.logic.UpdateImpl$4.run(UpdateImpl.java:148)
                        	at ome.logic.UpdateImpl$4.run(UpdateImpl.java:143)
                        	at ome.logic.UpdateImpl.doAction(UpdateImpl.java:312)
                        	at ome.logic.UpdateImpl.doAction(UpdateImpl.java:303)
                        	at ome.logic.UpdateImpl.saveAndReturnArray(UpdateImpl.java:143)
                        	at ome.formats.OMEROMetadataStore.saveToDB(OMEROMetadataStore.java:2182)
                        	at ome.services.blitz.impl.MetadataStoreI$3.doWork(MetadataStoreI.java:224)
                        	at sun.reflect.GeneratedMethodAccessor301.invoke(Unknown Source)
                        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        	at java.lang.reflect.Method.invoke(Method.java:606)
                        	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.services.util.Executor$Impl$Interceptor.invoke(Executor.java:566)
                        	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                        	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(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: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(JdkDynamicAopProxy.java:202)
                        	at com.sun.proxy.$Proxy72.doWork(Unknown Source)
                        	at ome.services.util.Executor$Impl.execute(Executor.java:447)
                        	at ome.services.util.Executor$Impl.execute(Executor.java:391)
                        	at ome.services.throttling.Adapter.run(Adapter.java:51)
                        	at ome.services.throttling.InThreadThrottlingStrategy.runnableCall(InThreadThrottlingStrategy.java:89)
                        	at ome.services.blitz.impl.AbstractAmdServant.runnableCall(AbstractAmdServant.java:163)
                        	at ome.services.blitz.impl.MetadataStoreI.saveToDB_async(MetadataStoreI.java:218)
                        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        	at java.lang.reflect.Method.invoke(Method.java:606)
                        	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 omero.cmd.CallContext.invoke(CallContext.java:78)
                        	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                        	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
                        	at com.sun.proxy.$Proxy104.saveToDB_async(Unknown Source)
                        	at omero.api._MetadataStoreTie.saveToDB_async(_MetadataStoreTie.java:84)
                        	at omero.api._MetadataStoreDisp.___saveToDB(_MetadataStoreDisp.java:246)
                        	at omero.api._MetadataStoreDisp.__dispatch(_MetadataStoreDisp.java:388)
                        	at IceInternal.Incoming.invoke(Incoming.java:222)
                        	at Ice.ConnectionI.invokeAll(ConnectionI.java:2482)
                        	at Ice.ConnectionI.dispatch(ConnectionI.java:1258)
                        	at Ice.ConnectionI.message(ConnectionI.java:1213)
                        	at IceInternal.ThreadPool.run(ThreadPool.java:321)
                        	at IceInternal.ThreadPool.access$300(ThreadPool.java:12)
                        	at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:693)
                        	at java.lang.Thread.run(Thread.java:724)
                        "
    serverExceptionClass = "ome.conditions.SecurityViolation"
    message = "Cannot read ome.model.containers.Dataset:Id_2"
	at ome.formats.OMEROMetadataStoreClient.saveToDB(OMEROMetadataStoreClient.java:1868)
	at ome.services.blitz.repo.ManagedImportRequestI.importMetadata(ManagedImportRequestI.java:533)
	at ome.services.blitz.repo.ManagedImportRequestI.step(ManagedImportRequestI.java:403)
	at omero.cmd.HandleI.steps(HandleI.java:437)
	at omero.cmd.HandleI$1.doWork(HandleI.java:365)
	at omero.cmd.HandleI$1.doWork(HandleI.java:361)
	at sun.reflect.GeneratedMethodAccessor301.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	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.services.util.Executor$Impl$Interceptor.invoke(Executor.java:566)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	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(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: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(JdkDynamicAopProxy.java:202)
	at com.sun.proxy.$Proxy72.doWork(Unknown Source)
	at ome.services.util.Executor$Impl.execute(Executor.java:447)
	at omero.cmd.HandleI.run(HandleI.java:359)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at ome.services.util.Executor$Impl$1.call(Executor.java:488)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:724)
Caused by: omero.SecurityViolation
    serverStackTrace = "ome.conditions.SecurityViolation: Cannot read ome.model.containers.Dataset:Id_2
                        	at ome.security.basic.BasicACLVoter.throwLoadViolation(BasicACLVoter.java:171)
                        	at ome.security.CompositeACLVoter.throwLoadViolation(CompositeACLVoter.java:92)
                        	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.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215)
                        	at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:191)
                        	at ome.model.containers.Dataset_$$_javassist_5.getDetails(Dataset_$$_javassist_5.java)
                        	at ome.security.basic.OmeroInterceptor.evaluateLinkages(OmeroInterceptor.java:438)
                        	at ome.security.basic.OmeroInterceptor.onSave(OmeroInterceptor.java:160)
                        	at org.hibernate.event.def.AbstractSaveEventListener.substituteValuesIfNecessary(AbstractSaveEventListener.java:414)
                        	at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:293)
                        	at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)
                        	at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:144)
                        	at org.hibernate.event.def.DefaultMergeEventListener.saveTransientEntity(DefaultMergeEventListener.java:415)
                        	at org.hibernate.event.def.DefaultMergeEventListener.mergeTransientEntity(DefaultMergeEventListener.java:341)
                        	at org.hibernate.event.def.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:303)
                        	at org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener.entityIsTransient(IdTransferringMergeEventListener.java:59)
                        	at ome.security.basic.MergeEventListener.entityIsTransient(MergeEventListener.java:161)
                        	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:258)
                        	at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:94)
                        	at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:871)
                        	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:853)
                        	at org.hibernate.engine.CascadingAction$6.cascade(CascadingAction.java:279)
                        	at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:392)
                        	at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:335)
                        	at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:204)
                        	at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:425)
                        	at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:362)
                        	at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:338)
                        	at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:204)
                        	at org.hibernate.engine.Cascade.cascade(Cascade.java:161)
                        	at org.hibernate.event.def.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:476)
                        	at org.hibernate.event.def.DefaultMergeEventListener.mergeTransientEntity(DefaultMergeEventListener.java:388)
                        	at org.hibernate.event.def.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:303)
                        	at org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener.entityIsTransient(IdTransferringMergeEventListener.java:59)
                        	at ome.security.basic.MergeEventListener.entityIsTransient(MergeEventListener.java:161)
                        	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:258)
                        	at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:94)
                        	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:84)
                        	at ome.security.basic.MergeEventListener.onMerge(MergeEventListener.java:80)
                        	at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:861)
                        	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:845)
                        	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:849)
                        	at ome.logic.UpdateImpl.internalMerge(UpdateImpl.java:274)
                        	at ome.logic.UpdateImpl$4.run(UpdateImpl.java:148)
                        	at ome.logic.UpdateImpl$4.run(UpdateImpl.java:143)
                        	at ome.logic.UpdateImpl.doAction(UpdateImpl.java:312)
                        	at ome.logic.UpdateImpl.doAction(UpdateImpl.java:303)
                        	at ome.logic.UpdateImpl.saveAndReturnArray(UpdateImpl.java:143)
                        	at ome.formats.OMEROMetadataStore.saveToDB(OMEROMetadataStore.java:2182)
                        	at ome.services.blitz.impl.MetadataStoreI$3.doWork(MetadataStoreI.java:224)
                        	at sun.reflect.GeneratedMethodAccessor301.invoke(Unknown Source)
                        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        	at java.lang.reflect.Method.invoke(Method.java:606)
                        	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.services.util.Executor$Impl$Interceptor.invoke(Executor.java:566)
                        	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                        	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(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: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(JdkDynamicAopProxy.java:202)
                        	at com.sun.proxy.$Proxy72.doWork(Unknown Source)
                        	at ome.services.util.Executor$Impl.execute(Executor.java:447)
                        	at ome.services.util.Executor$Impl.execute(Executor.java:391)
                        	at ome.services.throttling.Adapter.run(Adapter.java:51)
                        	at ome.services.throttling.InThreadThrottlingStrategy.runnableCall(InThreadThrottlingStrategy.java:89)
                        	at ome.services.blitz.impl.AbstractAmdServant.runnableCall(AbstractAmdServant.java:163)
                        	at ome.services.blitz.impl.MetadataStoreI.saveToDB_async(MetadataStoreI.java:218)
                        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        	at java.lang.reflect.Method.invoke(Method.java:606)
                        	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 omero.cmd.CallContext.invoke(CallContext.java:78)
                        	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                        	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
                        	at com.sun.proxy.$Proxy104.saveToDB_async(Unknown Source)
                        	at omero.api._MetadataStoreTie.saveToDB_async(_MetadataStoreTie.java:84)
                        	at omero.api._MetadataStoreDisp.___saveToDB(_MetadataStoreDisp.java:246)
                        	at omero.api._MetadataStoreDisp.__dispatch(_MetadataStoreDisp.java:388)
                        	at IceInternal.Incoming.invoke(Incoming.java:222)
                        	at Ice.ConnectionI.invokeAll(ConnectionI.java:2482)
                        	at Ice.ConnectionI.dispatch(ConnectionI.java:1258)
                        	at Ice.ConnectionI.message(ConnectionI.java:1213)
                        	at IceInternal.ThreadPool.run(ThreadPool.java:321)
                        	at IceInternal.ThreadPool.access$300(ThreadPool.java:12)
                        	at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:693)
                        	at java.lang.Thread.run(Thread.java:724)
                        "
    serverExceptionClass = "ome.conditions.SecurityViolation"
    message = "Cannot read ome.model.containers.Dataset:Id_2"
	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:526)
	at java.lang.Class.newInstance(Class.java:374)
	at IceInternal.BasicStream.createUserException(BasicStream.java:2615)
	at IceInternal.BasicStream.access$300(BasicStream.java:12)
	at IceInternal.BasicStream$EncapsDecoder11.throwException(BasicStream.java:3406)
	at IceInternal.BasicStream.throwException(BasicStream.java:2077)
	at IceInternal.Outgoing.throwUserException(Outgoing.java:538)
	at omero.api._MetadataStoreDelM.saveToDB(_MetadataStoreDelM.java:184)
	at omero.api.MetadataStorePrxHelper.saveToDB(MetadataStorePrxHelper.java:573)
	at omero.api.MetadataStorePrxHelper.saveToDB(MetadataStorePrxHelper.java:545)
	at ome.formats.OMEROMetadataStoreClient.saveToDB(OMEROMetadataStoreClient.java:1852)
	... 34 more
}

	at ome.formats.importer.ImportLibrary$ImportCallback.onFinished(ImportLibrary.java:656) ~[blitz.jar:na]
	at omero.cmd.CmdCallbackI.finished(CmdCallbackI.java:301) ~[blitz.jar:na]
	at omero.cmd._CmdCallbackDisp.___finished(_CmdCallbackDisp.java:118) ~[blitz.jar:na]
	at omero.cmd._CmdCallbackDisp.__dispatch(_CmdCallbackDisp.java:145) ~[blitz.jar:na]
	at IceInternal.Incoming.invoke(Incoming.java:222) ~[ice.jar:na]
	at Ice.ConnectionI.invokeAll(ConnectionI.java:2482) ~[ice.jar:na]
	at Ice.ConnectionI.dispatch(ConnectionI.java:1258) ~[ice.jar:na]
	at Ice.ConnectionI.message(ConnectionI.java:1213) ~[ice.jar:na]
	at IceInternal.ThreadPool.run(ThreadPool.java:321) ~[ice.jar:na]
	at IceInternal.ThreadPool.access$300(ThreadPool.java:12) ~[ice.jar:na]
	at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:693) ~[ice.jar:na]
	at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25]
2015-03-10 10:27:25,164 8412       [      main] ERROR        ome.formats.importer.ImportLibrary - Error on import
java.lang.Exception: Import failure
	at ome.formats.importer.ImportLibrary.importImage(ImportLibrary.java:552) ~[blitz.jar:na]
	at ome.formats.importer.ImportLibrary.importCandidates(ImportLibrary.java:287) ~[blitz.jar:na]
	at ome.formats.importer.cli.CommandLineImporter.start(CommandLineImporter.java:237) ~[blitz.jar:na]
	at ome.formats.importer.cli.CommandLineImporter.main(CommandLineImporter.java:794) ~[blitz.jar:na]
2015-03-10 10:27:25,164 8412       [      main] INFO         ome.formats.importer.ImportLibrary - Exiting on error

==> Summary
2 files uploaded, 0 filesets created, 0 images imported, 1 error in 0:00:03.680

jrs-macbookpro:ome cblackburn$ omero sessions group rag-0
Using session 6f8c2eac-df7d-40bd-a101-896cf8f12497 (user-0@localhost:4064). Idle timeout: 10.0 min. Current group: rog-0
Group 'rog-0' (id=4) switched to 'rag-0' (id=5)
jrs-macbookpro:ome cblackburn$ omero import  ~/Work/Images/dv/CFPNEAT01_R3D.dv -d 2
Using session 6f8c2eac-df7d-40bd-a101-896cf8f12497 (user-0@localhost:4064). Idle timeout: 10.0 min. Current group: rag-0
2015-03-10 10:29:03,432 1433       [      main] INFO          ome.formats.importer.ImportConfig - OMERO Version: 5.1.0-m6-ice35-SNAPSHOT
2015-03-10 10:29:03,933 1934       [      main] INFO          ome.formats.importer.ImportConfig - Bioformats version: 5.1.0-m6-ice35-SNAPSHOT revision: b47a1fb date: 10 March 2015
2015-03-10 10:29:04,170 2171       [      main] INFO   formats.importer.cli.CommandLineImporter - Log levels -- Bio-Formats: ERROR OMERO.importer: INFO
2015-03-10 10:29:05,981 3982       [      main] INFO      ome.formats.importer.ImportCandidates - Depth: 4 Metadata Level: MINIMUM
2015-03-10 10:29:06,630 4631       [      main] INFO      ome.formats.importer.ImportCandidates - 1 file(s) parsed into 1 group(s) with 1 call(s) to setId in 644ms. (648ms total) [0 unknowns]
2015-03-10 10:29:07,291 5292       [      main] INFO       ome.formats.OMEROMetadataStoreClient - Attempting initial SSL connection to localhost:4064
2015-03-10 10:29:10,780 8781       [      main] INFO       ome.formats.OMEROMetadataStoreClient - Insecure connection requested, falling back
2015-03-10 10:29:13,092 11093      [      main] INFO       ome.formats.OMEROMetadataStoreClient - Server: 5.1.0
2015-03-10 10:29:13,092 11093      [      main] INFO       ome.formats.OMEROMetadataStoreClient - Client: 5.1.0-m6-ice35-SNAPSHOT
2015-03-10 10:29:13,092 11093      [      main] INFO       ome.formats.OMEROMetadataStoreClient - Java Version: 1.7.0_25
2015-03-10 10:29:13,092 11093      [      main] INFO       ome.formats.OMEROMetadataStoreClient - OS Name: Mac OS X
2015-03-10 10:29:13,092 11093      [      main] INFO       ome.formats.OMEROMetadataStoreClient - OS Arch: x86_64
2015-03-10 10:29:13,092 11093      [      main] INFO       ome.formats.OMEROMetadataStoreClient - OS Version: 10.10.2
2015-03-10 10:29:14,227 12228      [      main] INFO       ome.formats.OMEROMetadataStoreClient - Call context: {omero.group:5}
2015-03-10 10:29:14,270 12271      [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILESET_UPLOAD_PREPARATION
2015-03-10 10:29:15,493 13494      [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILESET_UPLOAD_START
2015-03-10 10:29:15,558 13559      [      main] INFO   ts.importer.transfers.UploadFileTransfer - Transferring /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv...
2015-03-10 10:29:15,584 13585      [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILE_UPLOAD_STARTED: /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv
2015-03-10 10:29:18,035 16036      [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILE_UPLOAD_COMPLETE: /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv
2015-03-10 10:29:18,060 16061      [      main] INFO   ts.importer.transfers.UploadFileTransfer - Transferring /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv.log...
2015-03-10 10:29:18,097 16098      [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILE_UPLOAD_STARTED: /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv.log
2015-03-10 10:29:18,175 16176      [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILE_UPLOAD_COMPLETE: /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv.log
2015-03-10 10:29:18,453 16454      [      main] INFO   ormats.importer.cli.LoggingImportMonitor - FILESET_UPLOAD_END
2015-03-10 10:29:18,952 16953      [      main] INFO   ormats.importer.cli.LoggingImportMonitor - IMPORT_STARTED Logfile: 32
2015-03-10 10:29:19,970 17971      [l.Client-1] INFO   ormats.importer.cli.LoggingImportMonitor - METADATA_IMPORTED Step: 1 of 5  Logfile: 32
2015-03-10 10:29:20,819 18820      [l.Client-0] INFO   ormats.importer.cli.LoggingImportMonitor - PIXELDATA_PROCESSED Step: 2 of 5  Logfile: 32
2015-03-10 10:29:21,175 19176      [l.Client-1] INFO   ormats.importer.cli.LoggingImportMonitor - THUMBNAILS_GENERATED Step: 3 of 5  Logfile: 32
2015-03-10 10:29:21,222 19223      [l.Client-0] INFO   ormats.importer.cli.LoggingImportMonitor - METADATA_PROCESSED Step: 4 of 5  Logfile: 32
2015-03-10 10:29:21,273 19274      [l.Client-1] INFO   ormats.importer.cli.LoggingImportMonitor - OBJECTS_RETURNED Step: 5 of 5  Logfile: 32
2015-03-10 10:29:21,634 19635      [l.Client-0] INFO   ormats.importer.cli.LoggingImportMonitor - IMPORT_DONE Imported file: /Users/cblackburn/Work/Images/dv/CFPNEAT01_R3D.dv
Imported pixels:
2
Other imported objects:
Fileset:3
Image:3
2015-03-10 10:29:21,635 19636      [l.Client-0] INFO      ome.formats.importer.cli.ErrorHandler - Number of errors: 0

==> Summary
2 files uploaded, 1 fileset created, 1 image imported, 0 errors in 0:00:07.577
jrs-macbookpro:ome cblackburn$

comment:2 Changed 10 years ago by cblackburn

  • Summary changed from Bug: CLI import to a dataset in a different group to default fails. to Bug: CLI import to a dataset in a different group to current fails.

comment:3 Changed 10 years ago by sbesson

  • Owner set to sbesson
  • Status changed from new to accepted

comment:4 Changed 10 years ago by mtbcarroll

  • Cc mtbcarroll added

I had a bit of a look at this and couldn't figure it out. If early in the CommandLineImporter constructor I do store.setCurrentGroup to the dataset's group, the fileset and image are still created with the other group instead; perhaps they're created beforehand or quite separately.

comment:5 Changed 10 years ago by sbesson

Agreed, https://github.com/openmicroscopy/openmicroscopy/blob/v5.1.0-m4/components/blitz/src/ome/formats/OMEROMetadataStoreClient.java#L1958 contains the logic to switch group in the store when looking for the target across groups. However, looking at the import log logging the store used server-side uses the initial context.

Interestingly a related bug is that the following also launches a stack trace.

bin/omero import test.fake -d 0

My proposal here is to unify the CLI behavior with the one of Insight, i.e. force the correct context to be used in the initial command. That would likely mean trying to retrieve the dataset/screen at the CLI import level and returning a meaningful error message early.

Version 0, edited 10 years ago by sbesson (next)

comment:6 Changed 10 years ago by cblackburn

My reason for discovering this bug was attempting to use the OMEROMetadataStoreClient to switch groups following the resolution of a templated path. I was trying to push that resolution away from the CLI importer. Having the CLI importer resolve which group the dataset in in would seem to go away from that. Since there is/was a mechanism for switching groups in the OMEROMetadataStoreClient is it worth understanding why that fails before moving a fix down to the CLI?

Last edited 10 years ago by cblackburn (previous) (diff)

comment:7 Changed 10 years ago by cblackburn

Hmm, is this because of FS? As the fileset is created at upload using the logged-in group that creates the problem when the import accesses a fileset that may not be available to it? has anyone tested this on a 4.4 server? If this is the case then maybe Sebastien's solution is the obvious one - or chgrping the fileset prior to import?

Last edited 10 years ago by cblackburn (previous) (diff)

comment:8 Changed 10 years ago by mtbcarroll

Do you happen to know what code creates the fileset and image? I tried a really rather early client-side setCurrentGroup but even that perhaps wasn't early enough.

comment:9 Changed 10 years ago by cblackburn

So, trying to import into a Dataset in a read-only group while logging in to the default private group:

omero import -d 51 ~/Work/Images/dv/CFPNEAT01_R3D.dv

results in

omero-latest=> select * from fileset where owner_id=2;
 id | permissions |          templateprefix           | version | creation_id | external_id | group_id | owner_id | update_id
----+-------------+-----------------------------------+---------+-------------+-------------+----------+----------+-----------
  1 |        -120 | user-0_2/2015-03/19/10-05-55.279/ |         |          50 |             |        3 |        2 |        50
  2 |        -120 | user-0_2/2015-03/19/10-08-32.408/ |         |          83 |             |        3 |        2 |        83
  3 |        -120 | user-0_2/2015-03/19/10-08-58.359/ |         |         114 |             |        3 |        2 |       114
  4 |        -120 | user-0_2/2015-03/19/10-09-26.858/ |         |         146 |             |        3 |        2 |       146
 51 |        -120 | user-0_2/2015-03/19/14-37-25.655/ |         |         792 |             |        3 |        2 |       792
(5 rows)

omero-latest=> select * from dataset where owner_id=2;
 id | description | permissions |     name     | version | creation_id | external_id | group_id | owner_id | update_id
----+-------------+-------------+--------------+---------+-------------+-------------+----------+----------+-----------
 51 |             |         -56 | rog-data     |         |         780 |             |        4 |        2 |       780
  4 |             |        -120 | nochecksum   |         |          38 |             |        3 |        2 |        38
  3 |             |        -120 | nominmax     |         |          37 |             |        3 |        2 |        37
  2 |             |        -120 | nothumbnails |         |          36 |             |        3 |        2 |        36
  1 |             |        -120 | standard     |         |          35 |             |        3 |        2 |        35
(5 rows)

Here the relevant Fileset is id=51. It is create in the context of the private group, not the read-only group. So, as in the log in the first comment, the group is logged as being changed but that context isn't then being used beyond that point.

Last edited 10 years ago by cblackburn (previous) (diff)

comment:10 Changed 10 years ago by cblackburn

  • Milestone changed from 5.1.0 to 5.1.1
  • Owner changed from sbesson to cblackburn
  • Priority changed from blocker to critical

Although originally marked as a blocker, there are work-arounds to this such as: using Insight, switching groups before importing to a target in that group or importing and then moving between groups post-import. Given these work-arounds and the imminency of 5.1.0 I'd suggest downgrading and pushing this so as not to hold up that release.

comment:11 Changed 10 years ago by cblackburn

See https://trac.openmicroscopy.org/ome/changeset/2f5cf9b793f3afabf0afc6b234ff82c67dd76387/ome.git where a relevant test, test_cliimport::testTargetInDifferentGroup was marked as xfail due to this bug. (now marked as broken but a sufficient test for this issue.)

comment:12 Changed 10 years ago by cblackburn

https://github.com/openmicroscopy/openmicroscopy/pull/3658 mitigates the effect of this bug preventing the unnecessary uploading of files if the Dataset is inaccessible and providing some more helpful feedback.

comment:13 Changed 9 years ago by cblackburn

  • Milestone changed from 5.1.1 to 5.1.2

comment:14 Changed 9 years ago by jamoore

  • Milestone changed from 5.1.4 to OMERO-5.1.4

Splitting 5.1.4 due to milestone decoupling

comment:15 Changed 9 years ago by cblackburn

  • Description modified (diff)
  • Milestone changed from OMERO-5.1.4 to OMERO-5.2.0

A tentative work around was tried at https://github.com/openmicroscopy/openmicroscopy/pull/4169 but is not suitable as a more general solution.

comment:16 Changed 9 years ago by cblackburn

  • Description modified (diff)

Pushing to 5.2 unless a 5.1.5 is mooted.

comment:17 Changed 9 years ago by jburel

  • Milestone changed from OMERO-5.2.1 to OMERO-5.2.2

Milestone OMERO-5.2.1 deleted

comment:18 Changed 9 years ago by jburel

  • Milestone changed from OMERO-5.2.2 to OMERO-5.2.1

Milestone OMERO-5.2.2 deleted

comment:19 Changed 9 years ago by jburel

  • Milestone changed from OMERO-5.2.2 to FacilityManagers

comment:20 Changed 5 years ago by mtbcarroll

  • Cc server@… added; mtbcarroll removed
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.67617 sec.)

We're Hiring!