response.addCookie(usernameCookie);
严重: Servlet.service() for servlet [jsp] in context with path [/CookieDemo1] threw exception [An exception occurred processing JSP page /dologin.jsp at line 41
38: usernameCookie.setMaxAge(864000);
39: passwordCookie.setMaxAge(864000);
40:
41: response.addCookie(usernameCookie);
42: response.addCookie(passwordCookie);
43: } else
44: {
Stacktrace:] with root cause