Uploaded image for project: 'JITL - JobScheduler Integrated Template Library'
  1. JITL - JobScheduler Integrated Template Library
  2. JITL-344

JobSchedulerEventDBItem does not work with jodatime

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.11.1
    • 1.11.2, 1.12
    • 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)
      

      Attachments

        Activity

          People

            ur Uwe Risse
            ur Uwe Risse
            Santiago Aucejo Petzoldt Santiago Aucejo Petzoldt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: