globalbioticinteractions / nomer

maps identifiers and names to other identifiers and names
GNU General Public License v3.0
19 stars 3 forks source link

unexpected crash on parsing "unparsable" name [ad64ad57 a281 e b398 dddc7e953] #140

Closed jhpoelen closed 1 year ago

jhpoelen commented 1 year ago

echo -e "\tad64ad57 a281 e b398 dddc7e953" | nomer append gbif-parse

java.lang.RuntimeException: failed to apply taxon
    at org.globalbioticinteractions.nomer.match.MatchUtil.match(MatchUtil.java:39)
    at org.globalbioticinteractions.nomer.cmd.CmdReplace.run(CmdReplace.java:14)
    at picocli.CommandLine.executeUserObject(CommandLine.java:1939)
    at picocli.CommandLine.access$1300(CommandLine.java:145)
    at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
    at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
    at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
    at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
    at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
    at picocli.CommandLine.execute(CommandLine.java:2078)
    at org.globalbioticinteractions.nomer.Nomer.run(Nomer.java:57)
    at org.globalbioticinteractions.nomer.Nomer.main(Nomer.java:46)
Caused by: org.eol.globi.service.PropertyEnricherException: failed to parse [ad64ad57 a281 e b398 dddc7e953]
    at org.globalbioticinteractions.nomer.match.ParserServiceGBIF.parse(ParserServiceGBIF.java:72)
    at org.globalbioticinteractions.nomer.match.ParserServiceAbstract.match(ParserServiceAbstract.java:38)
    at org.eol.globi.service.TermMatcherHierarchical.match(TermMatcherHierarchical.java:57)
    at org.globalbioticinteractions.nomer.util.ReplacingRowHandler.onRow(ReplacingRowHandler.java:108)
    at org.globalbioticinteractions.nomer.match.MatchUtil.apply(MatchUtil.java:85)
    at org.globalbioticinteractions.nomer.match.MatchUtil.match(MatchUtil.java:37)
    ... 11 more
Caused by: org.gbif.nameparser.api.UnparsableNameException: Unparsable NO_NAME name: ad64ad57 a281 e b398 dddc7e953
    at org.gbif.nameparser.ParsingJob.unparsable(ParsingJob.java:485)
    at org.gbif.nameparser.ParsingJob.parse(ParsingJob.java:827)
    at org.gbif.nameparser.ParsingJob.call(ParsingJob.java:513)
    at org.gbif.nameparser.ParsingJob.call(ParsingJob.java:57)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)

expected something like:

    ad64ad57 a281 e b398 dddc7e953  SAME_AS     ad64ad57 a281 e b398 dddc7e953