部属项目到weblogic时出现 Attempt to change ContentType after call

java.lang.IllegalStateException: Attempt to change ContentType after calling getWriter() (cannot change charset from 'EUC_CN' to 'GBK')
at weblogic.servlet.internal.ServletResponseImpl.setEncoding(ServletResponseImpl.java:873)
at weblogic.servlet.internal.ServletResponseImpl.setHeaderInternal(ServletResponseImpl.java:699)
at weblogic.servlet.internal.ServletResponseImpl.setHeader(ServletResponseImpl.java:664)
at weblogic.servlet.internal.ServletResponseImpl.setContentType(ServletResponseImpl.java:272)
at com.jspsoft.login.JSPLogin.dealRequest(Unknown Source)
at jsp_servlet._web._manager.__index._jspService(__index.java:117)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

你可能感兴趣的:(java,jsp,weblogic,servlet,Security)