tomcat6 tomcat7 [Request processing failed;
nested exception is java.lang.Illega
1、项目在tomcat6,启动正常。登陆首页正常
2、但是在tomcat7,下启动正常,登陆首页报错
严重: Servlet.service() for servlet [cms] in context with path [/cms] threw exception [Request processing failed; nested exception is
java.lang.IllegalArgumentException: Control character in cookie value or attribute.] with root cause
java.lang.IllegalArgumentException: Control character in cookie value or attribute.
at org.apache.tomcat.util.http.CookieSupport.isHttpSeparator(CookieSupport.java:192)
at org.apache.tomcat.util.http.CookieSupport.isHttpToken(CookieSupport.java:214)
at org.apache.tomcat.util.http.ServerCookie.appendCookieValue(ServerCookie.java:187)
at org.apache.catalina.connector.Response.generateCookieString(Response.java:1038)
at org.apache.catalina.connector.Response.addCookie(Response.java:981)
at org.apache.catalina.connector.ResponseFacade.addCookie(ResponseFacade.java:373)
at org.springframework.web.util.CookieGenerator.addCookie(CookieGenerator.java:165)
at org.springframework.web.servlet.i18n.CookieLocaleResolver.setLocale(CookieLocaleResolver.java:119)
at com.gcms.cms.web.AdminLocaleInterceptor.preHandle(AdminLocaleInterceptor.java:43)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:761)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(Ac