【发布时间】:2015-12-10 11:43:25
【问题描述】:
我刚刚在 Windows 上下载并设置了 Apache James 3 最新的 beta 版本,到目前为止我还无法发送简单的消息。看起来构建存在问题。错误是 -
ERROR 22:45:01,666 | james.mailspooler | Exception processing mail while spooling Unable to process mail Mail1442234701295-757cd62b-eeed-4671-828c-2a7c715acfaa (org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: org.apache.james.core.MailImpl@4262d5d7])
javax.mail.MessagingException: Unable to process mail Mail1442234701295-757cd62b-eeed-4671-828c-2a7c715acfaa (org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: org.apache.james.core.MailImpl@4262d5d7])
.
.
Caused by: javax.mail.MessagingException: Unable to process mail Mail1442234701295-757cd62b-eeed-4671-828c-2a7c715acfaa (org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: org.apache.james.core.MailImpl@4262d5d7])
.
.
Caused by: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: org.apache.james.core.MailImpl@4262d5d7]
.
.
Caused by: java.lang.NoSuchMethodError: org.apache.james.mime4j.stream.MimeConfig: method <init>()V not found
JAR 中的相关类显示了所谓的缺失构造函数,所以我完全不知所措。谁能指导我正确的方向?
提前致谢!
编辑:来自 MimeConfig 类的反编译代码 sn-p 显示构造函数
public final class MimeConfig {
/* member class not found */
class Builder {}
.
.
MimeConfig(boolean strictParsing, int maxLineLen, int maxHeaderCount, int maxHeaderLen, long maxContentLen, boolean countLineNumbers,
String headlessParsing, boolean malformedHeaderStartsBody) {
/* 53*/ this.strictParsing = strictParsing;
/* 54*/ this.countLineNumbers = countLineNumbers;
/* 55*/ this.malformedHeaderStartsBody = malformedHeaderStartsBody;
/* 56*/ this.maxLineLen = maxLineLen;
/* 57*/ this.maxHeaderCount = maxHeaderCount;
/* 58*/ this.maxHeaderLen = maxHeaderLen;
/* 59*/ this.maxContentLen = maxContentLen;
/* 60*/ this.headlessParsing = headlessParsing;
}
【问题讨论】:
-
发布您的代码将帮助人们更清楚地理解它。
-
“JAR 中的相关类显示了假定缺少的构造函数”
-
这不是我的代码,我只是根据快速入门指南创建用户并发送邮件james.apache.org/server/3/quick-start.html
-
@DavidP.Caldwell 我看了源代码..
-
这里的源代码可能不是一个有效的指南,除非你自己构建了源代码并且没有使用某种二进制分发。看看是否可以使用
javap命令检查相关类。
标签: java jakarta-mail james mime4j