• 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

ModelAndView Object is getting null

 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am working on an existing application.
Application has an interceptor class that extends HandlerInterceptorAdapter. in postHandle() method, we are setting some values to ModelAndView.
We are seeing this behavior only in production, where in few scenarios, ModelAndView object passed to postHandle() method by Spring framework is null and we are seeing NPE. I am not able to recreate this Issue locally or in any test env.

I am not able to figure out how ModelAndView object is getting null?

Any help would be greatly appreciated.

Spring versions that we are using:

spring-2.5.6.jar
spring-aop-2.5.6.jar
spring-beans-2.5.6.jar
spring-binding-1.0.5.jar
spring-context-2.5.6.jar
spring-context-support-2.5.6.jar
spring-core-2.5.6.jar
spring-jms-2.5.6.jar
spring-modules-cache-0.9.jar
spring-oxm-1.5.9.jar
spring-tx-2.5.6.jar
spring-web-2.5.6.jar
spring-webflow-1.0.5.jar
spring-webmvc-2.5.6.jar
spring-ws-core-1.5.9.jar
spring-xml-1.5.9.jar
 
reply
    Bookmark Topic Watch Topic
  • New Topic