I tried a test with the james.sar that came with the binary dist and the
following error resulted:

18/07/03 17:23:14 ERROR spoolmanager.root: Exception calling NotifySender:
Exception spooling message: Exception caught while storing Message
Container: javax.activation.UnsupportedDataTypeException: no object DCH for
MIME type multipart/mixed; 
        boundary="----=_Part_0_16711231.1058566994085";
  nested exception is:
        java.lang.RuntimeException: Exception caught while storing Message
Container: javax.activation.UnsupportedDataTypeException: no object DCH for
MIME type multipart/mixed; 
        boundary="----=_Part_0_16711231.1058566994085"
javax.mail.MessagingException: Exception spooling message: Exception caught
while storing Message Container:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type
multipart/mixed; 
        boundary="----=_Part_0_16711231.1058566994085";
  nested exception is:
        java.lang.RuntimeException: Exception caught while storing Message
Container: javax.activation.UnsupportedDataTypeException: no object DCH for
MIME type multipart/mixed; 
        boundary="----=_Part_0_16711231.1058566994085"
        at org.apache.james.James.sendMail(James.java:505)
        at org.apache.james.James.sendMail(James.java:462)
        at org.apache.james.James.sendMail(James.java:444)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        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.invo
ke(BlockInvocationHandler.java:92)
        at $Proxy9.sendMail(Unknown Source)
        at
org.apache.james.transport.mailets.NotifySender.service(NotifySender.java:26
8)
        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)
java.lang.RuntimeException: Exception caught while storing Message
Container: javax.activation.UnsupportedDataTypeException: no object DCH for
MIME type multipart/mixed; 
        boundary="----=_Part_0_16711231.1058566994085"
        at
org.apache.james.mailrepository.AvalonMailRepository.store(AvalonMailReposit
ory.java:355)
        at org.apache.james.James.sendMail(James.java:499)
        at org.apache.james.James.sendMail(James.java:462)
        at org.apache.james.James.sendMail(James.java:444)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        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.invo
ke(BlockInvocationHandler.java:92)
        at $Proxy9.sendMail(Unknown Source)
        at
org.apache.james.transport.mailets.NotifySender.service(NotifySender.java:26
8)
        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)

18/07/03 17:23:14 ERROR spoolmanager: Exception in processor <root>
javax.mail.MessagingException: Exception spooling message: Exception caught
while storing Message Container:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type
multipart/mixed; 
        boundary="----=_Part_0_16711231.1058566994085";
  nested exception is:
        java.lang.RuntimeException: Exception caught while storing Message
Container: javax.activation.UnsupportedDataTypeException: no object DCH for
MIME type multipart/mixed; 
        boundary="----=_Part_0_16711231.1058566994085"
        at org.apache.james.James.sendMail(James.java:505)
        at org.apache.james.James.sendMail(James.java:462)
        at org.apache.james.James.sendMail(James.java:444)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        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.invo
ke(BlockInvocationHandler.java:92)
        at $Proxy9.sendMail(Unknown Source)
        at
org.apache.james.transport.mailets.NotifySender.service(NotifySender.java:26
8)
        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)
18/07/03 17:23:14 ERROR spoolmanager: An error occurred processing
Mail1058566993505-0 through root
18/07/03 17:23:14 ERROR spoolmanager: Result was error
18/07/03 17:23:14 ERROR spoolmanager.error: Exception calling
NotifyPostmaster: Exception spooling message: Exception caught while storing
Message Container: java.lang.ClassCastException;
  nested exception is:
        java.lang.RuntimeException: Exception caught while storing Message
Container: java.lang.ClassCastException
javax.mail.MessagingException: Exception spooling message: Exception caught
while storing Message Container: java.lang.ClassCastException;
  nested exception is:
        java.lang.RuntimeException: Exception caught while storing Message
Container: java.lang.ClassCastException
        at org.apache.james.James.sendMail(James.java:505)
        at org.apache.james.James.sendMail(James.java:462)
        at org.apache.james.James.sendMail(James.java:444)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        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.invo
ke(BlockInvocationHandler.java:92)
        at $Proxy9.sendMail(Unknown Source)
        at
org.apache.james.transport.mailets.NotifyPostmaster.service(NotifyPostmaster
.java:274)
        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)
java.lang.RuntimeException: Exception caught while storing Message
Container: java.lang.ClassCastException
        at
org.apache.james.mailrepository.AvalonMailRepository.store(AvalonMailReposit
ory.java:355)
        at org.apache.james.James.sendMail(James.java:499)
        at org.apache.james.James.sendMail(James.java:462)
        at org.apache.james.James.sendMail(James.java:444)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        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.invo
ke(BlockInvocationHandler.java:92)
        at $Proxy9.sendMail(Unknown Source)
        at
org.apache.james.transport.mailets.NotifyPostmaster.service(NotifyPostmaster
.java:274)
        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)

18/07/03 17:23:14 ERROR spoolmanager: Exception in processor <error>
javax.mail.MessagingException: Exception spooling message: Exception caught
while storing Message Container: java.lang.ClassCastException;
  nested exception is:
        java.lang.RuntimeException: Exception caught while storing Message
Container: java.lang.ClassCastException
        at org.apache.james.James.sendMail(James.java:505)
        at org.apache.james.James.sendMail(James.java:462)
        at org.apache.james.James.sendMail(James.java:444)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        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.invo
ke(BlockInvocationHandler.java:92)
        at $Proxy9.sendMail(Unknown Source)
        at
org.apache.james.transport.mailets.NotifyPostmaster.service(NotifyPostmaster
.java:274)
        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)
18/07/03 17:23:14 ERROR spoolmanager: An error occurred processing
Mail1058566993505-0 through error
18/07/03 17:23:14 ERROR spoolmanager: Result was ghost


############################################################################

Does it load libraries from both the lib directory under the installation
and from the .sar?

Thanks,
Eitan


-----Original Message-----
From: Noel J. Bergman [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 2:09 PM
To: James Users List

> I try to use the NotifySender mailet and get the following error when it
> tries to notify the postmaster:
> javax.activation.UnsupportedDataTypeException:
> no object DCH for MIME type multipart/mixed;

There should be a data content handler (DCH) for multipart/mixed.

> This was after trying to use my own mailet that had the same
> UnsupportedDataTypeException

Your own mailet had an UnsupportedDataTypeException for multipart/mixed, or
for something else?

> so I added my own content handler factory which ended up causing
> an infinite loop error:

You should not have to add a DCH for multipart/mixed.

> I do use the ant script to build my own james.sar file and deploy
> to RH7.2 box.

Does our binary distribution work for you?

FWIW, I understand that one cause of this problem is if mail.jar and
activation.jar are loaded by different class loaders.

        --- Noel


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



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

Reply via email to