JavaMail through the exchange server

Posted on 2004-11-01
Medium Priority
Last Modified: 2013-11-24
I'm using these :

OS Win2k prof.
DB : Oracle (Oracle Workflow DataBase)
My mail Server : Exchange server

i create a main class using the javaMail for sending email, this class is mainly located in jar file to be used by the ORacle Workflow listner for the external java.

when i test the class on my machine the class goes fine and sending the email, but when i put it in the jar file and let all the jar files that related to this class able to see by this class. the class throw an error as the following:

"the Following Exception has been thrown: java.lang.UnsatisfiedLinkError: doPrivileged
java.lang.UnsatisfiedLinkError: doPrivileged
      at javax.mail.SecuritySupport12.getContextClassLoader(SecuritySupport12.java:24)
      at javax.mail.Session.loadAllResources(Session.java:1061)
      at javax.mail.Session.loadProviders(Session.java:864)
      at javax.mail.Session.<init>(Session.java:188)
      at javax.mail.Session.getInstance(Session.java:210)
      at ae.mil.eforces.hr.workflow.ext.Notify.execute(Notify.java:100)
      at oracle.apps.fnd.wf.WFStandardQueue.executeFunction(WFStandardQueue.java)
      at oracle.apps.fnd.wf.WFFALsnr.listen(WFFALsnr.java)
      at oracle.apps.fnd.wf.WFFALsnr.main(WFFALsnr.java)
return false"

When i tried to see which line is the error i found that the error is throw on this stmt:

" Session session = Session.getInstance(properties,null);   "

Plz if any one can help me in this issue asap ...


Question by:samers
LVL 13

Accepted Solution

petmagdy earned 450 total points
ID: 12471712
it seems that Oracle Workflow engine has an Older JDK that dosn'y support Java mail libraries, what is Oracle workflow JDK version?

if it is old their is a work arround to solve this problem

Author Comment

ID: 12481074
The JDK version is 1.3.1_01 which I think is supporting JAVA Mail API's.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question