[jboss-user] [jBPM Development] - AttachmentTest failure

Huisheng Xu do-not-reply at jboss.com
Fri Apr 23 21:00:50 EDT 2010


Huisheng Xu [http://community.jboss.org/people/rebody] replied to the discussion

"AttachmentTest failure"

To view the discussion, visit: http://community.jboss.org/message/539325#539325

--------------------------------------------------------------
Hi Alejandro,
  My environment is Window XP, JDK-1.5.0_15, Maven-2.2.1, hsqldb-1.8.0_10.

  I changed the logging.properties and add javax.activation.level=FINEST.  And there is my test output info.


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;;        x-java-view=com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation]   Type: image/gif
08:55:37,445 FIN | [activation]     Command: view, Class: com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] parse: image/jpeg;;        x-java-view=com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation]   Type: image/jpeg
08:55:37,445 FIN | [activation]     Command: view, Class: com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] parse: text/*;;        x-java-view=com.sun.activation.viewers.TextViewer
08:55:37,445 FIN | [activation]   Type: text/*
08:55:37,445 FIN | [activation]     Command: view, Class: com.sun.activation.viewers.TextViewer
08:55:37,445 FIN | [activation] parse: text/*;;        x-java-edit=com.sun.activation.viewers.TextEditor
08:55:37,445 FIN | [activation]   Type: text/*
08:55:37,445 FIN | [activation]     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;;     x-java-content-handler=com.sun.mail.handlers.text_html
08:55:37,445 FIN | [activation]   Type: text/html
08:55:37,445 FIN | [activation]     Command: content-handler, Class: com.sun.mail.handlers.text_html
08:55:37,445 FIN | [activation] parse: text/xml;;         x-java-content-handler=com.sun.mail.handlers.text_xml
08:55:37,445 FIN | [activation]   Type: text/xml
08:55:37,445 FIN | [activation]     Command: content-handler, Class: com.sun.mail.handlers.text_xml
08:55:37,445 FIN | [activation] parse: text/plain;;     x-java-content-handler=com.sun.mail.handlers.text_plain
08:55:37,445 FIN | [activation]   Type: text/plain
08:55:37,445 FIN | [activation]     Command: content-handler, Class: com.sun.mail.handlers.text_plain
08:55:37,445 FIN | [activation] parse: multipart/*;;     x-java-content-handler=com.sun.mail.handlers.multipart_mixed
08:55:37,445 FIN | [activation]   Type: multipart/*
08:55:37,445 FIN | [activation]     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]   Type: message/rfc822
08:55:37,445 FIN | [activation]     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;;        x-java-content-handler=com.sun.mail.handlers.text_plain
08:55:37,445 FIN | [activation]   Type: text/plain
08:55:37,445 FIN | [activation]     Command: content-handler, Class: com.sun.mail.handlers.text_plain
08:55:37,445 FIN | [activation] parse: text/html;;        x-java-content-handler=com.sun.mail.handlers.text_html
08:55:37,445 FIN | [activation]   Type: text/html
08:55:37,445 FIN | [activation]     Command: content-handler, Class: com.sun.mail.handlers.text_html
08:55:37,445 FIN | [activation] parse: text/xml;;        x-java-content-handler=com.sun.mail.handlers.text_xml
08:55:37,445 FIN | [activation]   Type: text/xml
08:55:37,445 FIN | [activation]     Command: content-handler, Class: com.sun.mail.handlers.text_xml
08:55:37,445 FIN | [activation] parse: multipart/*;;        x-java-content-handler=com.sun.mail.handlers.multipart_mixed; x-java-fallback-entry=true
08:55:37,445 FIN | [activation]   Type: multipart/*
08:55:37,445 FIN | [activation]     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]   Type: message/rfc822
08:55:37,445 FIN | [activation]     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;;        x-java-view=com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation]   Type: image/gif
08:55:37,445 FIN | [activation]     Command: view, Class: com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] parse: image/jpeg;;        x-java-view=com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation]   Type: image/jpeg
08:55:37,445 FIN | [activation]     Command: view, Class: com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] parse: text/*;;        x-java-view=com.sun.activation.viewers.TextViewer
08:55:37,445 FIN | [activation]   Type: text/*
08:55:37,445 FIN | [activation]     Command: view, Class: com.sun.activation.viewers.TextViewer
08:55:37,445 FIN | [activation] parse: text/*;;        x-java-edit=com.sun.activation.viewers.TextEditor
08:55:37,445 FIN | [activation]   Type: text/*
08:55:37,445 FIN | [activation]     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]   search DB #1
08:55:37,461 FIN | [activation]     got content-handler
08:55:37,461 FIN | [activation]       class com.sun.mail.handlers.text_plain
08:55:37,461 FIN | [activation] MailcapCommandMap: createDataContentHandler for image/gif
08:55:37,461 FIN | [activation]   search DB #1
08:55:37,461 FIN | [activation]   search DB #2
08:55:37,461 FIN | [activation]   search DB #3
08:55:37,461 FIN | [activation]   search fallback DB #1
08:55:37,461 FIN | [activation]   search fallback DB #2
08:55:37,461 FIN | [activation]   search fallback DB #3
08:55:37,476 FIN | [activation] MailcapCommandMap: createDataContentHandler for multipart/related
08:55:37,476 FIN | [activation]   search DB #1
08:55:37,476 FIN | [activation]     got content-handler
08:55:37,476 FIN | [activation]       class com.sun.mail.handlers.multipart_mixed
### EXCEPTION ###########################################
08:55:37,476 INF | [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd at 1aa0a15
org.jbpm.api.JbpmException: could not send email: javax.mail.internet.MimeMessage at 1684e26
    at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl.java:60)
    at org.jbpm.jpdl.internal.activity.MailActivity.perform(MailActivity.java:46)


  As you see, there is no DataContentHandler being configured for image/gif, so the testcase failed.  I think there must be additional mailcap file being configured in your and QA environments.  So, do I need add an additional mailcap file into my java.home directory?

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/539325#539325]

Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100423/614bf1fa/attachment.html 


More information about the jboss-user mailing list