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"

Bug #1168 (closed)

Opened 15 years ago

Closed 15 years ago

Delete Image

Reported by: jburel Owned by: jamoore
Priority: blocker Cc:
Sprint: n.a.
Total Remaining Time: n.a.

Description

Try to delete an Image using the
IDeletePrx#delete(long, boolean) method. The boolean value is true

Follow the error

ava.lang.Exception: org.openmicroscopy.shoola.env.data.DSAccessException: Cannot access data. 
Cannot delete the image: omero.rtypes$RLongI@c8
	at org.openmicroscopy.shoola.env.data.OMEROGateway.handleException(OMEROGateway.java:336)
	at org.openmicroscopy.shoola.env.data.OMEROGateway.deleteImage(OMEROGateway.java:4397)
	at org.openmicroscopy.shoola.env.data.OmeroDataServiceImpl.delete(OmeroDataServiceImpl.java:209)
	at org.openmicroscopy.shoola.env.data.OmeroDataServiceImpl.delete(OmeroDataServiceImpl.java:1339)
	at org.openmicroscopy.shoola.env.data.views.calls.DataObjectRemover$1.doCall(DataObjectRemover.java:75)
	at org.openmicroscopy.shoola.env.data.views.BatchCall.doStep(BatchCall.java:145)
	at org.openmicroscopy.shoola.util.concur.tasks.CompositeTask.doStep(CompositeTask.java:226)
	at org.openmicroscopy.shoola.env.data.views.CompositeBatchCall.doStep(CompositeBatchCall.java:126)
	at org.openmicroscopy.shoola.util.concur.tasks.ExecCommand.exec(ExecCommand.java:165)
	at org.openmicroscopy.shoola.util.concur.tasks.ExecCommand.run(ExecCommand.java:274)
	at org.openmicroscopy.shoola.util.concur.tasks.AsyncProcessor$Runner.run(AsyncProcessor.java:91)
	at java.lang.Thread.run(Thread.java:613)
Caused by: omero.ValidationException
    serverStackTrace = "ome.conditions.ValidationException: could not delete: [ome.model.core.LogicalChannel#54]; nested exception is org.hibernate.exception.ConstraintViolationException: could not delete: [ome.model.core.LogicalChannel#54]
                        	at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:624)
                        	at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
                        	at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
                        	at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
                        	at org.springframework.orm.hibernate3.HibernateTemplate.flush(HibernateTemplate.java:886)

Change History (5)

comment:1 Changed 15 years ago by jburel

The image I was trying to delete is the result of a projection or the origin of a projection.

comment:2 Changed 15 years ago by jburel

  • Milestone changed from Unscheduled to OMERO-Beta4

comment:3 Changed 15 years ago by jmoore

Jean-Marie, what should I do to reproduce this? Is the problem that two images are sharing the same logical channel? Some help on reproducing would be appreciated. Thanks.

comment:4 Changed 15 years ago by jburel

This happens when the image is projected
you then have 2 images that share logical channel and other information

comment:5 Changed 15 years ago by jmoore

  • Resolution set to fixed
  • Status changed from new to closed

r3577 should fix this. Closing, but open up with any other edge cases.

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.63476 sec.)

We're Hiring!