freemarker.template.TemplateModelException: [... Exception message was already printed; see it above ...]


Samebug tips1

You try to parse a String that contains non-numeric characters to an int. The string must contain decimal characters only, optionally beginning with a + or - sign.


4 weeks ago

Solutions on the web101

Solution icon of web
via gov.au by Unknown author, 1 year ago
[... Exception message was already printed; see it above ...]

Solution icon of github
via GitHub by deso82
, 6 months ago
[... Exception message was already printed; see it above ...]

Solution icon of web
via allegromedical.com by Unknown author, 1 year ago
[... Exception message was already printed; see it above ...]

Solution icon of stackoverflow
via Stack Overflow by a mali
, 1 year ago
Method public java.lang.String org.hibernate.exception.NestableRuntimeException.getMessage(int) threw an exception when invoked on org.hibernate.HibernateException: identifier of an instance of com.acv.in.bean.Student was altered from 294912 to 294912

Solution icon of stackoverflow
via Stack Overflow by Mmeinert
, 9 months ago
Method "public java.lang.String org.alfresco.repo.site.script.Site.getMembersRole(java.lang.String)" threw an exception when invoked on org.alfresco.repo.site.script.Site object "org.alfresco.repo.site.script.Site@7803ba02". See cause exception

Solution icon of youtrack
via YouTrack by Unknown author, 1 year ago
Method public static java.lang.String jetbrains.youtrack.notifications.model.Utils.getUrl(jetbrains.youtrack.notifications.accessData.IssueAdapter) threw an exception

Solution icon of atlassian
via Atlassian JIRA by Nick Pellow [Atlassian], 1 year ago
Method public static java.lang.String com.cenqua.crucible.util.FreemarkerUtil.formatChangesetComment(com.cenqua.fisheye.RepositoryConfig,com.cenqua.fisheye.rep.ChangeSet) threw an exception

Solution icon of atlassian
via Atlassian JIRA by Nick Pellow [Atlassian], 1 year ago
Method public static java.lang.String com.cenqua.crucible.util.FreemarkerUtil.formatChangesetComment(com.cenqua.fisheye.RepositoryConfig,com.cenqua.fisheye.rep.ChangeSet) threw an exception

Solution icon of coderanch
via Coderanch by syruss kumar, 9 months ago
Method public boolean com.liferay.portal.tools.servicebuilder.Entity.hasPrimitivePK() threw an exception when invoked on com.liferay.portal.tools.servicebuilder.Entity@1f1bd98

Solution icon of coderanch
via Coderanch by Chandana Garlapati, 10 months ago
Method public java.util.List org.apache.struts2.components.Form.getValidators(java.lang.String) threw an exception when invoked on org.apache.struts2.components.Form@7a9224

Stack trace

freemarker.template.TemplateModelException: [... Exception message was already printed; see it above ...]
	at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:130)
	at freemarker.core.MethodCall._eval(MethodCall.java:98)
	at freemarker.core.Expression.eval(Expression.java:111)
	at freemarker.core.IteratorBlock.accept(IteratorBlock.java:94)
	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.include(Environment.java:1712)
	at freemarker.core.Include.accept(Include.java:172)
	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.include(Environment.java:1712)
	at freemarker.core.Include.accept(Include.java:172)
	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.include(Environment.java:1712)
	at freemarker.core.Include.accept(Include.java:172)
	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:367)
	at org.springframework.web.servlet.view.freemarker.FreeMarkerView.doRender(FreeMarkerView.java:284)
	at org.springframework.web.servlet.view.freemarker.FreeMarkerView.renderMergedTemplateModel(FreeMarkerView.java:234)
	at org.springframework.web.servlet.view.AbstractTemplateView.renderMergedOutputModel(AbstractTemplateView.java:167)
	at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303)
	at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1244)
	at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1027)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:971)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:800)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
	at au.gov.nla.dlir.config.JSessionIdRemoveFilter.doFilter(JSessionIdRemoveFilter.java:71)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
	at org.eclipse.jetty.server.Server.handle(Server.java:497)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:248)
	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:620)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:540)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NumberFormatException: null
	at java.lang.Integer.parseInt(Integer.java:454)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

2 times, 2 weeks ago
24 times, 1 month ago
2 times, 1 month ago
5 times, 3 months ago
Once, 4 months ago
172 more bugmates