Forum Discussion
It is under Admin > System > HTTP Client [Enables you to specify allowed domains (where a request could be sent) as a comma-separated list.]
Sorry this solution doesn't help. The baseURL also contains the same domain as the first request.
Does anyone has any idea? This looks like a bug(?) in lithium handling of special characters in the URL or only accept certain strings in the URL? The expected response should be a JSONobject containing a JSON array.
Method "public final lithium.coreapi.webui.template.models.HttpClientResponseTemplateModel lithium.coreapi.webui.template.models.HttpClientRequestTemplateModel.get() throws freemarker.template.TemplateModelException" threw an exception when invoked on lithium.coreapi.webui.template.models.HttpClientRequestTemplateModel object "lithium.coreapi.webui.template.models.HttpClientRequestTemplateModel@1fa01992". See cause exception. The failing instruction (FTL stack trace): ---------- ==> #assign response_user = http.client.r... [in template "retrieve-org-zendesk.ftl" at line 21, column 21] #else [in template "retrieve-org-zendesk.ftl" at line 19, column 17] #else [in template "retrieve-org-zendesk.ftl" at line 14, column 13] #nested [in template "zendeskticket.ftl" in macro "doc" at line 67, column 15] @doc name="response" [in template "retrieve-org-zendesk.ftl" at line 11, column 9] #nested [in template "zendeskticket.ftl" in macro "render" at line 45, column 9] #if rws [in template "zendeskticket.ftl" in macro "render" at line 43, column 5] #nested [in template "zendeskticket.ftl" in macro "format" at line 35, column 5] @format type=format_type [in template "zendeskticket.ftl" in macro "render" at line 42, column 3] @render [in template "retrieve-org-zendesk.ftl" at line 10, column 5] ---------- Java stack trace (for programmers): ---------- freemarker.template.TemplateModelException: [... Exception message was already printed; see it above ...] at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:135) at freemarker.core.MethodCall._eval(MethodCall.java:98) at freemarker.core.Expression.eval(Expression.java:111) at freemarker.core.Assignment.accept(Assignment.java:106) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.MixedContent.accept(MixedContent.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.IfBlock.accept(IfBlock.java:84) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.MixedContent.accept(MixedContent.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.IfBlock.accept(IfBlock.java:84) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.Environment.visit(Environment.java:487) at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.MixedContent.accept(MixedContent.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.Macro$Context.runMacro(Macro.java:209) at freemarker.core.Environment.visit(Environment.java:694) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:116) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.Environment.visit(Environment.java:487) at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93) at freemarker.core.Environment.visitByHiddingParent(Environment.java:286) at freemarker.core.Environment.visitAndTransform(Environment.java:377) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:140) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.IfBlock.accept(IfBlock.java:84) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.Environment.visit(Environment.java:487) at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.MixedContent.accept(MixedContent.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.Macro$Context.runMacro(Macro.java:209) at freemarker.core.Environment.visit(Environment.java:694) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:116) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.MixedContent.accept(MixedContent.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.Macro$Context.runMacro(Macro.java:209) at freemarker.core.Environment.visit(Environment.java:694) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:116) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.MixedContent.accept(MixedContent.java:93) at freemarker.core.Environment.visitByHiddingParent(Environment.java:286) at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:86) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.MixedContent.accept(MixedContent.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.Environment.process(Environment.java:243) at freemarker.template.Template.process(Template.java:277) at org.springframework.web.servlet.view.freemarker.FreeMarkerView.processTemplate(FreeMarkerView.java:366) at org.springframework.web.servlet.view.freemarker.FreeMarkerView.doRender(FreeMarkerView.java:283) at org.springframework.web.servlet.view.freemarker.FreeMarkerView.renderMergedTemplateModel(FreeMarkerView.java:233) at org.springframework.web.servlet.view.AbstractTemplateView.renderMergedOutputModel(AbstractTemplateView.java:167) at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:263) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1208) at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:992) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:939) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at lithium.servlet.spring.SpringControllerDispatcherServlet.service(SpringControllerDispatcherServlet.java:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at lithium.util.http.DelegatingApplicationServletProxy.service(DelegatingApplicationServletProxy.java:223) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.JsonCallbackFilter.doHttpFilter(JsonCallbackFilter.java:49) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.webui.CustomPageInitializationHttpFilter.doHttpFilter(CustomPageInitializationHttpFilter.java:90) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.fusion.FusionServlet.doHttpFilter(FusionServlet.java:227) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.HttpRequestContextFilter.doHttpFilter(HttpRequestContextFilter.java:77) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.MaskedIpFilter.doHttpFilter(MaskedIpFilter.java:84) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.HashedIpFilter.doHttpFilter(HashedIpFilter.java:166) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.device.ClientDeviceDetectionFilter.doHttpFilter(ClientDeviceDetectionFilter.java:198) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.boards.servlet.pagecache.PageCacheManager.doHttpFilter(PageCacheManager.java:416) at lithium.boards.servlet.pagecache.PageCacheFilter.doHttpFilter(PageCacheFilter.java:42) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.banuser.BannedUserFilter.doHttpFilter(BannedUserFilter.java:129) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.web.clickjacking.ClickjackingServletFilter.doHttpFilter(ClickjackingServletFilter.java:125) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.traffic.visitor.VisitorFilter.doHttpFilter(VisitorFilter.java:42) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.session.UserSessionFilter.doHttpFilter(UserSessionFilter.java:162) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.xsl.PluginXslTransformFilter.doHttpFilter(PluginXslTransformFilter.java:76) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.MimeFilter.doHttpFilter(MimeFilter.java:37) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.limit.StandardLimitPool.processRequest(StandardLimitPool.java:594) at lithium.servlet.limit.StandardLimitManager.processRequest(StandardLimitManager.java:184) at lithium.servlet.limit.LimitFilter.doHttpFilter(LimitFilter.java:67) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.RequestTransformFilter.doHttpFilter(RequestTransformFilter.java:73) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.MetricsFilter.doHttpFilter(MetricsFilter.java:95) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.SetHeaderValidationFilter.doHttpFilter(SetHeaderValidationFilter.java:52) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.SessionIdStripperFilter.doHttpFilter(SessionIdStripperFilter.java:44) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.device.AgentDetectionFilter.doHttpFilter(AgentDetectionFilter.java:111) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.session.ReplicatedSessionFilter.doFilter(ReplicatedSessionFilter.java:57) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.rewrite.RewriteFilter.doHttpFilter(RewriteFilter.java:410) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.BlackboxFilter.doHttpFilter(BlackboxFilter.java:88) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.OperationsLoggingFilter.doHttpFilter(OperationsLoggingFilter.java:106) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.tracking.TrackingManager.doHttpFilter(TrackingManager.java:270) at lithium.servlet.tracking.TrackingFilter.doHttpFilter(TrackingFilter.java:25) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.NotSecureSessionCookieFilter.doHttpFilter(NotSecureSessionCookieFilter.java:73) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.AccessCheckFilter.doHttpFilter(AccessCheckFilter.java:75) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.util.servlet.P3PHeaderFilter.doHttpFilter(P3PHeaderFilter.java:80) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.util.http.GenericFilter.doHttpFilter(GenericFilter.java:21) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.VanityHostnameRedirectFilter.doHttpFilter(VanityHostnameRedirectFilter.java:151) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.CanonicalIpFilter.doHttpFilter(CanonicalIpFilter.java:50) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.ForwardedHeadersFilter.doHttpFilter(ForwardedHeadersFilter.java:249) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.funnel.FunnelManager.doHttpFilter(FunnelManager.java:91) at lithium.servlet.funnel.FunnelFilter.doHttpFilter(FunnelFilter.java:41) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at lithium.util.http.DelegatingApplicationFilterProxy.doFilter(DelegatingApplicationFilterProxy.java:184) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.apps.main.container.filters.ApplicationSelectorFilter.doHttpFilter(ApplicationSelectorFilter.java:176) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.PutTomcatRequestinAttributeFilter.doFilter(PutTomcatRequestinAttributeFilter.java:60) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.boards.servlet.ClearStateFilter.doHttpFilter(ClearStateFilter.java:65) at lithium.util.http.HttpFilter.doFilter(HttpFilter.java:44) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at lithium.servlet.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:57) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at lithium.apps.main.webserver.Tomcat70Bootstrap$3.invoke(Tomcat70Bootstrap.java:394) at lithium.apps.main.webserver.Tomcat70Bootstrap$2.invoke(Tomcat70Bootstrap.java:347) at lithium.apps.main.webserver.SessionIdValidator.invoke(SessionIdValidator.java:107) at lithium.apps.main.webserver.ApplicationWebserverConfigurationValve.invoke(ApplicationWebserverConfigurationValve.java:69) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: freemarker.template.TemplateModelException: No error description was specified for this error; low-level message: java.lang.NullPointerException: null The failing instruction (print stack trace for 9 more): ==> #assign response_user = http.client.r... [in template "retrieve-org-zendesk.ftl" at line 21, column 21] at lithium.coreapi.webui.template.models.HttpClientRequestTemplateModel.get(HttpClientRequestTemplateModel.java:231) at sun.reflect.GeneratedMethodAccessor434.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:912) at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:107) ... 268 more Caused by: java.lang.NullPointerException at lithium.coreapi.webui.template.models.HttpClientRequestTemplateModel.get(HttpClientRequestTemplateModel.java:218) ... 273 more
- VarunGrazitti10 years agoBoss
Yes, I do remember that there were certain issues with the special chars when we implemented one of our customizations, you need to drill down a bit more.
- perk10 years agoAdept
I investigated the cause a bit deeper and here is something odd about Lithium:
I have another line of code that contains a "?" and this works perfectly. So the character "?" is not an issue.
<#assign url_getTicketsForUserID = baseUrl + "tickets.json?external_id=" + external_id />
<#assign response_getTicketsForUserID = http.client.request(url_getTicketsForUserID).header("Authorization", "Bearer "+ response.content.access_token).json().get() />When I try this
<#assign url_getUser = baseUrl + "users?query=abc" />
It fails with the following error:
Method "public final lithium.coreapi.webui.template.models.HttpClientResponseTemplateModel lithium.coreapi.webui.template.models.HttpClientRequestTemplateModel.get() throws freemarker.template.TemplateModelException" threw an exception when invoked on lithium.coreapi.webui.template.models.HttpClientRequestTemplateModel object "lithium.coreapi.webui.template.models.HttpClientRequestTemplateModel@66fc9c8f".
When I try the same URL in curl, I get a JSON Object back hence it is a valid command.
The result should be: {"users":[],"next_page":null,"previous_page":null,"count":0}
So what is going on here? Is there anyone from Lithium that can investigate with us on this? We are paying customer and need this roadblock to be resolved before we can launch Lithium.
- YuriK10 years agoKhoros Expert
I think you may need to url encode the query parameter, try the following:
<#assign url_getUser = "https://DOMAIN.zendesk.com/api/v2/users?" + "query=USE
R@COMPANY.com" ?url/>
Hope this helps,Yuri
Related Content
- 4 years ago
- 5 years ago