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

$snapshot failure with value set #1846

Open
seanmcilvenna opened this issue May 13, 2020 · 0 comments
Open

$snapshot failure with value set #1846

seanmcilvenna opened this issue May 13, 2020 · 0 comments

Comments

@seanmcilvenna
Copy link
Contributor

seanmcilvenna commented May 13, 2020

Describe the bug
When generating a snapshot for a StructureDefinition loaded in HAPI, I get the following error:

2020-05-13 17:04:59.414 [http-nio-8080-exec-8717] INFO  fhirtest.access [LoggingInterceptor.java:175] Path[/fhir] Source[66.232.121.171] Operation[update  Bundle/Med-2-Dental-referral-bundle] UA[PostmanRuntime/7.24.1] Params[] ResponseEncoding[XML]
2020-05-13 17:05:06.039 [http-nio-8080-exec-8695] ERROR c.u.f.r.s.i.ExceptionHandlingInterceptor [ExceptionHandlingInterceptor.java:140] Failure during REST processing
ca.uhn.fhir.rest.server.exceptions.InternalErrorException: Failed to call access method: java.lang.UnsupportedOperationException
        at ca.uhn.fhir.rest.server.method.BaseMethodBinding.invokeServerMethod(BaseMethodBinding.java:244)
        at ca.uhn.fhir.rest.server.method.OperationMethodBinding.invokeServer(OperationMethodBinding.java:329)
        at ca.uhn.fhir.rest.server.method.BaseResourceReturningMethodBinding.doInvokeServer(BaseResourceReturningMethodBinding.java:247)
        at ca.uhn.fhir.rest.server.method.BaseResourceReturningMethodBinding.invokeServer(BaseResourceReturningMethodBinding.java:384)
        at ca.uhn.fhir.rest.server.method.OperationMethodBinding.invokeServer(OperationMethodBinding.java:304)
        at ca.uhn.fhir.rest.server.RestfulServer.handleRequest(RestfulServer.java:991)
        at ca.uhn.fhir.rest.server.RestfulServer.doGet(RestfulServer.java:336)
        at ca.uhn.fhir.rest.server.RestfulServer.service(RestfulServer.java:1675)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:836)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1839)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.reflect.InvocationTargetException: null
        at jdk.internal.reflect.GeneratedMethodAccessor306.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at ca.uhn.fhir.rest.server.method.BaseMethodBinding.invokeServerMethod(BaseMethodBinding.java:239)
        ... 30 common frames omitted
Caused by: java.lang.UnsupportedOperationException: null
        at org.hl7.fhir.r4.hapi.ctx.HapiWorkerContext.expandVS(HapiWorkerContext.java:280)
        at org.hl7.fhir.r4.conformance.ProfileUtilities.updateFromDefinition(ProfileUtilities.java:1877)
        at org.hl7.fhir.r4.conformance.ProfileUtilities.processPaths(ProfileUtilities.java:698)
        at org.hl7.fhir.r4.conformance.ProfileUtilities.generateSnapshot(ProfileUtilities.java:454)
        at org.hl7.fhir.r4.hapi.validation.SnapshotGeneratingValidationSupport.generateSnapshot(SnapshotGeneratingValidationSupport.java:89)
        at org.hl7.fhir.r4.hapi.validation.ValidationSupportChain.generateSnapshot(ValidationSupportChain.java:147)
        at org.hl7.fhir.r4.hapi.validation.CachingValidationSupport.generateSnapshot(CachingValidationSupport.java:83)
        at ca.uhn.fhir.jpa.dao.r4.FhirResourceDaoStructureDefinitionR4.generateSnapshot(FhirResourceDaoStructureDefinitionR4.java:37)
        at ca.uhn.fhir.jpa.dao.r4.FhirResourceDaoStructureDefinitionR4.generateSnapshot(FhirResourceDaoStructureDefinitionR4.java:30)
        at jdk.internal.reflect.GeneratedMethodAccessor307.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:366)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:99)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
        at com.sun.proxy.$Proxy201.generateSnapshot(Unknown Source)
        at ca.uhn.fhir.jpa.provider.r4.BaseJpaResourceProviderStructureDefinitionR4.snapshot(BaseJpaResourceProviderStructureDefinitionR4.java:73)
        ... 34 common frames omitted

To Reproduce

  1. Load the attached structure definition us-core-observation-lab.zip
  2. Execute $snapshot on it

Expected behavior
The snapshot should generate and return in the response to the request.

Environment (please complete the following information):

  • HAPI FHIR Version 4.2
  • OS: Linux Server
  • Browser Chrome/Postman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant