T5 UUID Generator is Generating Illegal Long values from SOLOR Concept UUID

Description

Working on the creating a mapping class connecting the NIDs of SOLOR to the Meta Concept's SCTID (which are generated via the UuuidT5Generator class) I ran into the makeSolorIdFromUuid(UUID uuid) method generating illegal long values. The positive side is it consistently is generating these values for the Meta Concepts.

The blow stack trace shows a NumberFormatException for the value 16838046593340469996, which is one digit to to be a legal long primitive.

Stack trace:
Caused by: java.lang.NumberFormatException: For input string: "16838046593340469996"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[?:1.8.0_171]
at java.lang.Long.parseLong(Long.java:592) ~[?:1.8.0_171]
at java.lang.Long.valueOf(Long.java:803) ~[?:1.8.0_171]
at sh.isaac.solor.direct.MetaConceptMappingCache.lambda$null$0(MetaConceptMappingCache.java:18) ~[classes/:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_171]
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[?:1.8.0_171]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_171]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_171]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_171]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_171]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[?:1.8.0_171]
at sh.isaac.solor.direct.MetaConceptMappingCache.lambda$static$1(MetaConceptMappingCache.java:22) ~[classes/:?]
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[?:1.8.0_171]
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580) ~[?:1.8.0_171]
at sh.isaac.solor.direct.MetaConceptMappingCache.<clinit>(MetaConceptMappingCache.java:15) ~[classes/:?]
... 10 more

Environment

None

Assignee

Andrew Sills

Reporter

Andrew Sills

Labels

None

Priority

Blocker
Configure