0

Windows で Apache James 3 の最新のベータ リリースをダウンロードしてセットアップしましたが、これまでのところ簡単なメッセージを送信できませんでした。ビルドに問題があるようです。エラーは -

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 クラスからの逆コンパイルされたコード スニペットは、コンストラクターを示しています

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;
        }
4

2 に答える 2

0

解決策は、apache-mime4j-core-0.7.2.jarおよびapache-mime4j-dom-0.7.2.jarを使用することです。

2 つの jar ファイルをダウンロードして、james-server-app-3.0.0-beta5-SNAPSHOT\lib に配置します。

james-server-app-3.0.0-beta5 はhttps://repository.apache.org/content/repositories/snapshots/org/apache/james/james-server-app/3.0.0-beta5-からダウンロードできます。スナップショット/ .

于 2016-08-16T14:17:17.710 に答える