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 #8924 (new)

Opened 12 years ago

Last modified 8 years ago

Bug: ThumbnailStore resetDefaults() fails

Reported by: cblackburn Owned by:
Priority: major Milestone: Rendering
Component: Services Version: OMERO-5.2.0
Keywords: schema-2012-06 Cc: cxallan, jamoore, jburel
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

Tests in thumbs.py fail due to the following sequence:

        pix = self.missing_pyramid()
        tb = self.client.sf.createThumbnailStore()
        tb.setPixelsId(pix.id.val)
        tb.resetDefaults() # Sets new missingPyramid flag

Exception below

Change History (10)

comment:1 Changed 12 years ago by cblackburn

======================================================================
ERROR: testThumbnailExists (__main__.TestThumbs)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/integration/thumbs.py", line 74, in testThumbnailExists
    tb = self.pyr_tb()
  File "test/integration/thumbs.py", line 47, in pyr_tb
    tb.resetDefaults() # Sets new missingPyramid flag
  File "/Users/cblackburn/Work/repos/ome/dist/lib/python/omero_api_ThumbnailStore_ice.py", line 191, in resetDefaults
    return _M_omero.api.ThumbnailStore._op_resetDefaults.invoke(self, ((), _ctx))
ValidationException: exception ::omero::ValidationException
{
    serverStackTrace = ome.conditions.ValidationException: could not insert: [ome.model.meta.Event]; SQL [insert into event (containingEvent, external_id, permissions, experimenter, experimenterGroup, "session", status, time, type, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; constraint [experimentergroup]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [ome.model.meta.Event]
	at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:637)
	at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
	at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:117)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:108)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:231)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:116)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
	at $Proxy69.doWork(Unknown Source)
	at ome.services.util.Executor$Impl.execute(Executor.java:402)
	at ome.services.util.Executor$Impl.execute(Executor.java:346)
	at ome.services.pixeldata.PixelDataThread.makeEvent(PixelDataThread.java:206)
	at ome.services.pixeldata.PixelDataThread.access$200(PixelDataThread.java:44)
	at ome.services.pixeldata.PixelDataThread$2.call(PixelDataThread.java:199)
	at ome.services.pixeldata.PixelDataThread$2.call(PixelDataThread.java:197)
	at ome.services.util.Executor$Impl$1.call(Executor.java:427)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:680)

    serverExceptionClass = ome.conditions.ValidationException
    message = could not insert: [ome.model.meta.Event]; SQL [insert into event (containingEvent, external_id, permissions, experimenter, experimenterGroup, "session", status, time, type, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; constraint [experimentergroup]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [ome.model.meta.Event]
}

comment:2 Changed 12 years ago by jburel

  • Keywords schema-2012-06 added

comment:3 Changed 12 years ago by jburel

  • Milestone changed from OMERO-Beta4.4 to OMERO-Beta4.5

comment:4 Changed 12 years ago by jburel

Referencing ticket #8084 has changed sprint.

comment:5 Changed 11 years ago by ajpatterson

  • Milestone changed from OMERO-5 to Future

comment:6 Changed 11 years ago by ajpatterson

Referencing ticket #8084 has changed sprint.

comment:7 Changed 8 years ago by jamoore

  • Cc changed from cxallan,jamoore,jburel,sylittlewood to cxallan, jamoore, jburel, sylittlewood

Referencing ticket #8084 has changed sprint.

comment:8 Changed 8 years ago by jamoore

Referencing ticket #8084 has changed sprint.

comment:9 Changed 8 years ago by jamoore

  • Milestone changed from Future to Unscheduled

comment:10 Changed 8 years ago by jburel

  • Cc sylittlewood removed
  • Milestone changed from Unscheduled to Rendering
  • Version set to OMERO-5.2.0
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.66536 sec.)

We're Hiring!