FreeMarker template error: An error has occurred when reading existing sub-variable "colorLinks"; see cause exception! The type of the containing value was: extended_hash+string (timeedit.web.service.ReservationLinks wrapped into f.e.b.StringModel) ---- FTL stack trace ("~" means nesting-related): - Failed at: @linker list=links.colorLinks [in template "templates/settings.ftl" at line 28, column 33] - Reached through: #include "/templates/settings.ftl" [in template "templates/header.ftl" at line 257, column 1] - Reached through: #include "/templates/header.ftl" [in template "templates/reservations.ftl" at line 33, column 3] ---- Java stack trace (for programmers): ---- freemarker.core._TemplateModelException: [... Exception message was already printed; see it above ...] at freemarker.ext.beans.BeanModel.get(BeanModel.java:199) at freemarker.core.Dot._eval(Dot.java:40) at freemarker.core.Expression.eval(Expression.java:78) at freemarker.core.Environment.setMacroContextLocalsFromArguments(Environment.java:739) at freemarker.core.Environment.invoke(Environment.java:689) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:84) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.MixedContent.accept(MixedContent.java:54) at freemarker.core.Environment.visitByHiddingParent(Environment.java:345) at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.EscapeBlock.accept(EscapeBlock.java:48) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.MixedContent.accept(MixedContent.java:54) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.Environment.include(Environment.java:2072) at freemarker.core.Include.accept(Include.java:167) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.MixedContent.accept(MixedContent.java:54) at freemarker.core.Environment.visitByHiddingParent(Environment.java:345) at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.MixedContent.accept(MixedContent.java:54) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.EscapeBlock.accept(EscapeBlock.java:48) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.MixedContent.accept(MixedContent.java:54) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.Environment.include(Environment.java:2072) at freemarker.core.Include.accept(Include.java:167) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.MixedContent.accept(MixedContent.java:54) at freemarker.core.Environment.visitByHiddingParent(Environment.java:345) at freemarker.core.IfBlock.accept(IfBlock.java:48) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.MixedContent.accept(MixedContent.java:54) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.Environment.process(Environment.java:302) at freemarker.template.Template.process(Template.java:325) at org.restlet.ext.freemarker.TemplateRepresentation.write(TemplateRepresentation.java:350) at timeedit.web.service.output.TimeEditTemplateRepresentation.write(Unknown Source) at org.restlet.engine.application.EncodeRepresentation.write(EncodeRepresentation.java:301) at org.restlet.engine.http.HttpServerCall.writeResponseBody(HttpServerCall.java:494) at org.restlet.engine.http.HttpServerCall.sendResponse(HttpServerCall.java:431) at org.restlet.engine.http.HttpServerConverter.commit(HttpServerConverter.java:416) at org.restlet.engine.http.HttpServerHelper.handle(HttpServerHelper.java:150) at org.restlet.ext.grizzly.HttpParserFilter.execute(HttpParserFilter.java:81) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:136) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) at java.base/java.lang.Thread.run(Thread.java:831) Caused by: java.lang.reflect.InvocationTargetException at jdk.internal.reflect.GeneratedMethodAccessor453.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458) at freemarker.ext.beans.BeanModel.invokeThroughDescriptor(BeanModel.java:255) at freemarker.ext.beans.BeanModel.get(BeanModel.java:159) ... 55 more Caused by: java.lang.StringIndexOutOfBoundsException: begin 218, end 20, length 222 at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3751) at java.base/java.lang.String.substring(String.java:1907) at org.restlet.data.Reference.getExtensions(Reference.java:867) at timeedit.web.service.html.LinkModifier.scrambleQuery(Unknown Source) at timeedit.web.service.html.LinkModifier.getURLWithQuery(Unknown Source) at timeedit.web.service.html.LinkModifier.getURL(Unknown Source) at timeedit.web.service.html.ImageLink.create(Unknown Source) at timeedit.web.service.html.Links.add(Unknown Source) at timeedit.web.service.html.Links.add(Unknown Source) at timeedit.web.service.html.Links.addRadioValue(Unknown Source) at timeedit.web.service.ReservationLinks.getColorLinks(Unknown Source) ... 61 more
FreeMarker template error: An error has occurred when reading existing sub-variable "colorLinks"; see cause exception! The type of the containing value was: extended_hash+string (timeedit.web.service.ReservationLinks wrapped into f.e.b.StringModel) ---- FTL stack trace ("~" means nesting-related): - Failed at: @linker list=links.colorLinks [in template "templates/settings.ftl" at line 28, column 33] - Reached through: #include "/templates/settings.ftl" [in template "templates/header.ftl" at line 257, column 1] - Reached through: #include "/templates/header.ftl" [in template "templates/reservations.ftl" at line 33, column 3] ---- Java stack trace (for programmers): ---- freemarker.core._TemplateModelException: [... Exception message was already printed; see it above ...] at freemarker.ext.beans.BeanModel.get(BeanModel.java:199) at freemarker.core.Dot._eval(Dot.java:40) at freemarker.core.Expression.eval(Expression.java:78) at freemarker.core.Environment.setMacroContextLocalsFromArguments(Environment.java:739) at freemarker.core.Environment.invoke(Environment.java:689) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:84) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.MixedContent.accept(MixedContent.java:54) at freemarker.core.Environment.visitByHiddingParent(Environment.java:345) at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.EscapeBlock.accept(EscapeBlock.java:48) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.MixedContent.accept(MixedContent.java:54) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.Environment.include(Environment.java:2072) at freemarker.core.Include.accept(Include.java:167) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.MixedContent.accept(MixedContent.java:54) at freemarker.core.Environment.visitByHiddingParent(Environment.java:345) at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.MixedContent.accept(MixedContent.java:54) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.EscapeBlock.accept(EscapeBlock.java:48) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.MixedContent.accept(MixedContent.java:54) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.Environment.include(Environment.java:2072) at freemarker.core.Include.accept(Include.java:167) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.MixedContent.accept(MixedContent.java:54) at freemarker.core.Environment.visitByHiddingParent(Environment.java:345) at freemarker.core.IfBlock.accept(IfBlock.java:48) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.MixedContent.accept(MixedContent.java:54) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.Environment.process(Environment.java:302) at freemarker.template.Template.process(Template.java:325) at org.restlet.ext.freemarker.TemplateRepresentation.write(TemplateRepresentation.java:350) at timeedit.web.service.output.TimeEditTemplateRepresentation.write(Unknown Source) at org.restlet.engine.application.EncodeRepresentation.write(EncodeRepresentation.java:301) at org.restlet.engine.http.HttpServerCall.writeResponseBody(HttpServerCall.java:494) at org.restlet.engine.http.HttpServerCall.sendResponse(HttpServerCall.java:431) at org.restlet.engine.http.HttpServerConverter.commit(HttpServerConverter.java:416) at org.restlet.engine.http.HttpServerHelper.handle(HttpServerHelper.java:150) at org.restlet.ext.grizzly.HttpParserFilter.execute(HttpParserFilter.java:81) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:136) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) at java.base/java.lang.Thread.run(Thread.java:831) Caused by: java.lang.reflect.InvocationTargetException at jdk.internal.reflect.GeneratedMethodAccessor453.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458) at freemarker.ext.beans.BeanModel.invokeThroughDescriptor(BeanModel.java:255) at freemarker.ext.beans.BeanModel.get(BeanModel.java:159) ... 55 more Caused by: java.lang.StringIndexOutOfBoundsException: begin 218, end 20, length 222 at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3751) at java.base/java.lang.String.substring(String.java:1907) at org.restlet.data.Reference.getExtensions(Reference.java:867) at timeedit.web.service.html.LinkModifier.scrambleQuery(Unknown Source) at timeedit.web.service.html.LinkModifier.getURLWithQuery(Unknown Source) at timeedit.web.service.html.LinkModifier.getURL(Unknown Source) at timeedit.web.service.html.ImageLink.create(Unknown Source) at timeedit.web.service.html.Links.add(Unknown Source) at timeedit.web.service.html.Links.add(Unknown Source) at timeedit.web.service.html.Links.addRadioValue(Unknown Source) at timeedit.web.service.ReservationLinks.getColorLinks(Unknown Source) ... 61 more