wood burning stoves 2.0*
The moose likes BEA/Weblogic and the fly likes cannot change charset from 'ISO-8859-1' to 'UTF-8' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "cannot change charset from Watch "cannot change charset from New topic
Author

cannot change charset from 'ISO-8859-1' to 'UTF-8'

Sunetra Sen
Ranch Hand

Joined: Feb 17, 2005
Posts: 43
Hi,

I have deployed a web application in Weblogic. When i am trying to access the
first page, i am getting the following exception:--

java.lang.IllegalStateException: Attempt to change ContentType after calling
getWriter() (cannot change charset from 'ISO-8859-1' to 'UTF-8')
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
javax.servlet.ServletResponseWrapper.setContentType(ServletResponseWrapper.java:164)
at
org.apache.struts.action.RequestProcessor.processContent(RequestProcessor.java:508)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:233)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.aol.sns.Filters.SNSFilter.doFilter(SNSFilter.java:267)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)

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)
---------------------------------------------

The application was running successfully on Apache+Tomcat but because of a
requirement change i had to deploy the same on Apache+Weblogic using the
standard connector.

I am using Apache 2.0.52 and Weblogic 8.1 (SP4) Server and mod_wl_20.so as
connector.

Please help me out as i am very new to Weblogic. :roll:

Thanks and regards,
Sunetra
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: cannot change charset from 'ISO-8859-1' to 'UTF-8'
 
Similar Threads
Error 500--Internal Server Error-Null Pointer Exception
JasperReports - Run time error: java.lang.NoClassDefFoundError
cannot get to the Action class with TilesRequestProcessor
Software caused connection abort: socket write error
Jasper Report Error