{"action":"created","issue":{"url":"https://api.github.com/repos/jamesagnew/hapi-fhir/issues/492","repository_url":"https://api.github.com/repos/jamesagnew/hapi-fhir","labels_url":"https://api.github.com/repos/jamesagnew/hapi-fhir/issues/492/labels{/name}","comments_url":"https://api.github.com/repos/jamesagnew/hapi-fhir/issues/492/comments","events_url":"https://api.github.com/repos/jamesagnew/hapi-fhir/issues/492/events","html_url":"https://github.com/jamesagnew/hapi-fhir/issues/492","id":188374343,"number":492,"title":"HTTP 500 Internal Server Error","user":{"login":"rqg0717","id":5490290,"avatar_url":"https://avatars.githubusercontent.com/u/5490290?v=3","gravatar_id":"","url":"https://api.github.com/users/rqg0717","html_url":"https://github.com/rqg0717","followers_url":"https://api.github.com/users/rqg0717/followers","following_url":"https://api.github.com/users/rqg0717/following{/other_user}","gists_url":"https://api.github.com/users/rqg0717/gists{/gist_id}","starred_url":"https://api.github.com/users/rqg0717/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rqg0717/subscriptions","organizations_url":"https://api.github.com/users/rqg0717/orgs","repos_url":"https://api.github.com/users/rqg0717/repos","events_url":"https://api.github.com/users/rqg0717/events{/privacy}","received_events_url":"https://api.github.com/users/rqg0717/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-09T22:56:11Z","updated_at":"2016-11-10T15:55:45Z","closed_at":null,"body":"Dear all,\r\n\r\nI keep getting \"HTTP 500 Internal Server Error\" when I try to post the following bundle:\r\n```\r\n<Bundle xmlns=\"http://hl7.org/fhir\">\r\n   <type value=\"transaction\"></type>\r\n   <entry>\r\n      <fullUrl value=\"urn:uuid:7ea9931e-3750-401a-a670-42613922668b\"></fullUrl>\r\n      <resource>\r\n         <Patient xmlns=\"http://hl7.org/fhir\">\r\n            <language value=\"ENGL\"></language>\r\n            <identifier>\r\n               <system value=\"http://www.gim.net/fhir/patients\"></system>\r\n               <value value=\"54e7353a-1c46-4f7e-83ce-380ce0348031\"></value>\r\n            </identifier>\r\n            <identifier>\r\n               <system value=\"https://www.modahealth.com/\"></system>\r\n               <value value=\"ABCDILBXYYY\"></value>\r\n            </identifier>\r\n            <name>\r\n               <family value=\"Ren\"></family>\r\n               <given value=\"James\"></given>\r\n               <given value=\"J\"></given>\r\n            </name>\r\n            <telecom>\r\n               <system value=\"phone\"></system>\r\n               <value value=\"(215) 396-6496\"></value>\r\n               <use value=\"home\"></use>\r\n            </telecom>\r\n            <telecom>\r\n               <system value=\"phone\"></system>\r\n               <value value=\"(484) 889-1827\"></value>\r\n               <use value=\"work\"></use>\r\n            </telecom>\r\n            <gender value=\"female\"></gender>\r\n            <birthDate value=\"1980-01-01\"></birthDate>\r\n            <deceasedBoolean value=\"false\"></deceasedBoolean>\r\n            <address>\r\n               <line value=\"123 Main St.\"></line>\r\n               <city value=\"Philadelphia\"></city>\r\n               <state value=\"PA\"></state>\r\n               <postalCode value=\"19122\"></postalCode>\r\n            </address>\r\n            <maritalStatus>\r\n               <coding>\r\n                  <system value=\"http://hl7.org/fhir/v3/MaritalStatus\"></system>\r\n                  <code value=\"M\"></code>\r\n               </coding>\r\n            </maritalStatus>\r\n         </Patient>\r\n      </resource>\r\n      <request>\r\n         <method value=\"POST\"></method>\r\n         <url value=\"Patient\"></url>\r\n         <ifNoneExist value=\"Patient?identifier=https://www.modahealth.com/|ABCDILBXYYY\"></ifNoneExist>\r\n      </request>\r\n   </entry>\r\n   <entry>\r\n      <resource>\r\n         <Observation xmlns=\"http://hl7.org/fhir\">\r\n            <status value=\"final\"></status>\r\n            <code>\r\n               <coding>\r\n                  <system value=\"http://loinc.org\"></system>\r\n                  <code value=\"789-8\"></code>\r\n                  <display value=\"Erythrocytes [#/volume] in Blood by Automated count\"></display>\r\n               </coding>\r\n            </code>\r\n            <subject>\r\n               <reference value=\"urn:uuid:7ea9931e-3750-401a-a670-42613922668b\"></reference>\r\n            </subject>\r\n            <valueQuantity>\r\n               <value value=\"4.12\"></value>\r\n               <unit value=\"10 trillion/L\"></unit>\r\n               <system value=\"http://unitsofmeasure.org\"></system>\r\n               <code value=\"10*12/L\"></code>\r\n            </valueQuantity>\r\n         </Observation>\r\n      </resource>\r\n      <request>\r\n         <method value=\"POST\"></method>\r\n         <url value=\"Observation\"></url>\r\n      </request>\r\n   </entry>\r\n   <entry>\r\n      <resource>\r\n         <Coverage xmlns=\"http://hl7.org/fhir\">\r\n            <issuer>\r\n               <reference value=\"Organization/1\"></reference>\r\n            </issuer>\r\n            <period>\r\n               <start value=\"2014-01-01T00:00:00\"></start>\r\n               <end value=\"2199-12-31T00:00:00\"></end>\r\n            </period>\r\n            <identifier>\r\n               <system value=\"http://definitions.uslegal.com/h/health-insurance-claim-number-hicn\"></system>\r\n               <value value=\"123456789A\"></value>\r\n            </identifier>\r\n            <group value=\"88888888\"></group>\r\n            <plan value=\"888888880008\"></plan>\r\n            <subscriber>\r\n               <reference value=\"Patient/1490639\"></reference>\r\n            </subscriber>\r\n         </Coverage>\r\n      </resource>\r\n      <request>\r\n         <method value=\"POST\"></method>\r\n         <url value=\"Coverage\"></url>\r\n      </request>\r\n   </entry>\r\n</Bundle>\r\n```\r\n\r\nThe server side error:\r\n```\r\n2016-11-09 16:49:19.724 [http-nio-8084-exec-17] ERROR c.u.f.r.s.i.ExceptionHandlingInterceptor [ExceptionHandlingInterceptor.java:128] Failure during REST processing\r\nca.uhn.fhir.rest.server.exceptions.InternalErrorException: Failed to call access method\r\n\tat ca.uhn.fhir.rest.method.BaseMethodBinding.invokeServerMethod(BaseMethodBinding.java:263)\r\n\tat ca.uhn.fhir.rest.method.TransactionMethodBinding.invokeServer(TransactionMethodBinding.java:133)\r\n\tat ca.uhn.fhir.rest.method.BaseResourceReturningMethodBinding.doInvokeServer(BaseResourceReturningMethodBinding.java:306)\r\n\tat ca.uhn.fhir.rest.method.BaseResourceReturningMethodBinding.invokeServer(BaseResourceReturningMethodBinding.java:257)\r\n\tat ca.uhn.fhir.rest.server.RestfulServer.handleRequest(RestfulServer.java:665)\r\n\tat ca.uhn.fhir.rest.server.RestfulServer.doPost(RestfulServer.java:1225)\r\n\tat ca.uhn.fhir.rest.server.RestfulServer.service(RestfulServer.java:1197)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:729)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat org.ebaysf.web.cors.CORSFilter.handleNonCORS(CORSFilter.java:437)\r\n\tat org.ebaysf.web.cors.CORSFilter.doFilter(CORSFilter.java:172)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:217)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)\r\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)\r\n\tat org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)\r\n\tat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)\r\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:673)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.reflect.InvocationTargetException: null\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:483)\r\n\tat ca.uhn.fhir.rest.method.BaseMethodBinding.invokeServerMethod(BaseMethodBinding.java:258)\r\n\t... 35 common frames omitted\r\nCaused by: java.lang.NoSuchMethodError: ca.uhn.fhir.rest.method.MethodUtil.parseQueryParams(Lca/uhn/fhir/context/RuntimeSearchParam;Ljava/lang/String;Ljava/util/List;)Lca/uhn/fhir/model/api/IQueryParameterAnd;\r\n\tat ca.uhn.fhir.jpa.dao.BaseHapiFhirDao.translateMatchUrl(BaseHapiFhirDao.java:1715)\r\n\tat ca.uhn.fhir.jpa.dao.BaseHapiFhirDao.processMatchUrl(BaseHapiFhirDao.java:915)\r\n\tat ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.doCreate(BaseHapiFhirResourceDao.java:336)\r\n\tat ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.create(BaseHapiFhirResourceDao.java:178)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:483)\r\n\tat org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)\r\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)\r\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)\r\n\tat org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)\r\n\tat org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)\r\n\tat org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)\r\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)\r\n\tat org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)\r\n\tat com.sun.proxy.$Proxy331.create(Unknown Source)\r\n\tat ca.uhn.fhir.jpa.dao.FhirSystemDaoDstu2.transaction(FhirSystemDaoDstu2.java:386)\r\n\tat ca.uhn.fhir.jpa.dao.FhirSystemDaoDstu2.transaction(FhirSystemDaoDstu2.java:268)\r\n\tat ca.uhn.fhir.jpa.dao.FhirSystemDaoDstu2.transaction(FhirSystemDaoDstu2.java:95)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:483)\r\n\tat org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)\r\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)\r\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)\r\n\tat org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)\r\n\tat org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)\r\n\tat org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)\r\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)\r\n\tat org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)\r\n\tat com.sun.proxy.$Proxy355.transaction(Unknown Source)\r\n\tat ca.uhn.fhir.jpa.provider.JpaSystemProviderDstu2.transaction(JpaSystemProviderDstu2.java:219)\r\n\t... 40 common frames omitted\r\n```\r\n\r\nPlease let me know if i did something wrong. \r\n\r\nThank you,\r\nRen"},"comment":{"url":"https://api.github.com/repos/jamesagnew/hapi-fhir/issues/comments/259727147","html_url":"https://github.com/jamesagnew/hapi-fhir/issues/492#issuecomment-259727147","issue_url":"https://api.github.com/repos/jamesagnew/hapi-fhir/issues/492","id":259727147,"user":{"login":"rqg0717","id":5490290,"avatar_url":"https://avatars.githubusercontent.com/u/5490290?v=3","gravatar_id":"","url":"https://api.github.com/users/rqg0717","html_url":"https://github.com/rqg0717","followers_url":"https://api.github.com/users/rqg0717/followers","following_url":"https://api.github.com/users/rqg0717/following{/other_user}","gists_url":"https://api.github.com/users/rqg0717/gists{/gist_id}","starred_url":"https://api.github.com/users/rqg0717/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rqg0717/subscriptions","organizations_url":"https://api.github.com/users/rqg0717/orgs","repos_url":"https://api.github.com/users/rqg0717/repos","events_url":"https://api.github.com/users/rqg0717/events{/privacy}","received_events_url":"https://api.github.com/users/rqg0717/received_events","type":"User","site_admin":false},"created_at":"2016-11-10T15:55:44Z","updated_at":"2016-11-10T15:55:44Z","body":"Thank you for your solution. The problem has been solved."}}
{"actor":{"display_login":"rqg0717"}}