Task #557 (new)
Opened 18 years ago
Last modified 18 years ago
EventHandler.setEventContext is causing a flush() — at Version 1
Reported by: | jburel | Owned by: | jamoore |
---|---|---|---|
Priority: | blocker | Milestone: | 3.0-Beta1 |
Component: | Services | Version: | 3.0-Beta1 |
Keywords: | n.a. | Cc: | |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description (last modified by jmoore)
I start the Rendering Service
I can view the image but as soon as I modified the rendering settings e.g. noiseReduction the following error is returned:
Caused by: ome.conditions.ApiUsageException: The security system is not ready. Cannot execute: managedDetails at ome.security.basic.BasicSecuritySystem.checkReady(BasicSecuritySystem.java:1328) at ome.security.basic.BasicSecuritySystem.checkManagedDetails(BasicSecuritySystem.java:469) at ome.security.basic.OmeroInterceptor.resetDetails(OmeroInterceptor.java:280) at ome.security.basic.OmeroInterceptor.onFlushDirty(OmeroInterceptor.java:165) at org.hibernate.event.def.DefaultFlushEntityEventListener.invokeInterceptor(DefaultFlushEntityEventListener.java:324) at org.hibernate.event.def.DefaultFlushEntityEventListener.handleInterception(DefaultFlushEntityEventListener.java:301) at org.hibernate.event.def.DefaultFlushEntityEventListener.scheduleUpdate(DefaultFlushEntityEventListener.java:241) at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:121) at ome.security.basic.FlushEntityEventListener.onFlushEntity(FlushEntityEventListener.java:77) at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:196) at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76) at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:35) C at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:969) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1114) at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79) at ome.services.query.Query.doInHibernate(Query.java:266) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:362) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:328) at ome.logic.QueryImpl.execute(QueryImpl.java:168) at ome.logic.QueryImpl.findAllByQuery(QueryImpl.java:391) at ome.security.basic.BasicSecuritySystem.clearAndCheckPrincipal(BasicSecuritySystem.java:1067) B at ome.security.basic.BasicSecuritySystem.setEventContext(BasicSecuritySystem.java:1014) at ome.security.basic.EventHandler.invoke(EventHandler.java:141) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176) A at ome.tools.hibernate.SessionHandler.doStateful(SessionHandler.java:201) at ome.tools.hibernate.SessionHandler.invoke(SessionHandler.java:187) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) ... at $Proxy10.renderAsPackedInt(Unknown Source)
Change History (1)
comment:1 Changed 18 years ago by jmoore
- Description modified (diff)
- Summary changed from RenderingService to EventHandler.setEventContext is causing a flush()
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
SessionHandler should have marked the session FlushMode.MANUAL at (A) so that when EventHandler tries to reset the context at (B) that no flush occurs like at (C).
See #427 and #428