又错了?大侠帮忙看看,错误信息如下。

onlyme 2001-05-16 10:20:00
这是我在用JAVAMAIL读取邮件时出错的信息.
JASPER_LOG> Wed May 16 10:09:42 CST 2001 Classpath according to the init parameter is:

Context log: path="" Error in jsp service() : DEFAULT_CHARSET
javax.servlet.ServletException: DEFAULT_CHARSET

at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:386)

at mailsys._0002fmailsys_0002freadmsg_00031_0002ejspreadmsg1_jsp_16._jspService(_0002fmailsys_0002freadmsg_00031_0002ejspreadmsg1_jsp_16.java:302)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)

at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)

at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)

at com.borland.jbuilder.webserverglue.tomcat.jsp.JspLoaderEcho.service(Unknown Source)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)

at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)

at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)

at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)

at java.lang.Thread.run(Thread.java:484)

Context log: path="" Internal Servlet Error:



javax.servlet.ServletException: DEFAULT_CHARSET at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:386) at mailsys._0002fmailsys_0002freadmsg_00031_0002ejspreadmsg1_jsp_16._jspService(_0002fmailsys_0002freadmsg_00031_0002ejspreadmsg1_jsp_16.java:302) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at com.borland.jbuilder.webserverglue.tomcat.jsp.JspLoaderEcho.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Thread.java:484)


Root cause:


java.io.UnsupportedEncodingException: DEFAULT_CHARSET at sun.io.Converters.getConverterClass(Converters.java:93) at sun.io.Converters.newConverter(Converters.java:124) at sun.io.ByteToCharConverter.getConverter(ByteToCharConverter.java:67) at java.io.InputStreamReader.(InputStreamReader.java:78) at com.sun.mail.handlers.text_plain.getContent(text_plain.java:65) at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:755) at javax.activation.DataHandler.getContent(DataHandler.java:511) at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:1259) at mailsys._0002fmailsys_0002freadmsg_00031_0002ejspreadmsg1_jsp_16._jspService(_0002fmailsys_0002freadmsg_00031_0002ejspreadmsg1_jsp_16.java:257) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at com.borland.jbuilder.webserverglue.tomcat.jsp.JspLoaderEcho.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Thread.java:484)
...全文
37 点赞 收藏 4
写回复
4 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
wxyxl 2001-05-17
你把你的源代码贴出来看看嘛?
回复
onlyme 2001-05-17
急啊,我给100分。
回复
onlyme 2001-05-16
怎么改?skyyoung能不能说得详细一点....
回复
skyyoung 2001-05-16
把DEFAULT_CHARSET改为"ISO-8859-1"
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2001-05-16 10:20
社区公告
暂无公告