Hi Noel,
Sorry, may I know which file should I make add in the code that you gave?
I checked the logs that captured the exceptions in
james-2.1.3/apps/james/logs/mailet-2003-09-09-03-41.log, i got
09/09/03 03:45:45 INFO James.Mailet: Error while storing mail.
java.lang.RuntimeException: Exception caught while storing Message
Container: ja
va.lang.NullPointerException
at
org.apache.james.mailrepository.AvalonMailRepository.store(AvalonMail
Repository.java:355)
at org.apache.james.James.storeMail(James.java:856)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.avalon.phoenix.components.application.BlockInvocationHandl
er.invoke(BlockInvocationHandler.java:92)
at $Proxy9.storeMail(Unknown Source)
at
org.apache.james.transport.mailets.LocalDelivery.service(LocalDeliver
y.java:111)
at
org.apache.james.transport.LinearProcessor.service(LinearProcessor.ja
va:413)
at
org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManage
r.java:436)
at
org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.ja
va:366)
and mailstore-2003-09-09-02-38.log
09/09/03 03:20:02 ERROR mailstore: Exception storing mail:
java.lang.NullPointer
Exception
09/09/03 03:20:32 ERROR mailstore: Exception retrieving mail:
java.lang.RuntimeE
xception: Exception caught while retrieving an object, cause:
java.io.FileNotFou
ndException:
/ais_local/share/clow/james-2.1.3/apps/james/var/mail/inboxes/disne
yJBOSSMSSQL/4D61696C313036333039323030323836322D3137.Repository.FileObjectSt
ore
(No such file or directory), so we're deleting it... good riddance!
Thanks for your help.
Claudia
-----Original Message-----
From: Noel J. Bergman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 4:12 AM
To: Low, Claudia
Cc: James-User Mailing List
Subject: RE: James 2.2.0a4 Exception?
Claudia,
Check your logs. The code is this:
321 if (saveStream) {
322 OutputStream out = null;
323 try {
324 out = sr.put(key);
325 mc.writeMessageTo(out);
326 } finally {
327 out.close();
328 }
so the exception would occur only when the repository cannot be acquired.
The NPE can be "fixed", but it is a symptom of the real problem.
--- Noel
P.S. Please keep questions on the public mailing list unless you have a need
to contact me privately.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]