james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincenzo Gianferrari Pini" <vincenzo.gianferrarip...@praxis.it>
Subject Exception calling NotifySender (was in james-user)
Date Mon, 14 Apr 2003 16:06:22 GMT
I think I found a problem:

Scenario:

1) Send a message using *Microsoft Outlook 2000* *with no text* and with a *non .txt* attachment
to an unexistent recipient in a James host.

2) You get Content-Type: application/octet-stream;
	name="TestAttachment.xxx"
in some cases 
or Content-Type: application/msword;
	name="TestAttachment.doc"
if it's a Word document,
or Content-Type: application/vnd.ms-excel;
	name="TestAttachment.xls"
if it's an Excel document etc.

3) As the recipient does not exist suppose your config gets to a NotifySender mailet.

4) You get the exception shown below on the "getMailetContext().sendMail(notifier, recipients,
reply)" command, because such content-type is not recognized somewhere and the notification
fails.

This situation does not occur with Microsoft Outlook Express, that generates instead a message
with Content-Type: multipart/mixed that gets through NotifySender correctly.
Nor it occurs with Microsoft Outlook 2000, as soon as there is any plain text in the message.

I had posted this problem time ago on the james-user list, but it was very generic. Now I
hope it's more precise, and I'm posting here.

Using James Version 2.1.2a2, Sun j2re1.4.0, Windows 2000 Server.

Thanks for any solution,

Vincenzo

Here follows the spoolmanager.log snippet:

07/04/03 11:26:05 ERROR spoolmanager.error: Exception calling NotifySender: Exception spooling
message: Exception caught while storing Message Container: javax.activation.UnsupportedDataTypeException:
no object DCH for MIME type application/octet-stream;
	name="TestAttachment.xxx";
  nested exception is:
	java.lang.RuntimeException: Exception caught while storing Message Container: javax.activation.UnsupportedDataTypeException:
no object DCH for MIME type application/octet-stream;
	name="TestAttachment.xxx"
javax.mail.MessagingException: Exception spooling message: Exception caught while storing
Message Container: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type
application/octet-stream;
	name="TestAttachment.xxx";
  nested exception is:
	java.lang.RuntimeException: Exception caught while storing Message Container: javax.activation.UnsupportedDataTypeException:
no object DCH for MIME type application/octet-stream;
	name="TestAttachment.xxx"
	at org.apache.james.James.sendMail(James.java:450)
	at org.apache.james.James.sendMail(James.java:407)
	at org.apache.james.James.sendMail(James.java:389)
	at sun.reflect.GeneratedMethodAccessor61.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.transport.mailets.NotifySender.service(NotifySender.java:208)
	at org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:362)
	at org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:385)
	at org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:315)
	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.lang.RuntimeException: Exception caught while storing Message Container: javax.activation.UnsupportedDataTypeException:
no object DCH for MIME type application/octet-stream;
	name="TestAttachment.xxx"
	at org.apache.james.mailrepository.AvalonMailRepository.store(AvalonMailRepository.java:303)
	at org.apache.james.James.sendMail(James.java:444)
	at org.apache.james.James.sendMail(James.java:407)
	at org.apache.james.James.sendMail(James.java:389)
	at sun.reflect.GeneratedMethodAccessor61.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.transport.mailets.NotifySender.service(NotifySender.java:208)
	at org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:362)
	at org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:385)
	at org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:315)
	at org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:47)
	at org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:80)

07/04/03 11:26:05 ERROR spoolmanager: Exception in processor <error>
javax.mail.MessagingException: Exception spooling message: Exception caught while storing
Message Container: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type
application/octet-stream;
	name="TestAttachment.xxx";
  nested exception is:
	java.lang.RuntimeException: Exception caught while storing Message Container: javax.activation.UnsupportedDataTypeException:
no object DCH for MIME type application/octet-stream;
	name="TestAttachment.xxx"
	at org.apache.james.James.sendMail(James.java:450)
	at org.apache.james.James.sendMail(James.java:407)
	at org.apache.james.James.sendMail(James.java:389)
	at sun.reflect.GeneratedMethodAccessor61.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.transport.mailets.NotifySender.service(NotifySender.java:208)
	at org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:362)
	at org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:385)
	at org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:315)
	at org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:47)
	at org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:80)
07/04/03 11:26:05 ERROR spoolmanager: An error occurred processing Mail1049707564343-5879
through error
07/04/03 11:26:05 ERROR spoolmanager: Result was ghost


---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Mime
View raw message