使用疯狂JAVA中的代码,首次登陆没有问题,再次登陆时却登陆不了,以下是报错内容:
Exception in thread "AWT-EventQueue-0" org.crazyit.foxmail.exception.FileException: 转换数据异常: E:\myeclipse\workspace\foxmail\datas\fang\thesis_email@163.com\inbox\4e24fcfc-6a86-4933-8ef9-dacc2b424faf.xml
at org.crazyit.foxmail.util.FileUtil.fromXML(FileUtil.java:184)
at org.crazyit.foxmail.system.impl.SystemLoaderImpl.convert(SystemLoaderImpl.java:47)
at org.crazyit.foxmail.system.impl.SystemLoaderImpl.getMails(SystemLoaderImpl.java:71)
at org.crazyit.foxmail.system.impl.SystemLoaderImpl.getInBoxMails(SystemLoaderImpl.java:39)
at org.crazyit.foxmail.ui.MainFrame.initMails(MainFrame.java:449)
at org.crazyit.foxmail.ui.MainFrame.(MainFrame.java:196)
at org.crazyit.foxmail.ui.LoginFrame.confirm(LoginFrame.java:113)
at org.crazyit.foxmail.ui.LoginFrame.access$0(LoginFrame.java:88)
at org.crazyit.foxmail.ui.LoginFrame$1.actionPerformed(LoginFrame.java:78)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$300(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
求大神指教。谢谢!
E:\myeclipse\workspace\foxmail\datas\fang\thesis_email@163.com\inbox\4e24fcfc-6a86-4933-8ef9-dacc2b424faf.xml
这个文件是否存在,里面内容是不是有问题
存在,这是收件箱中的邮件,只是将它转换成xml存储在本地,但是再次登陆时要将xml转换成mail对象时出现问题。