[Building Sakai] Turnitin null pointer exeption
Ciellie Jansen van Vuuren
ciellie.jansenvanvuuren at nwu.ac.za
Fri Mar 13 00:45:36 PDT 2015
Hallo
When I run the Process Content Review Reports job it get sometimes stuck
with a null pointer exception
See Catalina output
If I delete id 221037 in CONTENTREVIEW_ITEM (in the case below)
and run the
job again some of the reports come back but just get stuck with another
id I
cant get a pattren at all the record did get a external id but
get stuck on
status = 2 and retrycount = 0; No other reports get through then
Thanx for the help
Ciellie
2015-03-13 08:47:36,897 DEBUG QuartzScheduler_Worker-2
org.sakaiproject.contentreview.impl.turnitin.TurnitinReviewServiceImpl -
Still have retries left, continuing. ItemID: 221037
2015-03-13 08:47:36,897 DEBUG QuartzScheduler_Worker-2
org.sakaiproject.contentreview.impl.turnitin.TurnitinReviewServiceImpl -
Attempting to update hashtable with reports for site
0a7135af-0d25-45df-b738-d94fd71bdd78
2015-03-13 08:47:36,900 DEBUG QuartzScheduler_Worker-2
org.sakaiproject.contentreview.impl.turnitin.TurnitinReviewServiceImpl -
got
ref
org.sakaiproject.entity.impl.ReferenceComponent at 3f696597 of type:
sakai:assignment
2015-03-13 08:47:36,902 DEBUG QuartzScheduler_Worker-2
org.sakaiproject.contentreview.impl.turnitin.TurnitinReviewServiceImpl -
got
entity
org.sakaiproject.assignment.impl.
BaseAssignmentService$BaseAssignment at ca88e0d
2015-03-13 08:47:36,902 DEBUG
QuartzScheduler_Worker-2
org.sakaiproject.contentreview.
impl.turnitin.TurnitinReviewServiceImpl - Got
reflected assignemment
title from entity Individual
Assignment
2015-03-13 08:47:36,905 ERROR QuartzScheduler_Worker-2
org.quartz.core.JobRunShell - Job DEFAULT.Turnitin2 threw an unhandled
Exception:
java.lang.NullPointerException
at
org.sakaiproject.turnitin.util.
TurnitinAPIUtil.callTurnitinReturnInputStream
(TurnitinAPIUtil.java:407)
at
org.sakaiproject.turnitin.util.
TurnitinAPIUtil.callTurnitinReturnMap
(TurnitinAPIUtil.java:194)
at
org.sakaiproject.contentreview.impl.turnitin.
TurnitinAccountConnection.callTurnitinReturnMap
(TurnitinAccountConnection.java:353)
at
org.sakaiproject.contentreview.impl.turnitin.
TurnitinReviewServiceImpl.
checkForReportsBulk(TurnitinReviewServiceImpl.java:1817)
at
org.sakaiproject.contentreview.impl.
turnitin.TurnitinReviewServiceImpl.
checkForReports(TurnitinReviewServiceImpl.java:1708)
at
org.sakaiproject.component.app.scheduler.jobs.ContentReviewReports.
execute(ContentReviewReports.java:22)
at
org.sakaiproject.component.app.scheduler.jobs.
SpringJobBeanWrapper.execute
(SpringJobBeanWrapper.java:70)
at org.quartz.core.JobRunShell.run(JobRunShell.java:223)
at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run
(SimpleThreadPool.java:549)
2015-03-13 08:47:36,905 ERROR QuartzScheduler_Worker-2
org.quartz.core.ErrorLogger - Job
(DEFAULT.Turnitin2 threw an exception.
org.quartz.SchedulerException: Job threw an unhandled
exception. [See nested
exception: java.lang.NullPointerException]
at org.quartz.core.JobRunShell.run
(JobRunShell.java:234)
at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run
(SimpleThreadPool.java:549)
Caused by: java.lang.NullPointerException
at
org.sakaiproject.turnitin.util.TurnitinAPIUtil.
callTurnitinReturnInputStream(TurnitinAPIUtil.java:407)
at
org.sakaiproject.turnitin.util.TurnitinAPIUtil.
callTurnitinReturnMap(TurnitinAPIUtil.java:194)
at
org.sakaiproject.contentreview.impl.turnitin.
TurnitinAccountConnection.callTurnitinReturnMap
(TurnitinAccountConnection.java:353)
at
org.sakaiproject.contentreview.impl.turnitin.
TurnitinReviewServiceImpl.checkForReportsBulk
(TurnitinReviewServiceImpl.java:1817)
at
org.sakaiproject.contentreview.impl.turnitin.
TurnitinReviewServiceImpl.checkForReports
(TurnitinReviewServiceImpl.java:1708)
at
org.sakaiproject.component.app.scheduler.jobs.
ContentReviewReports.execute
(ContentReviewReports.java:22)
at
org.sakaiproject.component.app.scheduler.jobs.
SpringJobBeanWrapper.execute
SpringJobBeanWrapper.java:70)
at org.quartz.core.JobRunShell.run
(JobRunShell.java:223)
... 1 more
Thanx
Ciellie
More information about the sakai-dev
mailing list