FHIR Chat · NPE: Can't initialize cache · committers

Stream: committers

Topic: NPE: Can't initialize cache


view this post on Zulip David Pyke (Nov 11 2021 at 19:12):

I"m trying a build and getting these:
Load Terminology Cache from C:\Users\dpyke\.fhir\tx-cache\git@github.com:HL7\fhir.git\Consent-Example-updates-nov-21 1.012 7sec 56MB
Initialise terminology cache from http://tx.fhir.org/tx-cache/git@github.com:HL7/fhir.git/Consent-Example-updates-nov-21.zip
No - can't initialise cache from http://tx.fhir.org/tx-cache/git@github.com:HL7/fhir.git/Consent-Example-updates-nov-21.zip: http://tx.fhir.org/tx-cache/git@github.com:HL7/fhir.git/Consent-Example-updates-nov-21.zip?nocache=1636657579763
Initialise terminology cache from http://tx.fhir.org/tx-cache/git@github.com:HL7/fhir.git/default.zip
No - can't initialise cache from http://tx.fhir.org/tx-cache/git@github.com:HL7/fhir.git/default.zip: http://tx.fhir.org/tx-cache/git@github.com:HL7/fhir.git/default.zip?nocache=1636657579943

Which gives me this:
FHIR build failure @ Thu, Nov 11, 2021 14:06-0500 3.642 11sec 56MB
Error: null
java.lang.NullPointerException
at org.hl7.fhir.r5.context.TerminologyCache.load(TerminologyCache.java:383)
at org.hl7.fhir.r5.context.TerminologyCache.<init>(TerminologyCache.java:124)
at org.hl7.fhir.r5.context.BaseWorkerContext.initTS(BaseWorkerContext.java:1122)
at org.hl7.fhir.tools.publisher.PageProcessor.setDefinitions(PageProcessor.java:9148)
at org.hl7.fhir.tools.publisher.Publisher.initialize(Publisher.java:1799)
at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:598)
at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:487)

What's a poor committer to do?

view this post on Zulip Grahame Grieve (Nov 11 2021 at 19:13):

in this case, ask me

view this post on Zulip David Pyke (Nov 11 2021 at 19:14):

Oh, Mr. Grieve, what do I do? You're my only hope!

view this post on Zulip Grahame Grieve (Nov 11 2021 at 19:15):

what's the log before that happens?

view this post on Zulip David Pyke (Nov 11 2021 at 19:16):

14:06:16.798 [main] DEBUG org.eclipse.jgit.internal.storage.file.FileSnapshot - file=C:\FHIR\fhir\.git\packed-refs, is unmodified
This is a GitHub Repository: https://github.com/git@github.com:HL7/fhir.git/Consent-Example-updates-nov-21 (f495261e97ce8dc4fe8811cdc6d5057be9927354)
Load UTG Terminology 5.905 6sec 54MB
Load Package hl7.terminology#2.1.0
Load Terminology Cache from C:\Users\dpyke\.fhir\tx-cache\git@github.com:HL7\fhir.git\Consent-Example-updates-nov-21 1.012 7sec 56MB

view this post on Zulip David Pyke (Nov 11 2021 at 19:17):

Before that is a fabulous number of DEBUG statements

view this post on Zulip Grahame Grieve (Nov 11 2021 at 19:17):

what kind of debug statements?

view this post on Zulip David Pyke (Nov 11 2021 at 19:18):

14:06:16.792 [main] DEBUG org.eclipse.jgit.internal.storage.file.FileSnapshot - file=C:\Users\dpyke\.config\jgit\config.lock, is racily clean
14:06:16.792 [main] DEBUG org.eclipse.jgit.util.SystemReader - loading config FileBasedConfig[C:\Users\dpyke\.config\jgit\config]
14:06:16.792 [main] DEBUG org.eclipse.jgit.internal.storage.file.FileSnapshot - file=C:\Users\dpyke\.config\jgit\config, create new FileSnapshot: lastRead=2021-11-11 14:06:16.792999200, lastModified=2021-11-11 14:06:16.768999000, size=121, fileKey=java.lang.Object@13e39c73
14:06:16.798 [main] DEBUG org.eclipse.jgit.internal.storage.file.FileSnapshot - file=C:\Users\dpyke\.config\jgit\config.lock, isRacyClean=false, read=2021-11-11 14:06:16.792999200, lastModified=2021-11-11 14:06:16.768999000, delta=24000200 ns, racy<=2508500 ns
14:06:16.798 [main] DEBUG org.eclipse.jgit.internal.storage.file.FileSnapshot - file=C:\Program Files\Git\etc\gitconfig, isRacyClean=false, read=2021-11-11 14:06:13.556002100, lastModified=2021-10-14 09:51:43.943159000, delta=2438069612843100 ns, racy<=2500000000 ns
14:06:16.798 [main] DEBUG org.eclipse.jgit.internal.storage.file.FileSnapshot - file=C:\Program Files\Git\etc\gitconfig, is unmodified
14:06:16.798 [main] DEBUG org.eclipse.jgit.internal.storage.file.FileSnapshot - file=C:\Users\dpyke\.gitconfig, isRacyClean=false, read=2021-11-11 14:06:13.558001800, lastModified=2021-06-03 15:22:45.078444000, delta=13909408479557800 ns, racy<=2500000000 ns
14:06:16.798 [main] DEBUG org.eclipse.jgit.internal.storage.file.FileSnapshot - file=C:\Users\dpyke\.gitconfig, is unmodified
14:06:16.798 [main] DEBUG org.eclipse.jgit.internal.storage.file.FileSnapshot - file=C:\FHIR\fhir\.git\config, isRacyClean=false, read=2021-11-11 14:06:13.559001600, lastModified=2021-11-08 10:08:33.102640000, delta=273460456361600 ns, racy<=2500000000 ns
14:06:16.798 [main] DEBUG org.eclipse.jgit.internal.storage.file.FileSnapshot - file=C:\FHIR\fhir\.git\config, is unmodified
14:06:16.798 [main] DEBUG org.eclipse.jgit.internal.storage.file.FileSnapshot - file=C:\FHIR\fhir\.git\packed-refs, isRacyClean=false, read=2021-11-11 14:06:16.769999500, lastModified=2021-11-08 11:04:49.703617000, delta=270087066382500 ns, racy<=2508500 ns
14:06:16.798 [main] DEBUG org.eclipse.jgit.internal.storage.file.FileSnapshot - file=C:\FHIR\fhir\.git\packed-refs, is unmodified

view this post on Zulip David Pyke (Nov 11 2021 at 19:19):

Hundreds of FileSnapshot lines

view this post on Zulip Grahame Grieve (Nov 11 2021 at 19:20):

sigh.

view this post on Zulip Grahame Grieve (Nov 11 2021 at 19:51):

I really hate that logging framework, but it doesn't seem as though I can make it go away.

view this post on Zulip Grahame Grieve (Nov 11 2021 at 19:52):

though no doubt the maintainers would tell me that somewhere in those 100s of lines is the answer as to why my code is broken.

view this post on Zulip David Pyke (Nov 11 2021 at 19:55):

well, then, here's the full log...
full-log.txt

view this post on Zulip Grahame Grieve (Nov 11 2021 at 20:05):

@David Pyke try again

view this post on Zulip David Pyke (Nov 11 2021 at 20:08):

No change

view this post on Zulip Grahame Grieve (Nov 11 2021 at 20:08):

what's the very first few lines of output?

view this post on Zulip David Pyke (Nov 11 2021 at 20:09):

$ publish.bat
Running publication process now
The system cannot find the file specified.
Using
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

Configure project :

Kicking off FHIR publishing job!

==============================
Generating code using kindling version 1.0.1-SNAPSHOT
For more information on kindling, and to check latest version, check here:
https://github.com/HL7/kindling
==============================

Task :publish
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Publish FHIR in folder C:\FHIR\fhir @ Thu, Nov 11, 2021 15:07-0500 0.015 0sec 20MB
FHIR Main Build Publisher 2.1 0.035 0sec 20MB
Detected Java version: 11.0.11 from C:\Program Files\AdoptOpenJDK\jdk-11.0.11.9-hotspot on Windows 10/amd64 (64bit). 8124MB available 0.001 0sec 20MB
dir = C:\FHIR\fhir, path = C:\Program Files\ConEmu\ConEmu\Scripts;C:\Program Files\ConEmu;C:\Program Files\ConEmu\ConEmu;C:\Program Files\AdoptOpenJDK\jdk-11.0.11.9-hotspot\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Gow\bin;C:\Program Files\dotnet\;C:\Program Files\VSCodium\bin;C:\Program Files\PuTTY\;C:\Program Files (x86)\NTP\bin;C:\Program Files\apache-maven-3.8.2\bin;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\PowerShell\7\;C:\Ruby27-x64\bin;C:\Users\dpyke\AppData\Local\Microsoft\WindowsApps;C:\Users\dpyke\AppData\Local\Pandoc\;C:\Users\dpyke\AppData\Roaming\npm;C:\Users\dpyke\AppData\Local\Box\Box Edit\ 0.0 0sec 20MB
Parameters: 0.0 0sec 20MB
Start Clock @ Thursday, November 11, 2021 at 3:07:19 PM Eastern Standard Time (2021-11-11T15:07:19-05:00) 0.005 0sec 20MB
0.001 0sec 20MB
Build local copy 0.0 0sec 20MB
API keys loaded from C:\Users\dpyke\fhir-build-keys.ini 0.068 0sec 20MB
15:07:19.753 [main] DEBUG org.eclipse.jgit.internal.storage.file.FileSnapshot - file=C:\FHIR\fhir\.git\config, create new FileSnapshot: lastRead=2021-11-11 15:07:19.748816800, lastModified=2021-11-11 15:06:56.470835000, size=458, fileKey=java.lang.Object@13e39c73

view this post on Zulip Grahame Grieve (Nov 11 2021 at 20:10):

ok thanks. and then after all the jgit crap, what's the reported github location?

view this post on Zulip Grahame Grieve (Nov 11 2021 at 20:10):

"This is a GitHub Repository"... what does that say?

view this post on Zulip David Pyke (Nov 11 2021 at 20:11):

This is a GitHub Repository: https://github.com/git@github.com:HL7/fhir.git/Consent-Example-updates-nov-21 (f495261e97ce8dc4fe8811cdc6d5057be9927354)

view this post on Zulip David Pyke (Nov 11 2021 at 20:11):

Do you want me to push up my changes? I haven't because they're not tested

view this post on Zulip Grahame Grieve (Nov 11 2021 at 20:12):

no it's to do with infrastructure

view this post on Zulip Grahame Grieve (Nov 11 2021 at 20:18):

ok, try again, and keep trying again occasionally until the line FHIR Main Build Publisher reports version 2.1.1

view this post on Zulip David Pyke (Nov 11 2021 at 20:19):

okay, it failed now but I'll try again in a bit

view this post on Zulip David Pyke (Nov 12 2021 at 14:11):

This is still happening. How do I force it to update to 2.1.1?

view this post on Zulip Grahame Grieve (Nov 12 2021 at 17:53):

I don't know. you using publish.bat?

view this post on Zulip David Pyke (Nov 12 2021 at 17:59):

Yes, but a I did a gradlew clean publish and it was the same.

view this post on Zulip David Pyke (Nov 15 2021 at 13:50):

A new kindling was pulled down and now everything works! Huzzah!


Last updated: Apr 12 2022 at 19:14 UTC