7 Replies Latest reply on Oct 9, 2002 9:28 AM by Julian Gosnell

    java.io.UnsupportedEncodingException: "UTF-8"

    Brad Leupen Newbie

      hello all!

      I have deployed the Jakarta Slide Servlet in my JBoss application. The WebDAV servlet works fine using JBoss 3.0.2 - Catalina. However, when i attempt to use Windows Explorer to map a drive to the same Servlet running on JBoss 3.0.3 - Jetty, i get a java.io.UnsupportedEncodingException: "UTF-8" exception. This makes no sense to me, as UTF-8 is a standard Java encoding. I am running on a Win32 client w/ the Sun JDK 1.4.0 VM (1.4.1 also breaks). Here is a stack trace of the error:

      10:12:17,019 ERROR [STDERR] java.io.UnsupportedEncodingException: "UTF-8"

      10:12:17,019 ERROR [STDERR] at sun.io.Converters.getConverterClass(Converters.java:114)

      10:12:17,019 ERROR [STDERR] at sun.io.Converters.newConverter(Converters.java:145)

      10:12:17,019 ERROR [STDERR] at sun.io.CharToByteConverter.getConverter(CharToByteConverter.java:64)

      10:12:17,019 ERROR [STDERR] at sun.nio.cs.StreamEncoder$ConverterSE.(StreamEncoder.java:187)

      10:12:17,019 ERROR [STDERR] at sun.nio.cs.StreamEncoder$ConverterSE.(StreamEncoder.java:170)

      10:12:17,019 ERROR [STDERR] at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:70)

      10:12:17,019 ERROR [STDERR] at java.io.OutputStreamWriter.(OutputStreamWriter.java:82)

      10:12:17,019 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletWriter.(ServletWriter.java:44)

      10:12:17,019 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHttpResponse.getWriter(ServletHttpResponse.java:542)

      10:12:17,019 ERROR [STDERR] at org.apache.slide.webdav.logger.XHttpServletResponseWrapper.getWriter(XHttpServletResponseWrapper.java:399)

      10:12:17,019 ERROR [STDERR] at org.apache.slide.webdav.method.PropFindMethod.executeRequest(PropFindMethod.java:377)

      10:12:17,019 ERROR [STDERR] at org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod.java:324)

      10:12:17,019 ERROR [STDERR] at org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:221)

      10:12:17,029 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

      10:12:17,029 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)

      10:12:17,029 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:284)

      10:12:17,029 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:577)

      10:12:17,029 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpContext.java:1674)

      10:12:17,029 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:544)

      10:12:17,029 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpContext.java:1624)

      10:12:17,029 ERROR [STDERR] at org.mortbay.http.HttpServer.service(HttpServer.java:875)

      10:12:17,029 ERROR [STDERR] at org.jboss.jetty.Jetty.service(Jetty.java:541)

      10:12:17,029 ERROR [STDERR] at org.mortbay.http.HttpConnection.service(HttpConnection.java:785)

      10:12:17,029 ERROR [STDERR] at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:935)

      10:12:17,029 ERROR [STDERR] at org.mortbay.http.HttpConnection.handle(HttpConnection.java:802)

      10:12:17,029 ERROR [STDERR] at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:200)

      10:12:17,029 ERROR [STDERR] at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:294)

      10:12:17,029 ERROR [STDERR] at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)

      10:12:17,029 ERROR [STDERR] at java.lang.Thread.run(Thread.java:536)