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 #5222 (closed)

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

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

(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)

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.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.67596 sec.)

We're Hiring!