Which JVM?  If 1.4.2, you *must* update to the very latest.  There was a bug
in all other versions of 1.4.2 that caused a decode error.

In any event, the loop is being caused by an exception in the error
processor.  If you use the current James test build, you can use this:

         <mailet match="All"
                 onMailetException="ignore"
                 class="NotifyPostmaster">
            ...
         </mailet>

You won't get the notification, but you won't get the loop, either.
Actually, you should not get a loop like that, period.  I think that was a
bug we've already fixed.

        --- Noel

-----Original Message-----
From: Brandon Smith [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 12:45
To: 'James Users List'
Subject: Abuse or Configuration


I am having major problems with James. Every minute a new log file is
generated. I only found this out last night when my server notified me that
I was almost out of disk space. I noticed in about three hours nearly 30 GB
of log files had been generated. I shut down James in an effort to
investigate.

The two log files that are the culprits are the spool and mailet log files.
A mailet is generating errors and logging each ToRepository. See below
Listing One five entries of one of the mailet log files. You'll notice that
the timestampt is all 10:25:34. There is actually about 150 entries each
second. It takes several minutes (15-20) for a mailet log file to get to max
capacity and start a new log file. The spool log file is much different.

The spool log file is generating the error found in Listing Two nearly 150
times a second. Once a minute a new 10 MB file is created. In the course of
writing this email 6 where generated. What could be the problem? Is James in
a loop? Is my James being abused by a spammer? I can't figure it out.Please
help!


Listing One:

19/03/04 10:25:34 INFO  James.Mailet: ToRepository: Storing mail
Mail1079693860218-98 in file://var/mail/error/
19/03/04 10:25:34 INFO  James.Mailet: ToRepository: Storing mail
Mail1079693983078-99 in file://var/mail/error/
19/03/04 10:25:34 INFO  James.Mailet: ToRepository: Storing mail
Mail1079693860218-98 in file://var/mail/error/
19/03/04 10:25:34 INFO  James.Mailet: ToRepository: Storing mail
Mail1079693983078-99 in file://var/mail/error/
19/03/04 10:25:34 INFO  James.Mailet: ToRepository: Storing mail
Mail1079693983078-99 in file://var/mail/error/


Listing Two:

19/03/04 10:24:54 ERROR spoolmanager: Exception in JamesSpoolManager.run
sun.io.ByteToCharEUC_CN.getIndex1()[S
java.lang.NoSuchMethodError: sun.io.ByteToCharEUC_CN.getIndex1()[S
            at sun.nio.cs.ext.EUC_CN$Decoder.<init>(EUC_CN.java:50)
            at sun.nio.cs.ext.EUC_CN.newDecoder(EUC_CN.java:38)
            at
java.lang.StringCoding$CharsetSD.<init>(StringCoding.java:166)
            at
java.lang.StringCoding$CharsetSD.<init>(StringCoding.java:157)
            at java.lang.StringCoding.decode(StringCoding.java:213)
            at java.lang.String.<init>(String.java:320)
            at
javax.mail.internet.MimeUtility.decodeWord(MimeUtility.java:741)
            at
javax.mail.internet.MimeUtility.decodeText(MimeUtility.java:493)
            at
org.apache.james.core.MimeMessageWrapper.getSubject(MimeMessageWrapper.java:
508)
            at
org.apache.james.transport.mailets.NotifyPostmaster.service(NotifyPostmaster
.java:182)
            at
org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:413)
            at
org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:
436)
            at
org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:366)
            at
org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Executabl
eRunnable.java:47)
            at
org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:8
0)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to