Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Spring Framework 3.2 GA Released

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Posts
    307

    Default Spring Framework 3.2 GA Released

    The Spring team are very happy to announce that Spring Framework 3.2 GA is now released and available via both the SpringSource repository and Maven Central.

    See Juergen's blog post for complete details!

    Download | Documentation | Javadoc API | Change Log | JIRA | Forum | Stack Overflow
    Chris Beams
    Spring Framework committer, VMware
    http://github.com/cbeams

  2. #2
    Join Date
    Mar 2012
    Posts
    4

    Default

    I upgraded from Spring 3.1.2 to 3.2

    After upgrade, all my date variables in forms are failing with joda conversion error.

    org.springframework.core.convert.ConverterNotFound Exception: No converter found capable of converting from type java.util.Date to type org.joda.time.ReadableInstant


    Sample Code:

    Its failing with any of the following options.

    <form:input id="startDt" path="startDt" value="2012-10-12" />
    <form:input id="startDt" path="startDt" value="10-12-2012" />
    <form:input id="startDt" path="startDt" value="10/12/2012" />

    Note: startDt is of type java.util.Date

  3. #3
    Join Date
    May 2008
    Posts
    53

    Default

    I have raised a new JIRA issue for this [1]. Could you please update the JIRA with a full stack trace? You might also want to watch the issue for updates.

    Cheers.
    Phil.

    [1] https://jira.springsource.org/browse/SPR-10097

  4. #4
    Join Date
    Mar 2012
    Posts
    4

    Default

    46: </tr>
    47: <tr>
    48: <td><label>Start Date</label><span class="required">*</span></td>
    49: <td><form:input id="startDt" path="startDt"
    50: class="validate[required] text-input datepicker dateField"/></td>
    51: </tr>
    52: <%--


    Stacktrace:] with root cause
    org.springframework.core.convert.ConverterNotFound Exception: No converter found capable of converting from type java.util.Date to type org.joda.time.ReadableInstant
    at org.springframework.core.convert.support.GenericCo nversionService.handleConverterNotFound(GenericCon versionService.java:276)
    at org.springframework.core.convert.support.GenericCo nversionService.convert(GenericConversionService.j ava:172)
    at org.springframework.format.support.FormattingConve rsionService$PrinterConverter.convert(FormattingCo nversionService.java:133)
    at org.springframework.core.convert.support.Conversio nUtils.invokeConverter(ConversionUtils.java:35)
    at org.springframework.core.convert.support.GenericCo nversionService.convert(GenericConversionService.j ava:169)
    at org.springframework.validation.AbstractPropertyBin dingResult.formatFieldValue(AbstractPropertyBindin gResult.java:125)
    at org.springframework.validation.AbstractBindingResu lt.getFieldValue(AbstractBindingResult.java:222)
    at org.springframework.web.servlet.support.BindStatus .<init>(BindStatus.java:120)
    at org.springframework.web.servlet.tags.form.Abstract DataBoundFormElementTag.getBindStatus(AbstractData BoundFormElementTag.java:178)
    at org.springframework.web.servlet.tags.form.Abstract DataBoundFormElementTag.getPropertyPath(AbstractDa taBoundFormElementTag.java:198)
    at org.springframework.web.servlet.tags.form.Abstract DataBoundFormElementTag.getName(AbstractDataBoundF ormElementTag.java:164)
    at org.springframework.web.servlet.tags.form.Abstract DataBoundFormElementTag.writeDefaultAttributes(Abs tractDataBoundFormElementTag.java:127)
    at org.springframework.web.servlet.tags.form.Abstract HtmlElementTag.writeDefaultAttributes(AbstractHtml ElementTag.java:421)
    at org.springframework.web.servlet.tags.form.InputTag .writeTagContent(InputTag.java:142)
    at org.springframework.web.servlet.tags.form.Abstract FormTag.doStartTagInternal(AbstractFormTag.java:10 2)
    at org.springframework.web.servlet.tags.RequestContex tAwareTag.doStartTag(RequestContextAwareTag.java:7 9)
    at org.apache.jsp.jsp.admin.features.periodEdit_jsp._ jspx_meth_form_005finput_005f2(periodEdit_jsp.java :423)
    at org.apache.jsp.jsp.admin.features.periodEdit_jsp._ jspx_meth_form_005fform_005f0(periodEdit_jsp.java: 169)
    at org.apache.jsp.jsp.admin.features.periodEdit_jsp._ jspService(periodEdit_jsp.java:96)
    at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:728)
    at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:432)
    at org.apache.jasper.servlet.JspServlet._serviceJspFi le(JspServlet.java:390)
    at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java)
    at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:334)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:728)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationDispatcher.inv oke(ApplicationDispatcher.java:749)
    at org.apache.catalina.core.ApplicationDispatcher.pro cessRequest(ApplicationDispatcher.java:487)
    at org.apache.catalina.core.ApplicationDispatcher.doF orward(ApplicationDispatcher.java:412)
    at org.apache.catalina.core.ApplicationDispatcher.for ward(ApplicationDispatcher.java:339)
    at org.springframework.web.servlet.view.InternalResou rceView.renderMergedOutputModel(InternalResourceVi ew.java:238)
    at org.springframework.web.servlet.view.AbstractView. render(AbstractView.java:264)
    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.p rocessRequest(FrameworkServlet.java:915)
    at org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:811)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:621)
    at org.springframework.web.servlet.FrameworkServlet.s ervice(FrameworkServlet.java:796)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:728)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:210)
    at com.samplecharts.filter.core.ResponseHeaderFilter. doFilter(ResponseHeaderFilter.java:25)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:210)
    at com.opensymphony.sitemesh.webapp.SiteMeshFilter.ob tainContent(SiteMeshFilter.java:129)
    at com.opensymphony.sitemesh.webapp.SiteMeshFilter.do Filter(SiteMeshFilter.java:77)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:210)
    at org.springframework.web.filter.HiddenHttpMethodFil ter.doFilterInternal(HiddenHttpMethodFilter.java:7 7)
    at org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:107)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:210)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 330)
    at org.springframework.security.web.access.intercept. FilterSecurityInterceptor.invoke(FilterSecurityInt erceptor.java:118)
    at org.springframework.security.web.access.intercept. FilterSecurityInterceptor.doFilter(FilterSecurityI nterceptor.java:84)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 342)
    at org.springframework.security.web.access.ExceptionT ranslationFilter.doFilter(ExceptionTranslationFilt er.java:113)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 342)
    at org.springframework.security.web.session.SessionMa nagementFilter.doFilter(SessionManagementFilter.ja va:103)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 342)
    at org.springframework.security.web.authentication.An onymousAuthenticationFilter.doFilter(AnonymousAuth enticationFilter.java:113)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 342)
    at org.springframework.security.web.servletapi.Securi tyContextHolderAwareRequestFilter.doFilter(Securit yContextHolderAwareRequestFilter.java:54)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 342)
    at org.springframework.security.web.savedrequest.Requ estCacheAwareFilter.doFilter(RequestCacheAwareFilt er.java:45)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 342)
    at org.springframework.security.web.authentication.Ab stractAuthenticationProcessingFilter.doFilter(Abst ractAuthenticationProcessingFilter.java:183)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 342)
    at org.springframework.security.web.authentication.lo gout.LogoutFilter.doFilter(LogoutFilter.java:105)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 342)
    at org.springframework.security.web.context.SecurityC ontextPersistenceFilter.doFilter(SecurityContextPe rsistenceFilter.java:87)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 342)
    at org.springframework.security.web.FilterChainProxy. doFilterInternal(FilterChainProxy.java:192)
    at org.springframework.security.web.FilterChainProxy. doFilter(FilterChainProxy.java:160)
    at org.springframework.web.filter.DelegatingFilterPro xy.invokeDelegate(DelegatingFilterProxy.java:346)
    at org.springframework.web.filter.DelegatingFilterPro xy.doFilter(DelegatingFilterProxy.java:259)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:210)
    at org.tuckey.web.filters.urlrewrite.RuleChain.handle Rewrite(RuleChain.java:176)
    at org.tuckey.web.filters.urlrewrite.RuleChain.doRule s(RuleChain.java:145)
    at org.tuckey.web.filters.urlrewrite.UrlRewriter.proc essRequest(UrlRewriter.java:92)
    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter .doFilter(UrlRewriteFilter.java:381)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:243)
    ...
    ...
    ...

  5. #5
    Join Date
    Mar 2012
    Posts
    4

    Default

    Quote Originally Posted by philwebb View Post
    I have raised a new JIRA issue for this [1]. Could you please update the JIRA with a full stack trace? You might also want to watch the issue for updates.

    Cheers.
    Phil.

    [1] https://jira.springsource.org/browse/SPR-10097
    I uploaded the stacktrace into Jira. Please let me know if you need more details.

    Thanks!!!

  6. #6
    Join Date
    Mar 2012
    Posts
    4

    Default

    Got the problem fixed by adding the following code in the Controller.

    @InitBinder
    public void initBinder(WebDataBinder binder) {
    CustomDateEditor dateMMddyyyy = new CustomDateEditor(new SimpleDateFormat("MM/dd/yyyy"), true);
    binder.registerCustomEditor(Date.class, dateMMddyyyy);
    }

  7. #7
    Join Date
    Apr 2008
    Posts
    22

    Default spring-asm in 3.2.0-RELEASE?

    Quote Originally Posted by Chris Beams View Post
    The Spring team are very happy to announce that Spring Framework 3.2 GA is now released and available via both the SpringSource repository and Maven Central.

    I don't see spring-asm 3.2.0-RELEASE??? is that on purpose?

  8. #8
    Join Date
    Apr 2007
    Posts
    307

    Default

    Quote Originally Posted by mebigfatguy View Post


    I don't see spring-asm 3.2.0-RELEASE??? is that on purpose?
    It is intentional, yes. Please see http://static.springsource.org/sprin...3.2-inline-asm for details.
    Chris Beams
    Spring Framework committer, VMware
    http://github.com/cbeams

  9. #9
    Join Date
    Apr 2008
    Posts
    22

    Default

    Quote Originally Posted by Chris Beams View Post
    It is intentional, yes. Please see http://static.springsource.org/sprin...3.2-inline-asm for details.
    Ug, now i have to somehow include asm 3.1 and asm 4.1 in the same codebase spring->asm4.1, jersey->asm3.1

  10. #10
    Join Date
    Apr 2007
    Posts
    307

    Default

    Quote Originally Posted by mebigfatguy View Post
    Ug, now i have to somehow include asm 3.1 and asm 4.1 in the same codebase spring->asm4.1, jersey->asm3.1
    To be clear, it is actually part of the purpose of this change to allow you to include multiple ASM versions within a single application and to do so while guaranteeing no conflict.

    In any case, you may now simply forget about the fact that Spring uses ASM at all. It is and always has been an internal concern, repackaged into org.springframework.asm, with the repackaged classes not intended for use outside the framework. This has simply now been formalized. If Jersey or any other library in your application has an explicit dependency on org.objectweb.asm, then naturally you'll need to make sure that's included, though it is probably done so automatically for you in most transitive dependency management cases.
    Chris Beams
    Spring Framework committer, VMware
    http://github.com/cbeams

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •