Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problems using JavaMail and activation with Java 1.6

843830Jul 30 2007 — edited May 16 2008
Hi,

I have developed an application with a SOAP architecture using Axis. Everything worked fine until I upgrade the JRE version from 1.5 to 1.6. Since then a "javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/related; type="text/xml" " exception is thrown every time I try to connect to the webservices.

Debugging the code I've found that the problem is a null value in the "dch" attribute of the ObjectDataContentHandler object returned by the getInputStream method in the DataHandler class.

When I launch the application using JRE 1.5 this attribute value is "text_plain" and everthing woks ok but when I launch it with JRE 1.6 the attribute has a wonderful "null" value...

Anybody knows what could be the reason for that "null" value?

I've looking for this problem in diferent forums and I believe that could be some kind of incompatibility between the activation version provided with the JRE 1.6 and the JavaMail 1.4 version but I'm not sure.

Thanks in advance!

Comments

Create a custom authentication process and check for the entry in your custom table for that user.

van Baal HR
Answer

That is just what I did. I have created a separate package with a function and a procedure in it, that uses the user defined table to select the user data from. Then I changed the code behind the login process to call for the newly created package. I have pretty much used the concept posed here: http://o7planning.org/en/10443/custom-authentication-in-oracle-apex#a1349999

Marked as Answer by van Baal HR · Sep 27 2020
1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 13 2008
Added on Jul 30 2007
10 comments
468 views