Javamail deadlock : Please help

Please help me.
I have searched everywhere in this forum but I got no answer to my problem so I have decided to make a new post.
I have been getting this error for a 8days now. I am trying to send an email using Javamail API but Transport.send() and(or) Transport.sendMessage() leads to a deadlock. This is a web application. when the client submits a feedback we would like to send him an email confirmation. But then that page keep running forever. I have tried all but nothing works for me. The weird is that when I turn off tomcat the message is delivered.
Here is the code
public class MailUtil
public static void sendMail(String to, String from,
String subject, String body, boolean bodyIsHTML)
throws MessagingException
// 1 - get a mail session
//Properties props = new Properties();
Properties props = System.getProperties();
props.put("mail.transport.protocol", "smtp");
props.put("mail.smtp.host", smtpserver)
props.put("mail.smtp.port", 2525);
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.connectiontimeout","20000");
props.put("mail.smtp.timeout","40000");
props.put("mail.smtp.quitwait", "false");
// create some properties and get the default Session
Session session = Session.getInstance(props, new Authenticator() {
public PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(authemail, authpassword);
session.setDebug(true);
// 2 - create a message
Message message = new MimeMessage(session);
java.util.Date today=new java.util.Date();
message.setSentDate(today);
message.setSubject(subject);
if (bodyIsHTML)
message.setContent(body, "text/html");
else
message.setText(body);
// 3 - address the message
message.setFrom(new InternetAddress(from));
message.setRecipient(Message.RecipientType.TO, new InternetAddress(to));
// 4 - send the message
Transport.send(message);
this how I called it: MailUtil.sendMail(to, from, subject, body, isBodyHTML);
props.put("mail.smtp.connectiontimeout","20000");
props.put("mail.smtp.timeout","40000");
props.put("mail.smtp.quitwait", "false");
was just to see if the problem will be solved but no way
Please help me

I think that you've posted this to the wrong forum. I suggest you try the JavaMail forum: http://forum.java.sun.com/forum.jsp?forum=43

Similar Messages

  • Javamail question,please help me!

    WSAD5.1;javamail1.1.3;jaf1.0.2; when this code runing reach to line "transport.connect ",it break with question"javaw.exe met questions needs to closed" ,why ? please help me !!!
    import java.io.FileNotFoundException;
    import java.util.Date;
    import java.util.Properties;
    import javax.mail.Address;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.Multipart;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeBodyPart;
    import javax.mail.internet.MimeMessage;
    import javax.mail.internet.MailDateFormat;
    public class TestMail {
    public static void main(String[] args)
    throws FileNotFoundException, MessagingException {
    System.out.println("000000000000000");
    final Properties pro = new Properties();
    pro.put("mail.host", "182.119.172.121");
    System.out.println("1111111111");
    for (int i = 0; i < 1; i++) {
    // new Thread(new Runnable() {
    //public void run() {
    final Session session =
    Session.getDefaultInstance(pro, null);
    session.setDebug(false);
    System.out.println("222222222222");
    Transport transport = null;
    try {
    transport = session.getTransport("smtp");
    System.out.println("55555555555");
    transport.connect("182.119.172.121","caol","password");
    System.out.println("66666666666666");
    Message tMsg = new MimeMessage(session);
    tMsg.setText("this is a test");
    // for (int i = 0; i < 10; i++) {
    try {
    transport.sendMessage(
    tMsg,
    new Address[] {
    new InternetAddress("caogq@[182.119.172.121]")});
    } catch (MessagingException e) {
    e.printStackTrace();
    System.out.println("33333333333333");
    } catch (MessagingException e) {
    e.printStackTrace();
    } catch(Exception ex){
    ex.printStackTrace();
    finally {
    if (transport != null) {
    try {
    transport.close();
    } catch (MessagingException e) {
    e.printStackTrace();
    // }).start();
    try {
    Thread.sleep(10 * 1000);
    } catch (InterruptedException e) {
    e.printStackTrace();
    System.out.println("444444444444444");
    // do {} while (true);
    Edited by: wuyx on Nov 19, 2007 6:29 PM

    Ok, you have more than one frame and when you make your dialog, it is only modal on one frame.
    Not sure how to make a workaround for that. That would proably require that when another frame got the focus, it should check if any of the frames has a modal dialog visible, and if that is the case, it should move the dialog to the front (dialog.toFront()).

  • Please help me to use javamail to send mail in servlet program

    hi
    i want to send simple mail from user [email protected] to user [email protected] using servlet program
    i can't compile the javamail demo program servlet "JavaMailServlet.java".
    i have this exception
    Note: SendMailServlet.java uses or overrides a deprecated API.
    Note: Recompile with -deprecation for details.
    i don't no how to do
    please help me if you have code
    thank's

    Given that you're having problems with your [url http://forum.java.sun.com/thread.jsp?forum=43&thread=536278&tstart=0&trange=30]demo mail code as well as your demo servlet code, perhaps you would be better served by learning about JavaMail, servlets, and perhaps Java in general (for example - the meaning of deprecated). Then you may be able to build your own servlet for handling mail or at least will be able to revise the demo code found elsewhere.
    Of course, if the purpose is really not to learn how to use Java, JavaMail, servlets, etc. but to simply create something that works then you could always hire someone to write the program for you.
    This is not intended to be rude or anything - just an observation and some food for thought.
    &#8734; brewman &#8734;

  • Please help Javamail

    javax.mail.MessagingException: 550 5.7.1 Sender rejected: [email protected] is not a valid from address
    Can anyone please help me debug this problem....
    this is the code that im using
    <%@ page import="java.util.*, javax.mail.*, javax.mail.internet.*" %>
    <%
    Properties props = new Properties();
    props.put("mail.smtp.host", "mail.emirates.net.ae");
    Session s = Session.getInstance(props,null);
    MimeMessage message = new MimeMessage(s);
    InternetAddress from = new InternetAddress("[email protected]");
    message.setFrom(from);
    InternetAddress to = new InternetAddress("[email protected]");
    message.addRecipient(Message.RecipientType.TO, to);
    message.setSubject("Test from JavaMail.");
    message.setText("Hello from JavaMail!");
    Transport.send(message);
    %>
    <html>
    <p align="center">A Message has been sent.<br>Check your inbox.</p>
    <p align="center">Click here to send another!</p>
    </html>

    I'm sorry, I can't be bothered to read this unformatted gibberish. Is this the same as in this thread: http://forum.java.sun.com/thread.jspa?threadID=760970 ?

  • Javamail deadlock

    Please help me.
    I have searched everywhere in this forum but I got no answer to my problem so I have decided to make a new post.
    I have been getting this error for a 8days now. I am trying to send an email using Javamail API but Transport.send() and(or) Transport.sendMessage() leads to a deadlock. This is a web application. when the client submits a feedback we would like to send him an email confirmation. But then that page keep running forever. I have tried all but nothing works for me. The weird is that when I turn off tomcat the message is delivered.
    Here is the code
    public class MailUtil
    public static void sendMail(String to, String from,
    String subject, String body, boolean bodyIsHTML)
    throws MessagingException
    // 1 - get a mail session
    //Properties props = new Properties();
    Properties props = System.getProperties();
    props.put("mail.transport.protocol", "smtp");
    props.put("mail.smtp.host", smtpserver)
    props.put("mail.smtp.port", 2525);
    props.put("mail.smtp.auth", "true");
    props.put("mail.smtp.connectiontimeout","20000");
    props.put("mail.smtp.timeout","40000");
    props.put("mail.smtp.quitwait", "false");
    // create some properties and get the default Session
    Session session = Session.getInstance(props, new Authenticator() {
    public PasswordAuthentication getPasswordAuthentication() {    
    return new PasswordAuthentication(authemail, authpassword);
    session.setDebug(true);
    // 2 - create a message
    Message message = new MimeMessage(session);
    java.util.Date today=new java.util.Date();
    message.setSentDate(today);
    message.setSubject(subject);
    if (bodyIsHTML)
    message.setContent(body, "text/html");
    else
    message.setText(body);
    // 3 - address the message
    message.setFrom(new InternetAddress(from));
    message.setRecipient(Message.RecipientType.TO, new InternetAddress(to));
    // 4 - send the message
    Transport.send(message);
    this how I called it: MailUtil.sendMail(to, from, subject, body, isBodyHTML);
    props.put("mail.smtp.connectiontimeout","20000");
    props.put("mail.smtp.timeout","40000");
    props.put("mail.smtp.quitwait", "false");
    was just to see if the problem will be solved but no way
    Please help me

    Crossposted in the JavaMail forum : [http://forums.sun.com/thread.jspa?threadID=5399984&tstart=0]

  • Please help me: what is the wrong in my code?

    Hi all ,
    I wrote a script in unix to send a mail, i am executing the script using java code, when i test the script separately in unix it is working properly , when i am executing it in java it is not working properly it is not showing any errors.
    UNIX script: Send_mail.ksh
    #!/bin/ksh
    . ./set_mail_details.ksh
    echo 'In script'
    subject=$1
    echo '\nsubject'
    echo $1
    echo "$subject" | sed 's/~/ /g' | read sub
    body_of_email=$2
    echo '\nBody'
    echo $2
    echo '\nMail List'
    to_list=$3
    echo $3
    echo "$body_of_email" | sed 's/~/ /g' | read body
    (echo "$body";echo '\n';cat U.CUE_CPM )| mailx -s "$sub" -r [email protected] "$to_list"
    if [ $? -eq 0 ]
    then
      echo "Mail is Sent"
    else
      echo "Mail is not sent(In script)"
    fijava code: sendMail.java
    import java.lang.*;
    import java.util.*;
    import java.io.*;
    public class sendMail
      public static void main(String argv[])
          /* This function will send a mail.*/
              String mailIds = "[email protected],[email protected]";
              try{
                   String subject="Test mail";
                       String body = "This is to test the code";
                       String exec_command = "send_mail.ksh "+subject+" "+body+" "+mailIds;
                       Process p = Runtime.getRuntime().exec(exec_command);
                            int exitVal=p.waitFor();
                            if (exitVal == 0)
                                    System.out.println("Mail Is Sent Successfully");
                            else
                                    System.out.println("Mail Is Not Sent ");
                     catch(Exception e)
                        System.out.println("Mail Delivary Failure due to following reasons.");
                            System.out.println("error in email:"+e.getMessage());
                            System.out.println("Cause:"+e.getCause());
                            System.out.println("to string:"+e.toString());
    }when i execute the sendMail i am getting the output as
    $ java sendMail
    Mail Is Sent Successfully
    but i didn't receive any mail.can any one please help in resolving my prob :((

    When using Runtime.exec(String) method, the parameter is split by whitespaces. The first token being the program to run, and each other being considerred as an argument to this program.
    In your test, the body contains whitespaces. Therefore, "This" is considered as one argument, and "is" as another one (mail list in this case...), etc.
    You should consider using the Runtime.exec(String[]) method instead, whith which you have control on the parameters (the first element of the array being the command and every subsequent element being an argument.)String[] exec_command = {"send_mail.ksh", subject, body, mailIds};
    Process p = Runtime.getRuntime().exec(exec_command);http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html
    Tim - What about JavaMail ?

  • Urgent Please help me!!!!!!!

    Hi Guys,
    I am a true beginner in Java..Just started studying Java....I want to do a web based project as a part of my Main Project...
    I want to do a web based application Java that can fetch data from a website and can generate microsoft excel reports based on the fetched data....I will give a route map towards my project...
    1) I want to get the details of a particular Mutual Fund or Share from websites like valueresearch.com or moneycontrol.com
    2) Based on that details the application have to generate an Excel Report....
    3) The application must be able to send the generated excel report to client's email id.
    Is it possible to do an application like this using Java...
    Guys please don't feel bad about me...I am not questioning the power of Java...I know Java is a very powerful language..But I am a true beginner and I don't know the features providing by Java....
    I am familiar with PHP...In PHP there is a feature called CURL used for remote posting to websites and fetching data from them...Is there any similar features like CURL in Java?...
    Please help me guys...please post your answers immedietly....
    Thanking You,
    Jodil Davis

    Hello Jodil.
    Just some quick pointers:
    1) overly general questions (like this) often lead to equally general responses, or flames for looking for someone to do your homework.
    2) Putting the word "Urgent" in your subject will lead to 50%+ of the forum ignoring your question.
    2) Using more than one pling (!) in your subject will lead to 50%+ of the forum ignoring your question.
    4) everyone here is a volunteer. So do not be demanding (post your answers immedietly).
    I highly recommend you take 10-20 minutes to read How To Ask Questions The Smart Way by Eric Steven Raymond.
    http://www.catb.org/~esr/faqs/smart-questions.html
    Jodil wrote:
    1) I want to get the details of a particular Mutual Fund or Share from websites like valueresearch.com or moneycontrol.comjava.net.URL
    2) Based on that details the application have to generate an Excel Report....Does it have to be excel, CSV would be simpler.
    3) The application must be able to send the generated excel report to client's email id.JavaMail, Commons Email, home-brew (read the SMTP specs, tis quite easy).

  • Error: Javax.mail does not exist, please help

    I have copies mail.jar and activation.jar in the classpath directory as instructed, then try to compile but got the below error: package javax.mail does not exist
    please help.
    G:\CRD>javac SendMailBean.java
    SendMailBean.java:22: package javax.mail does not exist
    import javax.mail.*; //JavaMail packages
    ^
    SendMailBean.java:23: package javax.mail.internet does not exist
    import javax.mail.internet.*; //JavaMail Internet packages
    ^
    SendMailBean.java:43: cannot resolve symbol
    symbol : class Session
    location: class SendMailBean
    Session l_session = Session.getDefaultInstance(l_props, null);
    ^
    SendMailBean.java:43: cannot resolve symbol
    symbol : variable Session
    location: class SendMailBean
    Session l_session = Session.getDefaultInstance(l_props, null);
    ^
    SendMailBean.java:48: cannot resolve symbol
    symbol : class MimeMessage
    location: class SendMailBean
    MimeMessage l_msg = new MimeMessage(l_session); // Create a New message
    ^
    SendMailBean.java:48: cannot resolve symbol
    symbol : class MimeMessage
    location: class SendMailBean
    MimeMessage l_msg = new MimeMessage(l_session); // Create a New message
    ^
    SendMailBean.java:50: cannot resolve symbol
    symbol : class InternetAddress
    location: class SendMailBean
    l_msg.setFrom(new InternetAddress(p_from)); // Set the From address
    ^
    SendMailBean.java:53: package Message does not exist
    l_msg.setRecipients(Message.RecipientType.TO,
    ^
    SendMailBean.java:54: cannot resolve symbol
    symbol : variable InternetAddress
    location: class SendMailBean
    InternetAddress.parse(p_to, false));
    ^
    SendMailBean.java:57: package Message does not exist
    l_msg.setRecipients(Message.RecipientType.CC,
    ^
    SendMailBean.java:58: cannot resolve symbol
    symbol : variable InternetAddress
    location: class SendMailBean
    InternetAddress.parse(p_cc, false));
    ^
    SendMailBean.java:62: package Message does not exist
    l_msg.setRecipients(Message.RecipientType.BCC,
    ^
    SendMailBean.java:63: cannot resolve symbol
    symbol : variable InternetAddress
    location: class SendMailBean
    InternetAddress.parse(p_bcc, false));
    ^
    SendMailBean.java:68: cannot resolve symbol
    symbol : class MimeBodyPart
    location: class SendMailBean
    MimeBodyPart l_mbp = new MimeBodyPart();
    ^
    SendMailBean.java:68: cannot resolve symbol
    symbol : class MimeBodyPart
    location: class SendMailBean
    MimeBodyPart l_mbp = new MimeBodyPart();
    ^
    SendMailBean.java:72: cannot resolve symbol
    symbol : class Multipart
    location: class SendMailBean
    Multipart l_mp = new MimeMultipart();
    ^
    SendMailBean.java:72: cannot resolve symbol
    symbol : class MimeMultipart
    location: class SendMailBean
    Multipart l_mp = new MimeMultipart();
    ^
    SendMailBean.java:83: cannot resolve symbol
    symbol : variable Transport
    location: class SendMailBean
    Transport.send(l_msg);
    ^
    SendMailBean.java:98: cannot resolve symbol
    symbol : class MessagingException
    location: class SendMailBean
    } catch (MessagingException mex) { // Trap the MessagingException Error
    ^
    19 errors

    Another person who doesn't understand how to set CLASSPATH.
    Move those JARs into the same directory as your SendMailBean.java and do it like this:
    javac -classpath .;mail.jar;activation.jar -d . *.java
    java -classpath .;mail.jar;activation.jar SendMailBeanRead how to set CLASSPATH properly:
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html

  • How to attach a word file in JAVA mail? Please help

    I am a JAVA rookie and I have problem attaching a word file using javamail. I searched almost all the forum but still couldn't find the solution.
    Sorry for the reposting. But can anybody please help me out? Your any words or links will be highly appreciated!
    Lakobe

    If you want to include an attachment with your message, you need to build up the parts, quite literally, because the name of the applicable interface is Part. The content of your Message will consist of multiple parts within a Multipart object. Part one of the message is a BodyPart that contains the message content. Part two of the message is a BodyPart that contains the attachment. The attachment itself is specified as a DataSource. You don't have to actually read the attachment.
    You start in the same way as you do for a message without an attachment. Create the message from the session and initialize the headers:
    Message message = new MimeMessage(session);
    message.setFrom(new InternetAddress(from));
    message.addRecipient(Message.RecipientType.TO,
    new InternetAddress(to));
    message.setSubject("JDC Attachment");
    However here you need to create the Multipart object:
    Multipart multipart = new MimeMultipart();
    For part one, create a BodyPart and set the text to be a message. Then, add the BodyPart to the Multipart you just created.
    BodyPart messageBodyPart = new MimeBodyPart();
    messageBodyPart.setText("Here's the file");
    multipart.addBodyPart(messageBodyPart);
    For part two, you need to create a BodyPart again, but this time you need to create a DataSource for the file.
    messageBodyPart = new MimeBodyPart();
    DataSource source = new FileDataSource(filename);
    Use a DataHandler object to attach the data source to the message. Simply create a DataHandler for the source and attach it to the message:
    messageBodyPart.setDataHandler(
    new DataHandler(source));
    Remember to set the filename of the attachment. This permits the recipient to know the name (and type) of the received file.
    messageBodyPart.setFileName(filename);
    Attach part two in the same way as part one:
    multipart.addBodyPart(messageBodyPart);
    And as a final step before sending, attach the Multipart to the Message:
    message.setContent(multipart);

  • Java mail api error- Please Help

    Hi, i have set up an smtp server on my local machine. i have given the smtp host address as 127.0.0.1
    I am getting the following error though. please help me out with the problem
    C:\trainee>java Emailer
    javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
    at javax.mail.Transport.send0(Transport.java:169)
    at javax.mail.Transport.send(Transport.java:98)
    at Emailer.sendEmail(Emailer.java:151)
    at Emailer.main(Emailer.java:194)
    Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047)
    ... 5 more
    Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    ... 6 more
    Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    ... 6 more

    It's a configuration error in your smtp server.
    See the JavaMail FAQ for more information.

  • Problem in connecting to mail store - please help me

    i have developed a mail user agent using javamail api.
    im having some problem in connecting to mail store
    it is giving MessagingException.
    the snippet is :
    store=session.getStore(url);
    try
    if(store.isConnected())
    store.close();
    store.connect();
    catch(MessagingException mexception)
    System.out.println("messaging exception store state -
    "+store.isConnected());
    //exception is raised and isConnected is false.
    --================--
    thanQ in advance
    prabhakar

    Dear tus,
    thanQ for ur suggession. i have printed stacktrace and im getting the following the exception
    please help me
    javax.mail.MessagingException: null;
    nested exception is:
    java.io.IOException
    at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:298)
    at javax.mail.Service.connect(Service.java:234)
    at javax.mail.Service.connect(Service.java:135)
    at javax.mail.Service.connect(Service.java:87)
    at sark.mail.MailStoreImpl.createSession(MailStoreImpl.java:356)
    at sark.mail.MailStoreImpl.fetchMails(MailStoreImpl.java:210)
    at org.apache.jsp.checkLogin$jsp._jspService(checkLogin$jsp.java:121)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServlet
    Wrapper.service(IDEJspServlet.java:174)
    at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJsp
    File(IDEJspServlet.java:247)
    at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(ID
    EJspServlet.java:339)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
    atcher.java:679)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
    ispatcher.java:431)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
    patcher.java:355)
    at mailController.service(mailController.java:66)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:243)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:201)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:566)
    at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve
    .java:246)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
    2344)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:164)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
    rValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:564)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
    462)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:163)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso r.java:1011)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja va:1106)
    at java.lang.Thread.run(Thread.java:536)
    thanks in advance
    prabhakar

  • Please Help - Urgent

    Hi everyone, I�m having problems with Java Mail, I have just installed it along with the java activation framework, they are located in the following directories:
    JavaMail: C:\jdk1.3.1\lib\javamail-1_2[1]
    Java activation framework: C:\jdk1.3.1\lib\jaf1_0_1[1]
    I have the classpath set as: C:\jdk1.3.1\lib\mail.jar;C:\jdk1.3.1\lib\activation.jar
    When I try to compile the sample code provided with these packages, msgsend.java using Jbuilder 2 I get the following errors:
    Error (36): cannot access directory javax\mail.
    Error (37): cannot access directory javax\mail\internet.
    Error (209): class message not found in class msgsend.
    Error (210): class MessagingException not found in class msgsend
    Error (134): class Session not found in class msgsend
    Error (134): variable Session not found in class msgsend
    Error (139): class Message not found in class msgsend
    Error (139): class MimeMessage not found in class msgsend
    Error (141): class InternetAddress not found in class msgsend
    Error (145): cannot access class Message.RecipientType;neither class nor source found for Message.RecipientType.
    Error (146): Variable InternetAddress not found in class msgsend
    Error (148): cannot access class Message.RecipientType;neither class nor source found for Message.RecipientType.
    Error (149): Variable InternetAddress not found in class msgsend
    Error (151): cannot access class Message.RecipientType;neither class nor source found for Message.RecipientType.
    Error (152): Variable InternetAddress not found in class msgsend
    Error (162): Variable Transport not found in class msgsend
    Error (170): class Store not found in class msgsend
    Error (172): class URLName not found in class msgsend
    Error (172): class URLName not found in class msgsend
    Error (189): class Folder not found in class msgsend
    Error (195): Variable Folder not found in class msgsend
    Error (197): class Message not found in class msgsend
    Error (197): class Message not found in class msgsend
    If I try to use another Java package to compile it I get even more errors (52), I cannot compile it by using the Javac command line compiler, it just says �Bad command or file name�.
    Can anyone tell me Why this is happening and how I might be able to fix it please, I need to start learning Java Mail quickly but at the moment I can�t even begin to do this until I can understand how to get this sample code to work.
    Thanks Everyone
    Noel

    First of all... don't post with topics like "Please Help - Urgent". The topic is supposed to reflect what the question is about.
    Secondly... think for a second. If mail.jar is in C:\jdk1.3.1\lib\javamail-1_2[1]... why are you with your classpath saying that mail.jar is in C:\jdk1.3.1\lib ?
    You classpath is supposed to point directly at you jar-files.
    /Michael

  • Please help: Exception when deploying ADF Web app to AS 10.1.3

    Hi everyone, I hope someone could help me with this.
    I'm using JDeveloper 10.3.2.0.4066. Oracle AS is 10.1.3.
    The application works fine on the embedded OC4J, but when deployed to Oracle AS I get the following 500 Internal server error:
    oracle.jbo.JboException: JBO-25222: Unable to create application module.     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:155)     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:80)     at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2431)     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:536)     at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2047)     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1913)     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2756)     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)     at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:258)     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:397)     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:392)     at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1550)     at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1408)     at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:99)     at oracle.adf.model.BindingContext.get(BindingContext.java:465)     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:280)     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:248)     at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:383)     at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)     at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:60)     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:87)     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:51)     at oracle.adf.model.binding.DCIteratorBindingDef.createExecutableBinding(DCIteratorBindingDef.java:277)     at oracle.adf.model.binding.DCBindingContainerDef.createExecutables(DCBindingContainerDef.java:296)     at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java:425)     at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:54)     at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:44)     at oracle.adf.model.BindingContext.get(BindingContext.java:491)     at oracle.adf.model.BindingContext.findBindingContainer(BindingContext.java:327)     at oracle.adf.model.BindingContext.findBindingContainerByPath(BindingContext.java:641)     at oracle.adf.model.servlet.ADFBindingFilter.isPageViewable(ADFBindingFilter.java:532)     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:301)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##javax.naming.NamingException [Root exception is java.lang.ClassCastException: com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication]     at oracle.jbo.server.InitialContextImpl.createJboHome(InitialContextImpl.java:59)     at oracle.jbo.common.JboInitialContext.lookup(JboInitialContext.java:77)     at javax.naming.InitialContext.lookup(InitialContext.java:351)     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:136)     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:80)     at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2431)     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:536)     at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2047)     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1913)     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2756)     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)     at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:258)     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:397)     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:392)     at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1550)     at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1408)     at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:99)     at oracle.adf.model.BindingContext.get(BindingContext.java:465)     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:280)     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:248)     at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:383)     at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)     at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:60)     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:87)     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:51)     at oracle.adf.model.binding.DCIteratorBindingDef.createExecutableBinding(DCIteratorBindingDef.java:277)     at oracle.adf.model.binding.DCBindingContainerDef.createExecutables(DCBindingContainerDef.java:296)     at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java:425)     at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:54)     at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:44)     at oracle.adf.model.BindingContext.get(BindingContext.java:491)     at oracle.adf.model.BindingContext.findBindingContainer(BindingContext.java:327)     at oracle.adf.model.BindingContext.findBindingContainerByPath(BindingContext.java:641)     at oracle.adf.model.servlet.ADFBindingFilter.isPageViewable(ADFBindingFilter.java:532)     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:301)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     at java.lang.Thread.run(Thread.java:595)Caused by: java.lang.ClassCastException: com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication     at oracle.jbo.common.PropertyManager.loadStaticEnvironmentFromProperties(PropertyManager.java:392)     at oracle.jbo.common.PropertyManager.loadProperties(PropertyManager.java:223)     at oracle.jbo.server.SessionImpl.init(SessionImpl.java:136)     at oracle.jbo.server.ApplicationModuleHomeImpl.createSession(ApplicationModuleHomeImpl.java:110)     at oracle.jbo.server.ApplicationModuleHomeImpl.<init>(ApplicationModuleHomeImpl.java:47)     at oracle.jbo.server.InitialContextImpl.createJboHome(InitialContextImpl.java:51)     ... 43 more
    I see that I have a ClassCastException but I don't know anything about this class.
    I did not find any other thread related to this.
    Could someone please help me?
    Thank you.

    Hi I am afraid I do have similar problem in production now. We just upgrade app server from 10.1.3.0 to 10.1.3.1 plus ADF Runtime libraries 10.1.3.2 plus one-off patch (bug 4398431) for JDBC Driver (fixing deadlock in java threads related to JDBC pooling)
    Any hint what might be a issue. I suspect it might be related to jbo.timetolive because first occurence of this message is about 1 hour after restart of application server and we are using default BC configuration jbo.timetolive= 1hour
    After that we see folowing error messga in application.log
    JBO-30003: The application pool (aacp.wpailin.bc.PailinAppModuleLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-25222: Unable to create application module.
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
    at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:233)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
    at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1536)
    at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1396)
    at oracle.adf.model.BindingContext.beginRequest(BindingContext.java:683)
    at oracle.adf.model.BindingRequestHandler.invokeBeginRequest(BindingRequestHandler.java:346)
    at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:166)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:161)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-25222: Unable to create application module.
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
    at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:233)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
    at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1536)
    at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1396)
    at oracle.adf.model.BindingContext.beginRequest(BindingContext.java:683)
    at oracle.adf.model.BindingRequestHandler.invokeBeginRequest(BindingRequestHandler.java:346)
    at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:166)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:161)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)

  • Great problem please help

    hi,
    im just new to j2mej and got a problem, while i was running the "Deitel and Delitel advance java 2 programming" chapter 12 last example. i made a servlet and requested it from mobile device. now when i run servlet all goes fine and when i run midip code. first the screen comes asking to use "air time", i click YES and then comes screen saying
    Warning: To avoid potential deadlock, operations that may block, such as
    networking, should be performed in a different thread than the
    commandAction() handler.
    after that all goes blank
    no function
    no exception
    nothing at all
    can any one tell me wats gone wrong
    please help me im in great need i have to submit a assignment......
    thaks in advance.

    Hi,
    Check if the application uses a seperate Thread to connect to the server. If the connection is made in the same thread. then it causes blocking coz the thread will be waiting to read data from the server during which it will not respond to key press events.
    http://developers.sun.com/techtopics/mobility/midp/articles/threading2/
    Prabhu.

  • No one has answer of my question?? please help!!

    hi gurus,
    i am trying to test sun provided demo programs for testing JAVA Mail API
    i am getting these errors please help me out ......
    thanks in advance
    DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
    DEBUG SMTP: useEhlo true, useAuth false
    DEBUG: SMTPTransport trying to connect to host "my.test-inc.com", port 25
    DEBUG SMTP RCVD: 220 X1 NT-ESMTP Server my.test-inc.com (IMail 6.05 30687-1)
    DEBUG: SMTPTransport connected to host "my.test-inc.com", port: 25
    DEBUG SMTP SENT: EHLO pankaj01
    DEBUG SMTP RCVD: 250-my.test-inc.com says hello
    DEBUG SMTP: use8bit false
    DEBUG SMTP SENT: MAIL FROM:<[email protected]>
    DEBUG SMTP RCVD: 250-SIZE 0
    DEBUG SMTP SENT: RCPT TO:<[email protected]>
    DEBUG SMTP RCVD: 250-8BITMIME
    Verified Addresses
    [email protected]
    DEBUG SMTP SENT: DATA
    DEBUG SMTP RCVD: 250-DSN
    DEBUG SMTP SENT: QUIT
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
    javax.mail.MessagingException: 250-DSN
    java.lang.Throwable(java.lang.String)
    java.lang.Exception(java.lang.String)
    javax.mail.MessagingException(java.lang.String, java.lang.Exception)
    javax.mail.SendFailedException(java.lang.String, java.lang.Exception, javax.mail.Address [], javax.mail.Address [], javax.mail.Address [])
    void javax.mail.Transport.send0(javax.mail.Message, javax.mail.Address [])
    void javax.mail.Transport.send(javax.mail.Message)
    void adt.com.ocs.ldap.ui.SendFile.main(java.lang.String [])

    this is the output I'm getting through your program
    DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsy stems, Inc]
    POP3: connecting to host "216.147.121.178", port 110
    S: +OK crescotec.com POP3 Server (Version 1.020h) ready.
    C: USER ritesh
    S: +OK please send PASS command
    C: PASS ritesh
    S: +OK 0 messages ready for ritesh in /home/cresco12/crescotec-mail/ritesh
    from: [email protected]
    to: [email protected]
    DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
    DEBUG SMTP: useEhlo true, useAuth false
    DEBUG: SMTPTransport trying to connect to host "216.147.121.178", port 25
    DEBUG SMTP RCVD: 220 yourserver.net ESMTP Sendmail 8.10.2/8.10.2; Wed, 25 Jul 2001 16:22:03 -0400
    DEBUG: SMTPTransport connected to host "216.147.121.178", port: 25
    DEBUG SMTP SENT: EHLO riteshnew
    DEBUG SMTP RCVD: 250-yourserver.net Hello 66-2-186-193.customer.algx.net [66.2.186.193], pleased to meet you
    250-ENHANCEDSTATUSCODES
    250-8BITMIME
    250-SIZE
    250-DSN
    250-ONEX
    250-ETRN
    250-XUSR
    250 HELP
    DEBUG SMTP Found extension "ENHANCEDSTATUSCODES", arg ""
    DEBUG SMTP Found extension "8BITMIME", arg ""
    DEBUG SMTP Found extension "SIZE", arg ""
    DEBUG SMTP Found extension "DSN", arg ""
    DEBUG SMTP Found extension "ONEX", arg ""
    DEBUG SMTP Found extension "ETRN", arg ""
    DEBUG SMTP Found extension "XUSR", arg ""
    DEBUG SMTP Found extension "HELP", arg ""
    DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
    DEBUG SMTP: useEhlo true, useAuth false
    DEBUG: SMTPTransport trying to connect to host "216.147.121.178", port 25
    DEBUG SMTP RCVD: 220 yourserver.net ESMTP Sendmail 8.10.2/8.10.2; Wed, 25 Jul 2001 16:22:03 -0400
    DEBUG: SMTPTransport connected to host "216.147.121.178", port: 25
    DEBUG SMTP SENT: EHLO riteshnew
    DEBUG SMTP RCVD: 250-yourserver.net Hello 66-2-186-193.customer.algx.net [66.2.186.193], pleased to meet you
    250-ENHANCEDSTATUSCODES
    250-8BITMIME
    250-SIZE
    250-DSN
    250-ONEX
    250-ETRN
    250-XUSR
    250 HELP
    DEBUG SMTP Found extension "ENHANCEDSTATUSCODES", arg ""
    DEBUG SMTP Found extension "8BITMIME", arg ""
    DEBUG SMTP Found extension "SIZE", arg ""
    DEBUG SMTP Found extension "DSN", arg ""
    DEBUG SMTP Found extension "ONEX", arg ""
    DEBUG SMTP Found extension "ETRN", arg ""
    DEBUG SMTP Found extension "XUSR", arg ""
    DEBUG SMTP Found extension "HELP", arg ""
    DEBUG SMTP: use8bit false
    DEBUG SMTP SENT: MAIL FROM:<[email protected]>
    DEBUG SMTP RCVD: 250 2.1.0 <[email protected]>... Sender ok
    DEBUG SMTP SENT: RCPT TO:<[email protected]>
    DEBUG SMTP RCVD: 250 2.1.5 <[email protected]>... Recipient ok
    Verified Addresses
    [email protected]
    DEBUG SMTP SENT: DATA
    DEBUG SMTP RCVD: 354 Enter mail, end with "." on a line by itself
    DEBUG SMTP SENT:
    DEBUG SMTP RCVD: 250 2.0.0 f6PKM4A18446 Message accepted for delivery
    DEBUG SMTP SENT: QUIT
    here is the code that I modified the I had just deleted my user name and password due to some confidentially problem at the organization. I think you can understand it here is the code the location where I had written
    xxxxxxx is the user name and ****** is a password.
    /**The Code*******************************/
    // Copyright (c) 2000 vitalspring
    package package1;
    * A Class class.
    * <P>
    * @author developer1
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class Mailer
    public static void main (String args[]) throws Exception
    String smtpHost = "216.147.121.178";
    //String smtpHost = "smtp.mail.yahoo.com";
    String popHost = "216.147.121.178";
    // I had replaced my.test-inc.com to 216.147.121.178 the ip address that you can
    // get by typing the command ping and the server-name
    //String popHost = "pop.mail.yahoo.com";
    // String from = "[email protected]";
    // change this string to my username i.e the account that I have on the above hosts
    String from = "[email protected]" ;
    String to = "[email protected]";
    // String username = "pankaj";
    String username = "xxxxx" ;
    // String password = "pjha";
    String password = "*****" ;
    // Get system properties
    Properties props = System.getProperties();
    // Setup mail server
    props.put("mail.smtp.host", smtpHost);
    // props.put("mail.smtp.auth", "true");
    // Get session
    // I had just commented out this for testing
    // Session session = Session.getInstance(props, new MyAthenticator());
    Session session =Session.getInstance (props,null);
    session.setDebug(true);
    // Pop Authenticate yourself
    Store store = session.getStore("pop3");
    store.connect(popHost, username, password);
    // Define message
    MimeMessage message = new MimeMessage(session);
    InternetAddress addrTO=new InternetAddress(to);
    InternetAddress addrFROM=new InternetAddress(from);
    message.setFrom(addrFROM);
    System.out.println("from: "+addrFROM.getAddress());
    System.out.println("to: "+addrTO.getAddress());
    message.addRecipient(Message.RecipientType.TO,addrTO);
    message.setSubject("Hello JavaMail");
    message.setText("Welcome to Yahoo's JavaMail");
    Transport transport = session.getTransport("smtp");
    transport.connect(smtpHost, username, password);
    // Send message
    transport.send(message);
    class MyAthenticator extends Authenticator
    public PasswordAuthentication getPasswordAuthentication()
    return new PasswordAuthentication("pankaj","pjha");
    You must have received a mail from [email protected] at your account that you have specified here. I had also commented the authenticator method...
    Sorry your account at this server is not existing since its returned back to me . Anyway ...
    have a nice time

Maybe you are looking for

  • Error : 'Tax Jurisdiction is not determined' while creating sales order

    Hi, I'm creating a sales order using the BAPI : BAPI_SALESORDER_CREATEFROMDAT1. I'm passing the following values in ORDER_HEADER_IN parameter: doc_type,sales_org,distr_chan,division,po_method,sales_off,req_date_h,data_type,purch_no,purch_date,price_d

  • Purchase Requisition - Stock Tranport Order - Valuation Price

    Hello, The creation of the Purchase Requisition regarding the STO is carried out either by the Material Requirement Planning (MRP) or manually. When it occurs manually, the purchase requisition have the following parameters in the tab Source of Suppl

  • Help needed in swing

    HI friends, I have a GUI with 4 paem nels .On one panel ..i have a menu item called "Create" when i click it an oval will be drawn on a canvas. And i have the Buttons on the other panel . I need to drag these buttons and drop them into the ovals. Can

  • Poor flesh tones on HDTV from iPhoto & EyeTV

    I have an Insignia HDTV hooked up to an iintel Mac Mini via DVI at 1600x900 (and have also tried via VGA) and experience poor flesh tones on certain pictures from iPhoto and with certain headshots from EyeTV. Things look great frrom my old Mac Mini a

  • PUSH-BUTTON in ALV GRID

    How can we create a push-button in ALV-GRID. How will u handle a push-button in ALV.