Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24

Thread: problem with javax.mail packages

  1. #21
    Join Date
    Oct 2008
    Posts
    493

    Default

    Hi Skippy,

    I've done some experimenting with the application that you sent me, and, at long last, I think I may have cracked it.

    I managed to reproduce the problem on my Mac development box using Java 6 (1.6.0_07). I then tried it on my Mac using Java 5, and could not reproduce the problem. Crucially, in the Java 5 case, the JVM would be using the javax.activation API and implementation from the 1.1.1 javax activation bundle, whereas on Java 6, it would be using them from the JRE (anything that's part of the JRE takes precedence over what's in dm Server's lib directory). I then tried the app on an Ubuntu box, this time using Java 6 1.6.0_10. I could not reproduce the problem.

    It would appear that a fix has been made to the Activation implementation somewhere between the 0_07 and 0_10 releases of Java 6. This tallys with Kryptolus's experience where updating the version of JDK 6 fixed the problem.

    Is upgrading the version of SE 6 that you're using an option for you?
    Andy Wilkinson
    SpringSource

  2. #22
    Join Date
    Nov 2008
    Posts
    24

    Default

    Well Andy, thank you ever so much for investigating this for me (and anyone else coming across the same problem). Fortunately, I am able to use a newer JVM and can confirm that, having upgraded to JRE 1.6.0 u11 - I had a copy kicking around already - the mail bundle now works like a dream, even without the "horrible hack"!

    Many thanks once again.

    Cheers,
    Skippy

  3. #23
    Join Date
    Oct 2008
    Posts
    493

    Default

    Great stuff! Glad to hear you got it working, and that the horrible hack is no more
    Andy Wilkinson
    SpringSource

  4. #24

    Default

    I've just had this same problem "No object DCH for MIME type" but on Ubuntu java version "1.6.0_13". So I don't know how you guys solved it by upgrading to 1.6.0_11.
    What I did is copy the mailcab.default to my own bundle and it worked. Seems to be a classloading problem which I don't fully understand yet.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •