Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Spring and the fly likes ModelAndView Object is getting null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "ModelAndView Object is getting null " Watch "ModelAndView Object is getting null " New topic
Author

ModelAndView Object is getting null

Saritha Penumudi
Ranch Hand

Joined: Aug 18, 2003
Posts: 147
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ModelAndView Object is getting null