Discussions

Web tier: servlets, JSP, Web frameworks: java.io.UnsupportedEncodingException:

  1. java.io.UnsupportedEncodingException: (1 messages)

    I recently installed Oracle 9i application server,I am trying to run a simple JSP page. I get this error when I try to print out the value of an variable on my JSP page with out.println(variable_name).

    Questions did anyone have this problem, do I need to do some configuration on oc4j or Apache?

    Any ideas why?

    java.io.UnsupportedEncodingException:
    at sun.io.Converters.getConverterClass(Converters.java:107)
    at sun.io.Converters.newConverter(Converters.java:138)
    at sun.io.CharToByteConverter.getConverter(CharToByteConverter.java:67)
    at java.lang.String.getCTBConverter(String.java:151)
    at java.lang.String.getBytes(String.java:674)
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindJSPWriter.print(EvermindJSPWriter.java:582)
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindJSPWriter.println(EvermindJSPWriter.java:460)
    at _searchresult._jspService(_searchresult.java:78)
    [SRC:/searchresult.jsp:34]
    at com.orionserver[Oracle9iAS (9.0.2.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:508)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:255)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
  2. It looks like the file has a unknown text encoding. Are you using an localized text editor? See if you can save the file in ASCII, UTF-8 or UTF-16.