• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Seeing weird behavior with @ModelAttribute

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using Spring 3.0.5 and I have a controller method similar to the following:



MyFormBean has two constructors, one of which is not intended to be called:



This code is about two years old and has worked fine. Today, we were doing a deployment it was noticed that the no-arg version of MyFormBean was being invoked when going to /getAPage. Furthermore, we were unable to reproduce this problem in the QA environment or on my local Tomcat instance. All machines are running the same version of tomcat7 and are using the same JDK (1.7.0_51). The builds are made with the -source and -target flags set to 1.6 and with this release, we upgraded the production servers to 1.7.0_51.

Any ideas why this behavior might be happening?

Thanks,
Rob
reply
    Bookmark Topic Watch Topic
  • New Topic