I’m having trouble sending mail with the mail plugin. Specifically the exception logged is:
javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain
This is Servoy 3.1, Window XP (and 2003), Java 6.
I’ve googled the error and it seems typically to be a problem of conflicting versions of mail.jar (JavaMail) and activation.jar (JAF)…but I can’t seem to sort out versions. I tried downloading the latest of both and using those in /lib, but no joy.
Bummer. I don’t really want to drop to 1.5, Java6 is really nice on Windows. Noticeably faster and much smoother graphically.
Anyway, I did research the error a bit. It’s usually do to mismatch versions of JAF (activation.jar) and JavaMail (mail.jar). Since JAF became part of the Java distribution, this seems like the likely cause.
I wonder if there’s a way to manipulate the CLASSPATH to make it work.
Where does the classpath get set for a new instance of Servoy?
In your Java6 /lib/ext directory and the mail plugin starts working again.
That sounds good for a developer environment but what about the clients machines? The autoinstall feature of Servoy would be broken and you’ll have to manually install mail.jar in every single client PC.
I think Marcel is right, it’s too early to adopt java 1.6 in production.
Agreed, I’m only in development at the moment, however. Go-live on this app isn’t until April 1, so hopefully Java 6 will be officially supported by then.
so hopefully Java 6 will be officially supported by the
I would send a direct email to Servoy.
When I am correct J6 is not yet released (at least not by default available at java.com). That means Sun has to release it first and then Servoy needs to do their work on it.
That sounds good for a developer environment but what about the clients machines? The autoinstall feature of Servoy would be broken and you’ll have to manually install mail.jar in every single client PC.
I think Marcel is right, it’s too early to adopt java 1.6 in production.
FYI, this particular workaround does work in the deployed environment, because the mail is sent on the server side. Your point is still valid, however.
g.