← Back to team overview

dhis2-devs team mailing list archive

Programme validation rule exception with decimals

 

Not sure if this has already been reported, but thought just in case not.
We have defined a programme validation rule which states that the height of
a client (in meters) should be less than 2.5. However ,we get this exception


* ERROR 2014-06-24 07:02:24,750 Error while executing action
(ExceptionInterceptor.java [http-apr-8080-exec-5])
java.lang.NumberFormatException: For input string: "2.6"        at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Integer.parseInt(Integer.java:492)        at
java.lang.Integer.parseInt(Integer.java:527)        at
org.hisp.dhis.program.DefaultProgramValidationService.validate(DefaultProgramValidationService.java:176)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)

Version:2.15Build revision:15170
Regards,Jason

Follow ups