最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Errors after having published the implementation guide FHIR for the first time - Stack Overflow

programmeradmin2浏览0评论

I made the first publication to FHIR IG Builds from the GitHub repository, using the Auto-Builder and webhook. The first publication went well, but subsequent builds gave me the following error:

Publishing Content Failed: Cannot invoke ".hl7.fhir.utilities.npm.PackageList.versions()" because "pl" is null (00:00.985 / 00:49.765, 1Gb)
                                                                                                     (00:00.000 / 00:49.765, 1Gb)
Use -? to get command line help                                                                      (00:00.000 / 00:49.765, 1Gb)
                                                                                                     (00:00.000 / 00:49.765, 1Gb)
Stack Dump (for debugging):                                                                          (00:00.000 / 00:49.765, 1Gb)
java.lang.NullPointerException: Cannot invoke ".hl7.fhir.utilities.npm.PackageList.versions()" because "pl" is null
    at .hl7.fhir.igtools.renderers.PublicationChecker.checkPublicationRequest(PublicationChecker.java:202)
    at .hl7.fhir.igtools.renderers.PublicationChecker.checkFolder(PublicationChecker.java:122)
    at .hl7.fhir.igtools.renderers.PublicationChecker.check(PublicationChecker.java:56)
    at .hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:1237)
    at .hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:1034)
    at .hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:15034)

The directory structure is as follows:

│   .gitignore
│   CODE_OF_CONDUCT.md
│   CODING_STYLE_GUIDES.md
│   CONTRIBUTING.md
│   fsh.ini
│   ig.ini
│   LICENSE
│   package-list.json
│   publication-request.json
│   README.md
│   sushi-config.yaml
│   _gencontinuous.bat
│   _gencontinuous.sh
│   _genonce.bat
│   _genonce.sh
│   _updatePublisher.bat
│   _updatePublisher.sh
│
├───.github
│   ├───ISSUE_TEMPLATE
│   │       config.yml
│   │       public-comment-issue-template.yml
│   │
│   └───workflows
│           sushi-and-publisher.yml
│
├───input
│   │   ignoreWarnings.txt
│   │
│   ├───data
│   │       features.yml
│   │
│   ├───fsh
│   │   │
│   │   ├───dataTypes
│   │   │       ...
│   │   │
│   │   ├───logicals
│   │   │       ...
│   │   │
│   │   └───profiles
│   │           ...
│   │
│   ├───intro-notes
│   │       ...
│   │
│   └───pagecontent
│           index.md
│
├───template-core
│   ├───content
│   │   │   ...
│   │   │
│   │   └───assets
│   │       │   ...
│   │       │
│   │       ├───css
│   │       │       ...
│   │       │
│   │       ├───images
│   │       │       ...
│   │       │
│   │       └───js
│   │               ...
│   │
│   ├───includes
│   │       ...
│   │
│   ├───layouts
│   │       ...
│   │
│   └───package
│           ...
│           package.json
│
└───translations
    └───es
        ├───json
        │       ...
        ├───po
        │       ...
        │
        └───xliff
                ...

My package-list.json, publication-request.json, and package.json files are constructed as follows: package-list.json

{
    "package-id" : "hl7.fhir.cr.core",
    "title" : "Guías de Implementación HL7 FHIR: CR Core", 
    "canonical" : ";, 
    "category" : "National Base",
    "introduction" : "Esta IG define los perfiles de recursos y extensiones de CR Core.",
    "list" : [
        {
            "version" : "current",
            "desc" : "Continuous Integration Build (latest in version control)",
            "path" : ";,
            "status" : "ci-build",
            "current" : true
        },
        {
            "version" : "0.1.0-draft",
            "date" : "2025-03-07",
            "desc" : "Versión en desarrollo",
            "path" : ".1.0-draft",
            "fhirversion" : "5.0.0",
            "status" : "draft",
            "sequence" : "CR Core R1"
          }
    ]
}

publication-request.json

{
    "package-id": "hl7.fhir.cr.core",
    "version": "0.1.0-draft",
    "path": "/",
    "mode": "working",
    "status": "draft",
    "sequence": "CR Core R1",
    "desc": "Versión de desarrollo | ",
    "changes": "changes.html",
    "first": true,
    "title": "Guías de Implementación HL7 FHIR: CR Core",
    "category": "National Base",
    "fhirversion": "5.0.0",
    "introduction": "Esta IG define los perfiles de recursos y extensiones de CR Core."
}

template-core-cr/package/package.json

{
    "name": "hl7.fhir.cr.core",
    "version": "0.1.0-draft",
    "canonical": ";,
    "url": ".1.0-draft",
    "title": "Guías de Implementación HL7 FHIR: CR Core",
    "description": "Esta IG define los perfiles de recursos y extensiones de CR Core.",
    "fhirversion": "5.0.0",
    "base": "fhir.base.template",
    "dependencies": {
        "fhir.base.template": "current"
    },
    "keywords": [
        "CR",
        "Core",
        "Costa Rica",
        "HL7",
        "FHIR",
        "Implementation Guide"
    ],
    "author": "Ministerio de Salud de Costa Rica",
    "maintainers": [
        {
            "name": "Ministerio de Salud de Costa Rica",
            "url": ";
        },
        {
            "name": "Meddyg",
            "email": "[email protected]"
        }
    ],
    "jurisdiction": ".htm#188",
    "license": "CC0-1.0"
}

What am I doing wrong?

I made the first publication to FHIR IG Builds from the GitHub repository, using the Auto-Builder and webhook. The first publication went well, but subsequent builds gave me the following error:

Publishing Content Failed: Cannot invoke ".hl7.fhir.utilities.npm.PackageList.versions()" because "pl" is null (00:00.985 / 00:49.765, 1Gb)
                                                                                                     (00:00.000 / 00:49.765, 1Gb)
Use -? to get command line help                                                                      (00:00.000 / 00:49.765, 1Gb)
                                                                                                     (00:00.000 / 00:49.765, 1Gb)
Stack Dump (for debugging):                                                                          (00:00.000 / 00:49.765, 1Gb)
java.lang.NullPointerException: Cannot invoke ".hl7.fhir.utilities.npm.PackageList.versions()" because "pl" is null
    at .hl7.fhir.igtools.renderers.PublicationChecker.checkPublicationRequest(PublicationChecker.java:202)
    at .hl7.fhir.igtools.renderers.PublicationChecker.checkFolder(PublicationChecker.java:122)
    at .hl7.fhir.igtools.renderers.PublicationChecker.check(PublicationChecker.java:56)
    at .hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:1237)
    at .hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:1034)
    at .hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:15034)

The directory structure is as follows:

│   .gitignore
│   CODE_OF_CONDUCT.md
│   CODING_STYLE_GUIDES.md
│   CONTRIBUTING.md
│   fsh.ini
│   ig.ini
│   LICENSE
│   package-list.json
│   publication-request.json
│   README.md
│   sushi-config.yaml
│   _gencontinuous.bat
│   _gencontinuous.sh
│   _genonce.bat
│   _genonce.sh
│   _updatePublisher.bat
│   _updatePublisher.sh
│
├───.github
│   ├───ISSUE_TEMPLATE
│   │       config.yml
│   │       public-comment-issue-template.yml
│   │
│   └───workflows
│           sushi-and-publisher.yml
│
├───input
│   │   ignoreWarnings.txt
│   │
│   ├───data
│   │       features.yml
│   │
│   ├───fsh
│   │   │
│   │   ├───dataTypes
│   │   │       ...
│   │   │
│   │   ├───logicals
│   │   │       ...
│   │   │
│   │   └───profiles
│   │           ...
│   │
│   ├───intro-notes
│   │       ...
│   │
│   └───pagecontent
│           index.md
│
├───template-core
│   ├───content
│   │   │   ...
│   │   │
│   │   └───assets
│   │       │   ...
│   │       │
│   │       ├───css
│   │       │       ...
│   │       │
│   │       ├───images
│   │       │       ...
│   │       │
│   │       └───js
│   │               ...
│   │
│   ├───includes
│   │       ...
│   │
│   ├───layouts
│   │       ...
│   │
│   └───package
│           ...
│           package.json
│
└───translations
    └───es
        ├───json
        │       ...
        ├───po
        │       ...
        │
        └───xliff
                ...

My package-list.json, publication-request.json, and package.json files are constructed as follows: package-list.json

{
    "package-id" : "hl7.fhir.cr.core",
    "title" : "Guías de Implementación HL7 FHIR: CR Core", 
    "canonical" : "https://ministeriodesalud.go.cr/fhir/core", 
    "category" : "National Base",
    "introduction" : "Esta IG define los perfiles de recursos y extensiones de CR Core.",
    "list" : [
        {
            "version" : "current",
            "desc" : "Continuous Integration Build (latest in version control)",
            "path" : "https://ministeriodesalud.go.cr/fhir/core",
            "status" : "ci-build",
            "current" : true
        },
        {
            "version" : "0.1.0-draft",
            "date" : "2025-03-07",
            "desc" : "Versión en desarrollo",
            "path" : "https://ministeriodesalud.go.cr/fhir/core/0.1.0-draft",
            "fhirversion" : "5.0.0",
            "status" : "draft",
            "sequence" : "CR Core R1"
          }
    ]
}

publication-request.json

{
    "package-id": "hl7.fhir.cr.core",
    "version": "0.1.0-draft",
    "path": "https://ig.cr.openfhir./core/",
    "mode": "working",
    "status": "draft",
    "sequence": "CR Core R1",
    "desc": "Versión de desarrollo | ",
    "changes": "changes.html",
    "first": true,
    "title": "Guías de Implementación HL7 FHIR: CR Core",
    "category": "National Base",
    "fhirversion": "5.0.0",
    "introduction": "Esta IG define los perfiles de recursos y extensiones de CR Core."
}

template-core-cr/package/package.json

{
    "name": "hl7.fhir.cr.core",
    "version": "0.1.0-draft",
    "canonical": "https://ministeriodesalud.go.cr/fhir/core",
    "url": "https://ministeriodesalud.go.cr/fhir/core/0.1.0-draft",
    "title": "Guías de Implementación HL7 FHIR: CR Core",
    "description": "Esta IG define los perfiles de recursos y extensiones de CR Core.",
    "fhirversion": "5.0.0",
    "base": "fhir.base.template",
    "dependencies": {
        "fhir.base.template": "current"
    },
    "keywords": [
        "CR",
        "Core",
        "Costa Rica",
        "HL7",
        "FHIR",
        "Implementation Guide"
    ],
    "author": "Ministerio de Salud de Costa Rica",
    "maintainers": [
        {
            "name": "Ministerio de Salud de Costa Rica",
            "url": "https://ministeriodesalud.go.cr"
        },
        {
            "name": "Meddyg",
            "email": "[email protected]"
        }
    ],
    "jurisdiction": "http://unstats.un./unsd/methods/m49/m49.htm#188",
    "license": "CC0-1.0"
}

What am I doing wrong?

Share Improve this question asked Mar 9 at 18:29 AlejandroAlejandro 8661 gold badge10 silver badges23 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Community, the way to fix this issues is removing the publication-request.json file ... credits to Jose Costa

发布评论

评论列表(0)

  1. 暂无评论