Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 655507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:36:40+00:00 2026-05-13T22:36:40+00:00

I´m trying to change a spring jsp example to use freemarker. I changed all

  • 0

I´m trying to change a spring jsp example to use freemarker.

I changed all fields in a form with something like this:
<@spring.formInput “account.name” />

Everything worked nicely. Form binded to the object and everything was validated, but I can`t get this part to work.

<@spring.formInput “account.renewalDate” />
In jsp it was

renewalDate is a java.util.Date object. The page opens and the error starts where the date input field should be.

Method public
org.springframework.web.servlet.support.BindStatus
org.springframework.web.servlet.support.RequestContext.getBindStatus(java.lang.String)
throws java.lang.IllegalStateException
threw an exception when invoked on
org.springframework.web.servlet.support.RequestContext@1b5c22f
with arguments of types
[java.lang.String,] The problematic
instruction: ———- ==>
assignment:
status=springMacroRequestContext.getBindStatus(path)
[on line 120, column 9 in spring.ftl]
in user-directive bind [on line 159,
column 5 in spring.ftl] in
user-directive spring.formInput [on
line 36, column 41 in createForm.ftl]
———- Java backtrace for programmers: ———-
freemarker.template.TemplateModelException:
Method public
org.springframework.web.servlet.support.BindStatus
org.springframework.web.servlet.support.RequestContext.getBindStatus(java.lang.String)
throws java.lang.IllegalStateException
threw an exception when invoked on
org.springframework.web.servlet.support.RequestContext@1b5c22f
with arguments of types
[java.lang.String,] at
freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:134)
at
freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
at
freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
at
freemarker.core.Assignment.accept(Assignment.java:90)
at
freemarker.core.Environment.visit(Environment.java:210)
at
freemarker.core.IfBlock.accept(IfBlock.java:82)
at
freemarker.core.Environment.visit(Environment.java:210)
at
freemarker.core.MixedContent.accept(MixedContent.java:92)
at
freemarker.core.Environment.visit(Environment.java:210)
at
freemarker.core.Macro$Context.runMacro(Macro.java:172)
at
freemarker.core.Environment.visit(Environment.java:603)
at
freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
at
freemarker.core.Environment.visit(Environment.java:210)
at
freemarker.core.MixedContent.accept(MixedContent.java:92)
at
freemarker.core.Environment.visit(Environment.java:210)
at
freemarker.core.Macro$Context.runMacro(Macro.java:172)
at
freemarker.core.Environment.visit(Environment.java:603)
at
freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
at
freemarker.core.Environment.visit(Environment.java:210)
at
freemarker.core.MixedContent.accept(MixedContent.java:92)
at
freemarker.core.Environment.visit(Environment.java:210)
at
freemarker.core.Environment.process(Environment.java:190)
at
freemarker.template.Template.process(Template.java:237)
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:250)
at
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1060)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:530)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:427)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:494)
at
org.eclipse.jetty.server.session.SessionHandler.handle(SessionHandler.java:182)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:933)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:362)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:867)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
at
org.eclipse.jetty.server.Server.handle(Server.java:330)
at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559)
at
org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:992)
at
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:541)
at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:203)
at
org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
at java.lang.Thread.run(Unknown
Source) Caused by:
org.springframework.core.convert.ConversionFailedException:
Unable to convert value Sat Mar 05
15:49:22 EET 2011 from type
‘java.util.Date’ to type
‘java.lang.String’; nested exception
is java.lang.IllegalStateException:
JodaTime library not available –
@DateTimeFormat not supported at
org.springframework.core.convert.support.ConversionUtils.invokeConverter(ConversionUtils.java:40)
at
org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:138)
at
org.springframework.validation.AbstractPropertyBindingResult.formatFieldValue(AbstractPropertyBindingResult.java:122)
at
org.springframework.validation.AbstractBindingResult.getFieldValue(AbstractBindingResult.java:227)
at
org.springframework.web.servlet.support.BindStatus.(BindStatus.java:120)
at
org.springframework.web.servlet.support.RequestContext.getBindStatus(RequestContext.java:726)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source) at
java.lang.reflect.Method.invoke(Unknown
Source) at
freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:840)
at
freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:104)
… 54 more Caused by:
java.lang.IllegalStateException:
JodaTime library not available –
@DateTimeFormat not supported at
org.springframework.format.support.FormattingConversionServiceFactoryBean$NoJodaDateTimeFormatAnnotationFormatterFactory.getPrinter(FormattingConversionServiceFactoryBean.java:131)
at
org.springframework.format.support.FormattingConversionServiceFactoryBean$NoJodaDateTimeFormatAnnotationFormatterFactory.getPrinter(FormattingConversionServiceFactoryBean.java:1)
at
org.springframework.format.support.FormattingConversionService$1.convert(FormattingConversionService.java:78)
at
org.springframework.core.convert.support.ConversionUtils.invokeConverter(ConversionUtils.java:37)
… 65 more

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T22:36:41+00:00Added an answer on May 13, 2026 at 10:36 pm

    Look at the cause:

    Caused by: java.lang.IllegalStateException: JodaTime library not available – @DateTimeFormat not supported at

    Your renewalDate field is annotated with @DateTimeFormat, which doesn’t work unless you add JodaTime to the classpath.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are trying to change our HttpServlet to Spring's DispatcherServlet. We use jQuery and
Hi I have something like this in struts.xml <action name=LoginAction class=controller.LoginAction> <result name=error>/Error.jsp</result> <result
I am trying to change my many to many script field to use FilteredSelectMultiple
I am trying to upload a File with one parameter using spring 3. This
I am trying to change my spring projects language with I18N. my configuration for
I'm trying to use MappingJacksonJsonView with Spring 3.0, without success. I don't know what
We use Spring + Hibernate for a Webapp. This Webapp will be deployed on
I am trying to rename all my JSP files used in WebFlow2 to JSPX.
I'm trying to use spring-test-mvc for testing a controller in my little application. Since
I am trying to use spring mvc to build web app. Before I was

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.