Com.sun.mail.smtp.SMTPSendFailedException: 454 5.7.3 Client does not have p

Hi I am getting the above error while sending mail through the smtp using mail.jar.
Please suggest the reason for this error and how to rectify this.
Aravind

Your client does not have permission to send on the SMTP server.
Note: Don't spam!

Similar Messages

  • Com.sun.mail.smtp.SMTPSendFailedException: [EOF]

    We are seeing this error since going to ColdFusion 10 enterprise. We have installed all the updates. Server is Windows 2008 64-bit with all the latest updates applied.
    This appears to be very random, but it is causing some headaches with the mail spool. If 10 emails are in the queue, 9 will go out and 1 will go to undelivr even though all the parameters are the same. We move the file back to the spool and it goes through.
    Right now I am dedicating a resource to monitor the spool so all emails go out (we send out hundreds per day from our app) but we need some type of resolution. Any help is appreciated!

    I am having the exact same issue. I have not been able to identify the cause. The only thing I can add in my case is it seems to happen at certain times of the day when our mail firewall spam filter is in heavy use. All messages that are put into the undelivered folder go through 100% when they are re-spooled.

  • Com.sun.mail.smtp.SMTPAddressFailedException: 450

    Hello!
    I have problem with sending message.
    My code is:
              Properties props = new Properties();
              props.put("mail.smtp.host", "mail.my.pl");
              Session session = Session.getDefaultInstance(props, null);
              MimeMessage message = new MimeMessage(session);
              message.setText("message text");
              message.setSubject("message subject");
              Address addressFrom = new InternetAddress("[email protected]");
              Address addressTo = new InternetAddress("[email protected]");
              message.setFrom(addressFrom);
              message.addRecipient(Message.RecipientType.TO, addressTo);
              Transport.send(message);When I try to send this message, I get this Exception:
    13:36:09,500 INFO [STDOUT] javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
         com.sun.mail.smtp.SMTPAddressFailedException: 450 <frodo>: Helo command rejected: Host not found
    13:36:09,500 INFO [STDOUT]      at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196)
    13:36:09,500 INFO [STDOUT]      at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
    13:36:09,500 INFO [STDOUT]      at javax.mail.Transport.send0(Transport.java:169)
    13:36:09,500 INFO [STDOUT]      at javax.mail.Transport.send(Transport.java:98)
    13:36:09,500 INFO [STDOUT]      at pl.spot.onecom.onebox.web.action.SendMailAction.execute(SendMailAction.java:72)
    Please, help me! The host, mail.my.pl, exist, but I get message that this host cant be found. What is going on?

    I think we need to see the entire protocol trace (read the FAQ).
    This FAQ entry might also explain your problem:
    http://java.sun.com/products/javamail/FAQ.html#helo
    I suspect the name of your machine is "frodo", but when
    your machine sends that name in the SMTP HELO command,
    the server doesn't know of a machine by that name. You
    probably need a fully qualified host name in the HELO command,
    a name that the server can look up and find the IP address for.

  • The meaning of com.sun.mail.smtp.SMTPAddressFailedException: 550

    Hello experts,
    I am new to JavaMail and does anyone of you know what the exception "com.sun.mail.smtp.SMTPAddressFailedException: 550 Please configure your mail client to use authentication." means or under which circumstance will it occur?
    Thanks a lot!
    Michael

    Hi bshannon,
    Thanks for the reply!
    However, in the FAQ, although it has an entry about 550 error, it is only for "Unable to relay for my-address". So could you shed some light on what exactly the "Please configure your mail client to use authentication" message means?
    In addition, what is the 550 error generally about?
    Thanks a lot!
    Best regards,
    Michael

  • Com.sun.mail.smtp.SMTPAddressFailedException 550 5.1.1 mailbox not exist

    Hi. I am trying to send a fax . But i am getting this error.Why?
    com.sun.mail.smtp.SMTPAddressFailedException 550 5.1.1 mailbox<faxno> does not exist.

    You need to ask your server administrator. The error message comes from the server.
    It seems to be telling you that either the fax number you're using, or the syntax you used
    to specify it, are incorrect.

  • How to schedule an appointment with a contact that does not have an e-mail address

    I want to use MS Office Outlook to schedule appointments with clients that may not have an e-mail address. They way appointments are made at our office is that a clients calls to ask for an appointment, the appointment book is consulted for the open time
    slots and a date and time is agreed. There is no need to send out an e-mail address even if the client has an e-mail address. Right now if a client does not have an e-mail address Outlook does not even show the option to set an appointment.
    On the day of the appointment the clients are phoned and it would be nice to be able to just click on the appointment and then have the computer make the call via Skype.
    This is supposed to be easier than using an appointment book with a pencil and eraser.
    Al Kaufmann

    Hi,
    It's a good suggestion but currently there's no such feature in Outlook.
    For more information about scheduling an appointment in Outlook:
    http://office.microsoft.com/en-001/outlook-help/schedule-an-appointment-HP010354410.aspx
    Regards,
    Melon Chen
    TechNet Community Support

  • Connection timed out: connect at com.sun.mail.imap.IMAPStore.protocolConne

    Hi ,
    Recently, my team need to work with javamail. Here I got a problem: when I run the application in my personal home network , it goes on very well. When I run the program in my company env, it gives error info:
    Exception in thread "main" javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
    nested exception is:
    java.net.ConnectException: Connection timed out: connect
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1706)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:525)
    at javax.mail.Service.connect(Service.java:313)
    The resource is :
    import java.security.Security;
    import java.util.Date;
    import java.util.Properties;
    import javax.mail.Authenticator;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.PasswordAuthentication;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.AddressException;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;
    *Use Gmail
    public class GmailSender {
    public static void main(String[] args) throws AddressException, MessagingException {
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    final String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory";
    // Get a Properties object
    Properties props = System.getProperties();
    //Add proxy for GmailSender
    //especially here, I am not sure whether the proxy really works. In home network, it needn't proxy to run successfully.
    // props.setProperty("proxySet","true");
    // props.setProperty("socksProxyHost","148.87.19.20"); // This IP address is our proxy server address
    // props.setProperty("socksProxyPort","80");
    props.setProperty("mail.smtp.host", "smtp.gmail.com");
    props.setProperty("mail.smtp.socketFactory.class", SSL_FACTORY);
    props.setProperty("mail.smtp.socketFactory.fallback", "false");
    props.setProperty("mail.smtp.port", "465");
    props.setProperty("mail.smtp.socketFactory.port", "465");
    props.put("mail.smtp.auth", "true");
    final String username = "XXX";
    final String password = "XXX";
    Session session = Session.getDefaultInstance(props, new Authenticator(){
    protected PasswordAuthentication getPasswordAuthentication() {
    return new PasswordAuthentication(username, password);
    // -- Create a new message --
    Message msg = new MimeMessage(session);
    // -- Set the FROM and TO fields --
    msg.setFrom(new InternetAddress(username + "@gmail.com"));
    msg.setRecipients(Message.RecipientType.TO,
    InternetAddress.parse("[email protected]",false));
    msg.setSubject("Hello");
    msg.setText("How are you");
    msg.setSentDate(new Date());
    Transport.send(msg);
    System.out.println("Message sent.");
    Will you please help me to review my code and give me some suggestions ?

    No point looking at the code. The error message says the code can't connect to the server you are trying to connect to, so presumably there's a firewall or something like that preventing the connection. Talk to your network people.

  • Java.lang.NoSuchMethodError: com.sun.mail.util.SocketFetcher.getSocket

    I am recieving the above error in a FileNet Content Manager environment. The full stack trace is:
    Exception in thread "main" java.lang.NoSuchMethodError: com.sun.mail.util.SocketFetcher.getSocket(Ljava/lang/String;ILjava/util/Properties;Ljava/lang/String;Z)Ljava/net/Socket;
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1195)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322)
    at javax.mail.Service.connect(Service.java:233)
    at javax.mail.Service.connect(Service.java:134)
    at javax.mail.Service.connect(Service.java:86)
    at javax.mail.Transport.send0(Transport.java:162)
    at javax.mail.Transport.send(Transport.java:80)
    at com.bearingpoint.utilities.EMail.send(EMail.java:171)
    at com.bearingpoint.utilities.EMail.send(EMail.java:31)
    at email.main(email.java:11)
    I have spent many hours, fiddling with classpaths, ensuring that the mail.jar, mailapi.jar, smtp.jar, activation.jar are all from the same generation of JavaMail. With my classpath set correctly I can run a simple program constructed to just test whether the box can send out email from the command line.
    The code for the program is:
    public class email {
         public email() {
         public static void main (String args[]) {
              try {
              EMail.send("10.132.147.62", "[email protected]", "[email protected]", "test", "test");
              catch (Exception e) {
                   System.err.println(e.toString());
    Where EMail.send() is:
    public static void send(
    String mail_server_host,
    String email_from,
    String email_to,
    String subject,
    String message) throws AddressException, MessagingException, IOException {
    send(mail_server_host,
    (Authenticator)null,
    new InternetAddress[] {new InternetAddress(email_from)},
    new InternetAddress[] {new InternetAddress(email_to)},
    (InternetAddress[])null,
    (InternetAddress[])null,
    subject,
    message,
    null,
    null);
    which calls:
    public static void send(
    String mail_server_host,
    Authenticator authenticator,
    InternetAddress[] addresses_from,
    InternetAddress[] addresses_to,
    InternetAddress[] addresses_cc,
    InternetAddress[] addresses_bcc,
    String subject,
    String message,
    InputStream[] attachments,
    MimeType[] attachmentTypes) throws MessagingException,IOException {
    Properties properties = new Properties();
    properties.put("mail.smtp.host", mail_server_host);
    MimeMessage msg = new MimeMessage(
    Session.getInstance(properties, authenticator));
    msg.addFrom(addresses_from);
    msg.setRecipients(Message.RecipientType.TO, addresses_to);
    msg.setRecipients(Message.RecipientType.CC, addresses_cc);
    msg.setRecipients(Message.RecipientType.BCC, addresses_bcc);
    msg.setSubject(subject);
    BodyPart bpBody = new MimeBodyPart();
    bpBody.setText(message);
    Multipart mpMessageBody = new MimeMultipart();
    if (attachments == null && attachmentTypes == null) {
    mpMessageBody.addBodyPart(bpBody);
    msg.setContent(mpMessageBody);
    else if (attachments == null) {
    bpBody.setContent(message, attachmentTypes[0].toString());
    mpMessageBody.addBodyPart(bpBody);
    msg.setContent(mpMessageBody);
    else {
    mpMessageBody.addBodyPart(bpBody);
    for (int i=0; i<attachments.length;i++) {
    bpBody = new MimeBodyPart();
    DataSource dsAttachment = new ByteArrayDataSource(attachments, attachmentTypes[i].toString());
    bpBody.setDataHandler(new DataHandler(dsAttachment));
    bpBody.setFileName("attachment." + new MimeFileExtensions(attachmentTypes[i].getValue()).toString());
    mpMessageBody.addBodyPart(bpBody);
    msg.setContent(mpMessageBody);
    Transport.send(msg);
    As said before all .jar files are of the same generation, yet when I run FileNet and the underlying content engine, and try to send an email, I recieve this exception. I have run out of ideas, and any help would be appreciated.
    Things I've tried (multiple times):
    - Removing any old versions of the jar files and replace them with JavaMail 1.3.3_01
    - Have the content engine specifically import the JavaMail jar files.
    While I realize some of you may not know what FileNet is, perhaps you have come across this exception before. Any new ideas would be more then appreciated.
    Thank you for your time.

    I haven't seen this error before so I need more detail to reproduce it.
    It looks like you daisy chained calls to various static send() methods from various classes. Could you write a static main() for the class with the send() method actually doing the work? In the main() write the test case and compile it, test it and if it still doesnt work post it. Please include the import statements as it is germain to the solution.
    Its much easier for me to help you if I don't have to recreate "FileNet" to reproduce your error.
    As an alternative....
    The following code I got from: http://javaalmanac.com/egs/javax.mail/SendApp.html?l=new
    its simpler than you're code but gets the job done (without attachments).
    I've tested it and it works with:
    javac -classpath .;c:\sun\appserver\lib\j2ee.jar;c:\sun\appserver\lib\mail.jar SendApp.java
    java -classpath .;c:\sun\appserver\lib\j2ee.jar;c:\sun\appserver\lib\mail.jar SendApp
    Ran on Windows XP, Sun J2EE 1.4/Appserver Bundle
        import java.io.*;
        import javax.mail.*;
        import javax.mail.internet.*;
        import javax.activation.*;
        public class SendApp {
            public static void send(String smtpHost, int smtpPort,
                                    String from, String to,
                                    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.smtp.port", ""+smtpPort);
                Session session = Session.getDefaultInstance(props, null);
                // Construct the message
                Message msg = new MimeMessage(session);
                msg.setFrom(new InternetAddress(from));
                msg.setRecipient(Message.RecipientType.TO, new InternetAddress(to));
                msg.setSubject(subject);
                msg.setText(content);
                // Send the message
                Transport.send(msg);
            public static void main(String[] args) throws Exception {
                // Send a test message
                send("10.1.4.105", 25, "[email protected]", "[email protected]",
                     "test", "test message.");
        }

  • Error while connecting to Microsoft Exchange server using javamail: "com.sun.mail.util.MailConnectException: Couldn't connect to host, port: host name , 993; timeout -1"

    I am trying to read mails from my outlook microsoft exchange server. Following is the code:
    public void readEmailsFromOutlook(/*String host, String username, String password*/ ) throws MessagingException, IOException {
          String host = "hostname";
          String username = "domain\\username";
          String password = "password"
          // Create empty properties
          Properties props = System.getProperties();
          props.setProperty("mail.smtp.auth","true");
          props.setProperty("mail.store.protocol","imaps");
          props.setProperty("mail.imap.auth.plain.disable","true");
          props.setProperty("mail.imap.host",host);
          props.setProperty("mail.imap.port","993");
          props.setProperty("mail.imap.user",username);
          props.setProperty("mail.imap.pwd",password);
          props.setProperty("mail.imap.debug","true");
          props.setProperty("mail.imap.ssl.protocols","SSL");
          props.setProperty("mail.imap.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
          props.setProperty("mail.imap.socketFactory.fallback", "false");
          props.setProperty("mail.imap.socketFactory.port", "993");
          // Get session
                     Session session = Session.getInstance(props, new ExchangeAuthenticator(username, password));
          session.setDebug(true);
          // Get the store
          Store store = session.getStore("imaps");
          //Store store = session.getStore();
          store.connect(host, username, password);
          // Get folder
          Folder folder = store.getFolder("INBOX");
          folder.open(Folder.READ_ONLY);
          BufferedReader reader = new BufferedReader(new InputStreamReader(
              System.in));
          // Get directory
          Message message[] = folder.getMessages();
          for (int i = 0, n = message.length; i < n; i++) {
            System.out.println(i + ": " + message[i].getFrom()[0] + "\t"
                + message[i].getSubject());
            System.out.println("Read message? [YES to read/QUIT to end]");
            String line = reader.readLine();
            if ("YES".equalsIgnoreCase(line)) {
              System.out.println(message[i].getContent());
            } else if ("QUIT".equalsIgnoreCase(line)) {
              break;
          // Close connection
          folder.close(false);
          store.close();
    But it threw the following error:
    DEBUG: setDebug: JavaMail version 1.5.1
    DEBUG: getProvider() returning javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle]
    DEBUG IMAPS: mail.imap.fetchsize: 16384
    DEBUG IMAPS: mail.imap.ignorebodystructuresize: false
    DEBUG IMAPS: mail.imap.statuscachetimeout: 1000
    DEBUG IMAPS: mail.imap.appendbuffersize: -1
    DEBUG IMAPS: mail.imap.minidletime: 10
    DEBUG IMAPS: trying to connect to host <hostname>,port 993, isSSL true
    com.sun.mail.util.MailConnectException: Couldn't connect to host, port: 10.75.250.60, 993; timeout -1;
      nested exception is:
    java.net.ConnectException: Connection refused: connect
    at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:693)
    at javax.mail.Service.connect(Service.java:345)
    at javax.mail.Service.connect(Service.java:226)
    at com.capgemini.utilities.Utilities.readEmailsFromOutlook(Utilities.java:1261)
    Whats wrong with my code?
    Please help!!!!

    You're using the "imaps" protocol, but you've set properties for the "imap" protocol.  Change all the property names from mail.imap.* to mail.imaps.*.
    Also, get rid of all the socket factory properties.
    If you still can't connect, see these connection debugging tips.
    Most likely you're using the wrong host name or port number.  In almost all cases, it's better to just let JavaMail choose the correct port number.

  • Java.lang.NoSuchMethodException: com.sun.mail.imap.IMAPStore.

    All:
    I have completed the following:
    1. Downloaded the JavaMail 1.4.2 API.
    2. From this downloaded API I had extracted the mail.jar file (timestamp 2009-02-26 13:28) to my C:\Program Files\Tomcat 6.0\lib directory
    3. Downloaded the jaf-1_0_2-upd2 API
    4. From this downloaded API I had extracted the activation.jar file (timestamped 2005-05-07 21:14) also to my C:\Program Files\Tomcat 6.0\lib directory.
    In Eclipse I have created a simple JSP page that calls a POJO that is to read a particular email box using IMAP. In this POJO I have code to set up the Properties, Session and Store objects as such:
    Line 1 Properties properties = System.getProperties();
    Line 2 properties.put("mail.from", "[email protected]");
    Line 3 properties.put("mail.debug","true");
    Line 4 session = Session.getDefaultInstance(properties, null);
    Line 5 session.setDebug(debug);
    Line 6 printData("About to get store object...");
    Line 7 store = session.getStore("imap");
    In eclispe, I click "Debug on Server" and Tomcat starts, begins to display my JSP and then I am dropped on the line of code in my POJO where I set a breakpoint (Line 1). Now I single step through the code. The code throws the following execption when it executes line 7 of the above code :
    (Line 6 ==>) About to get store object...
    DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
    java.lang.NoSuchMethodException: com.sun.mail.imap.IMAPStore.<init>(javax.mail.Session, javax.mail.URLName)
         at java.lang.Class.getConstructor0(Unknown Source)
         at java.lang.Class.getConstructor(Unknown Source)
         at javax.mail.Session.getService(Session.java:782)
         at javax.mail.Session.getStore(Session.java:574)
         at javax.mail.Session.getStore(Session.java:536)
         at javax.mail.Session.getStore(Session.java:515)
         at emailTest.readEmails.processMail(readEmails.java:62)
         at emailTest.readEmails.<init>(readEmails.java:24)
         at org.apache.jsp.emailTest_jsp._jspService(emailTest_jsp.java:94)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Unknown Source)
    There are no jar files defined in my project's classpath. The only jar file found in the project is in the WEB-INF\lib folder wherein I have a jndi.jar (timstamp 5/5/2009 8:10AM) file.
    I put the activation.jar file and the mail.jar file in my Tomcat.6\lib folder according item 4 of the JavaMail Sessions section of the Apache Tomcat JNDI Resources HOW_TO found here: http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html
    Can anybody please tell me what I need to do to get around this error? Do I perhaps have the wrong versions of one or more jar files?
    FYI: I have also put these same two jar files in my projects classpath and still recevied the same exception. Because I am invoking a POJO from a JSP should these jar files be in my projects classpath in addition to the tomcat\lib directory, or should they only be in the projects' classpath?
    Thanks to all for your time in responding.
    Gary

    bshannon:
    Thank you for your resonse. Your response got me to thinking that my instance of Ecliplse that I had had running yesterday was behaving a little strangely so this morning I closed everything I had running on my workstation and closed down the machine and rebooted. When I finally opend up Eclipse again and ran my JSP program calling my POJO, the code no longer threw the exception. Apparently Eclipse can have its tempermental moments.
    Also, let it be known that while everything is working for me now, I performed a small experiment. I moved the activiation.jar and mail.jar from my project\WEB-INF\lib folder and put them in the the C:\Program Files\Tomcat 6.0\lib directory. Then, when I ran my program I once again recieved the java.lang.NoSuchMethodException error. When I moved these jar files back from the Tomcat diretory to my project\WEB-INF\lib directory, the program worked just fine.
    Thanks again
    Gary

  • Java.lang.NullPointerException at com.sun.mail.iap.Response.parse

    I am getting this error when I try to download a message using IMAP from exchange server
    java.lang.NullPointerException
         at com.sun.mail.iap.Response.parse(Response.java:99)
         at com.sun.mail.iap.Response.<init>(Response.java:68)
         at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:31)
         at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:105)
         at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:153)
         at com.sun.mail.iap.Protocol.command(Protocol.java:215)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:882)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:874)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:656)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:645)
    This error occurs intermittantly. I placed one large mail (around 600 MB) and few normal size mails on exchange server. In few testing runs, this error occured while downloading the large mail as well as one normal mail. In one test run, all mails got downloaded successfully.
    Could anyone please suggest the cause and resolution?
    Thanks.

    I turned on the session debugging. I am running my application on Linux, so the debugging info was moved to a log file. This log file is very large (around 1GB) and I am unable to open it.
    One more thing: I am trying Message.writeTo() method to download the message. If an OutOfMemoryError occurs, I catch it and try to download the message using GetInputStream. NullPointerException is occuring in both the cases.
    Exception stack trace with writeTo():
    java.lang.NullPointerException
         at com.sun.mail.iap.Response.parse(Response.java:99)
         at com.sun.mail.iap.Response.<init>(Response.java:68)
         at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:31)
         at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:105)
         at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:153)
         at com.sun.mail.iap.Protocol.command(Protocol.java:215)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:882)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:874)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:656)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:645)
         at com.sun.mail.imap.IMAPMessage.writeTo(IMAPMessage.java:536)
    Exception stack trace with getInputStream():
    java.lang.NullPointerException
         at com.sun.mail.iap.Response.parse(Response.java:99)
         at com.sun.mail.iap.Response.<init>(Response.java:68)
         at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:31)
         at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:105)
         at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:153)
         at com.sun.mail.iap.Protocol.command(Protocol.java:215)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:882)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:874)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:653)
         at com.sun.mail.imap.protocol.IMAPProtocol.peekBody(IMAPProtocol.java:637)
         at com.sun.mail.imap.IMAPMessage.loadHeaders(IMAPMessage.java:1055)
         at com.sun.mail.imap.IMAPMessage.getAllHeaders(IMAPMessage.java:642)
    First I try to download the headers in case of an OutOfMemoryError. The above trace shows that.
    Could anyone point out the problem and help resolving it?

  • Com.sun.mail.imap.IMAPFolder close

    Hi everyone,
    We are using BMC Remedy Email Engine with javamail function.
    Why is the message of ''com.sun.mail.imap.IMAPFolder close' message is indicated in stderr.log file' indicated? BMC and we don't know the reason at all. If someone knows, could you please teach us the error cause?
    The detail is below:
    2008/10/07 1:16:10 com.sun.mail.imap.IMAPFolder close
    SEVERE: A6 NO CLOSE Block size illegal for BPOOL.
    javax.mail.MessagingException: A6 NO CLOSE Block size illegal for BPOOL.;
    nested exception is:
         com.sun.mail.iap.CommandFailedException: A6 NO CLOSE Block size illegal for BPOOL.
         at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:1003)
         at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:935)
         at com.remedy.arsys.emaildaemon.ReceiverModule.terminateIncommingMailbox(ReceiverModule.java:1837)
         at com.remedy.arsys.emaildaemon.ReceiverModule.doWork(ReceiverModule.java:357)
         at com.remedy.arsys.emaildaemon.ThreadBase.run(ThreadBase.java:268)
         at java.lang.Thread.run(Unknown Source)
    Caused by: com.sun.mail.iap.CommandFailedException: A6 NO CLOSE Block size illegal for BPOOL.
         at com.sun.mail.iap.Protocol.handleResult(Protocol.java:294)
         at com.sun.mail.iap.Protocol.simpleCommand(Protocol.java:316)
         at com.sun.mail.imap.protocol.IMAPProtocol.close(IMAPProtocol.java:926)
         at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:1000)
         ... 5 more
    Regards,
    NAKAI

    Hi,
    I'm experiencing a quite similar problem in our BMC Remedy Email Engine. IMAP mail integration that has been working for a long time has suddently quit working and now producing error message as below every second instead. NAKAI - did you find any solution to your problem? Anyone else that has experienced any similar?
    Thanks in advance,
    Daniel
    A94819 NO The request is not supported.;
    nested exception is:
         com.sun.mail.iap.CommandFailedException: A94819 NO The request is not supported.
    javax.mail.MessagingException: A94819 NO The request is not supported.;
    nested exception is:
         com.sun.mail.iap.CommandFailedException: A94819 NO The request is not supported.
         at com.sun.mail.imap.IMAPMessage.loadEnvelope(IMAPMessage.java:1063)
         at com.sun.mail.imap.IMAPMessage.getMessageID(IMAPMessage.java:428)
         at com.remedy.arsys.emaildaemon.ReceiverModule.checkAndSkipStoredMessages(ReceiverModule.java:397)
         at com.remedy.arsys.emaildaemon.ReceiverModule.doWork(ReceiverModule.java:275)
         at com.remedy.arsys.emaildaemon.ThreadBase.run(ThreadBase.java:268)
         at java.lang.Thread.run(Unknown Source)

  • IMAPFolder.doCommand() com.sun.mail.iap.BadCommandException

    I'm attempting to run "SEARCH ALL" on my INBOX using IMAPFolder.doCommand(). I'm using the api documentation at http://java.sun.com/products/javamail/javadocs/com/sun/mail/imap/IMAPFolder.html#doCommand as a starting point, I was able to run the IMAP NOOP example in the api documentation without any errors. But when I try to run 'SEARCH ALL'
                        folder.open(Folder.READ_ONLY);
                        IMAPFolder f = (IMAPFolder) folder;
                        Object val = f.doCommand(new IMAPFolder.ProtocolCommand() {
                            public Object doCommand(IMAPProtocol p)
                                    throws ProtocolException {
                                // Issue command
                                Argument args = new Argument();
                                args.writeString("ALL");
                                Response[] r = p.command("SEARCH ", args);
                                Response response = r[r.length - 1];
                                // Grab response
                                if (response.isOK()) { // command successful
                                    for (int i = 0, len = r.length; i < len; i++) {
                                        if (!(r[i] instanceof IMAPResponse)) {
                                            continue;
                                        IMAPResponse ir = (IMAPResponse) r;
    if (ir.keyEquals("SEARCH")) {
    String num;
    while ((num = ir.readAtomString()) != null) {
    System.out.print(num + " ");
    p.notifyResponseHandlers(r);
    p.handleResult(response);
    return null; //just a test, don't need a return value
    I get the errorjavax.mail.MessagingException: A10 BAD Invalid Search criteria;
    nested exception is:
         com.sun.mail.iap.BadCommandException: A10 BAD Invalid Search criteria
         com.sun.mail.imap.IMAPFolder.doCommand(IMAPFolder.java:2571)
         quota.db.QuotaDB.dumpFolder(QuotaDB.java:288)
         quota.db.QuotaDB.getMailboxInfo(QuotaDB.java:206)
         quota.db.QuotaDB.getQuotaInfo(QuotaDB.java:110)
         quota.actions.GetFolderInfoAction.execute(GetFolderInfoAction.java:74)
    Looking through my mailserver's logs does not provide any clues as to the cause of this error.  Any advice?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    mowmowmow wrote:
    Looking through my mailserver's logs does not provide any clues as to the cause of this error. Any advice?Apparently your server considers ALL to be an invalid search criteria.

  • NullPointerException in com.sun.mail.iap.Response.parse

    Hey all. I am accessing an IMAP mail server from Solaris 8 using java 1.5.0-08, but I intermittently get the following exception:
    java.lang.NullPointerException
            at com.sun.mail.iap.Response.parse(Response.java:130)
            at com.sun.mail.iap.Response.<init>(Response.java:87)
            at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:48)
            at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:122)
            at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:230)
            at com.sun.mail.iap.Protocol.command(Protocol.java:263)
            at com.sun.mail.iap.Protocol.simpleCommand(Protocol.java:310)
            at com.sun.mail.imap.protocol.IMAPProtocol.close(IMAPProtocol.java:926)
            at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:1000)
            at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:935)Any thoughts of what I am doing wrong?

    I'm just looking for more data to get
    a handle on the problem.I ran my program again, and got a NPE on another email. It is also big...
    A479 FETCH 856 (BODY[])
    * 856 FETCH (BODY[] {26497359}
    Return-Path: <[email protected]>
    ... some of the body ...
    BTW, the ebinder subcollection is not in the select list. Do I have to configure
    or create another foA480 CLOSE
    DEBUG: added an Authenticated connection -- size: 1
    java.lang.NullPointerException
            at com.sun.mail.iap.Response.parse(Response.java:130)
            at com.sun.mail.iap.Response.<init>(Response.java:87)
            at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:48)
            at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:122)
            at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:230)
            at com.sun.mail.iap.Protocol.command(Protocol.java:263)
            at com.sun.mail.iap.Protocol.simpleCommand(Protocol.java:310)
            at com.sun.mail.imap.protocol.IMAPProtocol.close(IMAPProtocol.java:926)
            at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:1000)
            at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:935)
    A481 LIST "" shared
    java.lang.NullPointerException
            at com.sun.mail.iap.Response.parse(Response.java:130)
            at com.sun.mail.iap.Response.<init>(Response.java:87)
            at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:48)
            at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:122)
            at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:230)
            at com.sun.mail.iap.Protocol.command(Protocol.java:263)
            at com.sun.mail.imap.protocol.IMAPProtocol.doList(IMAPProtocol.java:799)
            at com.sun.mail.imap.protocol.IMAPProtocol.list(IMAPProtocol.java:776)
            at com.sun.mail.imap.IMAPFolder$1.doCommand(IMAPFolder.java:429)
            at com.sun.mail.imap.IMAPFolder.doProtocolCommand(IMAPFolder.java:2387)
            at com.sun.mail.imap.IMAPFolder.doCommand(IMAPFolder.java:2332)
            at com.sun.mail.imap.IMAPFolder.exists(IMAPFolder.java:427)
    ... lots of these ...
    A490 LIST "" shared
    rm or resource or something to solve this problem? please
    advice.
    (See attached file: private-xml.rtf)(See attached file: private-html.rtf)(See
    ... more body from the first email ...And this process of getting little chunks of data seems to continue on, interspersed with NPEs. It looks like some connection is not being closed.

  • Apple told me that my iPhone 4 does not have the possibility to store sent e-mails. I can not believe that, but my iPhone has a box for sent mails that is always empty. How can my iPhone store sent e-mails?

    The Apple helpdesk told me that my iPhone 4 does not have the function to keep sent mails stored. I cannot believe that. My iPhone 4 has a Sent box, I have checked the Sent box in Configuratieo--> E-mail, ...Calender..,but the Sent box is always empty after I have sent an E-mail. I know that the E-mails arrive at their destinations. How can I activate the Sent box?

    lol the person you talked to at Apple was not very bright.
    Of course you can have sent items in your mail on the iPhone 4. I have mine there all the time.
    Sounds like you might have issues with the software.
    I recommend trying a reset, send email and see if that goes to the sent items directory
    If not do a restore.
    #1: Reset: http://support.apple.com/kb/HT1430
    #2: Restore: http://support.apple.com/kb/HT1414

Maybe you are looking for

  • Sorting photos in iphoto to find duplicates

    When I transferred my photos from iphoto to my new computer last fall, I did something wrong, and the ones I put on were very low resolution. So I transferred them on again, this time the correct way, but the problem is, I have many duplicate photos.

  • Format search error

    Dear All 1.I create a User-define field on OITM, Call U_D. 2.Create a format search Query on itemcode of Item interface. FS: Select $[oitm.U_D] When the Item interface is "add" status, The FS can select data, but when the status is "Find" ststus, the

  • How can I learn developing Mobile Andriod Applications in Dreamweaver CS6 ?

    How can I learn developing Mobile Andriod Applications in Dreamweaver CS6 ?

  • HT5467 cant open my location services in my iphone

    cant open my location services in my iphone 3Gs with IOS 6.0.1

  • Parallel Currencies

    I need to know if we will need to configure The Parallel Currencies. I've never used them but I believe the answer is "Yes", as we'll need a Group Currency for reporting in consolidated USD, as well as a local foreign currency. Can you provide some g