Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FHIR Build time NPE when versions DSTU_2_1 & DSTU3 are enabled #6441

Closed
jamesnetherton opened this issue Sep 9, 2024 · 0 comments · Fixed by jboss-fuse/camel-quarkus#380
Closed
Assignees
Labels
area/fhir bug Something isn't working
Milestone

Comments

@jamesnetherton
Copy link
Contributor

jamesnetherton commented Sep 9, 2024

Bug description

E.g in the test set:

quarkus.camel.fhir.enable-dstu2_1=true
quarkus.camel.fhir.enable-dstu3=true

The result is an NPE thrown from AbstractPropertiesBuildItem.

java.lang.NullPointerException: inStream parameter is null
	at java.base/java.util.Objects.requireNonNull(Objects.java:259)
	at java.base/java.util.Properties.load(Properties.java:408)
	at org.apache.camel.quarkus.component.fhir.deployment.AbstractPropertiesBuildItem.loadProperties(AbstractPropertiesBuildItem.java:40)
	at org.apache.camel.quarkus.component.fhir.deployment.AbstractPropertiesBuildItem.<init>(AbstractPropertiesBuildItem.java:33)
	at org.apache.camel.quarkus.component.fhir.deployment.dstu2_1.Dstu2_1PropertiesBuildItem.<init>(Dstu2_1PropertiesBuildItem.java:24)
	at org.apache.camel.quarkus.component.fhir.deployment.dstu2_1.FhirDstu2_1Processor.fhirProperties(FhirDstu2_1Processor.java:50)
	at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:733)
	at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:854)
	at io.quarkus.builder.BuildContext.run(BuildContext.java:256)
	at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
	at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2516)
	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2495)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1521)
	at java.base/java.lang.Thread.run(Thread.java:1583)
	at org.jboss.threads.JBossThread.run(JBossThread.java:483)
java.lang.NullPointerException: inStream parameter is null
	at java.base/java.util.Objects.requireNonNull(Objects.java:259)
	at java.base/java.util.Properties.load(Properties.java:408)
	at org.apache.camel.quarkus.component.fhir.deployment.AbstractPropertiesBuildItem.loadProperties(AbstractPropertiesBuildItem.java:40)
	at org.apache.camel.quarkus.component.fhir.deployment.AbstractPropertiesBuildItem.<init>(AbstractPropertiesBuildItem.java:33)
	at org.apache.camel.quarkus.component.fhir.deployment.dstu3.Dstu3PropertiesBuildItem.<init>(Dstu3PropertiesBuildItem.java:24)
	at org.apache.camel.quarkus.component.fhir.deployment.dstu3.FhirDstu3Processor.fhirProperties(FhirDstu3Processor.java:50)
	at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:733)
	at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:854)
	at io.quarkus.builder.BuildContext.run(BuildContext.java:256)
	at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
	at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2516)
	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2495)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1521)
	at java.base/java.lang.Thread.run(Thread.java:1583)
	at org.jboss.threads.JBossThread.run(JBossThread.java:483)
@jamesnetherton jamesnetherton added the bug Something isn't working label Sep 9, 2024
@jamesnetherton jamesnetherton added this to the 3.15.0 milestone Sep 9, 2024
@jamesnetherton jamesnetherton self-assigned this Sep 9, 2024
jamesnetherton added a commit to jamesnetherton/camel-quarkus that referenced this issue Sep 9, 2024
jamesnetherton added a commit to jamesnetherton/camel-quarkus that referenced this issue Sep 9, 2024
zhfeng pushed a commit to zhfeng/camel-quarkus that referenced this issue Sep 10, 2024
svkcemk pushed a commit to jboss-fuse/camel-quarkus that referenced this issue Sep 10, 2024
jamesnetherton added a commit to jamesnetherton/camel-quarkus that referenced this issue Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/fhir bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant