Method public long ro.ups.magazin.cache.Cache.getElapsedToDate(java.lang.String,java.lang.String) threw an exception when invoked on ro.ups.magazin.cache.Cache@4de3aaf6 The problematic instruction: ---------- ==> assignment: expsec=cache.getElapsedToDate("2014-10-21 04:00:00","")/1000 [on line 86, column 1 in header.ftl] in include "header.ftl" [on line 2, column 1 in produs.ftl] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateModelException: Method public long ro.ups.magazin.cache.Cache.getElapsedToDate(java.lang.String,java.lang.String) threw an exception when invoked on ro.ups.magazin.cache.Cache@4de3aaf6 at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:136) at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.ArithmeticExpression._getAsTemplateModel(ArithmeticExpression.java:83) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.Assignment.accept(Assignment.java:90) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.Environment.include(Environment.java:1375) at freemarker.core.Include.accept(Include.java:155) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.Environment.process(Environment.java:176) at freemarker.template.Template.process(Template.java:231) at ro.ups.magazin.mall.MallMagazin.processWriter(Unknown Source) at ro.ups.magazin.mall.MallMagazin.processWriter(Unknown Source) at ro.ups.magazin.mall.MallMagazin.process(Unknown Source) at ro.ups.pages.Produs_jsp._jspService(Unknown Source) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:275) at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:161) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at ro.ups.pages.AfiseazaProdus_jsp._jspService(Unknown Source) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:275) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:169) at ro.ups.magazin.filter.SEOFilter3.doSEOFilter(Unknown Source) at ro.ups.magazin.filter.SEOFilter.doFilter(Unknown Source) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823) at ro.ups.magazin.filter.TraceFilter.doFilter(Unknown Source) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635) at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) at org.mortbay.http.HttpServer.service(HttpServer.java:954) at org.mortbay.http.HttpConnection.service(HttpConnection.java:814) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Caused by: java.lang.NumberFormatException: multiple points at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1084) at java.lang.Double.parseDouble(Double.java:510) at java.text.DigitList.getDouble(DigitList.java:151) at java.text.DecimalFormat.parse(DecimalFormat.java:1303) at java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:1591) at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1312) at java.text.DateFormat.parse(DateFormat.java:335) at ro.ups.magazin.cache.Cache.getElapsedToDate(Unknown Source) at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:583) at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:113) ... 50 more [EXCEPTIE:Method public long ro.ups.magazin.cache.Cache.getElapsedToDate(java.lang.String,java.lang.String) threw an exception when invoked on ro.ups.magazin.cache.Cache@4de3aaf6]