Task #5222 (closed)
Bug: update service test
Reported by: | jburel | Owned by: | jburel |
---|---|---|---|
Priority: | major | Milestone: | OMERO-Beta4.3 |
Component: | General | Version: | n.a. |
Keywords: | n.a. | Cc: | jamoore |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | 0.0d |
Sprint: | 2011-05-19 (12) |
Description
The following tests failed with the error below:
- testCreateInstrumentUsingAdd
- testCreateInstrumentUsingSet
omero.ValidationException serverStackTrace = "ome.conditions.ValidationException: could not insert: [ome.model.acquisition.Laser]; SQL [insert into laser (frequencyMultiplication, laserMedium, pockelCell, pulse, pump, repetitionRate, tuneable, type, wavelength, lightsource_id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; constraint [laser_check]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [ome.model.acquisition.Laser] 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:111) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy82.saveAndReturnObject(Unknown Source) at sun.reflect.GeneratedMethodAccessor2054.invoke(Unknown Source)
Change History (3)
comment:1 Changed 13 years ago by jburel
- Remaining Time set to 0.25
- Status changed from new to accepted
comment:2 Changed 13 years ago by jburel <j.burel@…>
- Remaining Time changed from 0.25 to 0
- Resolution set to fixed
- Status changed from accepted to closed
comment:3 Changed 13 years ago by jburel
READ now instead of NOT
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
(In [0f8b2de9a5fee8d491a1eee5f1d4f4f493678e09/ome.git] on branch develop) Fix constraint violation problem due to the fact that frequency multiplication
is not a Positive Integer (close #5222)