Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in journal loader #858

Closed
rpoet-jh opened this issue Dec 19, 2023 · 1 comment · Fixed by eclipse-pass/pass-support#81
Closed

Error in journal loader #858

rpoet-jh opened this issue Dec 19, 2023 · 1 comment · Fixed by eclipse-pass/pass-support#81
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rpoet-jh
Copy link
Contributor

The journal loader failed on 12/19 with the following at the end of the log.

https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#logsV2:log-groups/log-group/$252Faws$252Fbatch$252Fjob/log-events/pass-data-loaders-journal-job-def$252Fdefault$252F539e2371b2fb43c492acfa24531a7875$3Fstart$3D1702975500000$26end$3D1703048399000

2023-12-19T03:45:15.134-05:00 | INFO 08:45:15.134 (o.e.p.l.j.nih.LoaderEngine) Created 1 new journals
-- | --
  | 2023-12-19T03:45:15.134-05:00 | INFO 08:45:15.134 (o.e.p.l.j.nih.LoaderEngine) Updated 6 journals
  | 2023-12-19T03:45:15.134-05:00 | INFO 08:45:15.134 (o.e.p.l.j.nih.LoaderEngine) 7134 journals did not need updating
  | 2023-12-19T03:45:15.134-05:00 | INFO 08:45:15.134 (o.e.p.l.j.nih.LoaderEngine) Skipped 0 journals due to lack of ISSN and NLMTA
  | 2023-12-19T03:45:15.134-05:00 | INFO 08:45:15.134 (o.e.p.l.j.nih.LoaderEngine) Skipped 172 journals due to suspected duplication
  | 2023-12-19T03:45:15.134-05:00 | INFO 08:45:15.134 (o.e.p.l.j.nih.LoaderEngine) Could not load or update 0 journals due to an error
  | 2023-12-19T03:45:15.135-05:00 | Exception in thread "main" java.lang.StringIndexOutOfBoundsException: begin 6, end -1, length 6
  | 2023-12-19T03:45:15.136-05:00 | at java.base/java.lang.String.checkBoundsBeginEnd(Unknown Source)
  | 2023-12-19T03:45:15.136-05:00 | at java.base/java.lang.String.substring(Unknown Source)
  | 2023-12-19T03:45:15.136-05:00 | at org.eclipse.pass.loader.journal.nih.MedlineReader.extractType(MedlineReader.java:107)
  | 2023-12-19T03:45:15.136-05:00 | at org.eclipse.pass.loader.journal.nih.MedlineReader.read(MedlineReader.java:84)
  | 2023-12-19T03:45:15.136-05:00 | at org.eclipse.pass.loader.journal.nih.MedlineReader$1.next(MedlineReader.java:64)
  | 2023-12-19T03:45:15.136-05:00 | at org.eclipse.pass.loader.journal.nih.MedlineReader$1.next(MedlineReader.java:50)
  | 2023-12-19T03:45:15.136-05:00 | at java.base/java.util.Iterator.forEachRemaining(Unknown Source)
  | 2023-12-19T03:45:15.136-05:00 | at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Unknown Source)
  | 2023-12-19T03:45:15.136-05:00 | at java.base/java.util.stream.ReferencePipeline$Head.forEach(Unknown Source)
  | 2023-12-19T03:45:15.136-05:00 | at org.eclipse.pass.loader.journal.nih.LoaderEngine.load(LoaderEngine.java:58)
  | 2023-12-19T03:45:15.136-05:00 | at org.eclipse.pass.loader.journal.nih.Main.main(Main.java:79)
@rpoet-jh rpoet-jh converted this from a draft issue Dec 19, 2023
@rpoet-jh rpoet-jh added the bug Something isn't working label Dec 19, 2023
@rpoet-jh rpoet-jh added this to the 1.3.0 milestone Dec 19, 2023
@rpoet-jh rpoet-jh moved this from Backlog to Ready for Development in Eclipse PASS Dec 19, 2023
@tsande16
Copy link
Contributor

Some initial debugging:

In the MedlineReader, if the String that is passed in at line 107 doesn't contain the parentheses it will produced this error that is in the log: Exception in thread "main" java.lang.StringIndexOutOfBoundsException: begin 6, end -1, length 6

@markpatton markpatton self-assigned this Jan 4, 2024
@markpatton markpatton moved this from Ready for Development to In Progress in Eclipse PASS Jan 4, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Eclipse PASS Jan 19, 2024
@dkriethof dkriethof moved this from Done to Deployed in Eclipse PASS Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants