<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    AttachmentTest failure
</h3>
<span style="margin-bottom: 10px;">
    reply from <a href="http://community.jboss.org/people/rebody">Huisheng Xu</a> in <i>jBPM Development</i> - <a href="http://community.jboss.org/message/539325#539325">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi Alejandro,</p><p>&#160; My environment is Window XP, JDK-1.5.0_15, Maven-2.2.1, hsqldb-1.8.0_10.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; I changed the logging.properties and add javax.activation.level=FINEST.&#160; And there is my test output info.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">08:55:37,429 FIN | [activation] MailcapCommandMap: load HOME
08:55:37,429 FIN | [activation] new MailcapFile: file C:\Documents and Settings\Administrator\.mailcap
08:55:37,429 FIN | [activation] MailcapCommandMap: load SYS
08:55:37,429 FIN | [activation] new MailcapFile: file D:\apps\jdk1.5.0_15\jre\lib\mailcap
08:55:37,429 FIN | [activation] MailcapCommandMap: load JAR
08:55:37,429 FIN | [activation] MailcapCommandMap: getResources
08:55:37,429 FIN | [activation] MailcapCommandMap: URL file:/D:/externals/svn/jbpm4/trunk/modules/test-db/target/test-classes/META-INF/mailcap
08:55:37,429 FIN | [activation] new MailcapFile: InputStream
08:55:37,445 FIN | [activation] parse: image/gif;;&#160;&#160;&#160;&#160;&#160;&#160;&#160; x-java-view=com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation]&#160;&#160; Type: image/gif
08:55:37,445 FIN | [activation]&#160;&#160;&#160;&#160; Command: view, Class: com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] parse: image/jpeg;;&#160;&#160;&#160;&#160;&#160;&#160;&#160; x-java-view=com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation]&#160;&#160; Type: image/jpeg
08:55:37,445 FIN | [activation]&#160;&#160;&#160;&#160; Command: view, Class: com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] parse: text/*;;&#160;&#160;&#160;&#160;&#160;&#160;&#160; x-java-view=com.sun.activation.viewers.TextViewer
08:55:37,445 FIN | [activation]&#160;&#160; Type: text/*
08:55:37,445 FIN | [activation]&#160;&#160;&#160;&#160; Command: view, Class: com.sun.activation.viewers.TextViewer
08:55:37,445 FIN | [activation] parse: text/*;;&#160;&#160;&#160;&#160;&#160;&#160;&#160; x-java-edit=com.sun.activation.viewers.TextEditor
08:55:37,445 FIN | [activation]&#160;&#160; Type: text/*
08:55:37,445 FIN | [activation]&#160;&#160;&#160;&#160; Command: edit, Class: com.sun.activation.viewers.TextEditor
08:55:37,445 FIN | [activation] Merging commands for type text/*
08:55:37,445 FIN | [activation] parse: text/html;;&#160;&#160;&#160;&#160; x-java-content-handler=com.sun.mail.handlers.text_html
08:55:37,445 FIN | [activation]&#160;&#160; Type: text/html
08:55:37,445 FIN | [activation]&#160;&#160;&#160;&#160; Command: content-handler, Class: com.sun.mail.handlers.text_html
08:55:37,445 FIN | [activation] parse: text/xml;;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; x-java-content-handler=com.sun.mail.handlers.text_xml
08:55:37,445 FIN | [activation]&#160;&#160; Type: text/xml
08:55:37,445 FIN | [activation]&#160;&#160;&#160;&#160; Command: content-handler, Class: com.sun.mail.handlers.text_xml
08:55:37,445 FIN | [activation] parse: text/plain;;&#160;&#160;&#160;&#160; x-java-content-handler=com.sun.mail.handlers.text_plain
08:55:37,445 FIN | [activation]&#160;&#160; Type: text/plain
08:55:37,445 FIN | [activation]&#160;&#160;&#160;&#160; Command: content-handler, Class: com.sun.mail.handlers.text_plain
08:55:37,445 FIN | [activation] parse: multipart/*;;&#160;&#160;&#160;&#160; x-java-content-handler=com.sun.mail.handlers.multipart_mixed
08:55:37,445 FIN | [activation]&#160;&#160; Type: multipart/*
08:55:37,445 FIN | [activation]&#160;&#160;&#160;&#160; Command: content-handler, Class: com.sun.mail.handlers.multipart_mixed
08:55:37,445 FIN | [activation] parse: message/rfc822;; x-java-content-handler=com.sun.mail.handlers.message_rfc822
08:55:37,445 FIN | [activation]&#160;&#160; Type: message/rfc822
08:55:37,445 FIN | [activation]&#160;&#160;&#160;&#160; Command: content-handler, Class: com.sun.mail.handlers.message_rfc822
08:55:37,445 FIN | [activation] MailcapCommandMap: successfully loaded mailcap file from URL: file:/D:/externals/svn/jbpm4/trunk/modules/test-db/target/test-classes/META-INF/mailcap
08:55:37,445 FIN | [activation] MailcapCommandMap: URL jar:file:/D:/.m2/repository/javax/mail/mail/1.4.1/mail-1.4.1.jar!/META-INF/mailcap
08:55:37,445 FIN | [activation] new MailcapFile: InputStream
08:55:37,445 FIN | [activation] parse: text/plain;;&#160;&#160;&#160;&#160;&#160;&#160;&#160; x-java-content-handler=com.sun.mail.handlers.text_plain
08:55:37,445 FIN | [activation]&#160;&#160; Type: text/plain
08:55:37,445 FIN | [activation]&#160;&#160;&#160;&#160; Command: content-handler, Class: com.sun.mail.handlers.text_plain
08:55:37,445 FIN | [activation] parse: text/html;;&#160;&#160;&#160;&#160;&#160;&#160;&#160; x-java-content-handler=com.sun.mail.handlers.text_html
08:55:37,445 FIN | [activation]&#160;&#160; Type: text/html
08:55:37,445 FIN | [activation]&#160;&#160;&#160;&#160; Command: content-handler, Class: com.sun.mail.handlers.text_html
08:55:37,445 FIN | [activation] parse: text/xml;;&#160;&#160;&#160;&#160;&#160;&#160;&#160; x-java-content-handler=com.sun.mail.handlers.text_xml
08:55:37,445 FIN | [activation]&#160;&#160; Type: text/xml
08:55:37,445 FIN | [activation]&#160;&#160;&#160;&#160; Command: content-handler, Class: com.sun.mail.handlers.text_xml
08:55:37,445 FIN | [activation] parse: multipart/*;;&#160;&#160;&#160;&#160;&#160;&#160;&#160; x-java-content-handler=com.sun.mail.handlers.multipart_mixed; x-java-fallback-entry=true
08:55:37,445 FIN | [activation]&#160;&#160; Type: multipart/*
08:55:37,445 FIN | [activation]&#160;&#160;&#160;&#160; Command: content-handler, Class: com.sun.mail.handlers.multipart_mixed
08:55:37,445 FIN | [activation] parse: message/rfc822;;&#160;&#160;&#160; x-java-content-handler=com.sun.mail.handlers.message_rfc822
08:55:37,445 FIN | [activation]&#160;&#160; Type: message/rfc822
08:55:37,445 FIN | [activation]&#160;&#160;&#160;&#160; Command: content-handler, Class: com.sun.mail.handlers.message_rfc822
08:55:37,445 FIN | [activation] MailcapCommandMap: successfully loaded mailcap file from URL: jar:file:/D:/.m2/repository/javax/mail/mail/1.4.1/mail-1.4.1.jar!/META-INF/mailcap
08:55:37,445 FIN | [activation] MailcapCommandMap: load DEF
08:55:37,445 FIN | [activation] new MailcapFile: InputStream
08:55:37,445 FIN | [activation] parse: image/gif;;&#160;&#160;&#160;&#160;&#160;&#160;&#160; x-java-view=com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation]&#160;&#160; Type: image/gif
08:55:37,445 FIN | [activation]&#160;&#160;&#160;&#160; Command: view, Class: com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] parse: image/jpeg;;&#160;&#160;&#160;&#160;&#160;&#160;&#160; x-java-view=com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation]&#160;&#160; Type: image/jpeg
08:55:37,445 FIN | [activation]&#160;&#160;&#160;&#160; Command: view, Class: com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] parse: text/*;;&#160;&#160;&#160;&#160;&#160;&#160;&#160; x-java-view=com.sun.activation.viewers.TextViewer
08:55:37,445 FIN | [activation]&#160;&#160; Type: text/*
08:55:37,445 FIN | [activation]&#160;&#160;&#160;&#160; Command: view, Class: com.sun.activation.viewers.TextViewer
08:55:37,445 FIN | [activation] parse: text/*;;&#160;&#160;&#160;&#160;&#160;&#160;&#160; x-java-edit=com.sun.activation.viewers.TextEditor
08:55:37,445 FIN | [activation]&#160;&#160; Type: text/*
08:55:37,445 FIN | [activation]&#160;&#160;&#160;&#160; Command: edit, Class: com.sun.activation.viewers.TextEditor
08:55:37,445 FIN | [activation] Merging commands for type text/*
08:55:37,461 FIN | [activation] MailcapCommandMap: successfully loaded mailcap file: /META-INF/mailcap.default
08:55:37,461 FIN | [activation] MailcapCommandMap: createDataContentHandler for text/plain
08:55:37,461 FIN | [activation]&#160;&#160; search DB #1
08:55:37,461 FIN | [activation]&#160;&#160;&#160;&#160; got content-handler
08:55:37,461 FIN | [activation]&#160;&#160;&#160;&#160;&#160;&#160; class com.sun.mail.handlers.text_plain
08:55:37,461 FIN | [activation] MailcapCommandMap: createDataContentHandler for image/gif
08:55:37,461 FIN | [activation]&#160;&#160; search DB #1
08:55:37,461 FIN | [activation]&#160;&#160; search DB #2
08:55:37,461 FIN | [activation]&#160;&#160; search DB #3
08:55:37,461 FIN | [activation]&#160;&#160; search fallback DB #1
08:55:37,461 FIN | [activation]&#160;&#160; search fallback DB #2
08:55:37,461 FIN | [activation]&#160;&#160; search fallback DB #3
08:55:37,476 FIN | [activation] MailcapCommandMap: createDataContentHandler for multipart/related
08:55:37,476 FIN | [activation]&#160;&#160; search DB #1
08:55:37,476 FIN | [activation]&#160;&#160;&#160;&#160; got content-handler
08:55:37,476 FIN | [activation]&#160;&#160;&#160;&#160;&#160;&#160; class com.sun.mail.handlers.multipart_mixed
### EXCEPTION ###########################################
08:55:37,476 INF | [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd@1aa0a15
org.jbpm.api.JbpmException: could not send email: javax.mail.internet.MimeMessage@1684e26
&#160;&#160;&#160; at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl.java:60)
&#160;&#160;&#160; at org.jbpm.jpdl.internal.activity.MailActivity.perform(MailActivity.java:46)
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; As you see, there is no DataContentHandler being configured for image/gif, so the testcase failed.&#160; I think there must be additional mailcap file being configured in your and QA environments.&#160; So, do I need add an additional mailcap file into my java.home directory?</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/539325#539325">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>