Transport.send() connection didn't close

Hi, I'm using JavaMail API 1.2 to create an email application. But I experienced some issues when sending emails using Transport.send(). The symptoms is the function call of Transport.send() didn't return, it hangs there forever. I don't know if it's caused by the bad email address or the SMTP server is too busy or what. Did anybody have the similar experience or solutions?

the function call of Transport.send() didn't return,
it hangs there forever. I don't know if it's caused by
the bad email address or the SMTP server is too busy
or what. Did anybody have the similar experience or
solutions?SOmethinging is wrong with the sMtp server.Try using some other SMTP server.

Similar Messages

  • SMTP: Transport.send() works, transport.sendMessage() not ("not connected")

    Sendig a SMTP Message to a running SMTP Server on localhost, port 25 works fine, if i use
    Transport.send( myMessage);However, it does not when i use
    Transport tr = session.getTransport(..);
    tr.connect("localhost", 25, "user", "pass");
    tr.sendMessage ( myMessage );In this case, the connect seems to work (actually, debugging in eclipse has shown that the Transport-internal field "connected" is set to true!), but sending myMessage throws the following Exception:
    java.lang.IllegalStateException: Not connected
         at com.sun.mail.smtp.SMTPTransport.checkConnected SMTPTransport.java:1398)
         at com.sun.mail.smtp.SMTPTransport.sendMessage SMTPTransport.java:489)calling transport.isConnected() also returnsfalseWell, using the static way is a first workaround, that i don't want to use because of the bad performance (need to send lot of mails under certain circumstances).
    Does anyone have an idea whats wrong?

    If your SMTP server does not require authentication, do not use "Transport.connect(server, port, username, password)", use "Transport.connect()" instead.
    If you SMTP server does require authentication, you should have the "mail.smtp.auth" property of the session set as "true".
    The following code is working properly on my machine.
    import java.lang.*;
    import java.util.*;
    import javax.mail.*;
    import javax.mail.event.*;
    import javax.mail.internet.*;
    public class SendMail {
    static String mailHost = "mail.mydomain.com";
    static String source = "[email protected]";
    static String subject = "Test JavaMail";
    static String content = "Content";
    public static void main(String args[]) {
    Properties properties = new Properties();
    properties.put("mail.smtp.host", mailHost);
    properties.put("mail.from", source);
    Session session = Session.getInstance(properties, null);
    try {
    Message message = new MimeMessage(session);
    InternetAddress[] address = new InternetAddress[args.length];
    for (int i = 0; i < args.length; i++)
    address[i] = new InternetAddress(args);
    message.setRecipients(Message.RecipientType.TO, address);
    message.setFrom(new InternetAddress(source));
    message.setSubject(subject);
    message.setContent(content, "text/plain");
    Transport transport = session.getTransport(address[0]);
    transport.addConnectionListener(new ConnectionHandler());
    transport.addTransportListener(new TransportHandler());
    transport.connect();
    transport.sendMessage(message, address);
    } catch (Exception e) {
    System.out.println(e.toString());
    class ConnectionHandler extends ConnectionAdapter {
    public void opened(ConnectionEvent e) {
    System.out.println("Connection opened.");
    public void disconnected(ConnectionEvent e) {
    System.out.println("Connection disconnected.");
    public void closed(ConnectionEvent e) {
    System.out.println("Connection closed.");
    class TransportHandler extends TransportAdapter {
    public void messageDelivered(TransportEvent e) {
    System.out.println("Message delivered.");
    public void messageNotDelivered(TransportEvent e) {
    System.out.println("Message NOT delivered.");
    public void messagePartialDelivered(TransportEvent e) {
    System.out.println("Message partially delivered.");

  • ACE 4710 send Connection:Close when should be Keep-Alive

    After user request to front end http to 10.85.10.4 (default 80) after a port redirect and action list header rewrite
    header rewrite request host header-value http://10[.]85[.]10[.]4 replace http://10.85.10.67:84/jde/E1Menu.maf%1
    I see the request go out (wireshark) to the back-end javaserver but in the Connection it's close not keepalive:
    GET /jde/E1Menu.maf HTTP/1.1
    Connection: Close
    Host:10.85.10.67:84
    After the get from the ACE the jserver replies with the JDE login screen but the ACE ignores it?

    Try by enabling persistence rebalance in an http parameter-map.
    Also your rewrite rule is wrong, you've been mistaken regarding the role of the Host field I guess. What you try to configure in your config is a URL rewrite but it's not supported by the ACE.

  • Javamail Transport.send problem

    I send an email once in a while from my web application on a virtual dedicated server. Usually the email works. But sometimes Transport.send hangs up. Processing just stops at that statement. I don’t get anything from debug.
    public class SendEmail {
        public void SendEmail(String toEmailAddress,
                String fromEmailAddress,
                String smtphost, String subject, String content)
                throws AddressException, MessagingException {
            // Create a mail session
            java.util.Properties props = new java.util.Properties();
            props.put("mail.smtp.host", smtphost);
            props.put("mail.debug", "true");
            Session session = Session.getInstance(props, null);
            // Construct the message
            Message msg = new MimeMessage(session);
            msg.setFrom(new InternetAddress(fromEmailAddress;));
            msg.setRecipient(Message.RecipientType.TO, new InternetAddress(toEmailAddress));
            msg.setSubject(subject);
            msg.setText(content);
            // Send the message
            Transport.send(msg);
            return;
    }What could be causing the problem with Transport.send? Any help would be very much appreciated. Thanks.

    I didn’t get anything from debug. No messages at all. I'm on Centos and looked at the console. Is this not correct?
    I added this code to try to capture exceptions:
    try {
                Transport.send(msg);
            } catch (Exception e) {
                try {
                    out = new BufferedWriter(new FileWriter("TestLog.txt", true));
                    out.newLine();
                    out.write(e.getMessage());
                    out.newLine();
                    out.close(); 
                } catch (Exception err) {
                } finally {
            } finally {
                }But I haven't been able to duplicate the problem since then. I'm not familiar with jstack, so I'll have to research it.
    Thanks for your response.

  • I am not able to execute the transport.send(message)

    I am not able to execute the transport.send(message) when trying for sending mail. I am getting error like this : -
    javax.mail.SendFailedException: Sending failed;  nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: 10.175.80.50, port: 25;  nested exception is: java.net.ConnectException: Connection timed out: connect
    Please help me on this to resolve this issue asap. thanks

    Hi Vinod,
    public void SendMail( )
        //@@begin SendMail()
              // Specify the host name of the mail server
              String host ="----
              IWDMessageManager messageMgr = wdControllerAPI.getComponent().getMessageManager();
              // Initialize Session
              Properties props = System.getProperties();
              props.put("mail.smtp.host", host);
              props.put("mail.smtp.auth", "true");
              Authenticator auth = new Auth();
              Session session = Session.getInstance(props, auth);
              // Create new MimeMessage
              MimeMessage message = new MimeMessage(session);          
              try
                    // Set the From Address
                    String from = wdContext.currentContextElement().getCtx_From();
                   message.setFrom(new InternetAddress(from));
                   //  Set the To Address
                   String to = wdContext.currentContextElement().getCtx_To();     
                   Address ar[] = new Address[1];
                   ar[0] = new InternetAddress(to);
                   message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
                   // Set the Subject
                   message.setSubject(wdContext.currentContextElement().getCtx_Subject());
                   //  Set the Text               
                   message.setText(wdContext.currentContextElement().getCtx_Text());            
                   Transport tr = session.getTransport("smtp");
                   tr.connect("Put again here Host Name", Port Noumber, "userid", "password");               
                   tr.sendMessage(message, ar);
              }catch (AuthenticationFailedException e){
                   messageMgr.reportException(e.toString(),false);
              }catch (AddressException e)     {
                   messageMgr.reportException(e.toString(),false);
              } catch (MessagingException e) {
                   messageMgr.reportException(e.toString(),false);
              }catch (Exception e){
                   messageMgr.reportException(e.toString(),false);
        //@@end
    And also create the class Auth() like
    public class Auth extends Authenticator {
         public PasswordAuthentication getPasswordAuthentication()
              String username = "userID";
              String password = "Passwod";     
              return new PasswordAuthentication(username,password);     
    Please check it i think i will work. Also please use constant value for the to, from, subject and text.

  • Urgent, please help-- connection does not close

    Hi,
    We are using Txdatasource, Oracle thin driver in WLS6.1 sp2. The problem we have
    is that we open connection and pass the connection as parameter to third part
    tool to generate report, but the tool doesn't close connection after finish, then
    the connection is left never being closed, and our connections in connection pool
    soon used up, have to restart weblogic to reset. the connection pool is set to
    allow shrink, but those connections are not recycled. Please help, how do we somehow
    set up WLS or database so that if a connection is not used for some time system
    automatically close connection? Thank you very much. your help is greatly appreciated

    Hi Chun,
    I don't think it's possible whithout changing code. Primaryly it's because
    it hard to tell whether connection is abandoned or still in use. So you have
    to make changes in your code.
    Regards,
    Slava Imeshev
    "Chun" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi,
    Thanks for reply. The reporting tool is supposed to close connection butit didn't.
    And now we need some quick fix on it without touching code.
    Seems like the used connection can not be garbage collected because theconnection
    I used yesterday is still not recycled today. ( I monitor JDBC in WebLogicConsole,
    the "connections" column on "Monitoring" didn't change). No matter how bigI set
    the maximum number of connections, the connections will use up finally andwe
    have to restart WebLogic server.
    Is there any way to make connection drop after some time?
    "Slava Imeshev" <[email protected]> wrote:
    Hi Chun,
    "Chun" <[email protected]> wrote in message
    news:[email protected]...
    We are using Txdatasource, Oracle thin driver in WLS6.1 sp2. The
    problem
    we have
    is that we open connection and pass the connection as parameter tothird
    part
    tool to generate report, but the tool doesn't close connection afterfinish, then
    the connection is left never being closed, and our connections inconnection pool
    What prevents you from closing connection after control is returned
    back from the reporting tool?
    soon used up, have to restart weblogic to reset. the connection poolis
    set to
    allow shrink, but those connections are not recycled. Please help,how do
    we somehow
    set up WLS or database so that if a connection is not used for sometime
    system
    automatically close connection?Weblogic closes connections that were not returned to the pool when
    they are GC-ed. Yet you should not relay on this feature as by the
    moment a connection is closed the pool maybe already used up.
    The other option I was thinking about is that it's possible to size
    of the pool you use is too small for the application. Did you try to
    increase (let say double) size of the pool?
    FYI having shrinking and refresh enabled doesn't make much
    sense in most of the cases. You can improve performance and
    stability of your application by setting initial number of connections
    to max and setting refresh period to let say 99999.
    Hope this helps,
    Regards,
    Slava Imeshev

  • How do I change the http connection type from close to keep-alive

    I am using a browser that appears as though it needs a connection type of keep-alive. When a page is requested the server sends back a connection type of close. It appears images are not requested from the server when this connection type is requested.

    Some older web server provides inaccurate content-length information.If the content length value is less than the amount of data,the web server treats the difference as a new request, this creates problem with iplanet Web Server.
    If you are using browser with HTTP1.1 enabled, choose the option to enable it manually and try once again by posting the request.
    Hope it helps.

  • Problem in tracking  Transport.send(msg)

    {color:#ff0000}+protected PasswordAuthentication getPasswordAuthentication()+
    +{ return new PasswordAuthentication("username","password");+
    +}+
    +});+
    Message msg = new MimeMessage(session);
    msg.setFrom(new InternetAddress(from));
    msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to));
    msg.setSubject(subject);
    msg.setText(message"Dear Mail Crawler, \n\n No spam to my email, please!");{color}
    {color:#ff0000}Transport.send(msg);{color}
    {color:#ff0000}System.out.println("Done");{color}
    now whenever controller comes at Transport.send(msg); and if network connection fails, then controller keep on same point until it doent gotta any network connection
    As a result user dont understand what goes wrong
    as it doesnt went ain any exception we cant throw any error msg or cant redirect to any error page.
    how we can examine timing of controller like if controller stays on Transport.send(msg) more than 5 minute then throws exception
    can we do like this???

    If you wanted to solve the problem as quickly as possible, you would've read the
    docs and had the answer by now. Really, it's not that difficult. Go to the first page
    of the javadocs. Scroll to the bottom where it tells you that each of the providers
    has properties that are specific to the provider. Click on the link for the SMTP
    provider. Scroll down that page until you see the word "timeout".
    Go ahead, you can do it...

  • When i click Yahoo mail, firefox is closing, says send error report or close

    The new Yahoo Mail is updated, so when i open yahoo mail, the browser says " firefox encountered... error . Send error report or close". This is the error window dialogue box appear.
    After that, the complete firebox browser closing, how do i open my yahoo mail.
    GMail and other websites is working fine. The problem with only Yahoo mail.
    Please help.
    My important mail has to be read.

    See:
    *https://support.mozilla.com/kb/Firefox+is+already+running+but+is+not+responding
    *http://kb.mozillazine.org/Profile_in_use

  • JavaMail application hanged with no error throwed at Transport.send

    JavaMail application hanged with no error throwed at Transport.send,even though I set the timeout property
    import java.util.Date;
    import java.util.Properties;
    import javax.mail.Authenticator;
    import javax.mail.Message;
    import javax.mail.PasswordAuthentication;
    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.MimeMultipart;
    import javax.mail.internet.MimeUtility;
    public class tt {
         static Properties props=null;
         static boolean needAuth=true;
         static MailAuthenticator authenticator = null;
         static String host="host";
         static String account="account";
         static String password="pwd";
         static String sender="sender";
          * @param args
          * @throws Exception
         public static void main(String[] args) throws Exception{
               if (props == null) {
                     props = new Properties();
                     props.put("mail.smtp.host", host);
                     props.put("mail.smtp.timeout      ", "1000");
                     props.put("mail.smtp.connectiontimeout      ", "1000");
    //                 props.put("mail.debug", "true");
                     props.put("mail.smtp.auth", String.valueOf(needAuth));
                     authenticator = new MailAuthenticator(account, password);
                 MailData mailData = new MailData();
                 mailData.setSubject("altireport mail configuration");
                 mailData.setContent("mail server has been configured successfully.");
                 mailData.setRecipients(new String[]{"[email protected]"});
                 final Session session = Session.getInstance(props, authenticator);
                 final MimeMessage msg = new MimeMessage(session);
                 InternetAddress from = new InternetAddress(sender);
                 msg.setFrom(from);
                 //        msg.setSender(from);
                final InternetAddress[] addressTo = new InternetAddress[mailData.getRecipients().length];
                 for (int i = 0; i < mailData.getRecipients().length; i++) {
                     addressTo[i] = new InternetAddress(mailData.getRecipients());
         msg.addRecipients(Message.RecipientType.TO, addressTo);
         //msg.setSubject(mailData.getSubject());
         msg.setSubject(MimeUtility.encodeText(mailData.getSubject(), "UTF-8", "B"));
         MimeBodyPart bodyPart1 = new MimeBodyPart();
         bodyPart1.setContent(mailData.getContent(), "text/plain; charset=UTF-8");
         MimeMultipart multipart = new MimeMultipart();
         multipart.addBodyPart(bodyPart1);
         msg.setContent(multipart);
         msg.setSentDate(new Date());
    //     msg.saveChanges();
         for(int i=0;i<10;i++){
              new Thread(new Runnable(){
                             public void run() {
                             try {
                                  System.out.println("send...");                                   
                                  Transport.send(msg);
                                  } catch (Exception e) {
                                       e.printStackTrace(System.out);
                        System.out.println("end!");
              }).start();
    class MailData {
    private String[] recipients = null;
    private String subject = null;
    private String content = null;
    private String attachment = null;
    private String attachmentName = null;
    * @return the attachment
    public String getAttachment() {
    return attachment;
    * @param attachment the attachment to set
    public void setAttachment(String attachment) {
    this.attachment = attachment;
    * @return the content
    public String getContent() {
    return content;
    * @param content the content to set
    public void setContent(String content) {
    this.content = content;
    * @return the recipients
    public String[] getRecipients() {
    return recipients;
    * @param recipients the recipients to set
    public void setRecipients(String[] recipients) {
    this.recipients = recipients;
    * @return the subject
    public String getSubject() {
    return subject;
    * @param subject the subject to set
    public void setSubject(String subject) {
    this.subject = subject;
    * @return the attachmentName
    public String getAttachmentName()
    return attachmentName;
    * @param attachmentName the attachmentName to set
    public void setAttachmentName(String attachmentName)
    this.attachmentName = attachmentName;
    class MailAuthenticator extends Authenticator {
    private PasswordAuthentication authentication;
    public MailAuthenticator(String account, String password) {
    authentication = new PasswordAuthentication(account, password);
    protected PasswordAuthentication getPasswordAuthentication() {
    return authentication;
    I have tried use session to get a SMTPTransport instance to use sendMessage ,but still have the same problem.No exception ,No error.
    This problem doesn't appear always. It appears sometimes.
    I hope get help for someone who has the solution for this problem.
    Thanks in advanced.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Ok, I think I see the problem:
         props.put("mail.smtp.timeout      ", "1000");
         props.put("mail.smtp.connectiontimeout      ", "1000");
    Why do you have spaces at the end of the property names?
    Those spaces are not being ignored, which means you've
    set the wrong properties.

  • Is there some way to add multiple addresses to an email I am sending that doesn't close the contact list after I click on an address?  This necessitates constantly going back to click the + sign to add each address separately.

    Is there some way to add multiple addresses to an email I am sending that doesn't close the contact list after I click on an address?  This necessitates constantly going back to click the + sign to add each address separately.  Is there some way I can open the contact list, click on all of the individual addresses to which I want to send the email without the list closing between each address entry, and have all of my address entries be listed to the email at one time?  Something like it works in Gmail.  I do not want to use set lists, I want to enter different addresses each time I send an email.  And I am a very slow typist, so I don't want to type the first few letters of each recipient's name.  It is much faster for me to just click on the e-mail addresses in the list as a group.  It doesn't make any sense to me to have to reopen the contact list for each address, when it should be so easy to click on all of the addresses I want at one time and then click once to add them all to the email as a group.  If there is a solution to this, please tell me.  Thanks.

    Vatlily,
    Try this:
    1. Select Mail>File>New Message.
    2. Select Mail>Window>Address Panel.
    3. Use (command+click) on the desired addressees in the Address Panel to create the list.
    4. Click "To:" on the top left of the Address Panel.
    The group that you selected will be added to the "To" field in your New Message.

  • Problem in sending mail for a pop3 account using transport.send(msg)

    hi,
    i am having problem in not able to send mail for a pop3 account ...
    I have written an email gateway which listens to my pop3 account...on email arrival it listens nd extract the contents and send it as an sms msg...upon failure it needs to deliver the mail to sender id.I am using quartz to listen.
    i am using jboss for server and java mail api.
    here is my code
    MimeMessage mimemsg = new MimeMessage(session);
                                                           mimemsg.setFrom();
                                                           mimemsg.setRecipients(Message.RecipientType.TO, to);
                                                           mimemsg.setSubject(subject);
                                                           mimemsg.setText(parsedText);
                                                           mimemsg.setSentDate(new Date());
                                                           mimemsg.setContent(strBuff.toString(), "text/html");
                                                           System.out
                                                                                    .println("Before sending mail");
                                                           Transport.send(m);
                                                                System.out.println("message sent successfully");
    excepition i am getting is :
    2008-09-12 11:45:11,140 INFO [STDOUT] Before sending mail
    2008-09-12 11:45:11,140 ERROR [STDERR] javax.mail.IllegalWriteException: POP3 messages are read-only
    2008-09-12 11:45:11,140 ERROR [STDERR]      at com.sun.mail.pop3.POP3Message.saveChanges(POP3Message.java:438)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at javax.mail.Transport.send(Transport.java:97)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at com.openstream.emailgateway.sources.ListenEmailGateway.execute(ListenEmailGateway.java:422)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at java.lang.reflect.Method.invoke(Method.java:585)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:495)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:116)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:109)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:402)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.Container.invoke(Container.java:960)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at java.lang.reflect.Method.invoke(Method.java:585)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.delivery(MessageEndpointInterceptor.java:263)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.invoke(MessageEndpointInterceptor.java:140)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at $Proxy73.execute(Unknown Source)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.resource.adapter.quartz.inflow.QuartzJob.execute(QuartzJob.java:57)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    2008-09-12 11:45:11,171 INFO [STDOUT] USer flag ..[Ljava.lang.String;@115c6cb                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    as i am writing the message failure details to a template...
         //on failure to send messages , reply to the sender about the failure
                                                                strBuff= tempDetail.writeToTemplate(smsmsg);     
    is that bcoz i am getting an exception

  • I didn't close my mac air down properly and when i tried to use it, the screen was frozen.  I turned it off and restarted it, and the grey screen with the apple logo appear and the circle just keeps spinning.  Can you advise?

    i didn't close my mac air down properly and when i tried to use it, the screen was frozen.  I turned it off and restarted it, and the grey screen with the apple logo appear and the circle just keeps spinning.  Can you advise?

    Try resetting the SMC
    Intel-based Macs: Resetting the System Management Controller (SMC)

  • Java mail Transport.send()

    I'm getting a cryptic message when I call Transport.send(messag_object):
    no provider for address type: rfc822
    exception thrown in non-transactional ejb invoke:
    com.ssga.exception.MailManagerException
    I am using a stateless session bean to do the work.
    This call to Transport.send() is the last line in the EJB method before returning.
    Thanks
    Paul Dudley
    [email protected]

    Also make sure that you have tha activation.jar.
    Regards,
    Eric
    "Jim Typrowicz" <[email protected]> wrote in message
    news:[email protected]..
    >
    I found a reference to a mail problem in the Newsgroup. It said that WLSis missing
    two files. I downloaded the mail.jar from sun and put it in front of theweblogic.jar
    file and now the e-mail works.
    "Jim Typrowicz" <[email protected]> wrote:
    I'm getting the same error. If you find something out please let me
    know, and
    I'll do likewise. Thanks.
    "Paul Dudley" <[email protected]> wrote:
    I'm getting a cryptic message when I call Transport.send(messag_object):
    no provider for address type: rfc822
    exception thrown in non-transactional ejb invoke:
    com.ssga.exception.MailManagerException
    I am using a stateless session bean to do the work.
    This call to Transport.send() is the last line in the EJB method before
    returning.
    Thanks
    Paul Dudley
    [email protected]

  • Help transport .send(message) problem

    I am getting an error at transport.send(message)
    javax.mail.SendFailedException: Sending failed; nested exception is: class javax.mail.AuthenticationFailedException After eleminating all lines the error is at transport.send(msg)
    Please help - tell me what I have been doing wrong
    My code - is java mail using a jsp
    try{
         //Properties props = System.getProperties();
    Properties props = new Properties();
    Store store;
    props.put("mail.smtp.host", "smtp.snet.yahoo.com");
    props.put("mail.smtp.auth", "true");
    Session s = Session.getInstance(props,null);
    MimeMessage message = new MimeMessage(s);
    InternetAddress from = new InternetAddress("[email protected]");
    message.setFrom(from);
    String toAddresses = request.getParameter("to");
    message.addRecipients(Message.RecipientType.TO, toAddresses);
    String ccAddresses = request.getParameter("cc");
    message.setRecipients(Message.RecipientType.CC, ccAddresses);
    String bccAddresses = request.getParameter("bcc");
    message.setRecipients(Message.RecipientType.BCC, bccAddresses);
    String subject = request.getParameter("subject");
    message.setSubject(subject);
    message.setSentDate(new Date());
    String text = request.getParameter("text");
    message.setText(text);
    Transport.send(message); //error is here
    %>

    You are specifying authentication to be used, but you aren't supplying any authentication credentials, hence the AuthenticationFailedException.
    You need to create an Authenticator class. If you just need simple username/password authentication, just create a class to handle this.
    For example:
    public class SimpleAuthenticator extends Authenticator {
      private String username;
      private String password;
      private PasswordAuthentication auth;
      public java.lang.String getPassword() {
        return password;
      public PasswordAuthentication getPasswordAuthentication() {
        if(auth == null) {
          auth = new PasswordAuthentication(username, password);
        return auth;
      public java.lang.String getUsername() {
        return username;
      public void setPassword(java.lang.String password) {
        password = password;
      public void setUsername(java.lang.String username) {
        username = username;
    }Then, when you create the session:
    SimpleAuthenticator auth = new SimpleAuthenticator();
    auth.setUsername("yourusername");
    auth.setPassword("yourpassword");And instead of
    Session s = Session.getInstance(props,null);use
    Session s = Session.getInstance(props,auth);

Maybe you are looking for

  • Another airport connecting to internet problem! Please help!

    Hi, I'm having a problem connecting to the internet on my iMac G5 running OS 10.5.8. It initially started happening on and off after I upgraded from 10.4, now it happens all the time. Airport connects to the network (full 5 bars and I can see the oth

  • How to write a module pool (M) program for the DEMO_DYNPRO_TABSTRIP_server

    Hi, How does someone write a module pool program (type m ) like the one which is given as an example for tabstrip control (paging through the app.server which is a report program). Please check the code given in the abap tutorial by sap below. REPORT

  • Glassfish3 cluster queue browser

    Hi there, I have some web app running in a Gv3 cluster. I'd like to be able to query/browse messages for a given queue for each node in the cluster. I've read about [message pre-sending|http://openmessaging.blogspot.com/2009/03/consumer-flow-control-

  • Tag messages and SQLException

    hello, i would like to throw exceptions from my beans class and show the error message on the screen like the using of the tage <h:messages>. When an sqlexception occured, my message error is displayed but not on my jsf page but on a awful white page

  • Error at the time of Executing FAGLL03/FAGLB03

    Hi there I am not able to execute the report FAGLL03/FAGLB03 this was happening ever since my Roles were changed by Basis - however even they dont knw how to rectify it I am able to enter the report FAGLL03, however every time i execute it, i am face