Skip to content

testBadFileId

(from integration.RawFileStoreTest took 0.71 sec)

PASS

Test Name: integration
Suite Name: OmeroJava.integration


[Method Execution Trend Chart]

Exception omero.ValidationException

Message: (none)Stacktrace:

    serverStackTrace = "ome.conditions.ValidationException: No row with the given identifier exists: [ome.model.core.OriginalFile#-1]; nested exception is org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [ome.model.core.OriginalFile#-1]
                        at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:693)
                        at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:416)
                        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:416)
                        at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:342)
                        at ome.logic.QueryImpl.get(QueryImpl.java:195)
                        at ome.services.RawFileBean.setFileIdWithBuffer(RawFileBean.java:358)
                        at ome.services.RawFileBean.setFileId(RawFileBean.java:345)
                        at jdk.internal.reflect.GeneratedMethodAccessor607.invoke(Unknown Source)
                        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
                        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
                        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
                        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
                        at ome.security.basic.EventHandler.invoke(EventHandler.java:154)
                        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
                        at ome.tools.hibernate.SessionHandler.doStateful(SessionHandler.java:216)
                        at ome.tools.hibernate.SessionHandler.invoke(SessionHandler.java:200)
                        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
                        at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
                        at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
                        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
                        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
                        at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:249)
                        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
                        at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:121)
                        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
                        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
                        at com.sun.proxy.$Proxy102.setFileId(Unknown Source)
                        at jdk.internal.reflect.GeneratedMethodAccessor607.invoke(Unknown Source)
                        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
                        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
                        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
                        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
                        at ome.security.basic.BasicSecurityWiring.invoke(BasicSecurityWiring.java:93)
                        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
                        at ome.services.blitz.fire.AopContextInitializer.invoke(AopContextInitializer.java:43)
                        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
                        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
                        at com.sun.proxy.$Proxy102.setFileId(Unknown Source)
                        at jdk.internal.reflect.GeneratedMethodAccessor687.invoke(Unknown Source)
                        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
                        at ome.services.blitz.util.IceMethodInvoker.invoke(IceMethodInvoker.java:172)
                        at ome.services.throttling.Callback.run(Callback.java:56)
                        at ome.services.throttling.InThreadThrottlingStrategy.callInvokerOnRawArgs(InThreadThrottlingStrategy.java:56)
                        at ome.services.blitz.impl.AbstractAmdServant.callInvokerOnRawArgs(AbstractAmdServant.java:140)
                        at ome.services.blitz.impl.RawFileStoreI.setFileId_async(RawFileStoreI.java:104)
                        at jdk.internal.reflect.GeneratedMethodAccessor685.invoke(Unknown Source)
                        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
                        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
                        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
                        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
                        at omero.cmd.CallContext.invoke(CallContext.java:85)
                        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
                        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
                        at com.sun.proxy.$Proxy103.setFileId_async(Unknown Source)
                        at omero.api._RawFileStoreTie.setFileId_async(_RawFileStoreTie.java:90)
                        at omero.api._RawFileStoreDisp.___setFileId(_RawFileStoreDisp.java:260)
                        at omero.api._RawFileStoreDisp.__dispatch(_RawFileStoreDisp.java:508)
                        at IceInternal.Incoming.invoke(Incoming.java:221)
                        at Ice.ConnectionI.invokeAll(ConnectionI.java:2536)
                        at Ice.ConnectionI.dispatch(ConnectionI.java:1145)
                        at Ice.ConnectionI.message(ConnectionI.java:1056)
                        at IceInternal.ThreadPool.run(ThreadPool.java:395)
                        at IceInternal.ThreadPool.access$300(ThreadPool.java:12)
                        at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:832)
                        at java.base/java.lang.Thread.run(Thread.java:829)
                        "
    serverExceptionClass = "ome.conditions.ValidationException"
    message = "No row with the given identifier exists: [ome.model.core.OriginalFile#-1]; nested exception is org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [ome.model.core.OriginalFile#-1]"
at jdk.internal.reflect.GeneratedConstructorAccessor280.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at java.base/java.lang.Class.newInstance(Class.java:584)
at IceInternal.BasicStream.createUserException(BasicStream.java:2785)
at IceInternal.BasicStream.access$300(BasicStream.java:14)
at IceInternal.BasicStream$EncapsDecoder11.throwException(BasicStream.java:3620)
at IceInternal.BasicStream.throwException(BasicStream.java:2291)
at IceInternal.OutgoingAsync.throwUserException(OutgoingAsync.java:399)
at omero.api.RawFileStorePrxHelper.end_setFileId(RawFileStorePrxHelper.java:916)
at omero.api.RawFileStorePrxHelper.setFileId(RawFileStorePrxHelper.java:795)
at omero.api.RawFileStorePrxHelper.setFileId(RawFileStorePrxHelper.java:782)
at integration.RawFileStoreTest.testBadFileId(RawFileStoreTest.java:121)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:135)
at org.testng.internal.invokers.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:44)
at org.testng.internal.invokers.InvokeMethodRunnable.call(InvokeMethodRunnable.java:72)
at org.testng.internal.invokers.InvokeMethodRunnable.call(InvokeMethodRunnable.java:10)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)