javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain with JavaMail and Prelude

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain with JavaMail and Prelude

Lance J. Andersen
Has anyone seen the following exception using JavaMail and Prelude?  
This is from a JavaBean invoked from a JSP.


The basic code looks like:
    -------------------------------------
            Context ctx = new InitialContext();

            String mailHost = (String) ctx.lookup("java:comp/env/mailHost");
            String mailPort = (String) ctx.lookup("java:comp/env/mailPort");
            String mailTo = (String) ctx.lookup("java:comp/env/mailTo");
            String mailProtocol = (String)
ctx.lookup("java:comp/env/mailProtocol");
            String mailPassword = (String)
ctx.lookup("java:comp/env/mailPassword");
            String mailUser = (String) ctx.lookup("java:comp/env/mailUser");

            System.out.println("Mail Host:" + mailHost +
            "\nMail Port:" + mailPort +
            "\nMail User:" + mailUser +
            "\nMail Password:" + mailPassword +
            "\nMail Protocol:" + mailProtocol +
            "\nMail Host:" + mailHost +
            "\nTo:+" + mailTo +
            "\nfrom:+" + emailMsg.getSender());

            Properties props = new Properties();
            props.put("mail." + mailProtocol + ".host", mailHost);
            props.put("mail." + mailProtocol + ".port", mailPort);
            props.put("mail." + mailProtocol + ".auth", "true");
            props.put("mail.debug", "true");
           
            Session session =
                    Session.getDefaultInstance(props);
            session.setDebug(true);

            Transport transport = session.getTransport(mailProtocol);
            Message msg = new MimeMessage(session);
            msg.setFrom(new InternetAddress(emailMsg.getSender()));

            msg.setRecipients(Message.RecipientType.TO,
                    InternetAddress.parse(mailTo, false));

            msg.setSubject("Email from JSP");

           msg.setHeader("X-Mailer", "JavaMail");
            Date timeStamp = new Date();
            msg.setSentDate(timeStamp);
            //msg.setText("hello");
            msg.setContent("hello", "text/plain");
         
            transport.connect(mailHost, mailUser, mailPassword);
            transport.sendMessage(msg, msg.getAllRecipients());
       -------------------------------------

msg.setText("hello") produces the same error.

Regards
Lance

INFO: javax.activation.UnsupportedDataTypeException: no object DCH for
MIME type text/plain
INFO:         at
javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
INFO:         at javax.activation.DataHandler.writeTo(DataHandler.java:301)
INFO:         at
javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
INFO:         at
javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
INFO:         at
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
INFO:         at demo.FeedbackBean.sendMail(FeedbackBean.java:221)
INFO:         at demo.FeedbackBean.sendFeedback(FeedbackBean.java:121)
INFO:         at
org.apache.jsp.feedbackThanks_jsp._jspService(feedbackThanks_jsp.java
from :69)
INFO:         at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
INFO:         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
INFO:         at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
INFO:         at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
INFO:         at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
INFO:         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
INFO:         at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
INFO:         at
org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
INFO:         at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
INFO:         at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
INFO:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
INFO:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
INFO:         at
com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
INFO:         at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
INFO:         at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
INFO:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
INFO:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
INFO:         at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
INFO:         at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
INFO:         at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
INFO:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
INFO:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
INFO:         at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
INFO:         at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
INFO:         at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
INFO:         at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
INFO:         at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
INFO:         at
com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
INFO:         at
com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
INFO:         at
com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
INFO:         at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
INFO:         at
com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
INFO:         at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
INFO:         at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
INFO:         at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
INFO:         at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
INFO:         at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
INFO:         at
com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
INFO:         at
com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
SEVERE: javax.mail.MessagingException: IOException while sending message;
  nested exception is:
        javax.activation.UnsupportedDataTypeException: no object DCH for
MIME type text/plain
SEVERE:         at
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:676)
SEVERE:         at demo.FeedbackBean.sendMail(FeedbackBean.java:221)
SEVERE:         at demo.FeedbackBean.sendFeedback(FeedbackBean.java:121)
SEVERE:         at
org.apache.jsp.feedbackThanks_jsp._jspService(feedbackThanks_jsp.java
from :69)
SEVERE:         at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
SEVERE:         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
SEVERE:         at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
SEVERE:         at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
SEVERE:         at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
SEVERE:         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
SEVERE:         at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
SEVERE:         at
org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
SEVERE:         at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
SEVERE:         at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
SEVERE:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
SEVERE:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
SEVERE:         at
com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
SEVERE:         at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
SEVERE:         at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
SEVERE:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
SEVERE:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
SEVERE:         at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
SEVERE:         at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
SEVERE:         at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
SEVERE:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
SEVERE:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
SEVERE:         at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
SEVERE:         at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
SEVERE:         at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
SEVERE:         at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
SEVERE:         at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
SEVERE:         at
com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
SEVERE:         at
com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
SEVERE:         at
com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
SEVERE:         at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
SEVERE:         at
com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
SEVERE:         at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
SEVERE:         at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
SEVERE:         at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
SEVERE:         at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
SEVERE:         at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
SEVERE:         at
com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
SEVERE:         at
com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
SEVERE: Caused by: javax.activation.UnsupportedDataTypeException: no
object DCH for MIME type text/plain
SEVERE:         at
javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain with JavaMail and Prelude

Lance J. Andersen
One more datapoint.  I just deployed the same webapp to V2 and it runs
without error.

-lance

Lance J. Andersen wrote:

> Has anyone seen the following exception using JavaMail and Prelude?  
> This is from a JavaBean invoked from a JSP.
>
>
> The basic code looks like:
>    -------------------------------------
>            Context ctx = new InitialContext();
>
>            String mailHost = (String)
> ctx.lookup("java:comp/env/mailHost");
>            String mailPort = (String)
> ctx.lookup("java:comp/env/mailPort");
>            String mailTo = (String) ctx.lookup("java:comp/env/mailTo");
>            String mailProtocol = (String)
> ctx.lookup("java:comp/env/mailProtocol");
>            String mailPassword = (String)
> ctx.lookup("java:comp/env/mailPassword");
>            String mailUser = (String)
> ctx.lookup("java:comp/env/mailUser");
>
>            System.out.println("Mail Host:" + mailHost +
>            "\nMail Port:" + mailPort +
>            "\nMail User:" + mailUser +
>            "\nMail Password:" + mailPassword +
>            "\nMail Protocol:" + mailProtocol +
>            "\nMail Host:" + mailHost +
>            "\nTo:+" + mailTo +
>            "\nfrom:+" + emailMsg.getSender());
>
>            Properties props = new Properties();
>            props.put("mail." + mailProtocol + ".host", mailHost);
>            props.put("mail." + mailProtocol + ".port", mailPort);
>            props.put("mail." + mailProtocol + ".auth", "true");
>            props.put("mail.debug", "true");
>                      Session session =
>                    Session.getDefaultInstance(props);
>            session.setDebug(true);
>
>            Transport transport = session.getTransport(mailProtocol);
>            Message msg = new MimeMessage(session);
>            msg.setFrom(new InternetAddress(emailMsg.getSender()));
>
>            msg.setRecipients(Message.RecipientType.TO,
>                    InternetAddress.parse(mailTo, false));
>
>            msg.setSubject("Email from JSP");
>
>           msg.setHeader("X-Mailer", "JavaMail");
>            Date timeStamp = new Date();
>            msg.setSentDate(timeStamp);
>            //msg.setText("hello");
>            msg.setContent("hello", "text/plain");
>                     transport.connect(mailHost, mailUser, mailPassword);
>            transport.sendMessage(msg, msg.getAllRecipients());
>       -------------------------------------
>
> msg.setText("hello") produces the same error.
>
> Regards
> Lance
>
> INFO: javax.activation.UnsupportedDataTypeException: no object DCH for
> MIME type text/plain
> INFO:         at
> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
> INFO:         at
> javax.activation.DataHandler.writeTo(DataHandler.java:301)
> INFO:         at
> javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
> INFO:         at
> javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
> INFO:         at
> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
> INFO:         at demo.FeedbackBean.sendMail(FeedbackBean.java:221)
> INFO:         at demo.FeedbackBean.sendFeedback(FeedbackBean.java:121)
> INFO:         at
> org.apache.jsp.feedbackThanks_jsp._jspService(feedbackThanks_jsp.java
> from :69)
> INFO:         at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
> INFO:         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> INFO:         at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>
> INFO:         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
> INFO:         at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
> INFO:         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> INFO:         at
> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
>
> INFO:         at
> org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
>
> INFO:         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
>
> INFO:         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>
> INFO:         at
> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
> INFO:         at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>
> INFO:         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>
> INFO:         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
> INFO:         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>
> INFO:         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
> INFO:         at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>
> INFO:         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
>
> INFO:         at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
>
> INFO:         at
> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
>
> INFO:         at
> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
>
> INFO:         at
> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
>
> INFO:         at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
>
> INFO:         at
> com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
>
> INFO:         at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
>
> INFO:         at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
>
> INFO:         at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
> INFO:         at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
>
> INFO:         at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
>
> INFO:         at
> com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
>
> INFO:         at
> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
> SEVERE: javax.mail.MessagingException: IOException while sending message;
>  nested exception is:
>        javax.activation.UnsupportedDataTypeException: no object DCH
> for MIME type text/plain
> SEVERE:         at
> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:676)
> SEVERE:         at demo.FeedbackBean.sendMail(FeedbackBean.java:221)
> SEVERE:         at demo.FeedbackBean.sendFeedback(FeedbackBean.java:121)
> SEVERE:         at
> org.apache.jsp.feedbackThanks_jsp._jspService(feedbackThanks_jsp.java
> from :69)
> SEVERE:         at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
> SEVERE:         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> SEVERE:         at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>
> SEVERE:         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
> SEVERE:         at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
> SEVERE:         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> SEVERE:         at
> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
>
> SEVERE:         at
> org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
>
> SEVERE:         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
>
> SEVERE:         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>
> SEVERE:         at
> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
> SEVERE:         at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>
> SEVERE:         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>
> SEVERE:         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
> SEVERE:         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>
> SEVERE:         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
> SEVERE:         at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>
> SEVERE:         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
>
> SEVERE:         at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
>
> SEVERE:         at
> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
>
> SEVERE:         at
> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
>
> SEVERE:         at
> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
>
> SEVERE:         at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
>
> SEVERE:         at
> com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
>
> SEVERE:         at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
>
> SEVERE:         at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
>
> SEVERE:         at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
> SEVERE:         at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
>
> SEVERE:         at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
>
> SEVERE:         at
> com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
>
> SEVERE:         at
> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
> SEVERE: Caused by: javax.activation.UnsupportedDataTypeException: no
> object DCH for MIME type text/plain
> SEVERE:         at
> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain with JavaMail and Prelude

Bill Shannon
In reply to this post by Lance J. Andersen
Lance J. Andersen wrote:
> Has anyone seen the following exception using JavaMail and Prelude?  
> This is from a JavaBean invoked from a JSP.
...
> INFO: javax.activation.UnsupportedDataTypeException: no object DCH for
> MIME type text/plain

Probably the JavaMail implementation in Prelude is broken and doesn't include
the mailcap file that provides the mapping from MIME type to DataContentHandler.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain with JavaMail and Prelude

Lance J. Andersen
Hi Bill,

Thanks for the note.  the mailcap below looks the same as what i have
run the TCK against.

Regards
Lance

Here is the mailcap from javax.mail.jar in prelude

#
# @(#)mailcap    1.8 05/04/20
#
# Default mailcap file for the JavaMail System.
#
# JavaMail content-handlers:
#
text/plain;;        x-java-content-handler=com.sun.mail.handlers.text_plain
text/html;;        x-java-content-handler=com.sun.mail.handlers.text_html
text/xml;;        x-java-content-handler=com.sun.mail.handlers.text_xml
multipart/*;;        
x-java-content-handler=com.sun.mail.handlers.multipart_mixed;
x-java-fallback-entry=true
message/rfc822;;    
x-java-content-handler=com.sun.mail.handlers.message_rfc822
#
# can't support image types because java.awt.Toolkit doesn't work on servers
#
#image/gif;;        x-java-content-handler=com.sun.mail.handlers.image_gif
#image/jpeg;;        x-java-content-handler=com.sun.mail.handlers.image_jpeg

Here is the mailcap file from the mail.jar i use for standalone TCK
#
# @(#)mailcap    1.8 05/04/20
#
# Default mailcap file for the JavaMail System.
#
# JavaMail content-handlers:
#
text/plain;;        x-java-content-handler=com.sun.mail.handlers.text_plain
text/html;;        x-java-content-handler=com.sun.mail.handlers.text_html
text/xml;;        x-java-content-handler=com.sun.mail.handlers.text_xml
multipart/*;;        
x-java-content-handler=com.sun.mail.handlers.multipart_mixed;
x-java-fallback-entry=true
message/rfc822;;    
x-java-content-handler=com.sun.mail.handlers.message_rfc822
#
# can't support image types because java.awt.Toolkit doesn't work on servers
#
#image/gif;;        x-java-content-handler=com.sun.mail.handlers.image_gif
#image/jpeg;;        x-java-content-handler=com.sun.mail.handlers.image_jpeg


Bill Shannon wrote:

> Lance J. Andersen wrote:
>> Has anyone seen the following exception using JavaMail and Prelude?  
>> This is from a JavaBean invoked from a JSP.
> ...
>> INFO: javax.activation.UnsupportedDataTypeException: no object DCH
>> for MIME type text/plain
>
> Probably the JavaMail implementation in Prelude is broken and doesn't
> include
> the mailcap file that provides the mapping from MIME type to
> DataContentHandler.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain with JavaMail and Prelude

Peter Williams-4
In reply to this post by Bill Shannon
Which build of JDK 6 is this?

Try JDK6u10 (release version, not anything prior) and tell me if it
works.  Alternatively, you can run Prelude on JDK 5 and see what happens
then.

I'm 99% certain that is one of the activation bugs that is fixed in
1.1.1 and also fixed in B25 of JDK 6u10 (but not prior distributions of
JDK 6).

Which means that V3 is giving priority to the JAF implementation in the
JDK rather than the one included.

-Peter

Bill Shannon wrote:

> Lance J. Andersen wrote:
>> Has anyone seen the following exception using JavaMail and Prelude?  
>> This is from a JavaBean invoked from a JSP.
> ...
>> INFO: javax.activation.UnsupportedDataTypeException: no object DCH
>> for MIME type text/plain
>
> Probably the JavaMail implementation in Prelude is broken and doesn't
> include
> the mailcap file that provides the mapping from MIME type to
> DataContentHandler.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain with JavaMail and Prelude

Lance J. Andersen
I am using Java SE U7.

I have started the download of U10 and will give it a go and report back.

-lance

Peter Williams wrote:

> Which build of JDK 6 is this?
>
> Try JDK6u10 (release version, not anything prior) and tell me if it
> works.  Alternatively, you can run Prelude on JDK 5 and see what
> happens then.
>
> I'm 99% certain that is one of the activation bugs that is fixed in
> 1.1.1 and also fixed in B25 of JDK 6u10 (but not prior distributions
> of JDK 6).
>
> Which means that V3 is giving priority to the JAF implementation in
> the JDK rather than the one included.
>
> -Peter
>
> Bill Shannon wrote:
>> Lance J. Andersen wrote:
>>> Has anyone seen the following exception using JavaMail and
>>> Prelude?   This is from a JavaBean invoked from a JSP.
>> ...
>>> INFO: javax.activation.UnsupportedDataTypeException: no object DCH
>>> for MIME type text/plain
>>
>> Probably the JavaMail implementation in Prelude is broken and doesn't
>> include
>> the mailcap file that provides the mapping from MIME type to
>> DataContentHandler.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain with JavaMail and Prelude

Bill Shannon
In reply to this post by Lance J. Andersen
Lance J. Andersen wrote:
> Hi Bill,
>
> Thanks for the note.  the mailcap below looks the same as what i have
> run the TCK against.

My next guess is that it's a class loader problem and the class loader
isn't finding the mailcap file.

Can you set the system property "javax.activation.debug" to "true"?
That will cause more debugging output to System.out, which will help
narrow down the problem.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain with JavaMail and Prelude

Lance J. Andersen
Hi Bill, Peter,

I installed Java SE 6U10 as Peter suggested.  I also updated my Java
Home in domain.xml to be via the admin gui:
      <java-config debug-options="-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009"
system-classpath="" classpath-suffix="" java-home="&quot;C:/Program
Files/Java/jdk1.6.0_10/&quot;">
Added the property
 <jvm-options>-Djavax.activation.debug=true</jvm-options>


And I was still seeing the error.


What is weird to me was that Prelude is using Java SE 6U06 JRE to boot  
based on the jvm log file(BTW, why doe the JVM info get written to a
separate file now).

I am running everything from NB 6.5RC2 and I have the Project set to use
Java SE 6U10 as well.  JAVA_HOME is *not* set in the System environment.

So i happened to notice that the default Java SE for Netbeans was Java
SE 1.6.06 which matches the stack trace below.  Unfortunately even if
the project that you are running is set to use a JVM other than the
default, processes such as the start of Prelude do not appear to honor
that which get started by running that Project.

So the next step was to modify my %NB_HOME%\etc\netbeans.conf file to
use Java SE 1.6.10.

Once I did that and rebooted, the JavaMail error went away.


A couple of questions:

-  Is there a reason that the java-config value for java-home is ignored
when starting Prelude from Netbeans?
-  Where does the default for ${com.sun.aas.javaRoot} get derived from
now which is the default for domain.xml in a fresh install
- Any particular reason why I must manually edit the netbeans.conf to
change the default JVM when the JVM platform manager knows what is the
default?  At a minimum we should allow for using a different JVM other
than the default for starting services such as Prelude without requiring
a reboot of netbeans.
- If we have issues like this, shouldn't we require a minimum Java SE
version and at least put a warning in the log at boot time?


I will put together a blog which hopefully save others from stumbling
across this error and if they do at least know how to move forward.

Thank you Bill and Peter with the pointers on this.

Regards
Lance

Here is the log with the activation debugging enabled.


INFO: Launching GlassFish on Apache Felix OSGi platform
Welcome to Felix.
=================
INFO: Started bundle org.glassfish.common.glassfish-mbeanserver [9]
INFO: Started bundle org.glassfish.core.kernel [79]
INFO: Started bundle org.glassfish.common.common-util [59]
INFO: Started bundle GlassFish-Application-Common-Module [33]
INFO: APIClassLoader = Class Loader for Bundle
[GlassFish-Application-Common-Module [33] ]
no resource bundle found for version, using default GlassFish version
INFO: registering service =
org.apache.felix.framework.StartLevelImpl@dc67e, contract =
org.osgi.service.startlevel.StartLevel, name = null
INFO: registering service =
org.apache.felix.framework.PackageAdminImpl@609959, contract =
org.osgi.service.packageadmin.PackageAdmin, name = null
INFO: Started bundle org.glassfish.branding.branding [37]
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
INFO: Started bundle org.glassfish.common.internal-api [61]
INFO: Started bundle org.glassfish.admin.config-api [42]
INFO: Started bundle org.glassfish.registration.glassfish-registration [73]
INFO: Started bundle org.glassfish.deployment.deployment-autodeploy [19]
INFO: Started bundle org.glassfish.deployment.deployment-common [69]
INFO: Started bundle org.glassfish.flashlight.flashlight-framework [72]
INFO: Listening on port 8080
INFO: Network listener http-listener-2 on port 8181 disabled per domain.xml
INFO: Listening on port 4848
INFO: Started bundle org.glassfish.common.container-common [83]
INFO: The Admin Console is already installed, but not yet loaded.
INFO: Started bundle org.glassfish.persistence.jpa-connector [24]
INFO: Started bundle org.glassfish.scripting.gf-jruby-connector [12]
INFO: Started bundle org.glassfish.web.gf-web-connector [99]
INFO: Started bundle org.glassfish.security.security [21]
INFO: security.secmgroff
INFO: Started bundle org.glassfish.security.securitycommon [23]
INFO: Security startup service called
INFO: Started bundle org.glassfish.security.realms [39]
INFO: Security service(s) started successfully....
INFO: registering service =
org.glassfish.web.DirContextURLStreamHandlerService@4d41e2, contract =
org.osgi.service.url.URLStreamHandlerService, name = null
INFO: Started bundle org.glassfish.web.web-glue [91]
INFO: Started bundle org.glassfish.common.glassfish-naming [65]
INFO: Started bundle org.glassfish.common.glassfish-api [84]
INFO: Started bundle org.glassfish.connectors.connectors-runtime [27]
INFO: Started bundle org.glassfish.transaction.jta [7]
INFO: Created HTTP listener http-listener-1 on port 8080
INFO: Created HTTP listener admin-listener on port 4848
INFO: Created virtual server server
INFO: Created virtual server __asadmin
INFO: Started bundle org.glassfish.deployment.dol [10]
INFO: Started bundle org.glassfish.web.web-core [108]
INFO: Dual registration of jndi stream handler: factory already defined
INFO: Unknown loader 91.0 class
org.apache.felix.framework.searchpolicy.ContentClassLoader
INFO: Started bundle org.glassfish.web.jstl-connector [97]
INFO: Started bundle org.glassfish.web.jsf-connector [104]
INFO: Using
com.sun.enterprise.transaction.JavaEETransactionManagerSimplifiedDelegate
as the delegate
INFO: Started bundle org.glassfish.connectors.work-management [45]
INFO: Started bundle org.glassfish.common.glassfish-ee-api [70]
INFO: Started bundle org.glassfish.connectors.connectors-internal-api [89]
INFO: Started JMXConnector, JMXService URL =
service:jmx:rmi:///jndi/rmi://owner-8zgjfic0j:8686/jmxrmi
INFO: policy.loading
INFO: Started bundle org.glassfish.web.war-util [100]
INFO: Started bundle org.glassfish.security.websecurity [93]
INFO: Unknown loader
org.glassfish.internal.api.DelegatingClassLoader@11ce2ad class
org.glassfish.internal.api.DelegatingClassLoader
INFO: Loading application PreludeJavaMail at /PreludeJavaMail
INFO: Loading PreludeJavaMail Application done is 7952 ms
INFO: GlassFish v3 Prelude startup time : Felix(17655ms) startup
services(9474ms) total(27129ms)
INFO: in FeedbackBean()
INFO: in FeedbackBean.setSender(), sender=[hidden email]
INFO: in FeedbackBean.setMailingList(), mailingList=N
INFO: in FeedbackBean.setComment(), comment=d
INFO: in FeedbackBean.sendFeedback()
INFO: Mail Host:zipzonetennis.com
Mail Port:587
Mail User:[hidden email]
Mail Password:tenn1s
Mail Protocol:smtp
Mail Host:zipzonetennis.com
To:+[hidden email]
from:+[hidden email]
INFO: [sender=[hidden email], subject 0]
INFO: DEBUG: JavaMail version 1.4.1
INFO: DEBUG: not loading file: C:\Program
Files\Java\jdk1.6.0_06\jre\lib\javamail.providers
INFO: DEBUG: java.io.FileNotFoundException: C:\Program
Files\Java\jdk1.6.0_06\jre\lib\javamail.providers (The system cannot
find the file specified)
INFO: DEBUG: !anyLoaded
INFO: DEBUG: not loading resource: /META-INF/javamail.providers
INFO: DEBUG: successfully loaded resource:
/META-INF/javamail.default.providers
INFO: DEBUG: Tables of loaded providers
INFO: DEBUG: Providers Listed By Class Name:
{com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
Microsystems, Inc],
com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc],
com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
Microsystems, Inc],
com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
Microsystems, Inc],
com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
Microsystems, Inc],
com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
Microsystems, Inc]}
INFO: DEBUG: Providers Listed By Protocol:
{imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
Microsystems, Inc],
imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
Microsystems, Inc],
smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
Microsystems, Inc],
pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
Microsystems, Inc],
pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
Microsystems, Inc],
smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc]}
INFO: DEBUG: successfully loaded resource:
/META-INF/javamail.default.address.map
INFO: DEBUG: !anyLoaded
INFO: DEBUG: not loading resource: /META-INF/javamail.address.map
INFO: DEBUG: not loading file: C:\Program
Files\Java\jdk1.6.0_06\jre\lib\javamail.address.map
INFO: DEBUG: java.io.FileNotFoundException: C:\Program
Files\Java\jdk1.6.0_06\jre\lib\javamail.address.map (The system cannot
find the file specified)
INFO: DEBUG: setDebug: JavaMail version 1.4.1
INFO: DEBUG: getProvider() returning
javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc]
INFO: DEBUG SMTP: useEhlo true, useAuth true
INFO: DEBUG SMTP: trying to connect to host "zipzonetennis.com", port
587, isSSL false
INFO: 220-kapo.lunarmania.com ESMTP Exim 4.69 #1 Tue, 11 Nov 2008
07:18:12 -0800
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
INFO: DEBUG SMTP: connected to host "zipzonetennis.com", port: 587
INFO: EHLO owner-8zgjfic0j
INFO: 250-kapo.lunarmania.com Hello
pool-70-22-243-89.bos.east.verizon.net [70.22.243.89]
250-SIZE 52428800
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
INFO: DEBUG SMTP: Found extension "SIZE", arg "52428800"
INFO: DEBUG SMTP: Found extension "PIPELINING", arg ""
INFO: DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"
INFO: DEBUG SMTP: Found extension "STARTTLS", arg ""
INFO: DEBUG SMTP: Found extension "HELP", arg ""
INFO: DEBUG SMTP: Attempt to authenticate
INFO: AUTH LOGIN
INFO: 334 VXNlcm5hbWU6
INFO: bGFuY2VAemlwem9uZXRlbm5pcy5jb20=
INFO: 334 UGFzc3dvcmQ6
INFO: dGVubjFz
INFO: 235 Authentication succeeded
INFO: DEBUG SMTP: use8bit false
INFO: MAIL FROM:<[hidden email]>
INFO: 250 OK
INFO: RCPT TO:<[hidden email]>
INFO: 250 Accepted
INFO: DEBUG SMTP: Verified Addresses
INFO: DEBUG SMTP:   [hidden email]
INFO: DATA
INFO: 354 Enter message, ending with "." on a line by itself
INFO: MailcapCommandMap: load HOME
INFO: new MailcapFile: file C:\Documents and Settings\Owner\.mailcap
INFO: MailcapCommandMap: load SYS
INFO: new MailcapFile: file C:\Program
Files\Java\jdk1.6.0_06\jre\lib\mailcap
INFO: MailcapCommandMap: load JAR
INFO: MailcapCommandMap: !anyLoaded
INFO: MailcapCommandMap: not loading mailcap file: /META-INF/mailcap
INFO: MailcapCommandMap: load DEF
INFO: new MailcapFile: InputStream
INFO: parse: image/gif;;                
x-java-view=com.sun.activation.viewers.ImageViewer
INFO:   Type: image/gif
INFO:     Command: view, Class: com.sun.activation.viewers.ImageViewer
INFO: parse: image/jpeg;;                
x-java-view=com.sun.activation.viewers.ImageViewer
INFO:   Type: image/jpeg
INFO:     Command: view, Class: com.sun.activation.viewers.ImageViewer
INFO: parse: text/*;;                
x-java-view=com.sun.activation.viewers.TextViewer
INFO:   Type: text/*
INFO:     Command: view, Class: com.sun.activation.viewers.TextViewer
INFO: parse: text/*;;                
x-java-edit=com.sun.activation.viewers.TextEditor
INFO:   Type: text/*
INFO:     Command: edit, Class: com.sun.activation.viewers.TextEditor
INFO: Merging commands for type text/*
INFO: MailcapCommandMap: successfully loaded mailcap file:
/META-INF/mailcap.default
INFO: MailcapCommandMap: createDataContentHandler for text/plain
INFO:   search DB #1
INFO:   search fallback DB #1
INFO: javax.activation.UnsupportedDataTypeException: no object DCH for
MIME type text/plain
INFO:         at
javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
INFO:         at javax.activation.DataHandler.writeTo(DataHandler.java:301)
INFO:         at
javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
INFO:         at
javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
INFO:         at
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
INFO:         at demo.FeedbackBean.sendMail(FeedbackBean.java:221)
INFO:         at demo.FeedbackBean.sendFeedback(FeedbackBean.java:121)
INFO:         at
org.apache.jsp.feedbackThanks_jsp._jspService(feedbackThanks_jsp.java
from :69)
INFO:         at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
INFO:         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
INFO:         at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
INFO:         at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
INFO:         at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
INFO:         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
INFO:         at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
INFO:         at
org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
INFO:         at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
INFO:         at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
INFO:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
INFO:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
INFO:         at
com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
INFO:         at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
INFO:         at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
INFO:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
INFO:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
INFO:         at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
INFO:         at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
INFO:         at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
INFO:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
INFO:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
INFO:         at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
INFO:         at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
INFO:         at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
INFO:         at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
INFO:         at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
INFO:         at
com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
INFO:         at
com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
INFO:         at
com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
INFO:         at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
INFO:         at
com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
INFO:         at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
INFO:         at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
INFO:         at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
INFO:         at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
INFO:         at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
INFO:         at
com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
INFO:         at
com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
SEVERE: javax.mail.MessagingException: IOException while sending message;
  nested exception is:
        javax.activation.UnsupportedDataTypeException: no object DCH for
MIME type text/plain
SEVERE:         at
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:676)
SEVERE:         at demo.FeedbackBean.sendMail(FeedbackBean.java:221)
SEVERE:         at demo.FeedbackBean.sendFeedback(FeedbackBean.java:121)
SEVERE:         at
org.apache.jsp.feedbackThanks_jsp._jspService(feedbackThanks_jsp.java
from :69)
SEVERE:         at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
SEVERE:         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
SEVERE:         at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
SEVERE:         at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
SEVERE:         at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
SEVERE:         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
SEVERE:         at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
SEVERE:         at
org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
SEVERE:         at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
SEVERE:         at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
SEVERE:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
SEVERE:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
SEVERE:         at
com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
SEVERE:         at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
SEVERE:         at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
SEVERE:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
SEVERE:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
SEVERE:         at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
SEVERE:         at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
SEVERE:         at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
SEVERE:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
SEVERE:         at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
SEVERE:         at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
SEVERE:         at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
SEVERE:         at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
SEVERE:         at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
SEVERE:         at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
SEVERE:         at
com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
SEVERE:         at
com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
SEVERE:         at
com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
SEVERE:         at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
SEVERE:         at
com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
SEVERE:         at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
SEVERE:         at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
SEVERE:         at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
SEVERE:         at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
SEVERE:         at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
SEVERE:         at
com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
SEVERE:         at
com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
SEVERE: Caused by: javax.activation.UnsupportedDataTypeException: no
object DCH for MIME type text/plain
SEVERE:         at
javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
SEVERE:         at
javax.activation.DataHandler.writeTo(DataHandler.java:301)
SEVERE:         at
javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
SEVERE:         at
javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
SEVERE:         at
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
SEVERE:         ... 42 more


Bill Shannon wrote:

> Lance J. Andersen wrote:
>> Hi Bill,
>>
>> Thanks for the note.  the mailcap below looks the same as what i have
>> run the TCK against.
>
> My next guess is that it's a class loader problem and the class loader
> isn't finding the mailcap file.
>
> Can you set the system property "javax.activation.debug" to "true"?
> That will cause more debugging output to System.out, which will help
> narrow down the problem.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain with JavaMail and Prelude

Kedar Mhaswade
Lance,

There are two options.

- change java-home as: java-home="C:/Program Files/Java/jdk1.6.0_10"
   in domain.xml.

- remove java-home value from domain.xml and replace
   AS_JAVA=C:/Program Files/Java/jdk1.6.0_10 in install-dir/config
   asenv file.

By doing either of this, you should be able to see that server uses
the "intended" Java.

It looks to me that &quot; is making launcher think that it is not
a valid value.

Also, an alternate way of seeing which Java server uses -- run:
asadmin generate-jvm-report.

Thanks,
Kedar


Lance J. Andersen wrote:

> Hi Bill, Peter,
>
> I installed Java SE 6U10 as Peter suggested.  I also updated my Java
> Home in domain.xml to be via the admin gui:
>      <java-config debug-options="-Xdebug
> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009"
> system-classpath="" classpath-suffix="" java-home="&quot;C:/Program
> Files/Java/jdk1.6.0_10/&quot;">
> Added the property
> <jvm-options>-Djavax.activation.debug=true</jvm-options>
>
>
> And I was still seeing the error.
>
>
> What is weird to me was that Prelude is using Java SE 6U06 JRE to boot  
> based on the jvm log file(BTW, why doe the JVM info get written to a
> separate file now).
> I am running everything from NB 6.5RC2 and I have the Project set to use
> Java SE 6U10 as well.  JAVA_HOME is *not* set in the System environment.
>
> So i happened to notice that the default Java SE for Netbeans was Java
> SE 1.6.06 which matches the stack trace below.  Unfortunately even if
> the project that you are running is set to use a JVM other than the
> default, processes such as the start of Prelude do not appear to honor
> that which get started by running that Project.
>
> So the next step was to modify my %NB_HOME%\etc\netbeans.conf file to
> use Java SE 1.6.10.
> Once I did that and rebooted, the JavaMail error went away.
>
>
> A couple of questions:
>
> -  Is there a reason that the java-config value for java-home is ignored
> when starting Prelude from Netbeans?
> -  Where does the default for ${com.sun.aas.javaRoot} get derived from
> now which is the default for domain.xml in a fresh install
> - Any particular reason why I must manually edit the netbeans.conf to
> change the default JVM when the JVM platform manager knows what is the
> default?  At a minimum we should allow for using a different JVM other
> than the default for starting services such as Prelude without requiring
> a reboot of netbeans.
> - If we have issues like this, shouldn't we require a minimum Java SE
> version and at least put a warning in the log at boot time?
>
>
> I will put together a blog which hopefully save others from stumbling
> across this error and if they do at least know how to move forward.
>
> Thank you Bill and Peter with the pointers on this.
>
> Regards
> Lance
>
> Here is the log with the activation debugging enabled.
>
>
> INFO: Launching GlassFish on Apache Felix OSGi platform
> Welcome to Felix.
> =================
> INFO: Started bundle org.glassfish.common.glassfish-mbeanserver [9]
> INFO: Started bundle org.glassfish.core.kernel [79]
> INFO: Started bundle org.glassfish.common.common-util [59]
> INFO: Started bundle GlassFish-Application-Common-Module [33]
> INFO: APIClassLoader = Class Loader for Bundle
> [GlassFish-Application-Common-Module [33] ]
> no resource bundle found for version, using default GlassFish version
> INFO: registering service =
> org.apache.felix.framework.StartLevelImpl@dc67e, contract =
> org.osgi.service.startlevel.StartLevel, name = null
> INFO: registering service =
> org.apache.felix.framework.PackageAdminImpl@609959, contract =
> org.osgi.service.packageadmin.PackageAdmin, name = null
> INFO: Started bundle org.glassfish.branding.branding [37]
> INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
> INFO: Started bundle org.glassfish.common.internal-api [61]
> INFO: Started bundle org.glassfish.admin.config-api [42]
> INFO: Started bundle org.glassfish.registration.glassfish-registration [73]
> INFO: Started bundle org.glassfish.deployment.deployment-autodeploy [19]
> INFO: Started bundle org.glassfish.deployment.deployment-common [69]
> INFO: Started bundle org.glassfish.flashlight.flashlight-framework [72]
> INFO: Listening on port 8080
> INFO: Network listener http-listener-2 on port 8181 disabled per domain.xml
> INFO: Listening on port 4848
> INFO: Started bundle org.glassfish.common.container-common [83]
> INFO: The Admin Console is already installed, but not yet loaded.
> INFO: Started bundle org.glassfish.persistence.jpa-connector [24]
> INFO: Started bundle org.glassfish.scripting.gf-jruby-connector [12]
> INFO: Started bundle org.glassfish.web.gf-web-connector [99]
> INFO: Started bundle org.glassfish.security.security [21]
> INFO: security.secmgroff
> INFO: Started bundle org.glassfish.security.securitycommon [23]
> INFO: Security startup service called
> INFO: Started bundle org.glassfish.security.realms [39]
> INFO: Security service(s) started successfully....
> INFO: registering service =
> org.glassfish.web.DirContextURLStreamHandlerService@4d41e2, contract =
> org.osgi.service.url.URLStreamHandlerService, name = null
> INFO: Started bundle org.glassfish.web.web-glue [91]
> INFO: Started bundle org.glassfish.common.glassfish-naming [65]
> INFO: Started bundle org.glassfish.common.glassfish-api [84]
> INFO: Started bundle org.glassfish.connectors.connectors-runtime [27]
> INFO: Started bundle org.glassfish.transaction.jta [7]
> INFO: Created HTTP listener http-listener-1 on port 8080
> INFO: Created HTTP listener admin-listener on port 4848
> INFO: Created virtual server server
> INFO: Created virtual server __asadmin
> INFO: Started bundle org.glassfish.deployment.dol [10]
> INFO: Started bundle org.glassfish.web.web-core [108]
> INFO: Dual registration of jndi stream handler: factory already defined
> INFO: Unknown loader 91.0 class
> org.apache.felix.framework.searchpolicy.ContentClassLoader
> INFO: Started bundle org.glassfish.web.jstl-connector [97]
> INFO: Started bundle org.glassfish.web.jsf-connector [104]
> INFO: Using
> com.sun.enterprise.transaction.JavaEETransactionManagerSimplifiedDelegate
> as the delegate
> INFO: Started bundle org.glassfish.connectors.work-management [45]
> INFO: Started bundle org.glassfish.common.glassfish-ee-api [70]
> INFO: Started bundle org.glassfish.connectors.connectors-internal-api [89]
> INFO: Started JMXConnector, JMXService URL =
> service:jmx:rmi:///jndi/rmi://owner-8zgjfic0j:8686/jmxrmi
> INFO: policy.loading
> INFO: Started bundle org.glassfish.web.war-util [100]
> INFO: Started bundle org.glassfish.security.websecurity [93]
> INFO: Unknown loader
> org.glassfish.internal.api.DelegatingClassLoader@11ce2ad class
> org.glassfish.internal.api.DelegatingClassLoader
> INFO: Loading application PreludeJavaMail at /PreludeJavaMail
> INFO: Loading PreludeJavaMail Application done is 7952 ms
> INFO: GlassFish v3 Prelude startup time : Felix(17655ms) startup
> services(9474ms) total(27129ms)
> INFO: in FeedbackBean()
> INFO: in FeedbackBean.setSender(), sender=[hidden email]
> INFO: in FeedbackBean.setMailingList(), mailingList=N
> INFO: in FeedbackBean.setComment(), comment=d
> INFO: in FeedbackBean.sendFeedback()
> INFO: Mail Host:zipzonetennis.com
> Mail Port:587
> Mail User:[hidden email]
> Mail Password:tenn1s
> Mail Protocol:smtp
> Mail Host:zipzonetennis.com
> To:+[hidden email]
> from:+[hidden email]
> INFO: [sender=[hidden email], subject 0]
> INFO: DEBUG: JavaMail version 1.4.1
> INFO: DEBUG: not loading file: C:\Program
> Files\Java\jdk1.6.0_06\jre\lib\javamail.providers
> INFO: DEBUG: java.io.FileNotFoundException: C:\Program
> Files\Java\jdk1.6.0_06\jre\lib\javamail.providers (The system cannot
> find the file specified)
> INFO: DEBUG: !anyLoaded
> INFO: DEBUG: not loading resource: /META-INF/javamail.providers
> INFO: DEBUG: successfully loaded resource:
> /META-INF/javamail.default.providers
> INFO: DEBUG: Tables of loaded providers
> INFO: DEBUG: Providers Listed By Class Name:
> {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
> Microsystems, Inc],
> com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
> Microsystems, Inc],
> com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
> Microsystems, Inc],
> com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
> Microsystems, Inc],
> com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
> Microsystems, Inc],
> com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
> Microsystems, Inc]}
> INFO: DEBUG: Providers Listed By Protocol:
> {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
> Microsystems, Inc],
> imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
> Microsystems, Inc],
> smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
> Microsystems, Inc],
> pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
> Microsystems, Inc],
> pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
> Microsystems, Inc],
> smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
> Microsystems, Inc]}
> INFO: DEBUG: successfully loaded resource:
> /META-INF/javamail.default.address.map
> INFO: DEBUG: !anyLoaded
> INFO: DEBUG: not loading resource: /META-INF/javamail.address.map
> INFO: DEBUG: not loading file: C:\Program
> Files\Java\jdk1.6.0_06\jre\lib\javamail.address.map
> INFO: DEBUG: java.io.FileNotFoundException: C:\Program
> Files\Java\jdk1.6.0_06\jre\lib\javamail.address.map (The system cannot
> find the file specified)
> INFO: DEBUG: setDebug: JavaMail version 1.4.1
> INFO: DEBUG: getProvider() returning
> javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
> Microsystems, Inc]
> INFO: DEBUG SMTP: useEhlo true, useAuth true
> INFO: DEBUG SMTP: trying to connect to host "zipzonetennis.com", port
> 587, isSSL false
> INFO: 220-kapo.lunarmania.com ESMTP Exim 4.69 #1 Tue, 11 Nov 2008
> 07:18:12 -0800
> 220-We do not authorize the use of this system to transport unsolicited,
> 220 and/or bulk e-mail.
> INFO: DEBUG SMTP: connected to host "zipzonetennis.com", port: 587
> INFO: EHLO owner-8zgjfic0j
> INFO: 250-kapo.lunarmania.com Hello
> pool-70-22-243-89.bos.east.verizon.net [70.22.243.89]
> 250-SIZE 52428800
> 250-PIPELINING
> 250-AUTH PLAIN LOGIN
> 250-STARTTLS
> 250 HELP
> INFO: DEBUG SMTP: Found extension "SIZE", arg "52428800"
> INFO: DEBUG SMTP: Found extension "PIPELINING", arg ""
> INFO: DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"
> INFO: DEBUG SMTP: Found extension "STARTTLS", arg ""
> INFO: DEBUG SMTP: Found extension "HELP", arg ""
> INFO: DEBUG SMTP: Attempt to authenticate
> INFO: AUTH LOGIN
> INFO: 334 VXNlcm5hbWU6
> INFO: bGFuY2VAemlwem9uZXRlbm5pcy5jb20=
> INFO: 334 UGFzc3dvcmQ6
> INFO: dGVubjFz
> INFO: 235 Authentication succeeded
> INFO: DEBUG SMTP: use8bit false
> INFO: MAIL FROM:<[hidden email]>
> INFO: 250 OK
> INFO: RCPT TO:<[hidden email]>
> INFO: 250 Accepted
> INFO: DEBUG SMTP: Verified Addresses
> INFO: DEBUG SMTP:   [hidden email]
> INFO: DATA
> INFO: 354 Enter message, ending with "." on a line by itself
> INFO: MailcapCommandMap: load HOME
> INFO: new MailcapFile: file C:\Documents and Settings\Owner\.mailcap
> INFO: MailcapCommandMap: load SYS
> INFO: new MailcapFile: file C:\Program
> Files\Java\jdk1.6.0_06\jre\lib\mailcap
> INFO: MailcapCommandMap: load JAR
> INFO: MailcapCommandMap: !anyLoaded
> INFO: MailcapCommandMap: not loading mailcap file: /META-INF/mailcap
> INFO: MailcapCommandMap: load DEF
> INFO: new MailcapFile: InputStream
> INFO: parse: image/gif;;                
> x-java-view=com.sun.activation.viewers.ImageViewer
> INFO:   Type: image/gif
> INFO:     Command: view, Class: com.sun.activation.viewers.ImageViewer
> INFO: parse: image/jpeg;;                
> x-java-view=com.sun.activation.viewers.ImageViewer
> INFO:   Type: image/jpeg
> INFO:     Command: view, Class: com.sun.activation.viewers.ImageViewer
> INFO: parse: text/*;;                
> x-java-view=com.sun.activation.viewers.TextViewer
> INFO:   Type: text/*
> INFO:     Command: view, Class: com.sun.activation.viewers.TextViewer
> INFO: parse: text/*;;                
> x-java-edit=com.sun.activation.viewers.TextEditor
> INFO:   Type: text/*
> INFO:     Command: edit, Class: com.sun.activation.viewers.TextEditor
> INFO: Merging commands for type text/*
> INFO: MailcapCommandMap: successfully loaded mailcap file:
> /META-INF/mailcap.default
> INFO: MailcapCommandMap: createDataContentHandler for text/plain
> INFO:   search DB #1
> INFO:   search fallback DB #1
> INFO: javax.activation.UnsupportedDataTypeException: no object DCH for
> MIME type text/plain
> INFO:         at
> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
> INFO:         at javax.activation.DataHandler.writeTo(DataHandler.java:301)
> INFO:         at
> javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
> INFO:         at
> javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
> INFO:         at
> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
> INFO:         at demo.FeedbackBean.sendMail(FeedbackBean.java:221)
> INFO:         at demo.FeedbackBean.sendFeedback(FeedbackBean.java:121)
> INFO:         at
> org.apache.jsp.feedbackThanks_jsp._jspService(feedbackThanks_jsp.java
> from :69)
> INFO:         at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
> INFO:         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> INFO:         at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>
> INFO:         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
> INFO:         at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
> INFO:         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> INFO:         at
> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
>
> INFO:         at
> org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
>
> INFO:         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
>
> INFO:         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>
> INFO:         at
> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
> INFO:         at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>
> INFO:         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
> INFO:         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
> INFO:         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
> INFO:         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
> INFO:         at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>
> INFO:         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
> INFO:         at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
>
> INFO:         at
> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
>
> INFO:         at
> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
>
> INFO:         at
> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
>
> INFO:         at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
>
> INFO:         at
> com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
>
> INFO:         at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
> INFO:         at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
> INFO:         at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
> INFO:         at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
>
> INFO:         at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
>
> INFO:         at
> com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
>
> INFO:         at
> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
> SEVERE: javax.mail.MessagingException: IOException while sending message;
>  nested exception is:
>        javax.activation.UnsupportedDataTypeException: no object DCH for
> MIME type text/plain
> SEVERE:         at
> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:676)
> SEVERE:         at demo.FeedbackBean.sendMail(FeedbackBean.java:221)
> SEVERE:         at demo.FeedbackBean.sendFeedback(FeedbackBean.java:121)
> SEVERE:         at
> org.apache.jsp.feedbackThanks_jsp._jspService(feedbackThanks_jsp.java
> from :69)
> SEVERE:         at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
> SEVERE:         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> SEVERE:         at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>
> SEVERE:         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
> SEVERE:         at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
> SEVERE:         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> SEVERE:         at
> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
>
> SEVERE:         at
> org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
>
> SEVERE:         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
>
> SEVERE:         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>
> SEVERE:         at
> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
> SEVERE:         at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>
> SEVERE:         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
> SEVERE:         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
> SEVERE:         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
> SEVERE:         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
> SEVERE:         at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>
> SEVERE:         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
> SEVERE:         at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
>
> SEVERE:         at
> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
>
> SEVERE:         at
> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
>
> SEVERE:         at
> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
>
> SEVERE:         at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
>
> SEVERE:         at
> com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
>
> SEVERE:         at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
> SEVERE:         at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
> SEVERE:         at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
> SEVERE:         at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
>
> SEVERE:         at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
>
> SEVERE:         at
> com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
>
> SEVERE:         at
> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
> SEVERE: Caused by: javax.activation.UnsupportedDataTypeException: no
> object DCH for MIME type text/plain
> SEVERE:         at
> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
> SEVERE:         at
> javax.activation.DataHandler.writeTo(DataHandler.java:301)
> SEVERE:         at
> javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
> SEVERE:         at
> javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
> SEVERE:         at
> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
> SEVERE:         ... 42 more
>
>
> Bill Shannon wrote:
>> Lance J. Andersen wrote:
>>> Hi Bill,
>>>
>>> Thanks for the note.  the mailcap below looks the same as what i have
>>> run the TCK against.
>>
>> My next guess is that it's a class loader problem and the class loader
>> isn't finding the mailcap file.
>>
>> Can you set the system property "javax.activation.debug" to "true"?
>> That will cause more debugging output to System.out, which will help
>> narrow down the problem.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain with JavaMail and Prelude

Lance J. Andersen
Hi Kedar,

Thank you for the note.

Kedar Mhaswade wrote:
> Lance,
>
> There are two options.
>
> - change java-home as: java-home="C:/Program Files/Java/jdk1.6.0_10"
>   in domain.xml.
I did this setting it to Java SE 6U6 and it still started with the NB
default JVM which was jdk1.6.0_10
> - remove java-home value from domain.xml and replace
>   AS_JAVA=C:/Program Files/Java/jdk1.6.0_10 in install-dir/config
>   asenv file.
I did this setting it to Java SE 6U6 and it still started with the NB
default JVM the NB default JVM which was jdk1.6.0_10
>
> By doing either of this, you should be able to see that server uses
> the "intended" Java.
>
no luck :-(
> It looks to me that &quot; is making launcher think that it is not
> a valid value.
I did not enter the &quote; myself,  the admin-gui did this when I
entered the above "C:/Program Files/Java/jdk1.6.0_10"

If i do not enter the quotes, the entry looks like
      <java-config debug-options="-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009"
system-classpath="" classpath-suffix="" java-home="C:/Program
Files/Java/jdk1.6.0_06">

The admin gui should tell me to not enter quotes as on the jvm option
pages, it does tell me to enter quotes so it is not intuitive as to what
needs to be done.

Shouldn't i have then gotten a warning saying that the location could
not be found?

Regards
Lance

>
> Also, an alternate way of seeing which Java server uses -- run:
> asadmin generate-jvm-report.
>
> Thanks,
> Kedar
>
>
> Lance J. Andersen wrote:
>> Hi Bill, Peter,
>>
>> I installed Java SE 6U10 as Peter suggested.  I also updated my Java
>> Home in domain.xml to be via the admin gui:
>>      <java-config debug-options="-Xdebug
>> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009"
>> system-classpath="" classpath-suffix="" java-home="&quot;C:/Program
>> Files/Java/jdk1.6.0_10/&quot;">
>> Added the property
>> <jvm-options>-Djavax.activation.debug=true</jvm-options>
>>
>>
>> And I was still seeing the error.
>>
>>
>> What is weird to me was that Prelude is using Java SE 6U06 JRE to
>> boot  based on the jvm log file(BTW, why doe the JVM info get written
>> to a separate file now).
>> I am running everything from NB 6.5RC2 and I have the Project set to
>> use Java SE 6U10 as well.  JAVA_HOME is *not* set in the System
>> environment.
>>
>> So i happened to notice that the default Java SE for Netbeans was
>> Java SE 1.6.06 which matches the stack trace below.  Unfortunately
>> even if the project that you are running is set to use a JVM other
>> than the default, processes such as the start of Prelude do not
>> appear to honor that which get started by running that Project.
>>
>> So the next step was to modify my %NB_HOME%\etc\netbeans.conf file to
>> use Java SE 1.6.10.
>> Once I did that and rebooted, the JavaMail error went away.
>>
>>
>> A couple of questions:
>>
>> -  Is there a reason that the java-config value for java-home is
>> ignored when starting Prelude from Netbeans?
>> -  Where does the default for ${com.sun.aas.javaRoot} get derived
>> from now which is the default for domain.xml in a fresh install
>> - Any particular reason why I must manually edit the netbeans.conf to
>> change the default JVM when the JVM platform manager knows what is
>> the default?  At a minimum we should allow for using a different JVM
>> other than the default for starting services such as Prelude without
>> requiring a reboot of netbeans.
>> - If we have issues like this, shouldn't we require a minimum Java SE
>> version and at least put a warning in the log at boot time?
>>
>>
>> I will put together a blog which hopefully save others from stumbling
>> across this error and if they do at least know how to move forward.
>>
>> Thank you Bill and Peter with the pointers on this.
>>
>> Regards
>> Lance
>>
>> Here is the log with the activation debugging enabled.
>>
>>
>> INFO: Launching GlassFish on Apache Felix OSGi platform
>> Welcome to Felix.
>> =================
>> INFO: Started bundle org.glassfish.common.glassfish-mbeanserver [9]
>> INFO: Started bundle org.glassfish.core.kernel [79]
>> INFO: Started bundle org.glassfish.common.common-util [59]
>> INFO: Started bundle GlassFish-Application-Common-Module [33]
>> INFO: APIClassLoader = Class Loader for Bundle
>> [GlassFish-Application-Common-Module [33] ]
>> no resource bundle found for version, using default GlassFish version
>> INFO: registering service =
>> org.apache.felix.framework.StartLevelImpl@dc67e, contract =
>> org.osgi.service.startlevel.StartLevel, name = null
>> INFO: registering service =
>> org.apache.felix.framework.PackageAdminImpl@609959, contract =
>> org.osgi.service.packageadmin.PackageAdmin, name = null
>> INFO: Started bundle org.glassfish.branding.branding [37]
>> INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
>> INFO: Started bundle org.glassfish.common.internal-api [61]
>> INFO: Started bundle org.glassfish.admin.config-api [42]
>> INFO: Started bundle
>> org.glassfish.registration.glassfish-registration [73]
>> INFO: Started bundle org.glassfish.deployment.deployment-autodeploy [19]
>> INFO: Started bundle org.glassfish.deployment.deployment-common [69]
>> INFO: Started bundle org.glassfish.flashlight.flashlight-framework [72]
>> INFO: Listening on port 8080
>> INFO: Network listener http-listener-2 on port 8181 disabled per
>> domain.xml
>> INFO: Listening on port 4848
>> INFO: Started bundle org.glassfish.common.container-common [83]
>> INFO: The Admin Console is already installed, but not yet loaded.
>> INFO: Started bundle org.glassfish.persistence.jpa-connector [24]
>> INFO: Started bundle org.glassfish.scripting.gf-jruby-connector [12]
>> INFO: Started bundle org.glassfish.web.gf-web-connector [99]
>> INFO: Started bundle org.glassfish.security.security [21]
>> INFO: security.secmgroff
>> INFO: Started bundle org.glassfish.security.securitycommon [23]
>> INFO: Security startup service called
>> INFO: Started bundle org.glassfish.security.realms [39]
>> INFO: Security service(s) started successfully....
>> INFO: registering service =
>> org.glassfish.web.DirContextURLStreamHandlerService@4d41e2, contract
>> = org.osgi.service.url.URLStreamHandlerService, name = null
>> INFO: Started bundle org.glassfish.web.web-glue [91]
>> INFO: Started bundle org.glassfish.common.glassfish-naming [65]
>> INFO: Started bundle org.glassfish.common.glassfish-api [84]
>> INFO: Started bundle org.glassfish.connectors.connectors-runtime [27]
>> INFO: Started bundle org.glassfish.transaction.jta [7]
>> INFO: Created HTTP listener http-listener-1 on port 8080
>> INFO: Created HTTP listener admin-listener on port 4848
>> INFO: Created virtual server server
>> INFO: Created virtual server __asadmin
>> INFO: Started bundle org.glassfish.deployment.dol [10]
>> INFO: Started bundle org.glassfish.web.web-core [108]
>> INFO: Dual registration of jndi stream handler: factory already defined
>> INFO: Unknown loader 91.0 class
>> org.apache.felix.framework.searchpolicy.ContentClassLoader
>> INFO: Started bundle org.glassfish.web.jstl-connector [97]
>> INFO: Started bundle org.glassfish.web.jsf-connector [104]
>> INFO: Using
>> com.sun.enterprise.transaction.JavaEETransactionManagerSimplifiedDelegate
>> as the delegate
>> INFO: Started bundle org.glassfish.connectors.work-management [45]
>> INFO: Started bundle org.glassfish.common.glassfish-ee-api [70]
>> INFO: Started bundle org.glassfish.connectors.connectors-internal-api
>> [89]
>> INFO: Started JMXConnector, JMXService URL =
>> service:jmx:rmi:///jndi/rmi://owner-8zgjfic0j:8686/jmxrmi
>> INFO: policy.loading
>> INFO: Started bundle org.glassfish.web.war-util [100]
>> INFO: Started bundle org.glassfish.security.websecurity [93]
>> INFO: Unknown loader
>> org.glassfish.internal.api.DelegatingClassLoader@11ce2ad class
>> org.glassfish.internal.api.DelegatingClassLoader
>> INFO: Loading application PreludeJavaMail at /PreludeJavaMail
>> INFO: Loading PreludeJavaMail Application done is 7952 ms
>> INFO: GlassFish v3 Prelude startup time : Felix(17655ms) startup
>> services(9474ms) total(27129ms)
>> INFO: in FeedbackBean()
>> INFO: in FeedbackBean.setSender(), sender=[hidden email]
>> INFO: in FeedbackBean.setMailingList(), mailingList=N
>> INFO: in FeedbackBean.setComment(), comment=d
>> INFO: in FeedbackBean.sendFeedback()
>> INFO: Mail Host:zipzonetennis.com
>> Mail Port:587
>> Mail User:[hidden email]
>> Mail Password:tenn1s
>> Mail Protocol:smtp
>> Mail Host:zipzonetennis.com
>> To:+[hidden email]
>> from:+[hidden email]
>> INFO: [sender=[hidden email], subject 0]
>> INFO: DEBUG: JavaMail version 1.4.1
>> INFO: DEBUG: not loading file: C:\Program
>> Files\Java\jdk1.6.0_06\jre\lib\javamail.providers
>> INFO: DEBUG: java.io.FileNotFoundException: C:\Program
>> Files\Java\jdk1.6.0_06\jre\lib\javamail.providers (The system cannot
>> find the file specified)
>> INFO: DEBUG: !anyLoaded
>> INFO: DEBUG: not loading resource: /META-INF/javamail.providers
>> INFO: DEBUG: successfully loaded resource:
>> /META-INF/javamail.default.providers
>> INFO: DEBUG: Tables of loaded providers
>> INFO: DEBUG: Providers Listed By Class Name:
>> {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
>> Microsystems, Inc],
>> com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
>> Microsystems, Inc],
>> com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
>> Microsystems, Inc],
>> com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
>> Microsystems, Inc],
>> com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
>> Microsystems, Inc],
>> com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
>> Microsystems, Inc]}
>> INFO: DEBUG: Providers Listed By Protocol:
>> {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
>> Microsystems, Inc],
>> imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
>> Microsystems, Inc],
>> smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
>> Microsystems, Inc],
>> pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
>> Microsystems, Inc],
>> pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
>> Microsystems, Inc],
>> smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
>> Microsystems, Inc]}
>> INFO: DEBUG: successfully loaded resource:
>> /META-INF/javamail.default.address.map
>> INFO: DEBUG: !anyLoaded
>> INFO: DEBUG: not loading resource: /META-INF/javamail.address.map
>> INFO: DEBUG: not loading file: C:\Program
>> Files\Java\jdk1.6.0_06\jre\lib\javamail.address.map
>> INFO: DEBUG: java.io.FileNotFoundException: C:\Program
>> Files\Java\jdk1.6.0_06\jre\lib\javamail.address.map (The system
>> cannot find the file specified)
>> INFO: DEBUG: setDebug: JavaMail version 1.4.1
>> INFO: DEBUG: getProvider() returning
>> javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
>> Microsystems, Inc]
>> INFO: DEBUG SMTP: useEhlo true, useAuth true
>> INFO: DEBUG SMTP: trying to connect to host "zipzonetennis.com", port
>> 587, isSSL false
>> INFO: 220-kapo.lunarmania.com ESMTP Exim 4.69 #1 Tue, 11 Nov 2008
>> 07:18:12 -0800
>> 220-We do not authorize the use of this system to transport unsolicited,
>> 220 and/or bulk e-mail.
>> INFO: DEBUG SMTP: connected to host "zipzonetennis.com", port: 587
>> INFO: EHLO owner-8zgjfic0j
>> INFO: 250-kapo.lunarmania.com Hello
>> pool-70-22-243-89.bos.east.verizon.net [70.22.243.89]
>> 250-SIZE 52428800
>> 250-PIPELINING
>> 250-AUTH PLAIN LOGIN
>> 250-STARTTLS
>> 250 HELP
>> INFO: DEBUG SMTP: Found extension "SIZE", arg "52428800"
>> INFO: DEBUG SMTP: Found extension "PIPELINING", arg ""
>> INFO: DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"
>> INFO: DEBUG SMTP: Found extension "STARTTLS", arg ""
>> INFO: DEBUG SMTP: Found extension "HELP", arg ""
>> INFO: DEBUG SMTP: Attempt to authenticate
>> INFO: AUTH LOGIN
>> INFO: 334 VXNlcm5hbWU6
>> INFO: bGFuY2VAemlwem9uZXRlbm5pcy5jb20=
>> INFO: 334 UGFzc3dvcmQ6
>> INFO: dGVubjFz
>> INFO: 235 Authentication succeeded
>> INFO: DEBUG SMTP: use8bit false
>> INFO: MAIL FROM:<[hidden email]>
>> INFO: 250 OK
>> INFO: RCPT TO:<[hidden email]>
>> INFO: 250 Accepted
>> INFO: DEBUG SMTP: Verified Addresses
>> INFO: DEBUG SMTP:   [hidden email]
>> INFO: DATA
>> INFO: 354 Enter message, ending with "." on a line by itself
>> INFO: MailcapCommandMap: load HOME
>> INFO: new MailcapFile: file C:\Documents and Settings\Owner\.mailcap
>> INFO: MailcapCommandMap: load SYS
>> INFO: new MailcapFile: file C:\Program
>> Files\Java\jdk1.6.0_06\jre\lib\mailcap
>> INFO: MailcapCommandMap: load JAR
>> INFO: MailcapCommandMap: !anyLoaded
>> INFO: MailcapCommandMap: not loading mailcap file: /META-INF/mailcap
>> INFO: MailcapCommandMap: load DEF
>> INFO: new MailcapFile: InputStream
>> INFO: parse: image/gif;;                
>> x-java-view=com.sun.activation.viewers.ImageViewer
>> INFO:   Type: image/gif
>> INFO:     Command: view, Class: com.sun.activation.viewers.ImageViewer
>> INFO: parse: image/jpeg;;                
>> x-java-view=com.sun.activation.viewers.ImageViewer
>> INFO:   Type: image/jpeg
>> INFO:     Command: view, Class: com.sun.activation.viewers.ImageViewer
>> INFO: parse: text/*;;                
>> x-java-view=com.sun.activation.viewers.TextViewer
>> INFO:   Type: text/*
>> INFO:     Command: view, Class: com.sun.activation.viewers.TextViewer
>> INFO: parse: text/*;;                
>> x-java-edit=com.sun.activation.viewers.TextEditor
>> INFO:   Type: text/*
>> INFO:     Command: edit, Class: com.sun.activation.viewers.TextEditor
>> INFO: Merging commands for type text/*
>> INFO: MailcapCommandMap: successfully loaded mailcap file:
>> /META-INF/mailcap.default
>> INFO: MailcapCommandMap: createDataContentHandler for text/plain
>> INFO:   search DB #1
>> INFO:   search fallback DB #1
>> INFO: javax.activation.UnsupportedDataTypeException: no object DCH
>> for MIME type text/plain
>> INFO:         at
>> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
>> INFO:         at
>> javax.activation.DataHandler.writeTo(DataHandler.java:301)
>> INFO:         at
>> javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
>> INFO:         at
>> javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
>> INFO:         at
>> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
>> INFO:         at demo.FeedbackBean.sendMail(FeedbackBean.java:221)
>> INFO:         at demo.FeedbackBean.sendFeedback(FeedbackBean.java:121)
>> INFO:         at
>> org.apache.jsp.feedbackThanks_jsp._jspService(feedbackThanks_jsp.java
>> from :69)
>> INFO:         at
>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
>> INFO:         at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>> INFO:         at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>>
>> INFO:         at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
>> INFO:         at
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
>> INFO:         at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>> INFO:         at
>> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>
>> INFO:         at
>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
>> INFO:         at
>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>>
>> INFO:         at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
>> INFO:         at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>>
>> INFO:         at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
>> INFO:         at
>> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>>
>> INFO:         at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
>>
>> INFO:         at
>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
>>
>> INFO:         at
>> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
>>
>> INFO:         at
>> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
>>
>> INFO:         at
>> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
>>
>> INFO:         at
>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
>>
>> INFO:         at
>> com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
>>
>> INFO:         at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
>>
>> INFO:         at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
>>
>> INFO:         at
>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>>
>> INFO:         at
>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
>>
>> INFO:         at
>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
>>
>> INFO:         at
>> com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
>>
>> INFO:         at
>> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
>> SEVERE: javax.mail.MessagingException: IOException while sending
>> message;
>>  nested exception is:
>>        javax.activation.UnsupportedDataTypeException: no object DCH
>> for MIME type text/plain
>> SEVERE:         at
>> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:676)
>> SEVERE:         at demo.FeedbackBean.sendMail(FeedbackBean.java:221)
>> SEVERE:         at demo.FeedbackBean.sendFeedback(FeedbackBean.java:121)
>> SEVERE:         at
>> org.apache.jsp.feedbackThanks_jsp._jspService(feedbackThanks_jsp.java
>> from :69)
>> SEVERE:         at
>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
>> SEVERE:         at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>> SEVERE:         at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>>
>> SEVERE:         at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
>> SEVERE:         at
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
>> SEVERE:         at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>> SEVERE:         at
>> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>
>> SEVERE:         at
>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
>> SEVERE:         at
>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>>
>> SEVERE:         at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
>> SEVERE:         at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>>
>> SEVERE:         at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
>> SEVERE:         at
>> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>>
>> SEVERE:         at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
>>
>> SEVERE:         at
>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
>>
>> SEVERE:         at
>> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
>>
>> SEVERE:         at
>> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
>>
>> SEVERE:         at
>> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
>>
>> SEVERE:         at
>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
>>
>> SEVERE:         at
>> com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
>>
>> SEVERE:         at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
>>
>> SEVERE:         at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
>>
>> SEVERE:         at
>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>>
>> SEVERE:         at
>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
>>
>> SEVERE:         at
>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
>>
>> SEVERE:         at
>> com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
>>
>> SEVERE:         at
>> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
>> SEVERE: Caused by: javax.activation.UnsupportedDataTypeException: no
>> object DCH for MIME type text/plain
>> SEVERE:         at
>> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
>> SEVERE:         at
>> javax.activation.DataHandler.writeTo(DataHandler.java:301)
>> SEVERE:         at
>> javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
>> SEVERE:         at
>> javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
>> SEVERE:         at
>> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
>> SEVERE:         ... 42 more
>>
>>
>> Bill Shannon wrote:
>>> Lance J. Andersen wrote:
>>>> Hi Bill,
>>>>
>>>> Thanks for the note.  the mailcap below looks the same as what i
>>>> have run the TCK against.
>>>
>>> My next guess is that it's a class loader problem and the class loader
>>> isn't finding the mailcap file.
>>>
>>> Can you set the system property "javax.activation.debug" to "true"?
>>> That will cause more debugging output to System.out, which will help
>>> narrow down the problem.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain with JavaMail and Prelude

Peter Williams-4
In reply to this post by Lance J. Andersen
Hi Lance,

You encountered CR 6456395 which is patched in JAF 1.1.1 and in JDK 6U10
(for JAF integrated into the JDK).

GlassFish V3 ships with JAF 1.1.1, as does GlassFish V2 onward in that
codebase.

The only reason you would encounter this bug under JDK 6 (pre U10) is if
V3 is preferring the JDK's JAF libraries over those shipped with the
server.  I don't think this should happen -- there is a V3 bug somewhere.

Assuming you were using the mail.jar included with V3, this could be a
bug with the OSGi fields on either mail.jar or activation.jar (the ones
included with V3) or it could be a V3 classloader bug in not properly
overriding JDK classes.  I'm not very familiar with how V3's classloader
works, so I can't say.  Please file an issue against V3 though.

The other difficulties you encountered are less serious (if no less
confusing) and much easier to deal with.  See below.

Lance J. Andersen wrote:

> Hi Bill, Peter,
>
> I installed Java SE 6U10 as Peter suggested.  I also updated my Java
> Home in domain.xml to be via the admin gui:
>      <java-config debug-options="-Xdebug
> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009"
> system-classpath="" classpath-suffix="" java-home="&quot;C:/Program
> Files/Java/jdk1.6.0_10/&quot;">
> Added the property
> <jvm-options>-Djavax.activation.debug=true</jvm-options>
>
>
> And I was still seeing the error.
>
>
> What is weird to me was that Prelude is using Java SE 6U06 JRE to
> boot  based on the jvm log file(BTW, why doe the JVM info get written
> to a separate file now).
> I am running everything from NB 6.5RC2 and I have the Project set to
> use Java SE 6U10 as well.  JAVA_HOME is *not* set in the System
> environment.
>
> So i happened to notice that the default Java SE for Netbeans was Java
> SE 1.6.06 which matches the stack trace below.  Unfortunately even if
> the project that you are running is set to use a JVM other than the
> default, processes such as the start of Prelude do not appear to honor
> that which get started by running that Project.
>
> So the next step was to modify my %NB_HOME%\etc\netbeans.conf file to
> use Java SE 1.6.10.
> Once I did that and rebooted, the JavaMail error went away.
>
>
> A couple of questions:
>
> -  Is there a reason that the java-config value for java-home is
> ignored when starting Prelude from Netbeans?
There wasn't time in the 6.5 schedule to support it.  On the list for
7.0.  Please file an issue (category serverplugins/glassfish_v3) against
netbeans if you'd like to track progress on this, or if you think we
should fix it in a NB 6.5 patch.  (Might be a good idea, but it depends
on how easy it is.)

> -  Where does the default for ${com.sun.aas.javaRoot} get derived from
> now which is the default for domain.xml in a fresh install
The V3 plugin for NetBeans sets this to refer to the JDK that started
NetBeans.  As for GlassFish, it might in asenv.conf, but I've been
hearing rumblings about no longer supporting it.  Maybe Kedar can answer
this.

> - Any particular reason why I must manually edit the netbeans.conf to
> change the default JVM when the JVM platform manager knows what is the
> default?  At a minimum we should allow for using a different JVM other
> than the default for starting services such as Prelude without
> requiring a reboot of netbeans.
You can also start NetBeans with the CLI option "--jdkhome /path/to/jdk"
> - If we have issues like this, shouldn't we require a minimum Java SE
> version and at least put a warning in the log at boot time?
I'm pretty sure you could have resolved this issue by running under JDK
5 as well.  It's not a "you need X jdk for this" sort of problem, or at
least, it shouldn't be.

As far as I know, you are the first person to seriously tackle running
an application on V3 Prelude that uses JavaMail, though I've had
customers ask how to do it.  Since mail resources are not supported by
V3 Prelude, not as many cycles were put into testing this area as
otherwise would have been.

-Peter

>
>
> I will put together a blog which hopefully save others from stumbling
> across this error and if they do at least know how to move forward.
>
> Thank you Bill and Peter with the pointers on this.
>
> Regards
> Lance
>
> Here is the log with the activation debugging enabled.
>
>
> INFO: Launching GlassFish on Apache Felix OSGi platform
> Welcome to Felix.
> =================
> INFO: Started bundle org.glassfish.common.glassfish-mbeanserver [9]
> INFO: Started bundle org.glassfish.core.kernel [79]
> INFO: Started bundle org.glassfish.common.common-util [59]
> INFO: Started bundle GlassFish-Application-Common-Module [33]
> INFO: APIClassLoader = Class Loader for Bundle
> [GlassFish-Application-Common-Module [33] ]
> no resource bundle found for version, using default GlassFish version
> INFO: registering service =
> org.apache.felix.framework.StartLevelImpl@dc67e, contract =
> org.osgi.service.startlevel.StartLevel, name = null
> INFO: registering service =
> org.apache.felix.framework.PackageAdminImpl@609959, contract =
> org.osgi.service.packageadmin.PackageAdmin, name = null
> INFO: Started bundle org.glassfish.branding.branding [37]
> INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
> INFO: Started bundle org.glassfish.common.internal-api [61]
> INFO: Started bundle org.glassfish.admin.config-api [42]
> INFO: Started bundle org.glassfish.registration.glassfish-registration
> [73]
> INFO: Started bundle org.glassfish.deployment.deployment-autodeploy [19]
> INFO: Started bundle org.glassfish.deployment.deployment-common [69]
> INFO: Started bundle org.glassfish.flashlight.flashlight-framework [72]
> INFO: Listening on port 8080
> INFO: Network listener http-listener-2 on port 8181 disabled per
> domain.xml
> INFO: Listening on port 4848
> INFO: Started bundle org.glassfish.common.container-common [83]
> INFO: The Admin Console is already installed, but not yet loaded.
> INFO: Started bundle org.glassfish.persistence.jpa-connector [24]
> INFO: Started bundle org.glassfish.scripting.gf-jruby-connector [12]
> INFO: Started bundle org.glassfish.web.gf-web-connector [99]
> INFO: Started bundle org.glassfish.security.security [21]
> INFO: security.secmgroff
> INFO: Started bundle org.glassfish.security.securitycommon [23]
> INFO: Security startup service called
> INFO: Started bundle org.glassfish.security.realms [39]
> INFO: Security service(s) started successfully....
> INFO: registering service =
> org.glassfish.web.DirContextURLStreamHandlerService@4d41e2, contract =
> org.osgi.service.url.URLStreamHandlerService, name = null
> INFO: Started bundle org.glassfish.web.web-glue [91]
> INFO: Started bundle org.glassfish.common.glassfish-naming [65]
> INFO: Started bundle org.glassfish.common.glassfish-api [84]
> INFO: Started bundle org.glassfish.connectors.connectors-runtime [27]
> INFO: Started bundle org.glassfish.transaction.jta [7]
> INFO: Created HTTP listener http-listener-1 on port 8080
> INFO: Created HTTP listener admin-listener on port 4848
> INFO: Created virtual server server
> INFO: Created virtual server __asadmin
> INFO: Started bundle org.glassfish.deployment.dol [10]
> INFO: Started bundle org.glassfish.web.web-core [108]
> INFO: Dual registration of jndi stream handler: factory already defined
> INFO: Unknown loader 91.0 class
> org.apache.felix.framework.searchpolicy.ContentClassLoader
> INFO: Started bundle org.glassfish.web.jstl-connector [97]
> INFO: Started bundle org.glassfish.web.jsf-connector [104]
> INFO: Using
> com.sun.enterprise.transaction.JavaEETransactionManagerSimplifiedDelegate
> as the delegate
> INFO: Started bundle org.glassfish.connectors.work-management [45]
> INFO: Started bundle org.glassfish.common.glassfish-ee-api [70]
> INFO: Started bundle org.glassfish.connectors.connectors-internal-api
> [89]
> INFO: Started JMXConnector, JMXService URL =
> service:jmx:rmi:///jndi/rmi://owner-8zgjfic0j:8686/jmxrmi
> INFO: policy.loading
> INFO: Started bundle org.glassfish.web.war-util [100]
> INFO: Started bundle org.glassfish.security.websecurity [93]
> INFO: Unknown loader
> org.glassfish.internal.api.DelegatingClassLoader@11ce2ad class
> org.glassfish.internal.api.DelegatingClassLoader
> INFO: Loading application PreludeJavaMail at /PreludeJavaMail
> INFO: Loading PreludeJavaMail Application done is 7952 ms
> INFO: GlassFish v3 Prelude startup time : Felix(17655ms) startup
> services(9474ms) total(27129ms)
> INFO: in FeedbackBean()
> INFO: in FeedbackBean.setSender(), sender=[hidden email]
> INFO: in FeedbackBean.setMailingList(), mailingList=N
> INFO: in FeedbackBean.setComment(), comment=d
> INFO: in FeedbackBean.sendFeedback()
> INFO: Mail Host:zipzonetennis.com
> Mail Port:587
> Mail User:[hidden email]
> Mail Password:tenn1s
> Mail Protocol:smtp
> Mail Host:zipzonetennis.com
> To:+[hidden email]
> from:+[hidden email]
> INFO: [sender=[hidden email], subject 0]
> INFO: DEBUG: JavaMail version 1.4.1
> INFO: DEBUG: not loading file: C:\Program
> Files\Java\jdk1.6.0_06\jre\lib\javamail.providers
> INFO: DEBUG: java.io.FileNotFoundException: C:\Program
> Files\Java\jdk1.6.0_06\jre\lib\javamail.providers (The system cannot
> find the file specified)
> INFO: DEBUG: !anyLoaded
> INFO: DEBUG: not loading resource: /META-INF/javamail.providers
> INFO: DEBUG: successfully loaded resource:
> /META-INF/javamail.default.providers
> INFO: DEBUG: Tables of loaded providers
> INFO: DEBUG: Providers Listed By Class Name:
> {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
> Microsystems, Inc],
> com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
> Microsystems, Inc],
> com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
> Microsystems, Inc],
> com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
> Microsystems, Inc],
> com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
> Microsystems, Inc],
> com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
> Microsystems, Inc]}
> INFO: DEBUG: Providers Listed By Protocol:
> {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
> Microsystems, Inc],
> imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
> Microsystems, Inc],
> smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
> Microsystems, Inc],
> pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
> Microsystems, Inc],
> pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
> Microsystems, Inc],
> smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
> Microsystems, Inc]}
> INFO: DEBUG: successfully loaded resource:
> /META-INF/javamail.default.address.map
> INFO: DEBUG: !anyLoaded
> INFO: DEBUG: not loading resource: /META-INF/javamail.address.map
> INFO: DEBUG: not loading file: C:\Program
> Files\Java\jdk1.6.0_06\jre\lib\javamail.address.map
> INFO: DEBUG: java.io.FileNotFoundException: C:\Program
> Files\Java\jdk1.6.0_06\jre\lib\javamail.address.map (The system cannot
> find the file specified)
> INFO: DEBUG: setDebug: JavaMail version 1.4.1
> INFO: DEBUG: getProvider() returning
> javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
> Microsystems, Inc]
> INFO: DEBUG SMTP: useEhlo true, useAuth true
> INFO: DEBUG SMTP: trying to connect to host "zipzonetennis.com", port
> 587, isSSL false
> INFO: 220-kapo.lunarmania.com ESMTP Exim 4.69 #1 Tue, 11 Nov 2008
> 07:18:12 -0800
> 220-We do not authorize the use of this system to transport unsolicited,
> 220 and/or bulk e-mail.
> INFO: DEBUG SMTP: connected to host "zipzonetennis.com", port: 587
> INFO: EHLO owner-8zgjfic0j
> INFO: 250-kapo.lunarmania.com Hello
> pool-70-22-243-89.bos.east.verizon.net [70.22.243.89]
> 250-SIZE 52428800
> 250-PIPELINING
> 250-AUTH PLAIN LOGIN
> 250-STARTTLS
> 250 HELP
> INFO: DEBUG SMTP: Found extension "SIZE", arg "52428800"
> INFO: DEBUG SMTP: Found extension "PIPELINING", arg ""
> INFO: DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"
> INFO: DEBUG SMTP: Found extension "STARTTLS", arg ""
> INFO: DEBUG SMTP: Found extension "HELP", arg ""
> INFO: DEBUG SMTP: Attempt to authenticate
> INFO: AUTH LOGIN
> INFO: 334 VXNlcm5hbWU6
> INFO: bGFuY2VAemlwem9uZXRlbm5pcy5jb20=
> INFO: 334 UGFzc3dvcmQ6
> INFO: dGVubjFz
> INFO: 235 Authentication succeeded
> INFO: DEBUG SMTP: use8bit false
> INFO: MAIL FROM:<[hidden email]>
> INFO: 250 OK
> INFO: RCPT TO:<[hidden email]>
> INFO: 250 Accepted
> INFO: DEBUG SMTP: Verified Addresses
> INFO: DEBUG SMTP:   [hidden email]
> INFO: DATA
> INFO: 354 Enter message, ending with "." on a line by itself
> INFO: MailcapCommandMap: load HOME
> INFO: new MailcapFile: file C:\Documents and Settings\Owner\.mailcap
> INFO: MailcapCommandMap: load SYS
> INFO: new MailcapFile: file C:\Program
> Files\Java\jdk1.6.0_06\jre\lib\mailcap
> INFO: MailcapCommandMap: load JAR
> INFO: MailcapCommandMap: !anyLoaded
> INFO: MailcapCommandMap: not loading mailcap file: /META-INF/mailcap
> INFO: MailcapCommandMap: load DEF
> INFO: new MailcapFile: InputStream
> INFO: parse: image/gif;;                
> x-java-view=com.sun.activation.viewers.ImageViewer
> INFO:   Type: image/gif
> INFO:     Command: view, Class: com.sun.activation.viewers.ImageViewer
> INFO: parse: image/jpeg;;                
> x-java-view=com.sun.activation.viewers.ImageViewer
> INFO:   Type: image/jpeg
> INFO:     Command: view, Class: com.sun.activation.viewers.ImageViewer
> INFO: parse: text/*;;                
> x-java-view=com.sun.activation.viewers.TextViewer
> INFO:   Type: text/*
> INFO:     Command: view, Class: com.sun.activation.viewers.TextViewer
> INFO: parse: text/*;;                
> x-java-edit=com.sun.activation.viewers.TextEditor
> INFO:   Type: text/*
> INFO:     Command: edit, Class: com.sun.activation.viewers.TextEditor
> INFO: Merging commands for type text/*
> INFO: MailcapCommandMap: successfully loaded mailcap file:
> /META-INF/mailcap.default
> INFO: MailcapCommandMap: createDataContentHandler for text/plain
> INFO:   search DB #1
> INFO:   search fallback DB #1
> INFO: javax.activation.UnsupportedDataTypeException: no object DCH for
> MIME type text/plain
> INFO:         at
> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
> INFO:         at
> javax.activation.DataHandler.writeTo(DataHandler.java:301)
> INFO:         at
> javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
> INFO:         at
> javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
> INFO:         at
> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
> INFO:         at demo.FeedbackBean.sendMail(FeedbackBean.java:221)
> INFO:         at demo.FeedbackBean.sendFeedback(FeedbackBean.java:121)
> INFO:         at
> org.apache.jsp.feedbackThanks_jsp._jspService(feedbackThanks_jsp.java
> from :69)
> INFO:         at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
> INFO:         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> INFO:         at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>
> INFO:         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
> INFO:         at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
> INFO:         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> INFO:         at
> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
>
> INFO:         at
> org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
>
> INFO:         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
>
> INFO:         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>
> INFO:         at
> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
> INFO:         at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>
> INFO:         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>
> INFO:         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
> INFO:         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>
> INFO:         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>
> INFO:         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
> INFO:         at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>
> INFO:         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
>
> INFO:         at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
>
> INFO:         at
> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
>
> INFO:         at
> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
>
> INFO:         at
> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
>
> INFO:         at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
>
> INFO:         at
> com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
>
> INFO:         at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
>
> INFO:         at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
>
> INFO:         at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
> INFO:         at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
>
> INFO:         at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
>
> INFO:         at
> com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
>
> INFO:         at
> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
> SEVERE: javax.mail.MessagingException: IOException while sending message;
>  nested exception is:
>        javax.activation.UnsupportedDataTypeException: no object DCH
> for MIME type text/plain
> SEVERE:         at
> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:676)
> SEVERE:         at demo.FeedbackBean.sendMail(FeedbackBean.java:221)
> SEVERE:         at demo.FeedbackBean.sendFeedback(FeedbackBean.java:121)
> SEVERE:         at
> org.apache.jsp.feedbackThanks_jsp._jspService(feedbackThanks_jsp.java
> from :69)
> SEVERE:         at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
> SEVERE:         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> SEVERE:         at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>
> SEVERE:         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
> SEVERE:         at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
> SEVERE:         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> SEVERE:         at
> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
>
> SEVERE:         at
> org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
>
> SEVERE:         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
>
> SEVERE:         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>
> SEVERE:         at
> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
> SEVERE:         at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>
> SEVERE:         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>
> SEVERE:         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
> SEVERE:         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>
> SEVERE:         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>
> SEVERE:         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
> SEVERE:         at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>
> SEVERE:         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
>
> SEVERE:         at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
>
> SEVERE:         at
> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
>
> SEVERE:         at
> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
>
> SEVERE:         at
> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
>
> SEVERE:         at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
>
> SEVERE:         at
> com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
>
> SEVERE:         at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
>
> SEVERE:         at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
>
> SEVERE:         at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
> SEVERE:         at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
>
> SEVERE:         at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
>
> SEVERE:         at
> com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
>
> SEVERE:         at
> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
> SEVERE: Caused by: javax.activation.UnsupportedDataTypeException: no
> object DCH for MIME type text/plain
> SEVERE:         at
> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
> SEVERE:         at
> javax.activation.DataHandler.writeTo(DataHandler.java:301)
> SEVERE:         at
> javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
> SEVERE:         at
> javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
> SEVERE:         at
> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
> SEVERE:         ... 42 more
>
>
> Bill Shannon wrote:
>> Lance J. Andersen wrote:
>>> Hi Bill,
>>>
>>> Thanks for the note.  the mailcap below looks the same as what i
>>> have run the TCK against.
>>
>> My next guess is that it's a class loader problem and the class loader
>> isn't finding the mailcap file.
>>
>> Can you set the system property "javax.activation.debug" to "true"?
>> That will cause more debugging output to System.out, which will help
>> narrow down the problem.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain with JavaMail and Prelude

Kedar Mhaswade
In reply to this post by Lance J. Andersen
Lance,

Ah. I am not familiar with how NB starts the server. They use
java -jar I guess (but I am not sure) and I don't know which
java they use.

See Peter's response for other details.

My procedure of how server chooses a JVM applies only when
the server is started with "asadmin start-domain domain-name".

I guess I should blog about it. (I guess Peter -- you should also
blog about how NB starts the domain that's controlled by NB).


Regards,
Kedar

Lance J. Andersen wrote:

> Hi Kedar,
>
> Thank you for the note.
>
> Kedar Mhaswade wrote:
>> Lance,
>>
>> There are two options.
>>
>> - change java-home as: java-home="C:/Program Files/Java/jdk1.6.0_10"
>>   in domain.xml.
> I did this setting it to Java SE 6U6 and it still started with the NB
> default JVM which was jdk1.6.0_10
>> - remove java-home value from domain.xml and replace
>>   AS_JAVA=C:/Program Files/Java/jdk1.6.0_10 in install-dir/config
>>   asenv file.
> I did this setting it to Java SE 6U6 and it still started with the NB
> default JVM the NB default JVM which was jdk1.6.0_10
>>
>> By doing either of this, you should be able to see that server uses
>> the "intended" Java.
>>
> no luck :-(
>> It looks to me that &quot; is making launcher think that it is not
>> a valid value.
> I did not enter the &quote; myself,  the admin-gui did this when I
> entered the above "C:/Program Files/Java/jdk1.6.0_10"
>
> If i do not enter the quotes, the entry looks like
>      <java-config debug-options="-Xdebug
> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009"
> system-classpath="" classpath-suffix="" java-home="C:/Program
> Files/Java/jdk1.6.0_06">
>
> The admin gui should tell me to not enter quotes as on the jvm option
> pages, it does tell me to enter quotes so it is not intuitive as to what
> needs to be done.
>
> Shouldn't i have then gotten a warning saying that the location could
> not be found?
>
> Regards
> Lance
>>
>> Also, an alternate way of seeing which Java server uses -- run:
>> asadmin generate-jvm-report.
>>
>> Thanks,
>> Kedar
>>
>>
>> Lance J. Andersen wrote:
>>> Hi Bill, Peter,
>>>
>>> I installed Java SE 6U10 as Peter suggested.  I also updated my Java
>>> Home in domain.xml to be via the admin gui:
>>>      <java-config debug-options="-Xdebug
>>> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009"
>>> system-classpath="" classpath-suffix="" java-home="&quot;C:/Program
>>> Files/Java/jdk1.6.0_10/&quot;">
>>> Added the property
>>> <jvm-options>-Djavax.activation.debug=true</jvm-options>
>>>
>>>
>>> And I was still seeing the error.
>>>
>>>
>>> What is weird to me was that Prelude is using Java SE 6U06 JRE to
>>> boot  based on the jvm log file(BTW, why doe the JVM info get written
>>> to a separate file now).
>>> I am running everything from NB 6.5RC2 and I have the Project set to
>>> use Java SE 6U10 as well.  JAVA_HOME is *not* set in the System
>>> environment.
>>>
>>> So i happened to notice that the default Java SE for Netbeans was
>>> Java SE 1.6.06 which matches the stack trace below.  Unfortunately
>>> even if the project that you are running is set to use a JVM other
>>> than the default, processes such as the start of Prelude do not
>>> appear to honor that which get started by running that Project.
>>>
>>> So the next step was to modify my %NB_HOME%\etc\netbeans.conf file to
>>> use Java SE 1.6.10.
>>> Once I did that and rebooted, the JavaMail error went away.
>>>
>>>
>>> A couple of questions:
>>>
>>> -  Is there a reason that the java-config value for java-home is
>>> ignored when starting Prelude from Netbeans?
>>> -  Where does the default for ${com.sun.aas.javaRoot} get derived
>>> from now which is the default for domain.xml in a fresh install
>>> - Any particular reason why I must manually edit the netbeans.conf to
>>> change the default JVM when the JVM platform manager knows what is
>>> the default?  At a minimum we should allow for using a different JVM
>>> other than the default for starting services such as Prelude without
>>> requiring a reboot of netbeans.
>>> - If we have issues like this, shouldn't we require a minimum Java SE
>>> version and at least put a warning in the log at boot time?
>>>
>>>
>>> I will put together a blog which hopefully save others from stumbling
>>> across this error and if they do at least know how to move forward.
>>>
>>> Thank you Bill and Peter with the pointers on this.
>>>
>>> Regards
>>> Lance
>>>
>>> Here is the log with the activation debugging enabled.
>>>
>>>
>>> INFO: Launching GlassFish on Apache Felix OSGi platform
>>> Welcome to Felix.
>>> =================
>>> INFO: Started bundle org.glassfish.common.glassfish-mbeanserver [9]
>>> INFO: Started bundle org.glassfish.core.kernel [79]
>>> INFO: Started bundle org.glassfish.common.common-util [59]
>>> INFO: Started bundle GlassFish-Application-Common-Module [33]
>>> INFO: APIClassLoader = Class Loader for Bundle
>>> [GlassFish-Application-Common-Module [33] ]
>>> no resource bundle found for version, using default GlassFish version
>>> INFO: registering service =
>>> org.apache.felix.framework.StartLevelImpl@dc67e, contract =
>>> org.osgi.service.startlevel.StartLevel, name = null
>>> INFO: registering service =
>>> org.apache.felix.framework.PackageAdminImpl@609959, contract =
>>> org.osgi.service.packageadmin.PackageAdmin, name = null
>>> INFO: Started bundle org.glassfish.branding.branding [37]
>>> INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
>>> INFO: Started bundle org.glassfish.common.internal-api [61]
>>> INFO: Started bundle org.glassfish.admin.config-api [42]
>>> INFO: Started bundle
>>> org.glassfish.registration.glassfish-registration [73]
>>> INFO: Started bundle org.glassfish.deployment.deployment-autodeploy [19]
>>> INFO: Started bundle org.glassfish.deployment.deployment-common [69]
>>> INFO: Started bundle org.glassfish.flashlight.flashlight-framework [72]
>>> INFO: Listening on port 8080
>>> INFO: Network listener http-listener-2 on port 8181 disabled per
>>> domain.xml
>>> INFO: Listening on port 4848
>>> INFO: Started bundle org.glassfish.common.container-common [83]
>>> INFO: The Admin Console is already installed, but not yet loaded.
>>> INFO: Started bundle org.glassfish.persistence.jpa-connector [24]
>>> INFO: Started bundle org.glassfish.scripting.gf-jruby-connector [12]
>>> INFO: Started bundle org.glassfish.web.gf-web-connector [99]
>>> INFO: Started bundle org.glassfish.security.security [21]
>>> INFO: security.secmgroff
>>> INFO: Started bundle org.glassfish.security.securitycommon [23]
>>> INFO: Security startup service called
>>> INFO: Started bundle org.glassfish.security.realms [39]
>>> INFO: Security service(s) started successfully....
>>> INFO: registering service =
>>> org.glassfish.web.DirContextURLStreamHandlerService@4d41e2, contract
>>> = org.osgi.service.url.URLStreamHandlerService, name = null
>>> INFO: Started bundle org.glassfish.web.web-glue [91]
>>> INFO: Started bundle org.glassfish.common.glassfish-naming [65]
>>> INFO: Started bundle org.glassfish.common.glassfish-api [84]
>>> INFO: Started bundle org.glassfish.connectors.connectors-runtime [27]
>>> INFO: Started bundle org.glassfish.transaction.jta [7]
>>> INFO: Created HTTP listener http-listener-1 on port 8080
>>> INFO: Created HTTP listener admin-listener on port 4848
>>> INFO: Created virtual server server
>>> INFO: Created virtual server __asadmin
>>> INFO: Started bundle org.glassfish.deployment.dol [10]
>>> INFO: Started bundle org.glassfish.web.web-core [108]
>>> INFO: Dual registration of jndi stream handler: factory already defined
>>> INFO: Unknown loader 91.0 class
>>> org.apache.felix.framework.searchpolicy.ContentClassLoader
>>> INFO: Started bundle org.glassfish.web.jstl-connector [97]
>>> INFO: Started bundle org.glassfish.web.jsf-connector [104]
>>> INFO: Using
>>> com.sun.enterprise.transaction.JavaEETransactionManagerSimplifiedDelegate
>>> as the delegate
>>> INFO: Started bundle org.glassfish.connectors.work-management [45]
>>> INFO: Started bundle org.glassfish.common.glassfish-ee-api [70]
>>> INFO: Started bundle org.glassfish.connectors.connectors-internal-api
>>> [89]
>>> INFO: Started JMXConnector, JMXService URL =
>>> service:jmx:rmi:///jndi/rmi://owner-8zgjfic0j:8686/jmxrmi
>>> INFO: policy.loading
>>> INFO: Started bundle org.glassfish.web.war-util [100]
>>> INFO: Started bundle org.glassfish.security.websecurity [93]
>>> INFO: Unknown loader
>>> org.glassfish.internal.api.DelegatingClassLoader@11ce2ad class
>>> org.glassfish.internal.api.DelegatingClassLoader
>>> INFO: Loading application PreludeJavaMail at /PreludeJavaMail
>>> INFO: Loading PreludeJavaMail Application done is 7952 ms
>>> INFO: GlassFish v3 Prelude startup time : Felix(17655ms) startup
>>> services(9474ms) total(27129ms)
>>> INFO: in FeedbackBean()
>>> INFO: in FeedbackBean.setSender(), sender=[hidden email]
>>> INFO: in FeedbackBean.setMailingList(), mailingList=N
>>> INFO: in FeedbackBean.setComment(), comment=d
>>> INFO: in FeedbackBean.sendFeedback()
>>> INFO: Mail Host:zipzonetennis.com
>>> Mail Port:587
>>> Mail User:[hidden email]
>>> Mail Password:tenn1s
>>> Mail Protocol:smtp
>>> Mail Host:zipzonetennis.com
>>> To:+[hidden email]
>>> from:+[hidden email]
>>> INFO: [sender=[hidden email], subject 0]
>>> INFO: DEBUG: JavaMail version 1.4.1
>>> INFO: DEBUG: not loading file: C:\Program
>>> Files\Java\jdk1.6.0_06\jre\lib\javamail.providers
>>> INFO: DEBUG: java.io.FileNotFoundException: C:\Program
>>> Files\Java\jdk1.6.0_06\jre\lib\javamail.providers (The system cannot
>>> find the file specified)
>>> INFO: DEBUG: !anyLoaded
>>> INFO: DEBUG: not loading resource: /META-INF/javamail.providers
>>> INFO: DEBUG: successfully loaded resource:
>>> /META-INF/javamail.default.providers
>>> INFO: DEBUG: Tables of loaded providers
>>> INFO: DEBUG: Providers Listed By Class Name:
>>> {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
>>> Microsystems, Inc],
>>> com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
>>> Microsystems, Inc],
>>> com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
>>> Microsystems, Inc],
>>> com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
>>> Microsystems, Inc],
>>> com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
>>> Microsystems, Inc],
>>> com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
>>> Microsystems, Inc]}
>>> INFO: DEBUG: Providers Listed By Protocol:
>>> {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
>>> Microsystems, Inc],
>>> imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
>>> Microsystems, Inc],
>>> smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
>>> Microsystems, Inc],
>>> pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
>>> Microsystems, Inc],
>>> pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
>>> Microsystems, Inc],
>>> smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
>>> Microsystems, Inc]}
>>> INFO: DEBUG: successfully loaded resource:
>>> /META-INF/javamail.default.address.map
>>> INFO: DEBUG: !anyLoaded
>>> INFO: DEBUG: not loading resource: /META-INF/javamail.address.map
>>> INFO: DEBUG: not loading file: C:\Program
>>> Files\Java\jdk1.6.0_06\jre\lib\javamail.address.map
>>> INFO: DEBUG: java.io.FileNotFoundException: C:\Program
>>> Files\Java\jdk1.6.0_06\jre\lib\javamail.address.map (The system
>>> cannot find the file specified)
>>> INFO: DEBUG: setDebug: JavaMail version 1.4.1
>>> INFO: DEBUG: getProvider() returning
>>> javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
>>> Microsystems, Inc]
>>> INFO: DEBUG SMTP: useEhlo true, useAuth true
>>> INFO: DEBUG SMTP: trying to connect to host "zipzonetennis.com", port
>>> 587, isSSL false
>>> INFO: 220-kapo.lunarmania.com ESMTP Exim 4.69 #1 Tue, 11 Nov 2008
>>> 07:18:12 -0800
>>> 220-We do not authorize the use of this system to transport unsolicited,
>>> 220 and/or bulk e-mail.
>>> INFO: DEBUG SMTP: connected to host "zipzonetennis.com", port: 587
>>> INFO: EHLO owner-8zgjfic0j
>>> INFO: 250-kapo.lunarmania.com Hello
>>> pool-70-22-243-89.bos.east.verizon.net [70.22.243.89]
>>> 250-SIZE 52428800
>>> 250-PIPELINING
>>> 250-AUTH PLAIN LOGIN
>>> 250-STARTTLS
>>> 250 HELP
>>> INFO: DEBUG SMTP: Found extension "SIZE", arg "52428800"
>>> INFO: DEBUG SMTP: Found extension "PIPELINING", arg ""
>>> INFO: DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"
>>> INFO: DEBUG SMTP: Found extension "STARTTLS", arg ""
>>> INFO: DEBUG SMTP: Found extension "HELP", arg ""
>>> INFO: DEBUG SMTP: Attempt to authenticate
>>> INFO: AUTH LOGIN
>>> INFO: 334 VXNlcm5hbWU6
>>> INFO: bGFuY2VAemlwem9uZXRlbm5pcy5jb20=
>>> INFO: 334 UGFzc3dvcmQ6
>>> INFO: dGVubjFz
>>> INFO: 235 Authentication succeeded
>>> INFO: DEBUG SMTP: use8bit false
>>> INFO: MAIL FROM:<[hidden email]>
>>> INFO: 250 OK
>>> INFO: RCPT TO:<[hidden email]>
>>> INFO: 250 Accepted
>>> INFO: DEBUG SMTP: Verified Addresses
>>> INFO: DEBUG SMTP:   [hidden email]
>>> INFO: DATA
>>> INFO: 354 Enter message, ending with "." on a line by itself
>>> INFO: MailcapCommandMap: load HOME
>>> INFO: new MailcapFile: file C:\Documents and Settings\Owner\.mailcap
>>> INFO: MailcapCommandMap: load SYS
>>> INFO: new MailcapFile: file C:\Program
>>> Files\Java\jdk1.6.0_06\jre\lib\mailcap
>>> INFO: MailcapCommandMap: load JAR
>>> INFO: MailcapCommandMap: !anyLoaded
>>> INFO: MailcapCommandMap: not loading mailcap file: /META-INF/mailcap
>>> INFO: MailcapCommandMap: load DEF
>>> INFO: new MailcapFile: InputStream
>>> INFO: parse: image/gif;;                
>>> x-java-view=com.sun.activation.viewers.ImageViewer
>>> INFO:   Type: image/gif
>>> INFO:     Command: view, Class: com.sun.activation.viewers.ImageViewer
>>> INFO: parse: image/jpeg;;                
>>> x-java-view=com.sun.activation.viewers.ImageViewer
>>> INFO:   Type: image/jpeg
>>> INFO:     Command: view, Class: com.sun.activation.viewers.ImageViewer
>>> INFO: parse: text/*;;                
>>> x-java-view=com.sun.activation.viewers.TextViewer
>>> INFO:   Type: text/*
>>> INFO:     Command: view, Class: com.sun.activation.viewers.TextViewer
>>> INFO: parse: text/*;;                
>>> x-java-edit=com.sun.activation.viewers.TextEditor
>>> INFO:   Type: text/*
>>> INFO:     Command: edit, Class: com.sun.activation.viewers.TextEditor
>>> INFO: Merging commands for type text/*
>>> INFO: MailcapCommandMap: successfully loaded mailcap file:
>>> /META-INF/mailcap.default
>>> INFO: MailcapCommandMap: createDataContentHandler for text/plain
>>> INFO:   search DB #1
>>> INFO:   search fallback DB #1
>>> INFO: javax.activation.UnsupportedDataTypeException: no object DCH
>>> for MIME type text/plain
>>> INFO:         at
>>> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
>>> INFO:         at
>>> javax.activation.DataHandler.writeTo(DataHandler.java:301)
>>> INFO:         at
>>> javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
>>> INFO:         at
>>> javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
>>> INFO:         at
>>> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
>>> INFO:         at demo.FeedbackBean.sendMail(FeedbackBean.java:221)
>>> INFO:         at demo.FeedbackBean.sendFeedback(FeedbackBean.java:121)
>>> INFO:         at
>>> org.apache.jsp.feedbackThanks_jsp._jspService(feedbackThanks_jsp.java
>>> from :69)
>>> INFO:         at
>>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
>>> INFO:         at
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>>> INFO:         at
>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>>>
>>> INFO:         at
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
>>> INFO:         at
>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
>>> INFO:         at
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>>> INFO:         at
>>> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
>>>
>>> INFO:         at
>>> org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
>>>
>>> INFO:         at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
>>>
>>> INFO:         at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
>>>
>>> INFO:         at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>>
>>> INFO:         at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>>
>>> INFO:         at
>>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
>>> INFO:         at
>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>>
>>> INFO:         at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
>>>
>>> INFO:         at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>>
>>> INFO:         at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>>
>>> INFO:         at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>>>
>>> INFO:         at
>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
>>> INFO:         at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
>>>
>>> INFO:         at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>>
>>> INFO:         at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>>
>>> INFO:         at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>>>
>>> INFO:         at
>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
>>> INFO:         at
>>> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>>>
>>> INFO:         at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
>>>
>>> INFO:         at
>>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
>>>
>>> INFO:         at
>>> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
>>>
>>> INFO:         at
>>> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
>>>
>>> INFO:         at
>>> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
>>>
>>> INFO:         at
>>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
>>>
>>> INFO:         at
>>> com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
>>>
>>> INFO:         at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
>>>
>>> INFO:         at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
>>>
>>> INFO:         at
>>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>>>
>>> INFO:         at
>>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
>>>
>>> INFO:         at
>>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
>>>
>>> INFO:         at
>>> com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
>>>
>>> INFO:         at
>>> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
>>> SEVERE: javax.mail.MessagingException: IOException while sending
>>> message;
>>>  nested exception is:
>>>        javax.activation.UnsupportedDataTypeException: no object DCH
>>> for MIME type text/plain
>>> SEVERE:         at
>>> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:676)
>>> SEVERE:         at demo.FeedbackBean.sendMail(FeedbackBean.java:221)
>>> SEVERE:         at demo.FeedbackBean.sendFeedback(FeedbackBean.java:121)
>>> SEVERE:         at
>>> org.apache.jsp.feedbackThanks_jsp._jspService(feedbackThanks_jsp.java
>>> from :69)
>>> SEVERE:         at
>>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
>>> SEVERE:         at
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>>> SEVERE:         at
>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>>>
>>> SEVERE:         at
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
>>> SEVERE:         at
>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
>>> SEVERE:         at
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>>> SEVERE:         at
>>> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
>>>
>>> SEVERE:         at
>>> org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
>>>
>>> SEVERE:         at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
>>>
>>> SEVERE:         at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
>>>
>>> SEVERE:         at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>>
>>> SEVERE:         at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>>
>>> SEVERE:         at
>>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
>>> SEVERE:         at
>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>>
>>> SEVERE:         at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
>>>
>>> SEVERE:         at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>>
>>> SEVERE:         at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>>
>>> SEVERE:         at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>>>
>>> SEVERE:         at
>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
>>> SEVERE:         at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
>>>
>>> SEVERE:         at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>>
>>> SEVERE:         at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>>
>>> SEVERE:         at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>>>
>>> SEVERE:         at
>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
>>> SEVERE:         at
>>> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>>>
>>> SEVERE:         at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
>>>
>>> SEVERE:         at
>>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
>>>
>>> SEVERE:         at
>>> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
>>>
>>> SEVERE:         at
>>> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
>>>
>>> SEVERE:         at
>>> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
>>>
>>> SEVERE:         at
>>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
>>>
>>> SEVERE:         at
>>> com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
>>>
>>> SEVERE:         at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
>>>
>>> SEVERE:         at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
>>>
>>> SEVERE:         at
>>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>>>
>>> SEVERE:         at
>>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
>>>
>>> SEVERE:         at
>>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
>>>
>>> SEVERE:         at
>>> com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
>>>
>>> SEVERE:         at
>>> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
>>> SEVERE: Caused by: javax.activation.UnsupportedDataTypeException: no
>>> object DCH for MIME type text/plain
>>> SEVERE:         at
>>> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
>>> SEVERE:         at
>>> javax.activation.DataHandler.writeTo(DataHandler.java:301)
>>> SEVERE:         at
>>> javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
>>> SEVERE:         at
>>> javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
>>> SEVERE:         at
>>> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
>>> SEVERE:         ... 42 more
>>>
>>>
>>> Bill Shannon wrote:
>>>> Lance J. Andersen wrote:
>>>>> Hi Bill,
>>>>>
>>>>> Thanks for the note.  the mailcap below looks the same as what i
>>>>> have run the TCK against.
>>>>
>>>> My next guess is that it's a class loader problem and the class loader
>>>> isn't finding the mailcap file.
>>>>
>>>> Can you set the system property "javax.activation.debug" to "true"?
>>>> That will cause more debugging output to System.out, which will help
>>>> narrow down the problem.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [hidden email]
>>>> For additional commands, e-mail: [hidden email]
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain with JavaMail and Prelude

Lance J. Andersen
In reply to this post by Peter Williams-4
Hi Peter,


Peter Williams wrote:

> Hi Lance,
>
> You encountered CR 6456395 which is patched in JAF 1.1.1 and in JDK
> 6U10 (for JAF integrated into the JDK).
>
> GlassFish V3 ships with JAF 1.1.1, as does GlassFish V2 onward in that
> codebase.
>
> The only reason you would encounter this bug under JDK 6 (pre U10) is
> if V3 is preferring the JDK's JAF libraries over those shipped with
> the server.  I don't think this should happen -- there is a V3 bug
> somewhere.
>
> Assuming you were using the mail.jar included with V3, this could be a
> bug with the OSGi fields on either mail.jar or activation.jar (the
> ones included with V3) or it could be a V3 classloader bug in not
> properly overriding JDK classes.
Yes I am using the default JavaMail and activation jars in V3
> I'm not very familiar with how V3's classloader works, so I can't
> say.  Please file an issue against V3 though.
Issue 6753 was logged

>
> The other difficulties you encountered are less serious (if no less
> confusing) and much easier to deal with.  See below.
>
> Lance J. Andersen wrote:
>> Hi Bill, Peter,
>>
>> I installed Java SE 6U10 as Peter suggested.  I also updated my Java
>> Home in domain.xml to be via the admin gui:
>>      <java-config debug-options="-Xdebug
>> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009"
>> system-classpath="" classpath-suffix="" java-home="&quot;C:/Program
>> Files/Java/jdk1.6.0_10/&quot;">
>> Added the property
>> <jvm-options>-Djavax.activation.debug=true</jvm-options>
>>
>>
>> And I was still seeing the error.
>>
>>
>> What is weird to me was that Prelude is using Java SE 6U06 JRE to
>> boot  based on the jvm log file(BTW, why doe the JVM info get written
>> to a separate file now).
>> I am running everything from NB 6.5RC2 and I have the Project set to
>> use Java SE 6U10 as well.  JAVA_HOME is *not* set in the System
>> environment.
>>
>> So i happened to notice that the default Java SE for Netbeans was
>> Java SE 1.6.06 which matches the stack trace below.  Unfortunately
>> even if the project that you are running is set to use a JVM other
>> than the default, processes such as the start of Prelude do not
>> appear to honor that which get started by running that Project.
>>
>> So the next step was to modify my %NB_HOME%\etc\netbeans.conf file to
>> use Java SE 1.6.10.
>> Once I did that and rebooted, the JavaMail error went away.
>>
>>
>> A couple of questions:
>>
>> -  Is there a reason that the java-config value for java-home is
>> ignored when starting Prelude from Netbeans?
> There wasn't time in the 6.5 schedule to support it.  On the list for
> 7.0.  Please file an issue (category serverplugins/glassfish_v3)
> against netbeans if you'd like to track progress on this, or if you
> think we should fix it in a NB 6.5 patch.  (Might be a good idea, but
> it depends on how easy it is.)
>
Issue is 152985
>> -  Where does the default for ${com.sun.aas.javaRoot} get derived
>> from now which is the default for domain.xml in a fresh install
> The V3 plugin for NetBeans sets this to refer to the JDK that started
> NetBeans.  As for GlassFish, it might in asenv.conf, but I've been
> hearing rumblings about no longer supporting it.  Maybe Kedar can
> answer this.
Yes he did respond but it is confusing  discussion  :-)  Wonder what
happens with the Eclipse plugin (not going to try that myself though )
>
>> - Any particular reason why I must manually edit the netbeans.conf to
>> change the default JVM when the JVM platform manager knows what is
>> the default?  At a minimum we should allow for using a different JVM
>> other than the default for starting services such as Prelude without
>> requiring a reboot of netbeans.
> You can also start NetBeans with the CLI option "--jdkhome /path/to/jdk"
Thank you, i was aware of that but it is inconvenient on XP if you are
trying to use the short cuts and not in a command window.


>> - If we have issues like this, shouldn't we require a minimum Java SE
>> version and at least put a warning in the log at boot time?
> I'm pretty sure you could have resolved this issue by running under
> JDK 5 as well.  It's not a "you need X jdk for this" sort of problem,
> or at least, it shouldn't be.
>
> As far as I know, you are the first person to seriously tackle running
> an application on V3 Prelude that uses JavaMail, though I've had
> customers ask how to do it.  Since mail resources are not supported by
> V3 Prelude, not as many cycles were put into testing this area as
> otherwise would have been.
I will cover these issues in the blog which i will get out soon on this
topic.

Regards
Lance

>
> -Peter
>
>>
>>
>> I will put together a blog which hopefully save others from stumbling
>> across this error and if they do at least know how to move forward.
>>
>> Thank you Bill and Peter with the pointers on this.
>>
>> Regards
>> Lance
>>
>> Here is the log with the activation debugging enabled.
>>
>>
>> INFO: Launching GlassFish on Apache Felix OSGi platform
>> Welcome to Felix.
>> =================
>> INFO: Started bundle org.glassfish.common.glassfish-mbeanserver [9]
>> INFO: Started bundle org.glassfish.core.kernel [79]
>> INFO: Started bundle org.glassfish.common.common-util [59]
>> INFO: Started bundle GlassFish-Application-Common-Module [33]
>> INFO: APIClassLoader = Class Loader for Bundle
>> [GlassFish-Application-Common-Module [33] ]
>> no resource bundle found for version, using default GlassFish version
>> INFO: registering service =
>> org.apache.felix.framework.StartLevelImpl@dc67e, contract =
>> org.osgi.service.startlevel.StartLevel, name = null
>> INFO: registering service =
>> org.apache.felix.framework.PackageAdminImpl@609959, contract =
>> org.osgi.service.packageadmin.PackageAdmin, name = null
>> INFO: Started bundle org.glassfish.branding.branding [37]
>> INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
>> INFO: Started bundle org.glassfish.common.internal-api [61]
>> INFO: Started bundle org.glassfish.admin.config-api [42]
>> INFO: Started bundle
>> org.glassfish.registration.glassfish-registration [73]
>> INFO: Started bundle org.glassfish.deployment.deployment-autodeploy [19]
>> INFO: Started bundle org.glassfish.deployment.deployment-common [69]
>> INFO: Started bundle org.glassfish.flashlight.flashlight-framework [72]
>> INFO: Listening on port 8080
>> INFO: Network listener http-listener-2 on port 8181 disabled per
>> domain.xml
>> INFO: Listening on port 4848
>> INFO: Started bundle org.glassfish.common.container-common [83]
>> INFO: The Admin Console is already installed, but not yet loaded.
>> INFO: Started bundle org.glassfish.persistence.jpa-connector [24]
>> INFO: Started bundle org.glassfish.scripting.gf-jruby-connector [12]
>> INFO: Started bundle org.glassfish.web.gf-web-connector [99]
>> INFO: Started bundle org.glassfish.security.security [21]
>> INFO: security.secmgroff
>> INFO: Started bundle org.glassfish.security.securitycommon [23]
>> INFO: Security startup service called
>> INFO: Started bundle org.glassfish.security.realms [39]
>> INFO: Security service(s) started successfully....
>> INFO: registering service =
>> org.glassfish.web.DirContextURLStreamHandlerService@4d41e2, contract
>> = org.osgi.service.url.URLStreamHandlerService, name = null
>> INFO: Started bundle org.glassfish.web.web-glue [91]
>> INFO: Started bundle org.glassfish.common.glassfish-naming [65]
>> INFO: Started bundle org.glassfish.common.glassfish-api [84]
>> INFO: Started bundle org.glassfish.connectors.connectors-runtime [27]
>> INFO: Started bundle org.glassfish.transaction.jta [7]
>> INFO: Created HTTP listener http-listener-1 on port 8080
>> INFO: Created HTTP listener admin-listener on port 4848
>> INFO: Created virtual server server
>> INFO: Created virtual server __asadmin
>> INFO: Started bundle org.glassfish.deployment.dol [10]
>> INFO: Started bundle org.glassfish.web.web-core [108]
>> INFO: Dual registration of jndi stream handler: factory already defined
>> INFO: Unknown loader 91.0 class
>> org.apache.felix.framework.searchpolicy.ContentClassLoader
>> INFO: Started bundle org.glassfish.web.jstl-connector [97]
>> INFO: Started bundle org.glassfish.web.jsf-connector [104]
>> INFO: Using
>> com.sun.enterprise.transaction.JavaEETransactionManagerSimplifiedDelegate
>> as the delegate
>> INFO: Started bundle org.glassfish.connectors.work-management [45]
>> INFO: Started bundle org.glassfish.common.glassfish-ee-api [70]
>> INFO: Started bundle org.glassfish.connectors.connectors-internal-api
>> [89]
>> INFO: Started JMXConnector, JMXService URL =
>> service:jmx:rmi:///jndi/rmi://owner-8zgjfic0j:8686/jmxrmi
>> INFO: policy.loading
>> INFO: Started bundle org.glassfish.web.war-util [100]
>> INFO: Started bundle org.glassfish.security.websecurity [93]
>> INFO: Unknown loader
>> org.glassfish.internal.api.DelegatingClassLoader@11ce2ad class
>> org.glassfish.internal.api.DelegatingClassLoader
>> INFO: Loading application PreludeJavaMail at /PreludeJavaMail
>> INFO: Loading PreludeJavaMail Application done is 7952 ms
>> INFO: GlassFish v3 Prelude startup time : Felix(17655ms) startup
>> services(9474ms) total(27129ms)
>> INFO: in FeedbackBean()
>> INFO: in FeedbackBean.setSender(), sender=[hidden email]
>> INFO: in FeedbackBean.setMailingList(), mailingList=N
>> INFO: in FeedbackBean.setComment(), comment=d
>> INFO: in FeedbackBean.sendFeedback()
>> INFO: Mail Host:zipzonetennis.com
>> Mail Port:587
>> Mail User:[hidden email]
>> Mail Password:tenn1s
>> Mail Protocol:smtp
>> Mail Host:zipzonetennis.com
>> To:+[hidden email]
>> from:+[hidden email]
>> INFO: [sender=[hidden email], subject 0]
>> INFO: DEBUG: JavaMail version 1.4.1
>> INFO: DEBUG: not loading file: C:\Program
>> Files\Java\jdk1.6.0_06\jre\lib\javamail.providers
>> INFO: DEBUG: java.io.FileNotFoundException: C:\Program
>> Files\Java\jdk1.6.0_06\jre\lib\javamail.providers (The system cannot
>> find the file specified)
>> INFO: DEBUG: !anyLoaded
>> INFO: DEBUG: not loading resource: /META-INF/javamail.providers
>> INFO: DEBUG: successfully loaded resource:
>> /META-INF/javamail.default.providers
>> INFO: DEBUG: Tables of loaded providers
>> INFO: DEBUG: Providers Listed By Class Name:
>> {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
>> Microsystems, Inc],
>> com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
>> Microsystems, Inc],
>> com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
>> Microsystems, Inc],
>> com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
>> Microsystems, Inc],
>> com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
>> Microsystems, Inc],
>> com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
>> Microsystems, Inc]}
>> INFO: DEBUG: Providers Listed By Protocol:
>> {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
>> Microsystems, Inc],
>> imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
>> Microsystems, Inc],
>> smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
>> Microsystems, Inc],
>> pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
>> Microsystems, Inc],
>> pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
>> Microsystems, Inc],
>> smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
>> Microsystems, Inc]}
>> INFO: DEBUG: successfully loaded resource:
>> /META-INF/javamail.default.address.map
>> INFO: DEBUG: !anyLoaded
>> INFO: DEBUG: not loading resource: /META-INF/javamail.address.map
>> INFO: DEBUG: not loading file: C:\Program
>> Files\Java\jdk1.6.0_06\jre\lib\javamail.address.map
>> INFO: DEBUG: java.io.FileNotFoundException: C:\Program
>> Files\Java\jdk1.6.0_06\jre\lib\javamail.address.map (The system
>> cannot find the file specified)
>> INFO: DEBUG: setDebug: JavaMail version 1.4.1
>> INFO: DEBUG: getProvider() returning
>> javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
>> Microsystems, Inc]
>> INFO: DEBUG SMTP: useEhlo true, useAuth true
>> INFO: DEBUG SMTP: trying to connect to host "zipzonetennis.com", port
>> 587, isSSL false
>> INFO: 220-kapo.lunarmania.com ESMTP Exim 4.69 #1 Tue, 11 Nov 2008
>> 07:18:12 -0800
>> 220-We do not authorize the use of this system to transport unsolicited,
>> 220 and/or bulk e-mail.
>> INFO: DEBUG SMTP: connected to host "zipzonetennis.com", port: 587
>> INFO: EHLO owner-8zgjfic0j
>> INFO: 250-kapo.lunarmania.com Hello
>> pool-70-22-243-89.bos.east.verizon.net [70.22.243.89]
>> 250-SIZE 52428800
>> 250-PIPELINING
>> 250-AUTH PLAIN LOGIN
>> 250-STARTTLS
>> 250 HELP
>> INFO: DEBUG SMTP: Found extension "SIZE", arg "52428800"
>> INFO: DEBUG SMTP: Found extension "PIPELINING", arg ""
>> INFO: DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"
>> INFO: DEBUG SMTP: Found extension "STARTTLS", arg ""
>> INFO: DEBUG SMTP: Found extension "HELP", arg ""
>> INFO: DEBUG SMTP: Attempt to authenticate
>> INFO: AUTH LOGIN
>> INFO: 334 VXNlcm5hbWU6
>> INFO: bGFuY2VAemlwem9uZXRlbm5pcy5jb20=
>> INFO: 334 UGFzc3dvcmQ6
>> INFO: dGVubjFz
>> INFO: 235 Authentication succeeded
>> INFO: DEBUG SMTP: use8bit false
>> INFO: MAIL FROM:<[hidden email]>
>> INFO: 250 OK
>> INFO: RCPT TO:<[hidden email]>
>> INFO: 250 Accepted
>> INFO: DEBUG SMTP: Verified Addresses
>> INFO: DEBUG SMTP:   [hidden email]
>> INFO: DATA
>> INFO: 354 Enter message, ending with "." on a line by itself
>> INFO: MailcapCommandMap: load HOME
>> INFO: new MailcapFile: file C:\Documents and Settings\Owner\.mailcap
>> INFO: MailcapCommandMap: load SYS
>> INFO: new MailcapFile: file C:\Program
>> Files\Java\jdk1.6.0_06\jre\lib\mailcap
>> INFO: MailcapCommandMap: load JAR
>> INFO: MailcapCommandMap: !anyLoaded
>> INFO: MailcapCommandMap: not loading mailcap file: /META-INF/mailcap
>> INFO: MailcapCommandMap: load DEF
>> INFO: new MailcapFile: InputStream
>> INFO: parse: image/gif;;                
>> x-java-view=com.sun.activation.viewers.ImageViewer
>> INFO:   Type: image/gif
>> INFO:     Command: view, Class: com.sun.activation.viewers.ImageViewer
>> INFO: parse: image/jpeg;;                
>> x-java-view=com.sun.activation.viewers.ImageViewer
>> INFO:   Type: image/jpeg
>> INFO:     Command: view, Class: com.sun.activation.viewers.ImageViewer
>> INFO: parse: text/*;;                
>> x-java-view=com.sun.activation.viewers.TextViewer
>> INFO:   Type: text/*
>> INFO:     Command: view, Class: com.sun.activation.viewers.TextViewer
>> INFO: parse: text/*;;                
>> x-java-edit=com.sun.activation.viewers.TextEditor
>> INFO:   Type: text/*
>> INFO:     Command: edit, Class: com.sun.activation.viewers.TextEditor
>> INFO: Merging commands for type text/*
>> INFO: MailcapCommandMap: successfully loaded mailcap file:
>> /META-INF/mailcap.default
>> INFO: MailcapCommandMap: createDataContentHandler for text/plain
>> INFO:   search DB #1
>> INFO:   search fallback DB #1
>> INFO: javax.activation.UnsupportedDataTypeException: no object DCH
>> for MIME type text/plain
>> INFO:         at
>> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
>> INFO:         at
>> javax.activation.DataHandler.writeTo(DataHandler.java:301)
>> INFO:         at
>> javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
>> INFO:         at
>> javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
>> INFO:         at
>> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
>> INFO:         at demo.FeedbackBean.sendMail(FeedbackBean.java:221)
>> INFO:         at demo.FeedbackBean.sendFeedback(FeedbackBean.java:121)
>> INFO:         at
>> org.apache.jsp.feedbackThanks_jsp._jspService(feedbackThanks_jsp.java
>> from :69)
>> INFO:         at
>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
>> INFO:         at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>> INFO:         at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>>
>> INFO:         at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
>> INFO:         at
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
>> INFO:         at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>> INFO:         at
>> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>
>> INFO:         at
>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
>> INFO:         at
>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>>
>> INFO:         at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
>> INFO:         at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>
>> INFO:         at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>>
>> INFO:         at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
>> INFO:         at
>> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>>
>> INFO:         at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
>>
>> INFO:         at
>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
>>
>> INFO:         at
>> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
>>
>> INFO:         at
>> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
>>
>> INFO:         at
>> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
>>
>> INFO:         at
>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
>>
>> INFO:         at
>> com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
>>
>> INFO:         at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
>>
>> INFO:         at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
>>
>> INFO:         at
>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>>
>> INFO:         at
>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
>>
>> INFO:         at
>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
>>
>> INFO:         at
>> com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
>>
>> INFO:         at
>> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
>> SEVERE: javax.mail.MessagingException: IOException while sending
>> message;
>>  nested exception is:
>>        javax.activation.UnsupportedDataTypeException: no object DCH
>> for MIME type text/plain
>> SEVERE:         at
>> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:676)
>> SEVERE:         at demo.FeedbackBean.sendMail(FeedbackBean.java:221)
>> SEVERE:         at demo.FeedbackBean.sendFeedback(FeedbackBean.java:121)
>> SEVERE:         at
>> org.apache.jsp.feedbackThanks_jsp._jspService(feedbackThanks_jsp.java
>> from :69)
>> SEVERE:         at
>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
>> SEVERE:         at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>> SEVERE:         at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>>
>> SEVERE:         at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
>> SEVERE:         at
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
>> SEVERE:         at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>> SEVERE:         at
>> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>
>> SEVERE:         at
>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
>> SEVERE:         at
>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>>
>> SEVERE:         at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
>> SEVERE:         at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>
>> SEVERE:         at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>>
>> SEVERE:         at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
>> SEVERE:         at
>> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>>
>> SEVERE:         at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
>>
>> SEVERE:         at
>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
>>
>> SEVERE:         at
>> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
>>
>> SEVERE:         at
>> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
>>
>> SEVERE:         at
>> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
>>
>> SEVERE:         at
>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
>>
>> SEVERE:         at
>> com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
>>
>> SEVERE:         at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
>>
>> SEVERE:         at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
>>
>> SEVERE:         at
>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>>
>> SEVERE:         at
>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
>>
>> SEVERE:         at
>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
>>
>> SEVERE:         at
>> com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
>>
>> SEVERE:         at
>> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
>> SEVERE: Caused by: javax.activation.UnsupportedDataTypeException: no
>> object DCH for MIME type text/plain
>> SEVERE:         at
>> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
>> SEVERE:         at
>> javax.activation.DataHandler.writeTo(DataHandler.java:301)
>> SEVERE:         at
>> javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
>> SEVERE:         at
>> javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
>> SEVERE:         at
>> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
>> SEVERE:         ... 42 more
>>
>>
>> Bill Shannon wrote:
>>> Lance J. Andersen wrote:
>>>> Hi Bill,
>>>>
>>>> Thanks for the note.  the mailcap below looks the same as what i
>>>> have run the TCK against.
>>>
>>> My next guess is that it's a class loader problem and the class loader
>>> isn't finding the mailcap file.
>>>
>>> Can you set the system property "javax.activation.debug" to "true"?
>>> That will cause more debugging output to System.out, which will help
>>> narrow down the problem.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain with JavaMail and Prelude

Lance J. Andersen
In reply to this post by Kedar Mhaswade
Hi Kedar,

Yes it would be good have a blog which covers the start up.

Thank you for your time and response.

Regards
Lance

Kedar Mhaswade wrote:

> Lance,
>
> Ah. I am not familiar with how NB starts the server. They use
> java -jar I guess (but I am not sure) and I don't know which
> java they use.
>
> See Peter's response for other details.
>
> My procedure of how server chooses a JVM applies only when
> the server is started with "asadmin start-domain domain-name".
>
> I guess I should blog about it. (I guess Peter -- you should also
> blog about how NB starts the domain that's controlled by NB).
>
>
> Regards,
> Kedar
>
> Lance J. Andersen wrote:
>> Hi Kedar,
>>
>> Thank you for the note.
>>
>> Kedar Mhaswade wrote:
>>> Lance,
>>>
>>> There are two options.
>>>
>>> - change java-home as: java-home="C:/Program Files/Java/jdk1.6.0_10"
>>>   in domain.xml.
>> I did this setting it to Java SE 6U6 and it still started with the NB
>> default JVM which was jdk1.6.0_10
>>> - remove java-home value from domain.xml and replace
>>>   AS_JAVA=C:/Program Files/Java/jdk1.6.0_10 in install-dir/config
>>>   asenv file.
>> I did this setting it to Java SE 6U6 and it still started with the NB
>> default JVM the NB default JVM which was jdk1.6.0_10
>>>
>>> By doing either of this, you should be able to see that server uses
>>> the "intended" Java.
>>>
>> no luck :-(
>>> It looks to me that &quot; is making launcher think that it is not
>>> a valid value.
>> I did not enter the &quote; myself,  the admin-gui did this when I
>> entered the above "C:/Program Files/Java/jdk1.6.0_10"
>>
>> If i do not enter the quotes, the entry looks like
>>      <java-config debug-options="-Xdebug
>> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009"
>> system-classpath="" classpath-suffix="" java-home="C:/Program
>> Files/Java/jdk1.6.0_06">
>>
>> The admin gui should tell me to not enter quotes as on the jvm option
>> pages, it does tell me to enter quotes so it is not intuitive as to
>> what needs to be done.
>>
>> Shouldn't i have then gotten a warning saying that the location could
>> not be found?
>>
>> Regards
>> Lance
>>>
>>> Also, an alternate way of seeing which Java server uses -- run:
>>> asadmin generate-jvm-report.
>>>
>>> Thanks,
>>> Kedar
>>>
>>>
>>> Lance J. Andersen wrote:
>>>> Hi Bill, Peter,
>>>>
>>>> I installed Java SE 6U10 as Peter suggested.  I also updated my
>>>> Java Home in domain.xml to be via the admin gui:
>>>>      <java-config debug-options="-Xdebug
>>>> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009"
>>>> system-classpath="" classpath-suffix="" java-home="&quot;C:/Program
>>>> Files/Java/jdk1.6.0_10/&quot;">
>>>> Added the property
>>>> <jvm-options>-Djavax.activation.debug=true</jvm-options>
>>>>
>>>>
>>>> And I was still seeing the error.
>>>>
>>>>
>>>> What is weird to me was that Prelude is using Java SE 6U06 JRE to
>>>> boot  based on the jvm log file(BTW, why doe the JVM info get
>>>> written to a separate file now).
>>>> I am running everything from NB 6.5RC2 and I have the Project set
>>>> to use Java SE 6U10 as well.  JAVA_HOME is *not* set in the System
>>>> environment.
>>>>
>>>> So i happened to notice that the default Java SE for Netbeans was
>>>> Java SE 1.6.06 which matches the stack trace below.  Unfortunately
>>>> even if the project that you are running is set to use a JVM other
>>>> than the default, processes such as the start of Prelude do not
>>>> appear to honor that which get started by running that Project.
>>>>
>>>> So the next step was to modify my %NB_HOME%\etc\netbeans.conf file
>>>> to use Java SE 1.6.10.
>>>> Once I did that and rebooted, the JavaMail error went away.
>>>>
>>>>
>>>> A couple of questions:
>>>>
>>>> -  Is there a reason that the java-config value for java-home is
>>>> ignored when starting Prelude from Netbeans?
>>>> -  Where does the default for ${com.sun.aas.javaRoot} get derived
>>>> from now which is the default for domain.xml in a fresh install
>>>> - Any particular reason why I must manually edit the netbeans.conf
>>>> to change the default JVM when the JVM platform manager knows what
>>>> is the default?  At a minimum we should allow for using a different
>>>> JVM other than the default for starting services such as Prelude
>>>> without requiring a reboot of netbeans.
>>>> - If we have issues like this, shouldn't we require a minimum Java
>>>> SE version and at least put a warning in the log at boot time?
>>>>
>>>>
>>>> I will put together a blog which hopefully save others from
>>>> stumbling across this error and if they do at least know how to
>>>> move forward.
>>>>
>>>> Thank you Bill and Peter with the pointers on this.
>>>>
>>>> Regards
>>>> Lance
>>>>
>>>> Here is the log with the activation debugging enabled.
>>>>
>>>>
>>>> INFO: Launching GlassFish on Apache Felix OSGi platform
>>>> Welcome to Felix.
>>>> =================
>>>> INFO: Started bundle org.glassfish.common.glassfish-mbeanserver [9]
>>>> INFO: Started bundle org.glassfish.core.kernel [79]
>>>> INFO: Started bundle org.glassfish.common.common-util [59]
>>>> INFO: Started bundle GlassFish-Application-Common-Module [33]
>>>> INFO: APIClassLoader = Class Loader for Bundle
>>>> [GlassFish-Application-Common-Module [33] ]
>>>> no resource bundle found for version, using default GlassFish version
>>>> INFO: registering service =
>>>> org.apache.felix.framework.StartLevelImpl@dc67e, contract =
>>>> org.osgi.service.startlevel.StartLevel, name = null
>>>> INFO: registering service =
>>>> org.apache.felix.framework.PackageAdminImpl@609959, contract =
>>>> org.osgi.service.packageadmin.PackageAdmin, name = null
>>>> INFO: Started bundle org.glassfish.branding.branding [37]
>>>> INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
>>>> INFO: Started bundle org.glassfish.common.internal-api [61]
>>>> INFO: Started bundle org.glassfish.admin.config-api [42]
>>>> INFO: Started bundle
>>>> org.glassfish.registration.glassfish-registration [73]
>>>> INFO: Started bundle org.glassfish.deployment.deployment-autodeploy
>>>> [19]
>>>> INFO: Started bundle org.glassfish.deployment.deployment-common [69]
>>>> INFO: Started bundle org.glassfish.flashlight.flashlight-framework
>>>> [72]
>>>> INFO: Listening on port 8080
>>>> INFO: Network listener http-listener-2 on port 8181 disabled per
>>>> domain.xml
>>>> INFO: Listening on port 4848
>>>> INFO: Started bundle org.glassfish.common.container-common [83]
>>>> INFO: The Admin Console is already installed, but not yet loaded.
>>>> INFO: Started bundle org.glassfish.persistence.jpa-connector [24]
>>>> INFO: Started bundle org.glassfish.scripting.gf-jruby-connector [12]
>>>> INFO: Started bundle org.glassfish.web.gf-web-connector [99]
>>>> INFO: Started bundle org.glassfish.security.security [21]
>>>> INFO: security.secmgroff
>>>> INFO: Started bundle org.glassfish.security.securitycommon [23]
>>>> INFO: Security startup service called
>>>> INFO: Started bundle org.glassfish.security.realms [39]
>>>> INFO: Security service(s) started successfully....
>>>> INFO: registering service =
>>>> org.glassfish.web.DirContextURLStreamHandlerService@4d41e2,
>>>> contract = org.osgi.service.url.URLStreamHandlerService, name = null
>>>> INFO: Started bundle org.glassfish.web.web-glue [91]
>>>> INFO: Started bundle org.glassfish.common.glassfish-naming [65]
>>>> INFO: Started bundle org.glassfish.common.glassfish-api [84]
>>>> INFO: Started bundle org.glassfish.connectors.connectors-runtime [27]
>>>> INFO: Started bundle org.glassfish.transaction.jta [7]
>>>> INFO: Created HTTP listener http-listener-1 on port 8080
>>>> INFO: Created HTTP listener admin-listener on port 4848
>>>> INFO: Created virtual server server
>>>> INFO: Created virtual server __asadmin
>>>> INFO: Started bundle org.glassfish.deployment.dol [10]
>>>> INFO: Started bundle org.glassfish.web.web-core [108]
>>>> INFO: Dual registration of jndi stream handler: factory already
>>>> defined
>>>> INFO: Unknown loader 91.0 class
>>>> org.apache.felix.framework.searchpolicy.ContentClassLoader
>>>> INFO: Started bundle org.glassfish.web.jstl-connector [97]
>>>> INFO: Started bundle org.glassfish.web.jsf-connector [104]
>>>> INFO: Using
>>>> com.sun.enterprise.transaction.JavaEETransactionManagerSimplifiedDelegate
>>>> as the delegate
>>>> INFO: Started bundle org.glassfish.connectors.work-management [45]
>>>> INFO: Started bundle org.glassfish.common.glassfish-ee-api [70]
>>>> INFO: Started bundle
>>>> org.glassfish.connectors.connectors-internal-api [89]
>>>> INFO: Started JMXConnector, JMXService URL =
>>>> service:jmx:rmi:///jndi/rmi://owner-8zgjfic0j:8686/jmxrmi
>>>> INFO: policy.loading
>>>> INFO: Started bundle org.glassfish.web.war-util [100]
>>>> INFO: Started bundle org.glassfish.security.websecurity [93]
>>>> INFO: Unknown loader
>>>> org.glassfish.internal.api.DelegatingClassLoader@11ce2ad class
>>>> org.glassfish.internal.api.DelegatingClassLoader
>>>> INFO: Loading application PreludeJavaMail at /PreludeJavaMail
>>>> INFO: Loading PreludeJavaMail Application done is 7952 ms
>>>> INFO: GlassFish v3 Prelude startup time : Felix(17655ms) startup
>>>> services(9474ms) total(27129ms)
>>>> INFO: in FeedbackBean()
>>>> INFO: in FeedbackBean.setSender(), sender=[hidden email]
>>>> INFO: in FeedbackBean.setMailingList(), mailingList=N
>>>> INFO: in FeedbackBean.setComment(), comment=d
>>>> INFO: in FeedbackBean.sendFeedback()
>>>> INFO: Mail Host:zipzonetennis.com
>>>> Mail Port:587
>>>> Mail User:[hidden email]
>>>> Mail Password:tenn1s
>>>> Mail Protocol:smtp
>>>> Mail Host:zipzonetennis.com
>>>> To:+[hidden email]
>>>> from:+[hidden email]
>>>> INFO: [sender=[hidden email], subject 0]
>>>> INFO: DEBUG: JavaMail version 1.4.1
>>>> INFO: DEBUG: not loading file: C:\Program
>>>> Files\Java\jdk1.6.0_06\jre\lib\javamail.providers
>>>> INFO: DEBUG: java.io.FileNotFoundException: C:\Program
>>>> Files\Java\jdk1.6.0_06\jre\lib\javamail.providers (The system
>>>> cannot find the file specified)
>>>> INFO: DEBUG: !anyLoaded
>>>> INFO: DEBUG: not loading resource: /META-INF/javamail.providers
>>>> INFO: DEBUG: successfully loaded resource:
>>>> /META-INF/javamail.default.providers
>>>> INFO: DEBUG: Tables of loaded providers
>>>> INFO: DEBUG: Providers Listed By Class Name:
>>>> {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
>>>> Microsystems, Inc],
>>>> com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
>>>> Microsystems, Inc],
>>>> com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
>>>> Microsystems, Inc],
>>>> com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
>>>> Microsystems, Inc],
>>>> com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
>>>> Microsystems, Inc],
>>>> com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
>>>> Microsystems, Inc]}
>>>> INFO: DEBUG: Providers Listed By Protocol:
>>>> {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
>>>> Microsystems, Inc],
>>>> imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
>>>> Microsystems, Inc],
>>>> smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
>>>> Microsystems, Inc],
>>>> pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
>>>> Microsystems, Inc],
>>>> pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
>>>> Microsystems, Inc],
>>>> smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
>>>> Microsystems, Inc]}
>>>> INFO: DEBUG: successfully loaded resource:
>>>> /META-INF/javamail.default.address.map
>>>> INFO: DEBUG: !anyLoaded
>>>> INFO: DEBUG: not loading resource: /META-INF/javamail.address.map
>>>> INFO: DEBUG: not loading file: C:\Program
>>>> Files\Java\jdk1.6.0_06\jre\lib\javamail.address.map
>>>> INFO: DEBUG: java.io.FileNotFoundException: C:\Program
>>>> Files\Java\jdk1.6.0_06\jre\lib\javamail.address.map (The system
>>>> cannot find the file specified)
>>>> INFO: DEBUG: setDebug: JavaMail version 1.4.1
>>>> INFO: DEBUG: getProvider() returning
>>>> javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
>>>> Microsystems, Inc]
>>>> INFO: DEBUG SMTP: useEhlo true, useAuth true
>>>> INFO: DEBUG SMTP: trying to connect to host "zipzonetennis.com",
>>>> port 587, isSSL false
>>>> INFO: 220-kapo.lunarmania.com ESMTP Exim 4.69 #1 Tue, 11 Nov 2008
>>>> 07:18:12 -0800
>>>> 220-We do not authorize the use of this system to transport
>>>> unsolicited,
>>>> 220 and/or bulk e-mail.
>>>> INFO: DEBUG SMTP: connected to host "zipzonetennis.com", port: 587
>>>> INFO: EHLO owner-8zgjfic0j
>>>> INFO: 250-kapo.lunarmania.com Hello
>>>> pool-70-22-243-89.bos.east.verizon.net [70.22.243.89]
>>>> 250-SIZE 52428800
>>>> 250-PIPELINING
>>>> 250-AUTH PLAIN LOGIN
>>>> 250-STARTTLS
>>>> 250 HELP
>>>> INFO: DEBUG SMTP: Found extension "SIZE", arg "52428800"
>>>> INFO: DEBUG SMTP: Found extension "PIPELINING", arg ""
>>>> INFO: DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"
>>>> INFO: DEBUG SMTP: Found extension "STARTTLS", arg ""
>>>> INFO: DEBUG SMTP: Found extension "HELP", arg ""
>>>> INFO: DEBUG SMTP: Attempt to authenticate
>>>> INFO: AUTH LOGIN
>>>> INFO: 334 VXNlcm5hbWU6
>>>> INFO: bGFuY2VAemlwem9uZXRlbm5pcy5jb20=
>>>> INFO: 334 UGFzc3dvcmQ6
>>>> INFO: dGVubjFz
>>>> INFO: 235 Authentication succeeded
>>>> INFO: DEBUG SMTP: use8bit false
>>>> INFO: MAIL FROM:<[hidden email]>
>>>> INFO: 250 OK
>>>> INFO: RCPT TO:<[hidden email]>
>>>> INFO: 250 Accepted
>>>> INFO: DEBUG SMTP: Verified Addresses
>>>> INFO: DEBUG SMTP:   [hidden email]
>>>> INFO: DATA
>>>> INFO: 354 Enter message, ending with "." on a line by itself
>>>> INFO: MailcapCommandMap: load HOME
>>>> INFO: new MailcapFile: file C:\Documents and Settings\Owner\.mailcap
>>>> INFO: MailcapCommandMap: load SYS
>>>> INFO: new MailcapFile: file C:\Program
>>>> Files\Java\jdk1.6.0_06\jre\lib\mailcap
>>>> INFO: MailcapCommandMap: load JAR
>>>> INFO: MailcapCommandMap: !anyLoaded
>>>> INFO: MailcapCommandMap: not loading mailcap file: /META-INF/mailcap
>>>> INFO: MailcapCommandMap: load DEF
>>>> INFO: new MailcapFile: InputStream
>>>> INFO: parse: image/gif;;                
>>>> x-java-view=com.sun.activation.viewers.ImageViewer
>>>> INFO:   Type: image/gif
>>>> INFO:     Command: view, Class: com.sun.activation.viewers.ImageViewer
>>>> INFO: parse: image/jpeg;;                
>>>> x-java-view=com.sun.activation.viewers.ImageViewer
>>>> INFO:   Type: image/jpeg
>>>> INFO:     Command: view, Class: com.sun.activation.viewers.ImageViewer
>>>> INFO: parse: text/*;;                
>>>> x-java-view=com.sun.activation.viewers.TextViewer
>>>> INFO:   Type: text/*
>>>> INFO:     Command: view, Class: com.sun.activation.viewers.TextViewer
>>>> INFO: parse: text/*;;                
>>>> x-java-edit=com.sun.activation.viewers.TextEditor
>>>> INFO:   Type: text/*
>>>> INFO:     Command: edit, Class: com.sun.activation.viewers.TextEditor
>>>> INFO: Merging commands for type text/*
>>>> INFO: MailcapCommandMap: successfully loaded mailcap file:
>>>> /META-INF/mailcap.default
>>>> INFO: MailcapCommandMap: createDataContentHandler for text/plain
>>>> INFO:   search DB #1
>>>> INFO:   search fallback DB #1
>>>> INFO: javax.activation.UnsupportedDataTypeException: no object DCH
>>>> for MIME type text/plain
>>>> INFO:         at
>>>> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
>>>>
>>>> INFO:         at
>>>> javax.activation.DataHandler.writeTo(DataHandler.java:301)
>>>> INFO:         at
>>>> javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
>>>> INFO:         at
>>>> javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
>>>> INFO:         at
>>>> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
>>>> INFO:         at demo.FeedbackBean.sendMail(FeedbackBean.java:221)
>>>> INFO:         at demo.FeedbackBean.sendFeedback(FeedbackBean.java:121)
>>>> INFO:         at
>>>> org.apache.jsp.feedbackThanks_jsp._jspService(feedbackThanks_jsp.java
>>>> from :69)
>>>> INFO:         at
>>>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
>>>> INFO:         at
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>>>> INFO:         at
>>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>>>>
>>>> INFO:         at
>>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
>>>>
>>>> INFO:         at
>>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
>>>> INFO:         at
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>>>> INFO:         at
>>>> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
>>>>
>>>> INFO:         at
>>>> org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
>>>>
>>>> INFO:         at
>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
>>>>
>>>> INFO:         at
>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
>>>>
>>>> INFO:         at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>>>
>>>> INFO:         at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>>>
>>>> INFO:         at
>>>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
>>>> INFO:         at
>>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>>>
>>>> INFO:         at
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
>>>>
>>>> INFO:         at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>>>
>>>> INFO:         at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>>>
>>>> INFO:         at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>>>>
>>>> INFO:         at
>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
>>>> INFO:         at
>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
>>>>
>>>> INFO:         at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>>>
>>>> INFO:         at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>>>
>>>> INFO:         at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>>>>
>>>> INFO:         at
>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
>>>> INFO:         at
>>>> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>>>>
>>>> INFO:         at
>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
>>>>
>>>> INFO:         at
>>>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
>>>>
>>>> INFO:         at
>>>> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
>>>>
>>>> INFO:         at
>>>> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
>>>>
>>>> INFO:         at
>>>> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
>>>>
>>>> INFO:         at
>>>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
>>>>
>>>> INFO:         at
>>>> com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
>>>>
>>>> INFO:         at
>>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
>>>>
>>>> INFO:         at
>>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
>>>>
>>>> INFO:         at
>>>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>>>>
>>>> INFO:         at
>>>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
>>>>
>>>> INFO:         at
>>>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
>>>>
>>>> INFO:         at
>>>> com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
>>>>
>>>> INFO:         at
>>>> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
>>>> SEVERE: javax.mail.MessagingException: IOException while sending
>>>> message;
>>>>  nested exception is:
>>>>        javax.activation.UnsupportedDataTypeException: no object DCH
>>>> for MIME type text/plain
>>>> SEVERE:         at
>>>> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:676)
>>>> SEVERE:         at demo.FeedbackBean.sendMail(FeedbackBean.java:221)
>>>> SEVERE:         at
>>>> demo.FeedbackBean.sendFeedback(FeedbackBean.java:121)
>>>> SEVERE:         at
>>>> org.apache.jsp.feedbackThanks_jsp._jspService(feedbackThanks_jsp.java
>>>> from :69)
>>>> SEVERE:         at
>>>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
>>>> SEVERE:         at
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>>>> SEVERE:         at
>>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>>>>
>>>> SEVERE:         at
>>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
>>>>
>>>> SEVERE:         at
>>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
>>>> SEVERE:         at
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>>>> SEVERE:         at
>>>> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
>>>>
>>>> SEVERE:         at
>>>> org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
>>>>
>>>> SEVERE:         at
>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
>>>>
>>>> SEVERE:         at
>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
>>>>
>>>> SEVERE:         at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>>>
>>>> SEVERE:         at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>>>
>>>> SEVERE:         at
>>>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
>>>> SEVERE:         at
>>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>>>
>>>> SEVERE:         at
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
>>>>
>>>> SEVERE:         at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>>>
>>>> SEVERE:         at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>>>
>>>> SEVERE:         at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>>>>
>>>> SEVERE:         at
>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
>>>> SEVERE:         at
>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
>>>>
>>>> SEVERE:         at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>>>>
>>>> SEVERE:         at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>>>>
>>>> SEVERE:         at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>>>>
>>>> SEVERE:         at
>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
>>>> SEVERE:         at
>>>> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>>>>
>>>> SEVERE:         at
>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
>>>>
>>>> SEVERE:         at
>>>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
>>>>
>>>> SEVERE:         at
>>>> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
>>>>
>>>> SEVERE:         at
>>>> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
>>>>
>>>> SEVERE:         at
>>>> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
>>>>
>>>> SEVERE:         at
>>>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
>>>>
>>>> SEVERE:         at
>>>> com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
>>>>
>>>> SEVERE:         at
>>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
>>>>
>>>> SEVERE:         at
>>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
>>>>
>>>> SEVERE:         at
>>>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>>>>
>>>> SEVERE:         at
>>>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
>>>>
>>>> SEVERE:         at
>>>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
>>>>
>>>> SEVERE:         at
>>>> com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
>>>>
>>>> SEVERE:         at
>>>> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
>>>> SEVERE: Caused by: javax.activation.UnsupportedDataTypeException:
>>>> no object DCH for MIME type text/plain
>>>> SEVERE:         at
>>>> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
>>>>
>>>> SEVERE:         at
>>>> javax.activation.DataHandler.writeTo(DataHandler.java:301)
>>>> SEVERE:         at
>>>> javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
>>>> SEVERE:         at
>>>> javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
>>>> SEVERE:         at
>>>> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
>>>> SEVERE:         ... 42 more
>>>>
>>>>
>>>> Bill Shannon wrote:
>>>>> Lance J. Andersen wrote:
>>>>>> Hi Bill,
>>>>>>
>>>>>> Thanks for the note.  the mailcap below looks the same as what i
>>>>>> have run the TCK against.
>>>>>
>>>>> My next guess is that it's a class loader problem and the class
>>>>> loader
>>>>> isn't finding the mailcap file.
>>>>>
>>>>> Can you set the system property "javax.activation.debug" to "true"?
>>>>> That will cause more debugging output to System.out, which will help
>>>>> narrow down the problem.
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: [hidden email]
>>>>> For additional commands, e-mail: [hidden email]
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [hidden email]
>>>> For additional commands, e-mail: [hidden email]
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain with JavaMail and Prelude

Bill Shannon
In reply to this post by Peter Williams-4
Peter Williams wrote:
> Hi Lance,
>
> You encountered CR 6456395 which is patched in JAF 1.1.1 and in JDK 6U10
> (for JAF integrated into the JDK).

No, I don't think that's it.

The problem is that it's not finding the DataContentHandler that it should
find.  Fixing the above bug (well, RFE really) might allow it to operate
reasonably without the DataContentHandler, but the core problem here is that
the DataContentHandler is not being found.  The reason for that is almost
always because the mailcap file that configures the use of the
DataContentHandler can't be found.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain with JavaMail and Prelude

Peter Williams-4
Bill Shannon wrote:

> Peter Williams wrote:
>> Hi Lance,
>>
>> You encountered CR 6456395 which is patched in JAF 1.1.1 and in JDK
>> 6U10 (for JAF integrated into the JDK).
>
> No, I don't think that's it.
>
> The problem is that it's not finding the DataContentHandler that it
> should
> find.  Fixing the above bug (well, RFE really) might allow it to operate
> reasonably without the DataContentHandler, but the core problem here
> is that
> the DataContentHandler is not being found.
Ah, I understand.  I can see how fixing the above issue would sort of
sidestep a real issue with the mailcap file.
> The reason for that is almost
> always because the mailcap file that configures the use of the
> DataContentHandler can't be found.
I can attest that default javamail mailcap file is included with
javax.mail.jar for V3 Prelude FCS.  This was covered by the packaging
problems I discovered and fixed in September.

So there may be a problem with the runtime actually locating the default
mailcap file.  I'll look into it.

Thanks!

-Peter
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]