I had a strange encounter today with a couple of exceptions from James and the server antivirus.
We have James setup to use the DBs, but the james error said that it could not find a file in c:\TEMP\Mail12345(etc).m64, and the Antivirus said that that same file had a virus. The file was not in TEMP when I looked.
So it seems that James uses the temp dir to place mime messages before putting them in the DB, that the antivirus prevents tainted ones from being written, and thus James failes (gracefully?) because it cannot find the file to put in the DB.
Poor man's antivirus4JAmes?
Here is the stacktrace:
James 2.1a1-cvs
Remote Manager Service started plain:4555
POP3 Service started plain:110
SMTP Service started plain:25
NNTP Service started plain:119
Fetch POP Disabled
java.io.FileNotFoundException: C:\TEMP\Mail1049095601375-101765582.m64 (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at org.apache.james.core.MimeMessageInputStreamSource.getInputStream(MimeMessageInputStreamSource.java:102)
at org.apache.james.core.MimeMessageWrapper.writeTo(MimeMessageWrapper.java:209)
at org.apache.james.core.MimeMessageWrapper.writeTo(MimeMessageWrapper.java:245)
at org.apache.james.core.MimeMessageWrapper.writeTo(MimeMessageWrapper.java:235)
at org.apache.james.mailrepository.JDBCMailRepository.store(JDBCMailRepository.java:575)
at org.apache.james.mailrepository.JDBCSpoolRepository.store(JDBCSpoolRepository.java:190)
at org.apache.james.James.sendMail(James.java:444)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:92)
at $Proxy9.sendMail(Unknown Source)
at org.apache.james.smtpserver.SMTPHandler.processMail(SMTPHandler.java:1353)
at org.apache.james.smtpserver.SMTPHandler.doDATA(SMTPHandler.java:1200)
at org.apache.james.smtpserver.SMTPHandler.parseCommand(SMTPHandler.java:560)
at org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java:337)
at org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run(ServerConnection.java:404)
at org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:47)
at org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:80)
java.io.FileNotFoundException: C:\TEMP\Mail1049095671234-102165584.m64 (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at org.apache.james.core.MimeMessageInputStreamSource.getInputStream(MimeMessageInputStreamSource.java:102)
at org.apache.james.core.MimeMessageWrapper.writeTo(MimeMessageWrapper.java:209)
at org.apache.james.core.MimeMessageWrapper.writeTo(MimeMessageWrapper.java:245)
at org.apache.james.core.MimeMessageWrapper.writeTo(MimeMessageWrapper.java:235)
at org.apache.james.mailrepository.JDBCMailRepository.store(JDBCMailRepository.java:575)
at org.apache.james.mailrepository.JDBCSpoolRepository.store(JDBCSpoolRepository.java:190)
at org.apache.james.James.sendMail(James.java:444)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:92)
at $Proxy9.sendMail(Unknown Source)
at org.apache.james.smtpserver.SMTPHandler.processMail(SMTPHandler.java:1353)
at org.apache.james.smtpserver.SMTPHandler.doDATA(SMTPHandler.java:1200)
at org.apache.james.smtpserver.SMTPHandler.parseCommand(SMTPHandler.java:560)
at org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java:337)
at org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run(ServerConnection.java:404)
at org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:47)
at org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:80)
--
Nicola Ken Barozzi [EMAIL PROTECTED]
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
------------------------------------------------------------------------------------------------------------------------------------------ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
