FHIR Chat · ElementWrappers$BaseWrapperMetaElement cannot be cast to cla · implementers

Stream: implementers

Topic: ElementWrappers$BaseWrapperMetaElement cannot be cast to cla


view this post on Zulip David Gutknecht (Dec 07 2020 at 07:10):

Good Morning,

using FHIR IG Publisher Version 1.1.50, by compiling my ig, I get following stacktrace:

Publishing Content Failed: class org.hl7.fhir.r5.renderers.utils.ElementWrappers$BaseWrapperMetaElement cannot be cast to class org.hl7.fhir.r5.renderers.utils.BaseWrappers$ResourceWrapper (org.hl7.fhir.r5.renderers.utils.ElementWrappers$BaseWrapperMetaElement and org.hl7.fhir.r5.renderers.utils.BaseWrappers$ResourceWrapper are in unnamed module of loader 'app') (02:03.0945)
(02:03.0949)
Use -? to get command line help (02:03.0951)
(02:03.0954)
Stack Dump (for debugging): (02:03.0958)
java.lang.ClassCastException: class org.hl7.fhir.r5.renderers.utils.ElementWrappers$BaseWrapperMetaElement cannot be cast to class org.hl7.fhir.r5.renderers.utils.BaseWrappers$ResourceWrapper (org.hl7.fhir.r5.renderers.utils.ElementWrappers$BaseWrapperMetaElement and org.hl7.fhir.r5.renderers.utils.BaseWrappers$ResourceWrapper are in unnamed module of loader 'app')
at org.hl7.fhir.r5.renderers.BundleRenderer.renderDocument(BundleRenderer.java:122)
at org.hl7.fhir.r5.renderers.BundleRenderer.render(BundleRenderer.java:67)
at org.hl7.fhir.r5.renderers.ResourceRenderer.render(ResourceRenderer.java:84)
at org.hl7.fhir.igtools.publisher.Publisher.getXhtml(Publisher.java:7888)
at org.hl7.fhir.igtools.publisher.Publisher.saveDirectResourceOutputs(Publisher.java:7205)
at org.hl7.fhir.igtools.publisher.Publisher.generateHtmlOutputs(Publisher.java:6645)
at org.hl7.fhir.igtools.publisher.Publisher.generate(Publisher.java:4901)
at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:885)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:729)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:8414)

Best regards,
David

view this post on Zulip Grahame Grieve (Dec 07 2020 at 09:28):

hmm how do I reproduce this?

view this post on Zulip Grahame Grieve (Dec 07 2020 at 09:28):

btw this kind of question is better asked on #IG creation - I'm always watching that closely, but sometimes fall behind on this stream

view this post on Zulip David Gutknecht (Dec 07 2020 at 14:07):

Hello @Grahame Grieve ,

Every thing is available on GitHub it is the mednet IG.
https://github.com/DavidGutknecht/mni-ig

Should I create a new Topic on #IG creation ?

view this post on Zulip Grahame Grieve (Dec 08 2020 at 04:01):

up to you

view this post on Zulip Grahame Grieve (Dec 08 2020 at 04:04):

this is a bug in my code which will be fixed next release

view this post on Zulip David Gutknecht (Dec 08 2020 at 14:55):

Thanks !

view this post on Zulip David Gutknecht (Dec 09 2020 at 13:26):

Thanks @Grahame Grieve for the fix.
It can compile now
(I still have the "Multiple profiles found for contained resource" problem, but will update the existing topic)


Last updated: Apr 12 2022 at 19:14 UTC