Details
-
Fix
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
1.11.1
-
None
Description
Current Situation
The com.sos.jitl.eventing.db.SchedulerEventDBItem defines some fields with jodatime. org.joda.time.contrib.hibernate.PersistentDateTime is not compatible with Hibernate 4.x
java.lang.AbstractMethodError: org.joda.time.contrib.hibernate.PersistentDateTime.nullSafeGet(Ljava/sql/ResultSet;[Ljava/lang/String;Lorg/hibernate/engine/spi/SessionImplementor;Ljava/lang/Object;)Ljava/lang/Object;
This example job throws the error when a record is found in the table SCHEDULER_EVENTS
<job stop_on_error="no"> <params > <param name="event_condition" value="not jobD"/> <param name="event_class" value="jobchain1"/> </params> <script language="java" java_class_path="" java_class="com.sos.jitl.eventing.checkevents.JobSchedulerCheckEventsJSAdapterClass"/> <run_time /> </job>
Desired Behaviour
The class should define the fields as Date and with the annotation
@Temporal(TemporalType.TIMESTAMP)