13 Replies Latest reply on Apr 28, 2010 8:35 PM by rebody

    AttachmentTest failure

    rebody

      Hi Alejandro,

        I had updated current trunk.  The org.jbpm.test.activity.mail.AttachmentTest failed.  The test case reported as below:

       

      ### EXCEPTION ###########################################
      13:20:12,799 INF | [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd@1613b53
      org.jbpm.api.JbpmException: could not send email: javax.mail.internet.MimeMessage@1aa0a15
          at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl.java:60)
          at org.jbpm.jpdl.internal.activity.MailActivity.perform(MailActivity.java:46)
          at org.jbpm.jpdl.internal.activity.JpdlAutomaticActivity.execute(JpdlAutomaticActivity.java:15)
          at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
          at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:657)
          at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:617)
          at org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:218)
          at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:65)
          at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:38)
          at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
          at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
          at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
          at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
          at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
          at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
          at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:70)
          at org.jbpm.test.activity.mail.AttachmentTest.testVariableAttachment(AttachmentTest.java:84)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at junit.framework.TestCase.runTest(TestCase.java:164)
          at org.jbpm.test.BaseJbpmTestCase.runTest(BaseJbpmTestCase.java:87)
          at junit.framework.TestCase.runBare(TestCase.java:130)
          at junit.framework.TestResult$1.protect(TestResult.java:106)
          at junit.framework.TestResult.runProtected(TestResult.java:124)
          at junit.framework.TestResult.run(TestResult.java:109)
          at junit.framework.TestCase.run(TestCase.java:120)
          at junit.framework.TestSuite.runTest(TestSuite.java:230)
          at junit.framework.TestSuite.run(TestSuite.java:225)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
          at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
          at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
          at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
          at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
      Caused by: javax.mail.MessagingException: IOException while sending message;
        nested exception is:
          javax.activation.UnsupportedDataTypeException: no object DCH for MIME type image/gif
          at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:676)
          at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl.java:51)
          ... 43 more
      Caused by: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type image/gif
          at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:896)
          at javax.activation.DataHandler.writeTo(DataHandler.java:317)
          at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
          at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:874)
          at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:444)
          at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:102)
          at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:894)
          at javax.activation.DataHandler.writeTo(DataHandler.java:317)
          at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
          at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
          at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
          ... 44 more
      

       

        The activation cannot find DataContentHandler(DCH) for Mime-Type image/gif.  jBPM 4 are using activition-1.1.jar to provider javamail attach.  When I change it to activation-1.1.1.jar,  the attachmenttest could pass successfully.

       

        I digg deeper and find out that activition-1.1.1.jar decide the dataContent's type, when the class of data content is byte[],  it will write it to the content directly.

       

        I saw there is a mailcap file in the mail-1.4.1.jar at META/mailcap.  Here is the content.

       

      #
      # @(#)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
      

       

        As we can see, the image/gif and image/jpeg parts have been commented, so they won't be effect.

       

        At the last, how could we solve this exception?  Could we update activation-1.1.jar to activation-1.1.1.jar?  Or we should do some other things to prevent the exception?

       

        Any reply will be appreciate.  Thank you.

        • 1. Re: AttachmentTest failure
          aguizar

          Huisheng, this is weird... AttachmentTest works for me locally without any change to the project POM file, and it passed in Hudson for both java15 and java16. Do all test methods in AttachmentTest fail for you? What is your test environment (OS, JDK)?

          • 2. Re: AttachmentTest failure
            rebody

            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@1aa0a15
            org.jbpm.api.JbpmException: could not send email: javax.mail.internet.MimeMessage@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?

            • 3. Re: AttachmentTest failure
              swiderski.maciej

              Hi,

               

              I can confirm that test pass with no additional setup or changes.

              Environment: MacOS, jdk 1.6

               

              /Maciej

              • 4. Re: AttachmentTest failure
                rebody

                Hi Maciej,

                  When I change JDK from 1.5 to 1.6, then the testcase passed.  And I find there was javax.activation package in the rt.jar of JDK 1.6.  I decompile the ObjectDataHandler.class to ObjectDataHandler.java,  and saw its content is as same as activation-1.1.1.jar.  It means that the JDK 1.6 included a activation-1.1.1.jar.  So if someone want to send mail with JDK1.5, he must use activation-1.1.1.jar.

                 

                  So If Alejandro could modify the pom.xml and change activation.jar from 1.1 to 1.1.1.  It will be very appreciate.

                • 5. Re: AttachmentTest failure
                  swiderski.maciej

                  Hi Huisheng,

                   

                  I tried with JDK 1.5 and it went well. In deed it is weird.

                   

                  /Maciej

                  • 6. Re: AttachmentTest failure
                    rebody

                    Hi Maciej,

                      I had checked jdk-1.5.0_15 and jdk-1.5.0_22.  There is no javax.activation package in both of them.  The reason of this error is caused by activation-1.1 didn't handle byte[].  The activation-1.1.1 will check the data type, if there is a byte[], activation-1.1.1 will not find additional ContentDataHandler.

                     

                      I can't find either activation-1.1.1 or DataContentHandler configuration for image/gif.  If you have time, could you add javax.activation.level=FINEST in the logging.properties and run AttachmentTest again, and show me the content of target/surefire-reports/org.jbpm.test.activity.mail.AttachmentTest-output.txt?  It will help me to find what I missed.  Furthermore could you show me the result of 'java -version' and 'mvn depedency:tree'?  Thank you very much.

                    • 7. Re: AttachmentTest failure
                      swiderski.maciej

                      Hi,

                       

                      here are the details you asked for:

                       

                      Maven version: 2.0.9

                      Java version: 1.5.0_22

                      OS name: "mac os x" version: "10.5.8" arch: "i386" Family: "unix"

                       

                      Attached is dependency tree and logs from attachment test execution.

                       

                      Cheers,

                      Maciej

                      • 8. Re: AttachmentTest failure
                        rebody

                        Hi Maciej,

                          Thank you for your help.

                         

                          From your AttachmentTest-output.txt, I am afraid you are using JDK-1.6, because image/gif didn't find the DataContentHandler of image/gif.  Between line 14 to 18, we could see the search result for image/gif.

                         

                        18:10:48,976 FIN | [activation] MailcapCommandMap:  createDataContentHandler for image/gif
                         18:10:48,976 FIN | [activation]   search DB #1
                         18:10:48,976 FIN | [activation]   search DB #2
                         18:10:48,976 FIN | [activation]   search fallback DB #1
                         18:10:48,976 FIN | [activation]   search fallback DB #2
                        

                         

                          If activation could find DataContentHandler, it will look like this, between line 10 to 13:

                         

                        18:10:48,975 FIN | [activation] MailcapCommandMap: createDataContentHandler for text/plain
                        18:10:48,975 FIN | [activation]   search DB #1
                        18:10:48,975 FIN | [activation]     got content-handler
                        18:10:48,976 FIN | [activation]       class com.sun.mail.handlers.text_plain
                        

                         

                          Because there are other testcases using javamail.jar, so I can't see the initialization information of mailcap.  If you run AttachmentTest alone, you could see how it initialized.  You could try this command.

                         

                        mvn test -Dtest=AttachmentTest
                        

                         

                          Between line 130 to 169, we could see how mailcap initialized, it try read from C:\Documents and Settings\xuhs\.mailcap, D:\apps\jdk1.5.0_15\jre\lib\mailcap, jar:file:/D:/.m2/repository/javax/mail/mail/1.4.1/mail-1.4.1.jar!/META-INF/mailcap, /META-INF/mailcap.default and parse them. And there is not any DataContentHandler for image/gif.  We could only find view for image/gif, not DataContentHandler.

                         

                        09:29:41,289 FIN | [activation] parse: image/gif;;        x-java-view=com.sun.activation.viewers.ImageViewer
                        09:29:41,289 FIN | [activation]   Type: image/gif
                        09:29:41,289 FIN | [activation]     Command: view, Class: com.sun.activation.viewers.ImageViewer
                        

                         

                          If activation could find DataContentHandler for image/gif, it should be looked like this.

                         

                        09:29:41,274 FIN | [activation] parse: text/plain;;        x-java-content-handler=com.sun.mail.handlers.text_plain
                        09:29:41,274 FIN | [activation]   Type: text/plain
                        09:29:41,274 FIN | [activation]     Command: content-handler, Class: com.sun.mail.handlers.text_plain
                        

                         

                          If activation-1.1 cannot find DataContentHandler for image/gif, it will throw an exception.  And activation-1.1.1 will solve byte[] type specially.  JDK-1.6 already included activation-1.1.1 in the rt.jar, so it will allow us using byte[] type without specify DataContentHandler.

                         

                          I put my AttachmentTest-output.txt into attach.  If you have time, please have a look at it.  Thank you very much.

                         

                          And I think the reason of problem is clear,  the simplest solution is upgrade activation from 1.1 to 1.1.1.

                        • 9. Re: AttachmentTest failure
                          aguizar

                          Huisheng, I tested with JDK 1.5 and got an exception too. Why it works under JDK 1.5 in Hudson is beyond me.

                          [aguizar@siankaan test-db]$ mvn -Dtest=AttachmentTest -V test
                          Apache Maven 2.2.1 (r801777; 2009-08-06 14:16:01-0500)
                          Java version: 1.5.0_20
                          OS name: "linux" version: "2.6.32.11-99.fc12.i686" arch: "i386" Family: "unix"
                          -------------------------------------------------------
                          Tests in error: 
                            testVariableAttachment(org.jbpm.test.activity.mail.AttachmentTest)
                          

                          The exception is:

                          javax.activation.UnsupportedDataTypeException: no object DCH for MIME type image/gif
                          

                          I'll upgrade activation.jar to 1.1.1 as you suggested. Thanks for the patience.

                          • 10. Re: AttachmentTest failure
                            rebody

                            Hi Alejandro,

                              Thank you very much to help me with it.

                              I am not familiar with Hudsun,  I guess it maybe include some additional configuration for javamail, so the testcase could pass.  I will keep digging if I still have enough time.

                            • 11. Re: AttachmentTest failure
                              swiderski.maciej

                              Hi,

                               

                              I reproduced that issue on windows box as well. I am quite sure it did work on MacOSX, I will double check it later today.

                               

                              On what environment does Hudson run?

                               

                              Cheers,

                              Maciej

                              • 12. Re: AttachmentTest failure
                                swiderski.maciej

                                Hi,

                                 

                                on MacOSX it works fine with follwoing environment:

                                Maven version: 2.0.9

                                Java version: 1.5.0_22

                                OS name: "mac os x" version: "10.5.8" arch: "i386" Family: "unix"

                                 

                                Attached log file with debug output enabled while executing test.

                                 

                                Cheers,

                                Maciej

                                • 13. Re: AttachmentTest failure
                                  rebody

                                  HI Maciej,

                                    It is very strange,  from your testcase-output.  It is surely you are using JDK-1.5 and activation-1.1.  So I guess the Mac maybe has some additional system configuration to support javamail.  Or maybe the JDK for Mac is difference to Windows.