Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- MBean trying to send email fails with jav

- MBean trying to send email fails with jav

2007-06-13       - By pholli

 Back

I have both an MBean method and an EJB method that hits the same POJO object
via JNDI lookup.

The call results in an email being sent out.

It works from the EJB.

It works from the MBean when I use the jboss jmx-console web interface.

It does NOT work when the call for the MBean is via JConsole.

I am not using the jboss mail service.  The activation.jar and mail.jar are
provided via a codebase set in the jboss-service.xml.

I can only assume this must be a class path issue.

Any help would be appreciated.

Thanks.

Stack Trace:
11:51:24,060 ERROR [TestMailModule] Exception sending message: Exception trying
to send a text email message...exception: IOException while sending message..
.exception: IOException while sending message
javax.mail.MessagingException Source code of javax.mail.MessagingException: IOException while sending message;
 nested exception is:
       javax.activation.UnsupportedDataTypeException Source code of javax.activation.UnsupportedDataTypeException: no object DCH for MIME
type text/plain
       at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:625)
       at javax.mail.Transport Source code of javax.mail.Transport(Transport.java:169)
       at javax.mail.Transport Source code of javax.mail.Transport(Transport.java:98)
       at com.xxi.framework.mailmodule.impl.MailModule.sendMessage(MailModule
.java:188)
       at com.xxi.framework.mailmodule.impl.MailModule.sendMail(MailModule
.java:245)
       at com.xxi.framework.mailmodule.impl.MailModule.sendMail(MailModule
.java:127)
       at com.xxi.framework.mailmodule.impl.MailModule.sendTestEmail
(MailModule.java:570)
       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 Source code of java.lang.reflect.Method(Method.java:597)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker
.java:264)
       at org.jboss.mx.server.MBeanServerImpl Source code of org.jboss.mx.server.MBeanServerImpl(MBeanServerImpl.java:659)
       at org.jboss.system.server.jmx.LazyMBeanServer.invoke(LazyMBeanServer
.java:279)
       at javax.management.remote.rmi.RMIConnectionImpl.doOperation
(RMIConnectionImpl.java:1424)
       at javax.management.remote.rmi.RMIConnectionImpl.access$200
(RMIConnectionImpl.java:72)
       at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation
.run(RMIConnectionImpl.java:1262)
       at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation
(RMIConnectionImpl.java:1357)
       at javax.management.remote.rmi.RMIConnectionImpl.invoke
(RMIConnectionImpl.java:786)
       at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method Source code of java.lang.reflect.Method(Method.java:597)
       at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
       at sun.rmi.transport.Transport$1.run(Transport.java:159)
       at java.security.AccessController Source code of java.security.AccessController(Native Method)
       at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
       at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java
:535)
       at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0
(TCPTransport.java:790)
       at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run
(TCPTransport.java:649)
       at java.util.concurrent.ThreadPoolExecutor Source code of java.util.concurrent.ThreadPoolExecutor$Worker.runTask
(ThreadPoolExecutor.java:885)
       at java.util.concurrent.ThreadPoolExecutor Source code of java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:907)
       at java.lang.Thread Source code of java.lang.Thread(Thread.java:619)
Caused by: javax.activation.UnsupportedDataTypeException Source code of javax.activation.UnsupportedDataTypeException: no object DCH for
MIME type text/plain
       at javax.activation.ObjectDataContentHandler Source code of javax.activation.ObjectDataContentHandler(DataHandler.java
:870)
       at javax.activation.DataHandler Source code of javax.activation.DataHandler(DataHandler.java:301)
       at javax.mail.internet.MimeBodyPart Source code of javax.mail.internet.MimeBodyPart(MimeBodyPart.java:1350)
       at javax.mail.internet.MimeMessage Source code of javax.mail.internet.MimeMessage(MimeMessage.java:1683)
       at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:585)
       ... 34 more



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic
&p=4054058#4054058

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4054058
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.