1
返回以下奇怪錯誤。我不明白它來自哪裏,因爲Netbeans調試器很缺乏。嘗試發送電子郵件時發生奇怪錯誤
Exception in thread "AWT-EventQueue-0" java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/mail/Address
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at modules.impl.EmailModule.process(EmailModule.java:41)
at agent.AgentDriver.callModules(AgentDriver.java:66)
at agent.AgentDriver.process(AgentDriver.java:33)
at agent.AgentUI.agentTextFieldActionPerformed(AgentUI.java:71)
'EmailHelper email = ...'是否存在錯誤? – Zyerah 2013-04-06 19:42:33
沒錯,@Telthien - 調試器並沒有讓我進一步探索。 – 2013-04-06 19:43:00
我不完全確定這裏有什麼。嘗試使'SendEmail'靜態,並用靜態引用調用它? – Zyerah 2013-04-06 19:44:43