Exception evaluating SpringEL expression: "requestHeaders.length"

1,387 views
Skip to first unread message

nisha ks

unread,
Mar 31, 2020, 8:56:27 AM3/31/20
to HAPI FHIR
Hi,

I have downloaded https://github.com/hapifhir/hapi-fhir-jpaserver-starter codebase for my implementation and its working as well. But for some queries when I make , I am getting the below exception. Can some one help me with this please. I am following exact documentation as in the above link and also some times everything works fine.

[WARNING] /hapi-fhir-jpaserver/search

javax.servlet.ServletException: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "requestHeaders.length" (template: "result" - line 68, col 13)

    at org.eclipse.jetty.server.handler.HandlerCollection.handle (HandlerCollection.java:162)

    at org.eclipse.jetty.server.handler.HandlerWrapper.handle (HandlerWrapper.java:127)

    at org.eclipse.jetty.server.Server.handle (Server.java:500)

    at org.eclipse.jetty.server.HttpChannel.lambda$handle$1 (HttpChannel.java:383)

    at org.eclipse.jetty.server.HttpChannel.dispatch (HttpChannel.java:547)

    at org.eclipse.jetty.server.HttpChannel.handle (HttpChannel.java:375)

    at org.eclipse.jetty.server.HttpConnection.onFillable (HttpConnection.java:270)

    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded (AbstractConnection.java:311)

    at org.eclipse.jetty.io.FillInterest.fillable (FillInterest.java:103)

    at org.eclipse.jetty.io.ChannelEndPoint$2.run (ChannelEndPoint.java:117)

    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask (EatWhatYouKill.java:336)

    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce (EatWhatYouKill.java:313)

    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce (EatWhatYouKill.java:171)

    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run (EatWhatYouKill.java:129)

    at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run (ReservedThreadExecutor.java:388)

    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (QueuedThreadPool.java:806)

    at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run (QueuedThreadPool.java:938)

    at java.lang.Thread.run (Thread.java:830)

Caused by: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "requestHeaders.length" (template: "result" - line 68, col 13)

    at org.springframework.web.servlet.FrameworkServlet.processRequest (FrameworkServlet.java:1014)

    at org.springframework.web.servlet.FrameworkServlet.doGet (FrameworkServlet.java:898)

    at javax.servlet.http.HttpServlet.service (HttpServlet.java:687)

    at org.springframework.web.servlet.FrameworkServlet.service (FrameworkServlet.java:883)

    at javax.servlet.http.HttpServlet.service (HttpServlet.java:790)

    at org.eclipse.jetty.servlet.ServletHolder$NotAsyncServlet.service (ServletHolder.java:1391)

    at org.eclipse.jetty.servlet.ServletHolder.handle (ServletHolder.java:760)

    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1617)

    at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter (WebSocketUpgradeFilter.java:226)

    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1604)

    at org.eclipse.jetty.servlet.ServletHandler.doHandle (ServletHandler.java:545)

    at org.eclipse.jetty.server.handler.ScopedHandler.handle (ScopedHandler.java:143)

    at org.eclipse.jetty.security.SecurityHandler.handle (SecurityHandler.java:590)

    at org.eclipse.jetty.server.handler.HandlerWrapper.handle (HandlerWrapper.java:127)

    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle (ScopedHandler.java:235)

    at org.eclipse.jetty.server.session.SessionHandler.doHandle (SessionHandler.java:1607)

    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle (ScopedHandler.java:233)

    at org.eclipse.jetty.server.handler.ContextHandler.doHandle (ContextHandler.java:1297)

    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope (ScopedHandler.java:188)

    at org.eclipse.jetty.servlet.ServletHandler.doScope (ServletHandler.java:485)

    at org.eclipse.jetty.server.session.SessionHandler.doScope (SessionHandler.java:1577)

    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope (ScopedHandler.java:186)

    at org.eclipse.jetty.server.handler.ContextHandler.doScope (ContextHandler.java:1212)

    at org.eclipse.jetty.server.handler.ScopedHandler.handle (ScopedHandler.java:141)

    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle (ContextHandlerCollection.java:221)

    at org.eclipse.jetty.server.handler.HandlerCollection.handle (HandlerCollection.java:146)

    at org.eclipse.jetty.server.handler.HandlerWrapper.handle (HandlerWrapper.java:127)

    at org.eclipse.jetty.server.Server.handle (Server.java:500)

    at org.eclipse.jetty.server.HttpChannel.lambda$handle$1 (HttpChannel.java:383)

    at org.eclipse.jetty.server.HttpChannel.dispatch (HttpChannel.java:547)

    at org.eclipse.jetty.server.HttpChannel.handle (HttpChannel.java:375)

    at org.eclipse.jetty.server.HttpConnection.onFillable (HttpConnection.java:270)

    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded (AbstractConnection.java:311)

    at org.eclipse.jetty.io.FillInterest.fillable (FillInterest.java:103)

    at org.eclipse.jetty.io.ChannelEndPoint$2.run (ChannelEndPoint.java:117)

    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask (EatWhatYouKill.java:336)

    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce (EatWhatYouKill.java:313)

    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce (EatWhatYouKill.java:171)

    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run (EatWhatYouKill.java:129)

    at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run (ReservedThreadExecutor.java:388)

    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (QueuedThreadPool.java:806)

    at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run (QueuedThreadPool.java:938)

    at java.lang.Thread.run (Thread.java:830)

James Agnew

unread,
Mar 31, 2020, 9:35:03 AM3/31/20
to nisha ks, HAPI FHIR
Are there any other exceptions in the logs before this one?

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/957758f9-8b15-4de9-8ebd-f6c69262a83d%40googlegroups.com.

nisha ks

unread,
Apr 1, 2020, 12:08:49 AM4/1/20
to HAPI FHIR
Please find the attached full log file.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi...@googlegroups.com.
cm_hapi_fhir.log

James Agnew

unread,
Apr 1, 2020, 7:50:37 AM4/1/20
to nisha ks, HAPI FHIR
Does it contain any other exceptions prior to the one you posted?

(Note, please see our getting help wiki page for details about how to maximize your odds of getting a successful response in this group)

Cheers,
James

To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/7a2c2337-958e-4e3f-9eb8-e1661212e14c%40googlegroups.com.
Message has been deleted

nisha ks

unread,
Apr 1, 2020, 9:31:22 AM4/1/20
to HAPI FHIR
Hi James,

I am adding the entire details below. 

I have downloaded https://github.com/hapifhir/hapi-fhir-jpaserver-starter codebase for my implementation and its working as well. But for some queries when I make , I am getting the below exception. Can some one help me with this please. I am following exact documentation as in the above link and also some times everything works fine.

Steps followed :
1. downloaded the above git repo
2. edited the hapi.properties file to add my db credentials and other details (I am using postgres as by databse) 
datasource.driver=org.postgresql.Driver

datasource.url=jdbc:postgresql://domainname:port/hapifhir

datasource.username=***

datasource.password=***

3. edited the server port to 9099

4. edited loback.xml to copy my logs to a file

5. did maven clean install and got the  war file generated

6. tried mvn jetty:run -Djetty.port=9099 to execute the war file



I got the UI up with the url "http://localhost:9099/hapi-fhir-jpaserver/fhir" and I am able to do the CRUD and search operations as well.



Issue : Some times my search is not working (When I click on the search button, I am getting a blank white screen instead of the response). When I checked the log files, I could see the below error in my log file. POST calls were working well and search calls were mainly failing. But if I retry twice or thrice, it works. Its not consistent as well. Some times it is working and some times it is not responding. There is no other error in the log file other than the below lines. 

Please help me with this issue. Development is almost stuck because of this.

Error messages from log files:

Log1 :

"2020-04-01 18:50:50,612 INFO  ca.uhn.fhir.to.Controller - [server=home] - Executing a search
2020-04-01 18:50:54,351 INFO  fhirtest.access - Path[/fhir] Source[] Operation[search-type  Observation] UA[HAPI-FHIR/4.2.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[?_pretty=true] ResponseEncoding[JSON]
2020-04-01 18:50:54,411 ERROR org.thymeleaf.TemplateEngine - [THYMELEAF][qtp656844049-26] Exception processing template "result": An error happened during template rendering (template: "tmpl-head" - line 21, col 4)
org.thymeleaf.exceptions.TemplateOutputException: An error happened during template rendering (template: "tmpl-head" - line 21, col 4)
at org.thymeleaf.engine.OutputTemplateHandler.handleCloseElement(OutputTemplateHandler.java:163)
at org.thymeleaf.engine.ProcessorTemplateHandler.handleCloseElement(ProcessorTemplateHandler.java:1654)
at org.thymeleaf.engine.CloseElementTag.beHandled(CloseElementTag.java:139)
at org.thymeleaf.engine.Model.process(Model.java:282)
at org.thymeleaf.engine.ProcessorTemplateHandler.handleOpenElement(ProcessorTemplateHandler.java:1587)
at org.thymeleaf.engine.OpenElementTag.beHandled(OpenElementTag.java:205)
at org.thymeleaf.engine.Model.process(Model.java:282)
at org.thymeleaf.engine.Model.process(Model.java:290)
at org.thymeleaf.engine.GatheringModelProcessable.process(GatheringModelProcessable.java:78)
at org.thymeleaf.engine.ProcessorTemplateHandler.handleStandaloneElement(ProcessorTemplateHandler.java:993)
at org.thymeleaf.engine.StandaloneElementTag.beHandled(StandaloneElementTag.java:228)
at org.thymeleaf.engine.TemplateModel.process(TemplateModel.java:136)
at org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:592)
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1098)
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1072)
at org.thymeleaf.spring5.view.ThymeleafView.renderFragment(ThymeleafView.java:362)
at org.thymeleaf.spring5.view.ThymeleafView.render(ThymeleafView.java:189)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1373)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1118)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1057)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder$NotAsyncServlet.service(ServletHolder.java:1391)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:760)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617)
at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:590)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1607)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1297)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1577)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1212)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:221)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:500)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:270)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:388)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
at java.base/java.lang.Thread.run(Thread.java:830)
Caused by: org.eclipse.jetty.io.RuntimeIOException: org.eclipse.jetty.io.EofException
at org.eclipse.jetty.server.ResponseWriter.isOpen(ResponseWriter.java:131)
at org.eclipse.jetty.server.ResponseWriter.write(ResponseWriter.java:228)
at org.eclipse.jetty.server.ResponseWriter.write(ResponseWriter.java:246)
at org.thymeleaf.engine.CloseElementTag.write(CloseElementTag.java:109)
at org.thymeleaf.engine.OutputTemplateHandler.handleCloseElement(OutputTemplateHandler.java:159)
... 63 common frames omitted
Caused by: org.eclipse.jetty.io.EofException: null
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:283)
at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:422)
at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:277)
at org.eclipse.jetty.io.AbstractEndPoint.write(AbstractEndPoint.java:381)
at org.eclipse.jetty.server.HttpConnection$SendCallback.process(HttpConnection.java:810)
at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241)
at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:223)
at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:541)
at org.eclipse.jetty.server.HttpChannel.sendResponse(HttpChannel.java:829)
at org.eclipse.jetty.server.HttpChannel.write(HttpChannel.java:901)
at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:259)
at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:235)
at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:634)
at java.base/java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:161)
at org.eclipse.jetty.server.Utf8HttpWriter.write(Utf8HttpWriter.java:182)
at org.eclipse.jetty.server.HttpWriter.write(HttpWriter.java:67)
at org.eclipse.jetty.server.HttpWriter.write(HttpWriter.java:61)
at org.eclipse.jetty.server.ResponseWriter.write(ResponseWriter.java:229)
at org.eclipse.jetty.server.ResponseWriter.write(ResponseWriter.java:246)
at org.thymeleaf.engine.AbstractTextualTemplateEvent.writeContent(AbstractTextualTemplateEvent.java:218)
at org.thymeleaf.engine.Text.write(Text.java:78)
at org.thymeleaf.engine.OutputTemplateHandler.handleText(OutputTemplateHandler.java:71)
at org.thymeleaf.engine.Text.beHandled(Text.java:97)
at org.thymeleaf.engine.Model.process(Model.java:282)
at org.thymeleaf.engine.ProcessorTemplateHandler.handleOpenElement(ProcessorTemplateHandler.java:1587)
at org.thymeleaf.engine.OpenElementTag.beHandled(OpenElementTag.java:205)
... 61 common frames omitted
Caused by: java.io.IOException: Broken pipe
at java.base/sun.nio.ch.FileDispatcherImpl.writev0(Native Method)
at java.base/sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:66)
at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:182)
at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:130)
at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:514)
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:263)
... 86 common frames omitted
2020-04-01 18:50:56,546 INFO  fhirtest.access - Path[/fhir] Source[] Operation[search-type  Observation] UA[HAPI-FHIR/4.2.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[?_pretty=true] ResponseEncoding[JSON]
2020-04-01 18:51:00,328 INFO  fhirtest.access - Path[/fhir] Source[] Operation[metadata  ] UA[HAPI-FHIR/4.2.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[?_pretty=true] ResponseEncoding[JSON]
2020-04-01 18:51:00,361 INFO  ca.uhn.fhir.to.Controller - [server=home] - Showing resource page: Observation"



Log 2 : 

"2020-03-31 12:49:48,466 INFO  fhirtest.access - Path[/fhir] Source[] Operation[search-type  Encounter] UA[HAPI-FHIR/4.2.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[?_pretty=true] ResponseEncoding[JSON]
2020-03-31 14:58:13,424 INFO  fhirtest.access - Path[/fhir] Source[] Operation[metadata  ] UA[HAPI-FHIR/4.2.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[?_pretty=true] ResponseEncoding[JSON]
2020-03-31 14:58:13,933 INFO  ca.uhn.fhir.to.Controller - [server=home] - Showing resource page: Location
2020-03-31 14:58:16,510 INFO  fhirtest.access - Path[/fhir] Source[] Operation[metadata  ] UA[HAPI-FHIR/4.2.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[?_pretty=true] ResponseEncoding[JSON]
2020-03-31 14:58:16,724 INFO  ca.uhn.fhir.to.Controller - [server=home] - Showing resource page: Patient
2020-03-31 14:58:24,789 INFO  fhirtest.access - Path[/fhir] Source[] Operation[metadata  ] UA[HAPI-FHIR/4.2.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[?_pretty=true] ResponseEncoding[JSON]
2020-03-31 14:58:24,882 INFO  ca.uhn.fhir.to.Controller - [server=home] - Showing resource page: Encounter
2020-03-31 14:58:27,688 INFO  fhirtest.access - Path[/fhir] Source[] Operation[metadata  ] UA[HAPI-FHIR/4.2.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[?_pretty=true] ResponseEncoding[JSON]
2020-03-31 14:58:27,788 INFO  ca.uhn.fhir.to.Controller - [server=home] - Executing a search
2020-03-31 14:58:37,804 WARN  ca.uhn.fhir.to.BaseController - Failed to invoke server
ca.uhn.fhir.rest.client.exceptions.FhirClientConnectionException: Failed to parse response from server when performing GET to URL http://localhost:9099/hapi-fhir-jpaserver/fhir/Encounter?_pretty=true - java.net.SocketTimeoutException: Read timed out
at ca.uhn.fhir.rest.client.impl.BaseClient.invokeClient(BaseClient.java:398)
at ca.uhn.fhir.rest.client.impl.GenericClient$BaseClientExecutable.invoke(GenericClient.java:434)
at ca.uhn.fhir.rest.client.impl.GenericClient$SearchInternal.execute(GenericClient.java:1838)
at ca.uhn.fhir.to.Controller.actionSearch(Controller.java:446)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder$NotAsyncServlet.service(ServletHolder.java:1391)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:760)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617)
at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:590)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1607)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1297)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1577)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1212)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:221)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:500)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:270)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:388)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
at java.base/java.lang.Thread.run(Thread.java:830)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.base/sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:284)
at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:310)
at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:351)
at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:802)
at java.base/java.net.Socket$SocketInputStream.read(Socket.java:919)
at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137)
at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153)
at org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:280)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)
at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:157)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at ca.uhn.fhir.rest.client.apache.ApacheHttpRequest.execute(ApacheHttpRequest.java:64)
at ca.uhn.fhir.rest.client.impl.BaseClient.invokeClient(BaseClient.java:302)
... 58 common frames omitted
2020-03-31 14:58:37,807 ERROR ca.uhn.fhir.to.BaseController - Failure during processing
java.lang.NullPointerException: null
at ca.uhn.fhir.to.BaseController.processAndAddLastClientInvocation(BaseController.java:718)
at ca.uhn.fhir.to.Controller.actionSearch(Controller.java:453)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder$NotAsyncServlet.service(ServletHolder.java:1391)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:760)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617)
at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:590)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1607)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1297)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1577)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1212)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:221)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:500)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:270)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:388)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
at java.base/java.lang.Thread.run(Thread.java:830)
2020-03-31 14:58:38,083 ERROR org.thymeleaf.TemplateEngine - [THYMELEAF][qtp1916224178-56] Exception processing template "result": Exception evaluating SpringEL expression: "requestHeaders.length" (template: "result" - line 68, col 13)
org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "requestHeaders.length" (template: "result" - line 68, col 13)
at org.thymeleaf.spring5.expression.SPELVariableExpressionEvaluator.evaluate(SPELVariableExpressionEvaluator.java:290)
at org.thymeleaf.standard.expression.VariableExpression.executeVariableExpression(VariableExpression.java:166)
at org.thymeleaf.standard.expression.SimpleExpression.executeSimple(SimpleExpression.java:66)
at org.thymeleaf.standard.expression.Expression.execute(Expression.java:109)
at org.thymeleaf.standard.expression.Expression.execute(Expression.java:138)
at org.thymeleaf.standard.expression.GreaterThanExpression.executeGreaterThan(GreaterThanExpression.java:77)
at org.thymeleaf.standard.expression.ComplexExpression.executeComplex(ComplexExpression.java:101)
at org.thymeleaf.standard.expression.Expression.execute(Expression.java:112)
at org.thymeleaf.standard.expression.Expression.execute(Expression.java:138)
at org.thymeleaf.standard.expression.Expression.execute(Expression.java:125)
at org.thymeleaf.standard.processor.StandardIfTagProcessor.isVisible(StandardIfTagProcessor.java:59)
at org.thymeleaf.standard.processor.AbstractStandardConditionalVisibilityTagProcessor.doProcess(AbstractStandardConditionalVisibilityTagProcessor.java:61)
at org.thymeleaf.processor.element.AbstractAttributeTagProcessor.doProcess(AbstractAttributeTagProcessor.java:74)
at org.thymeleaf.processor.element.AbstractElementTagProcessor.process(AbstractElementTagProcessor.java:95)
at org.thymeleaf.util.ProcessorConfigurationUtils$ElementTagProcessorWrapper.process(ProcessorConfigurationUtils.java:633)
at org.thymeleaf.engine.ProcessorTemplateHandler.handleOpenElement(ProcessorTemplateHandler.java:1314)
at org.thymeleaf.engine.OpenElementTag.beHandled(OpenElementTag.java:205)
at org.thymeleaf.engine.TemplateModel.process(TemplateModel.java:136)
at org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:661)
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1098)
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1072)
at org.thymeleaf.spring5.view.ThymeleafView.renderFragment(ThymeleafView.java:362)
at org.thymeleaf.spring5.view.ThymeleafView.render(ThymeleafView.java:189)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1373)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1118)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1057)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder$NotAsyncServlet.service(ServletHolder.java:1391)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:760)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617)
at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:590)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1607)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1297)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1577)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1212)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:221)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:500)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:270)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:388)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
at java.base/java.lang.Thread.run(Thread.java:830)
Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1007E: Property or field 'length' cannot be found on null
at org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty(PropertyOrFieldReference.java:213)
at org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal(PropertyOrFieldReference.java:104)
at org.springframework.expression.spel.ast.PropertyOrFieldReference.access$000(PropertyOrFieldReference.java:51)
at org.springframework.expression.spel.ast.PropertyOrFieldReference$AccessorLValue.getValue(PropertyOrFieldReference.java:406)
at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:92)
at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:112)
at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:337)
at org.thymeleaf.spring5.expression.SPELVariableExpressionEvaluator.evaluate(SPELVariableExpressionEvaluator.java:263)
... 69 common frames omitted
2020-03-31 14:58:40,804 INFO  fhirtest.access - Path[/fhir] Source[] Operation[metadata  ] UA[HAPI-FHIR/4.2.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[?_pretty=true] ResponseEncoding[JSON]
2020-03-31 14:58:40,901 INFO  ca.uhn.fhir.to.Controller - [server=home] - Executing a search
2020-03-31 14:58:43,518 INFO  fhirtest.access - Path[/fhir] Source[] Operation[search-type  Encounter] UA[HAPI-FHIR/4.2.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[?_pretty=true] ResponseEncoding[JSON]
2020-03-31 14:59:28,293 INFO  fhirtest.access - Path[/fhir] Source[] Operation[metadata  ] UA[HAPI-FHIR/4.2.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[?_pretty=true] ResponseEncoding[JSON]
2020-03-31 14:59:28,361 INFO  ca.uhn.fhir.to.Controller - [server=home] - Showing resource page: Observation
2020-03-31 14:59:31,541 INFO  fhirtest.access - Path[/fhir] Source[] Operation[metadata  ] UA[HAPI-FHIR/4.2.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[?_pretty=true] ResponseEncoding[JSON]
2020-03-31 14:59:31,663 INFO  ca.uhn.fhir.to.Controller - [server=home] - Executing a search
2020-03-31 14:59:33,324 INFO  fhirtest.access - Path[/fhir] Source[] Operation[search-type  Observation] UA[HAPI-FHIR/4.2.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[?_pretty=true] ResponseEncoding[JSON]
2020-03-31 15:02:37,963 INFO  fhirtest.access - Path[/fhir] Source[] Operation[metadata  ] UA[HAPI-FHIR/4.2.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[?_pretty=true] ResponseEncoding[JSON]
2020-03-31 15:02:38,073 INFO  ca.uhn.fhir.to.Controller - [server=home] - Showing resource page: Observation
2020-03-31 15:03:56,174 INFO  fhirtest.access - Path[/fhir] Source[] Operation[metadata  ] UA[HAPI-FHIR/4.2.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[?_pretty=true] ResponseEncoding[JSON]
2020-03-31 15:03:56,274 INFO  ca.uhn.fhir.to.Controller - [server=home] - Showing resource page: Encounter
2020-03-31 15:03:57,439 INFO  fhirtest.access - Path[/fhir] Source[] Operation[metadata  ] UA[HAPI-FHIR/4.2.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[?_pretty=true] ResponseEncoding[JSON]
2020-03-31 15:03:57,516 INFO  ca.uhn.fhir.to.Controller - [server=home] - Executing a search"

James Agnew

unread,
Apr 1, 2020, 10:10:03 AM4/1/20
to nisha ks, HAPI FHIR
Hmm, so those appear to be read timeouts between the testpage overlay and the fhir server.

Does the FHIR server have similar issues when you invoke it directly (e.g. using postman or something similar)? Can you grab a thread dump while it's experiencing this issue?

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
Message has been deleted

nisha ks

unread,
Apr 1, 2020, 11:36:21 AM4/1/20
to HAPI FHIR
Yes James. Even with direct fhir server calls from postman, I am getting same error.

nisha ks

unread,
Apr 2, 2020, 1:05:41 AM4/2/20
to HAPI FHIR
Hi,

Any suggestions how I can fix this? 

nisha ks

unread,
Apr 2, 2020, 1:26:27 AM4/2/20
to HAPI FHIR
Hi,

again stuck with the same error.

"2020-04-02 10:53:36,084 INFO  fhirtest.access - Path[/fhir] Source[] Operation[metadata  ] UA[HAPI-FHIR/4.2.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[?_pretty=true] ResponseEncoding[JSON]
2020-04-02 10:53:36,455 INFO  ca.uhn.fhir.to.Controller - [server=home] - Showing resource page: Location
2020-04-02 10:53:39,547 INFO  fhirtest.access - Path[/fhir] Source[] Operation[metadata  ] UA[HAPI-FHIR/4.2.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[?_pretty=true] ResponseEncoding[JSON]
2020-04-02 10:53:39,652 INFO  ca.uhn.fhir.to.Controller - [server=home] - Executing a search
2020-04-02 10:53:49,671 WARN  ca.uhn.fhir.to.BaseController - Failed to invoke server
ca.uhn.fhir.rest.client.exceptions.FhirClientConnectionException: Failed to parse response from server when performing GET to URL http://localhost:9099/hapi-fhir-jpaserver/fhir/Location?_pretty=true - java.net.SocketTimeoutException: Read timed out
2020-04-02 10:53:49,688 ERROR ca.uhn.fhir.to.BaseController - Failure during processing
2020-04-02 10:53:49,865 ERROR org.thymeleaf.TemplateEngine - [THYMELEAF][qtp1212782393-24] Exception processing template "result": Exception evaluating SpringEL expression: "requestHeaders.length" (template: "result" - line 68, col 13)
2020-04-02 10:54:02,614 INFO  ca.uhn.fhir.context.FhirContext - Creating new FHIR context for FHIR version [R4]
2020-04-02 10:54:02,741 INFO  fhirtest.access - Path[/fhir] Source[] Operation[search-type  Location] UA[HAPI-FHIR/4.2.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[?_pretty=true] ResponseEncoding[JSON]"

Please suggest some fix.

James Agnew

unread,
Apr 2, 2020, 5:58:39 AM4/2/20
to nisha ks, HAPI FHIR
It's hard to say unfortunately. If you can grab a thread dump of the server while it's timing out, that might yield some insight. You could also try with different databases (H2, MySQL) to see if something might be causing postgres to block or something..

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages