openlibraryenvironment/gokb

TitleLookup throwing IndexOutOfBoundsException

Closed this issue · 0 comments

Im Kontext von #339 zeigte das Log 2 Stacktraces, bei denen der Titel-Lookup (mit) ursächlich scheint:

2020-10-20 11:09:43.011 ERROR --- [ol-22-thread-10] org.gokb.IntegrationController : Package Crossref failed with Exception

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.remove(ArrayList.java:496)
at java_util_List$remove$12.call(Unknown Source)
at org.gokb.TitleLookupService.findOrCreateTitle(TitleLookupService.groovy:885)
at org.gokb.TitleLookupService.$tt__findOrCreate(TitleLookupService.groovy:466)
at org.gokb.TitleLookupService$_findOrCreate_closure3.doCall(TitleLookupService.groovy)
at org.gokb.TitleLookupService.findOrCreate(TitleLookupService.groovy)
at org.gokb.TitleLookupService.findOrCreate(TitleLookupService.groovy)
at org.gokb.IntegrationController$_crossReferencePackage_closure24$_closure40$_closure41$_closure47.doCall(IntegrationController.groovy:1004)
at org.gokb.cred.TitleInstance.withNewSession(TitleInstance.groovy)
at org.gokb.cred.TitleInstance$withNewSession$2.call(Unknown Source)
at org.gokb.IntegrationController$_crossReferencePackage_closure24$_closure40$_closure41.doCall(IntegrationController.groovy:997)
at org.gokb.IntegrationController$_crossReferencePackage_closure24$_closure40.doCall(IntegrationController.groovy:977)
at org.gokb.cred.Package.withNewSession(Package.groovy)
at org.gokb.cred.Package$withNewSession$3.call(Unknown Source)
at org.gokb.cred.Package$withNewSession$3.call(Unknown Source)
at org.gokb.IntegrationController$_crossReferencePackage_closure24.doCall(IntegrationController.groovy:927)

2020-10-20 11:15:39.468 ERROR --- [io-8009-exec-68] org.gokb.IntegrationController : Exception attempting to cross reference title

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.remove(ArrayList.java:496)
at java_util_List$remove$12.call(Unknown Source)
at org.gokb.TitleLookupService.findOrCreateTitle(TitleLookupService.groovy:885)
at org.gokb.TitleLookupService.$tt__findOrCreate(TitleLookupService.groovy:466)
at org.gokb.TitleLookupService$_findOrCreate_closure3.doCall(TitleLookupService.groovy)
at org.gokb.TitleLookupService.findOrCreate(TitleLookupService.groovy)
at org.gokb.TitleLookupService.findOrCreate(TitleLookupService.groovy)
at org.gokb.IntegrationController$_crossReferenceSingleTitle_closure29.doCall(IntegrationController.groovy:1757)
at org.gokb.cred.TitleInstance.withNewSession(TitleInstance.groovy)
at org.gokb.cred.TitleInstance$withNewSession$2.call(Unknown Source)
at org.gokb.IntegrationController.crossReferenceSingleTitle(IntegrationController.groovy:1732)
at org.gokb.IntegrationController.crossReferenceTitle(IntegrationController.groovy:1675)

2020-10-20 11:15:39.474 ERROR --- [io-8009-exec-68] org.gokb.IntegrationController : Source message causing error (ADD_TO_TEST_CASES): [publisher_history:[[endDate:, name:Georg Thieme Verlag KG, startDate:]], identifiers:[[type:eissn, value:1439-9121], [type:issn, value:1615-0007]], name:Laryngo-Rhino-Otologie (Supplement), prices:[], type:serial]