Issue 16049

ChecklistBank index builder errors

16049
Reporter: mdoering
Assignee: mdoering
Type: Bug
Summary: ChecklistBank index builder errors
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2014-07-09 10:51:55.073
Updated: 2014-09-16 10:42:18.616
Resolved: 2014-09-16 10:42:18.576
        
Description: Some non urls in name_usage.references, needs validation in the new clb indexing and to be removed now:

WARN  [2014-07-09 10:47:17,905+0200] [pool-1-thread-2] org.gbif.mybatis.type.UriTypeHandler: Invalid URI D0014; D0012


Further check if these errors are related:
http://api.gbif-uat.org/v1/species/131886085
http://api.gbif-uat.org/v1/species/131886087
http://api.gbif-uat.org/v1/species/131883780


ERROR [2014-07-09 10:47:47,620+0200] [pool-1-thread-1] org.gbif.checklistbank.index.NameUsageIndexingJob: Error indexing document for usage 131886085

ERROR [2014-07-09 10:47:45,863+0200] [pool-1-thread-1] org.gbif.checklistbank.index.NameUsageDocConverter: Error converting usage 131886085 to solr document
java.lang.ClassCastException: null

ERROR [2014-07-09 10:47:47,620+0200] [pool-1-thread-1] org.gbif.checklistbank.index.NameUsageIndexingJob: Error indexing document for usage 131886085
java.lang.RuntimeException: java.lang.ClassCastException
	at org.gbif.checklistbank.index.NameUsageDocConverter.toObject(NameUsageDocConverter.java:152) ~[clbindexing.jar:na]
	at org.gbif.checklistbank.index.NameUsageIndexingJob.call(NameUsageIndexingJob.java:106) [clbindexing.jar:na]
	at org.gbif.checklistbank.index.NameUsageIndexingJob.call(NameUsageIndexingJob.java:27) [clbindexing.jar:na]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_51]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_51]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_51]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51]
	at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
Caused by: java.lang.ClassCastException: null
ERROR [2014-07-09 10:47:47,622+0200] [pool-1-thread-1] org.gbif.checklistbank.index.NameUsageDocConverter: Error converting usage 131886087 to solr document
java.lang.ClassCastException: null
ERROR [2014-07-09 10:47:47,622+0200] [pool-1-thread-1] org.gbif.checklistbank.index.NameUsageIndexingJob: Error indexing document for usage 131886087
java.lang.RuntimeException: java.lang.ClassCastException
	at org.gbif.checklistbank.index.NameUsageDocConverter.toObject(NameUsageDocConverter.java:152) ~[clbindexing.jar:na]
	at org.gbif.checklistbank.index.NameUsageIndexingJob.call(NameUsageIndexingJob.java:106) [clbindexing.jar:na]
	at org.gbif.checklistbank.index.NameUsageIndexingJob.call(NameUsageIndexingJob.java:27) [clbindexing.jar:na]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_51]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_51]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_51]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51]
	at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
Caused by: java.lang.ClassCastException: null
ERROR [2014-07-09 10:47:47,624+0200] [pool-1-thread-1] org.gbif.checklistbank.index.NameUsageDocConverter: Error converting usage 131886090 to solr document
java.lang.ClassCastException: null
]]>