Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-29709 Add SiteStats ribbon for Lessons tool activity
  3. SAK-31852

NPE in LessonBuilderStatImpl.java compareTo method

    Details

    • Type: Sub-task
    • Status: Verified
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.1
    • Fix Version/s: 11.3
    • Component/s: Sitestats
    • Labels:
      None
    • 11 status:
      Resolved

      Description

      2016-10-10 12:25:00,028 INFO QuartzScheduler_Worker-3 org.sakaiproject.sitestats.impl.StatsAggregateJobImpl - Starting job: sitestats
      2016-10-10 12:25:03,332 WARN QuartzScheduler_Worker-3 org.sakaiproject.sitestats.impl.StatsUpdateManagerImpl - Unable to commit transaction:
      java.lang.NullPointerException
      at org.sakaiproject.sitestats.impl.LessonBuilderStatImpl.compareTo(LessonBuilderStatImpl.java:74)
      at org.sakaiproject.sitestats.impl.LessonBuilderStatImpl.compareTo(LessonBuilderStatImpl.java:32)
      at java.util.Arrays.mergeSort(Arrays.java:1349)
      at java.util.Arrays.legacyMergeSort(Arrays.java:1319)
      at java.util.Arrays.sort(Arrays.java:1310)
      at java.util.Arrays.sort(Arrays.java:1506)
      at java.util.ArrayList.sort(ArrayList.java:1454)
      at java.util.Collections.sort(Collections.java:141)
      at org.sakaiproject.sitestats.impl.StatsUpdateManagerImpl.doUpdateLessonBuilderStatObjects(StatsUpdateManagerImpl.java:1115)
      at org.sakaiproject.sitestats.impl.StatsUpdateManagerImpl.access$600(StatsUpdateManagerImpl.java:67)
      at org.sakaiproject.sitestats.impl.StatsUpdateManagerImpl$5.doInHibernate(StatsUpdateManagerImpl.java:932)
      at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:411)
      at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:341)
      at org.sakaiproject.sitestats.impl.StatsUpdateManagerImpl.doUpdateConsolidatedEvents(StatsUpdateManagerImpl.java:900)
      at org.sakaiproject.sitestats.impl.StatsUpdateManagerImpl.collectEvents(StatsUpdateManagerImpl.java:281)
      at org.sakaiproject.sitestats.impl.StatsUpdateManagerImpl.collectEvents(StatsUpdateManagerImpl.java:259)
      at org.sakaiproject.sitestats.impl.StatsAggregateJobImpl.startJob(StatsAggregateJobImpl.java:318)
      at org.sakaiproject.sitestats.impl.StatsAggregateJobImpl.execute(StatsAggregateJobImpl.java:192)
      at org.sakaiproject.component.app.scheduler.jobs.SpringJobBeanWrapper.execute(SpringJobBeanWrapper.java:70)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
      2016-10-10 12:25:03,332 ERROR QuartzScheduler_Worker-3 org.sakaiproject.sitestats.impl.StatsAggregateJobImpl - An error occurred while processing/persisting events to db. Please check your logs, fix possible probl
      ems and re-run this job (will start after last successful processed event).
      2016-10-10 12:25:03,333 INFO QuartzScheduler_Worker-3 org.sakaiproject.sitestats.impl.StatsAggregateJobImpl - Summary: An error occurred while processing/persisting events to db. Please check your logs, fix possi
      ble problems and re-run this job (will start after last successful processed event).
      2016-10-10 12:25:03,333 INFO QuartzScheduler_Worker-3 org.sakaiproject.sitestats.impl.StatsAggregateJobImpl - Finishing job: sitestats

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                a.fish@lancaster.ac.uk Adrian Fish
                Reporter:
                ottenhoff Sam Ottenhoff
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration