JAVA收邮件出现 Type has not been loaded occurred while retrieving component type of a

qq_31680021 2018-06-25 05:00:03
报错如下:org.eclipse.debug.core.DebugException: com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred while retrieving component type of array.
代码如下:
List<MailInfo> mailInfos = new ArrayList<MailInfo>();
Properties props = new Properties();
Session session = Session.getDefaultInstance(props, null);
Folder folder = null;
if(MailInfoParam.POP3.equals(type)){
Store store = (Store)session.getStore("pop3");
store.connect(this.mailHost, this.userName, this.passWord);
folder = store.getFolder("INBOX");
}else if(MailInfoParam.IMAP.equals(type)){
IMAPStore store = (IMAPStore) session.getStore("imap");
store.connect(this.mailHost, this.userName, this.passWord);
folder = store.getFolder("INBOX");
}
folder.open(Folder.READ_WRITE);
Message message[];
message = new Message[100];
try {
message = folder.getMessages();
} catch (Exception e1) {
e1.printStackTrace();
}

图片贴在下面,请大神帮助!
...全文
1054 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
stacksoverflow 2018-06-25
  • 打赏
  • 举报
回复
参考一下
https://bugs.eclipse.org/bugs/show_bug.cgi?id=489419
qq_31680021 2018-06-25
  • 打赏
  • 举报
回复
求大神帮助

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧