报错如下: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();
}图片贴在下面,请大神帮助!
代码如下:
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();
}图片贴在下面,请大神帮助!
解决方案 »
- 使用OSGI开发webapp 如何添加filter
- 在C/S架构中,用java实现下载Excel模板的功能
- 请教:mysql
- The method getDataSource(HttpServletRequest) is undefined for the type LoginAction
- 关于htmi:link链接的问题 求高手解决
- 100分 求高人编个 提取搜狐社区某个网页下的所有图片链接 的程序
- 高手指教
- 第一个web service错误,各位帮帮忙啊
- 在JBX中建立了一个CLASS访问数据库,可以在JBX运行中看见结果,为什么在console中就不行呢?
- 求ldap获取域用户
- redis后台进程一直存在问题
- poi转docx为html,数学公式不能显示,且html的源码中中文显示为编码?
https://bugs.eclipse.org/bugs/show_bug.cgi?id=489419