-
Notifications
You must be signed in to change notification settings - Fork 157
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
null pointer exception exercising operations $collect-data and $evaluate-measure #3061
Comments
Looks like I'm not handling the "Measure not found" use case very well. You need to load the Measure resource you are trying to use into your server prior to invoking these methods and make sure the measure parameter matches the loaded resource's ID. The resources that I use to test with are in fhir-server-test/src/test/resources/testdata/Bundle-EXM74-10.2.000.json, cql/operation/fhir-operation-cpq/src/test/resources, and cql/operation/fhir-operation-cqf/src/test/resources [12/1/21, 13:26:14:360 EST] 00000046 com.ibm.fhir.server.resources.FHIRResource E An unexpected exception occurred while processing the request^M |
Dug into this a little more and it turns out the |
references both by resource ID and canonical URL (previously only canonical URL) and then to also to provide error handling for when the measure does not properly resolve. This PR also relates to the missing feature support documented in #2618 not by implementing those features, but by adding error handling that clearly states to the user those features are not supported at this time. Signed-off-by: Corey Sanders <corey.thecolonel@gmail.com>
Retried the three cases listed above. Still getting NPE. See attached "recreate3061stacktraces.txt" |
I applied a fix before the holiday that corrected a category of NPE errors related to execution against a measure or library resources that don't exist. It turns out that wasn't the core of the issue 3061. This goes back and addresses when a valid measure reference is used, but that Measure refers to a Library resource that does not exist. I also added some handling that allows resolution of Library resources by reference in addition to by canonical URL in the registry and also updated the error handling around retrieving the primary library reference from the Measure resource. Signed-off-by: Corey Sanders <corey.thecolonel@gmail.com>
* #3061 - Fix NPE when Measure refers to non-existent library I applied a fix before the holiday that corrected a category of NPE errors related to execution against a measure or library resources that don't exist. It turns out that wasn't the core of the issue 3061. This goes back and addresses when a valid measure reference is used, but that Measure refers to a Library resource that does not exist. I also added some handling that allows resolution of Library resources by reference in addition to by canonical URL in the registry and also updated the error handling around retrieving the primary library reference from the Measure resource. Signed-off-by: Corey Sanders <corey.thecolonel@gmail.com> * Update copyright dates Signed-off-by: Corey Sanders <corey.thecolonel@gmail.com> * Whitespace corrections and added javadocs Signed-off-by: Corey Sanders <corey.thecolonel@gmail.com>
@kmbarton423 back to you. |
Confirmed new behavior for three cases noted above: Status 500 |
Running IBM FHIR Server 4.10.0 with CPG and CQF operations.
When attempting to confirm required and optional parameters, hit null pointer exception:
Null pointer exception received for each of the following cases:
The text was updated successfully, but these errors were encountered: