>>>>> Chandan Singh <[email protected]>:
> The same code works fine in 4.3.10 but fails in 4.4.6 . Any changes done
> related to mail in 4.4.6
Yes, but:
1. Do a "mvn dependency:tree" and take a look at if javamail is shown
as a transitive dependency of dependencies and if different
dependencies list different versions
then
2. Do a "bundle:list | grep -i javamail" in the karaf command line
after loading your project, to see if you can see more than one
javamail with different versions
If you see no matches, try with a lower start level,
e.g. "bundle:list -t 20 | grep -i javamail"
If both of those hold true that would be an indication that different
OSGi bundles might use different versions of javamail (which could cause
seemingly the same type, not to be so in OSGi... different
classloaders).
You can try doing the command in "2." in 4.4.6 as well to see if things
look different there.
(Note: this is just looking for a possible cause, and not a suggestion
for a cure)