Ilya Drabenia created CAY-1876: ---------------------------------- Summary: Sometimes PropertyUtilsTest failed Key: CAY-1876 URL: https://issues.apache.org/jira/browse/CAY-1876 Project: Cayenne Issue Type: Bug Components: Core Library Affects Versions: 3.2M2 Environment: MS Windows 7, java 1.7.0_21 Reporter: Ilya Drabenia Priority: Minor
Sometimes PropertyUtilsTest failed. Something like 1 per 10 runs. {code} org.apache.cayenne.CayenneRuntimeException: [v.3.2M2-SNAPSHOT Oct 09 2013 09:32:17] Error setting property segment 'dateField' in path 'dateField' to value '0' for object 'org.apache.cayenne.reflect.TestJavaBean@32bd8b9c' at org.apache.cayenne.reflect.PropertyUtils.setProperty(PropertyUtils.java:169) at org.apache.cayenne.reflect.PropertyUtilsTest.testSetConverted(PropertyUtilsTest.java:196) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:139) at com.intellij.junit3.JUnit3IdeaTestRunner.startRunnerWithArgs(JUnit3IdeaTestRunner.java:52) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) Caused by: org.apache.cayenne.CayenneRuntimeException: [v.3.2M2-SNAPSHOT Oct 09 2013 09:32:17] Unable to convert '0' to a Date at org.apache.cayenne.reflect.PropertyUtilsTest$1.convert(PropertyUtilsTest.java:224) at org.apache.cayenne.reflect.PropertyUtilsTest$1.convert(PropertyUtilsTest.java:209) at org.apache.cayenne.reflect.PropertyUtils.setSimpleProperty(PropertyUtils.java:234) at org.apache.cayenne.reflect.PropertyUtils.setProperty(PropertyUtils.java:166) ... 24 more {code} -- This message was sent by Atlassian JIRA (v6.1#6144)