permaculture playing cards*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ModelAndView Object is getting null
 
Similar Threads
Spring 2.5 with Ajaxtags
what objects can we return from the methods of controller?
[spring 2.0] MessageDispatcherServlet class not found
Integration tests doesn't work after upgrading spring from 2.5.1 to (2.5.6.SEC01)
Injecting the properties of object through Spring which is created outside the Spring container