AtlasOfLivingAustralia / image-service

Image repository and tiling services
https://images.ala.org.au
0 stars 17 forks source link

Purge deleted images throws an Exception #133

Closed sbearcsiro closed 3 years ago

sbearcsiro commented 3 years ago

Running the purge delete images admin task throws an exception when there are images to delete:



groovyx.gpars.AsyncException: Some asynchronous operations failed. [java.util.concurrent.ExecutionException: org.hibernate.HibernateException: org.hibernate.HibernateException: No Session found for current thread] AsyncException{concurrentException
s=[
java.util.concurrent.ExecutionException: org.hibernate.HibernateException: org.hibernate.HibernateException: No Session found for current thread
]}
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
        at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77)
        at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:258)
        at groovyx.gpars.GParsExecutorsPoolUtil.processResult(GParsExecutorsPoolUtil.groovy:467)
        at groovyx.gpars.GParsExecutorsPoolUtil$processResult.call(Unknown Source)
        at groovyx.gpars.GParsPool.executeAsyncAndWait(GParsPool.groovy:206)
        at sun.reflect.GeneratedMethodAccessor245.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
        at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.invoke(StaticMetaMethodSite.java:46)
        at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.callStatic(StaticMetaMethodSite.java:102)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:55)
        at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.callStatic(StaticMetaMethodSite.java:104)
        at groovyx.gpars.GParsPool.executeAsyncAndWait(GParsPool.groovy:218)
        at groovyx.gpars.GParsPool$executeAsyncAndWait$1.call(Unknown Source)
        at au.org.ala.images.ImageService$_processBackgroundTasks_closure13.doCall(ImageService.groovy:752)```