Org.springframework.web.util.NestedServletException:Request processing failed; Nested exception is java.lang.IllegalStateException:OptionalintParameter ' type ' is present but cannot being translated into aNULLValue due to being declared as a primitive type. Consider declaring it as Object wrapper forThe corresponding primitive type. At Org.springframework.web.servlet.FrameworkServlet.processRequest (Frameworkservlet.java:979) ~[spring-webmvc-4.1.7.release.jar:4.1.7. RELEASE] at Org.springframework.web.servlet.FrameworkServlet.doPost (Frameworkservlet.java:869) ~[spring-webmvc-4.1.7.release.jar:4.1.7. RELEASE] at Javax.servlet.http.HttpServlet.service (Httpservlet.java:647) ~[servlet-Api.jar:na] at Org.springframework.web.servlet.FrameworkServlet.service (Frameworkservlet.java:843) ~[spring-webmvc-4.1.7.release.jar:4.1.7. RELEASE] at Javax.servlet.http.HttpServlet.service (Httpservlet.java:728) ~[servlet-Api.jar:na] at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Applicationfilterchain.java: 305) [catalina.jar:7.0.47] at Org.apache.catalina.core.ApplicationFilterChain.doFilter (Applicationfilterchain.java:) [catalina.jar:7.0.47] at Org.apache.tomcat.websocket.server.WsFilter.doFilter (Wsfilter.java:Wuyi) ~[tomcat7-websocket.jar:7.0.47] at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Applicationfilterchain.java:243) [catalina.jar:7.0.47] at Org.apache.catalina.core.ApplicationFilterChain.doFilter (Applicationfilterchain.java:) [catalina.jar:7.0.47] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (Characterencodingfilter.java: ~[spring-web-4.1.7.release.jar:4.1.7). RELEASE] at Org.springframework.web.filter.OncePerRequestFilter.doFilter (Onceperrequestfilter.java:107) ~[spring-web-4.1.7.release.jar:4.1.7. RELEASE] at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Applicationfilterchain.java:243) [catalina.jar:7.0.47] at Org.apache.catalina.core.ApplicationFilterChain.doFilter (Applicationfilterchain.java:) [catalina.jar:7.0.47] at Org.springframework.security.web.filterchainproxy$virtualfilterchain.dofilter (FilterChainProxy.java: ) [spring-security-web-4.0.1.release.jar:4.0.1. RELEASE] at Com.sdcloud.framework.filter.AuthorityFilter.doFilter (Authorityfilter.java:161) ~[framework-3.1.0. Jar:na] at Org.springframework.security.web.filterchainproxy$virtualfilterchain.dofilter ( Filterchainproxy.java:(spring-security-web-4.0.1.release.jar:4.0.1) [. RELEASE] at Com.sdcloud.web.watersupply.utils.AppFilter.doFilter (Appfilter.java:~[appfilter).class: NA] at Org.springframework.security.web.filterchainproxy$virtualfilterchain.dofilter (FilterChainProxy.java: (spring-security-web-4.0.1.release.jar:4.0.1) [. RELEASE] at Com.sdcloud.framework.filter.ExceptionFilter.doFilter (Exceptionfilter.java:~[framework-3.1.0). Jar:na] at Org.springframework.security.web.filterchainproxy$virtualfilterchain.dofilter ( Filterchainproxy.java:(spring-security-web-4.0.1.release.jar:4.0.1) [. RELEASE] at org.springframework.security.web.FilterChainProxy.doFilterInternal (Filterchainproxy.java:213) [spring-security-web-4.0.1.release.jar:4.0.1. RELEASE] at Org.springframework.security.web.FilterChainProxy.doFilter (Filterchainproxy.java:176) [spring-security-web-4.0.1.release.jar:4.0.1. RELEASE] at Org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate (Delegatingfilterproxy.java:344) [spring-web-4.1.7.release.jar:4.1.7. RELEASE] at Org.springframework.web.filter.DelegatingFilterProxy.doFilter (Delegatingfilterproxy.java:261) [spring-web-4.1.7.release.jar:4.1.7. RELEASE] at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Applicationfilterchain.java:243) [catalina.jar:7.0.47] at Org.apache.catalina.core.ApplicationFilterChain.doFilter (Applicationfilterchain.java:) [catalina.jar:7.0.47] at Org.apache.catalina.core.StandardWrapperValve.invoke (Standardwrappervalve.java:222) [catalina.jar:7.0.47] at Org.apache.catalina.core.StandardContextValve.invoke (Standardcontextvalve.java:123) [catalina.jar:7.0.47] at Org.apache.catalina.authenticator.AuthenticatorBase.invoke (Authenticatorbase.java:502) [catalina.jar:7.0.47] at Org.apache.catalina.core.StandardHostValve.invoke (Standardhostvalve.java:171) [catalina.jar:7.0.47] at Org.apache.catalina.valves.ErrorReportValve.invoke (Errorreportvalve.java:[catalina.jar:7.0.47] at Org.apache.catalina.valves.AccessLogValve.invoke (Accesslogvalve.java:953) [catalina.jar:7.0.47] at Org.apache.catalina.core.StandardEngineValve.invoke (Standardenginevalve.java:118) [catalina.jar:7.0.47] at Org.apache.catalina.connector.CoyoteAdapter.service (Coyoteadapter.java:408) [catalina.jar:7.0.47] at org.apache.coyote.http11.AbstractHttp11Processor.process (Abstracthttp11processor.java:1041) [tomcat-coyote.jar:7.0.47] at org.apache.coyote.abstractprotocol$abstractconnectionhandler.process (Abstractprotocol.java:603) [tomcat-coyote.jar:7.0.47] at Org.apache.tomcat.util.net.jioendpoint$socketprocessor.run (Jioendpoint.java:310) [tomcat-coyote.jar:7.0.47] at Java.util.concurrent.ThreadPoolExecutor.runWorker (Threadpoolexecutor.java:1145) [na:1.7. 0_60] at Java.util.concurrent.threadpoolexecutor$worker.run (Threadpoolexecutor.java:615) [na:1.7. 0_60] at Java.lang.Thread.run (Thread.java:745) [na:1.7. 0_60] caused By:java.lang.IllegalStateException:OptionalintParameter ' type ' is present but cannot being translated into aNULLValue due to being declared as a primitive type. Consider declaring it as Object wrapper forThe corresponding primitive type. At Org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.handleNullValue ( Abstractnamedvaluemethodargumentresolver.java:192) ~[spring-web-4.1.7.release.jar:4.1.7. RELEASE] at Org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.resolveArgument ( Abstractnamedvaluemethodargumentresolver.java:) ~[spring-web-4.1.7.release.jar:4.1.7. RELEASE] at Org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument ( Handlermethodargumentresolvercomposite.java:) ~[spring-web-4.1.7.release.jar:4.1.7. RELEASE] at Org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues ( Invocablehandlermethod.java:162) ~[spring-web-4.1.7.release.jar:4.1.7. RELEASE] at Org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest ( Invocablehandlermethod.java:129) ~[spring-web-4.1.7.release.jar:4.1.7. RELEASE] at Org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle ( Servletinvocablehandlermethod.java:~[spring-webmvc-4.1.7.release.jar:4.1.7). RELEASE] At Org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod ( Requestmappinghandleradapter.java:776) ~[spring-webmvc-4.1.7.release.jar:4.1.7. RELEASE] at Org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal ( Requestmappinghandleradapter.java:705) ~[spring-webmvc-4.1.7.release.jar:4.1.7. RELEASE] at Org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle ( Abstracthandlermethodadapter.java:~[spring-webmvc-4.1.7.release.jar:4.1.7). RELEASE] at Org.springframework.web.servlet.DispatcherServlet.doDispatch (Dispatcherservlet.java:959) ~[spring-webmvc-4.1.7.release.jar:4.1.7. RELEASE] at Org.springframework.web.servlet.DispatcherServlet.doService (Dispatcherservlet.java:893) ~[spring-webmvc-4.1.7.release.jar:4.1.7. RELEASE] at Org.springframework.web.servlet.FrameworkServlet.processRequest (Frameworkservlet.java:967) ~[spring-webmvc-4.1.7.release.jar:4.1.7. RELEASE] ...Common frames omitted
Spring MVC Controller has the following error when the method is a base type and is called with a null report