Javax.mail.FolderNotFoundException: folder INBOX not found

Hi
I have a simple program called simpleread.java. I have javamail, JAF and javamaildir installed.
Now I know that I am not providing more details and I can post more details. I am very apologetic about this. However I wanted to know if the error I have is kind of general.
So I am posting the following error:
Exception in thread "main" javax.mail.FolderNotFoundException. folder 'INBOX" not found
=======
thanks in advance
I will provide details gladly

Sounds like a problem with the way javamaildir is configured,
or the way you're using it. You might want to talk to the
javamaildir experts.

Similar Messages

  • Random javax.mail.FolderNotFoundException

    Hi all,
    we have a java application hosted on Win 2000 wich is using javamail api to interact with MS Exchange 2003. Basically is getting folders and iterating trough them.
    From time to time we get an error about javax.mail.FolderNotFoundException.
    This is happening really randomly and not on the same folder, the ms event viewer doesn't say so much, and the application has basic log4j error with no stack trace, only the getMessage().
    My question is, do you know of any existing bug between the three systems wich could cause such error ?
    Where do you think I should start to solve the problem ? Network ? Java ?
    thanks in advance...

    Turn on session debugging and examine the
    protocol trace. See the JavaMail FAQ.

  • Javax.mail.MessagingException: Unconnected sockets not implemented

    Hi,
    I am trying to get mails from mail server using IMAP.I am using Jdk 1.5.0.While I am trying to get mails, I am getting following exception.
    DEBUG: setDebug: JavaMail version 1.4.1
    DEBUG: getProvider() returning javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc]
    DEBUG: mail.imap.fetchsize: 16384
    javax.mail.MessagingException: Unconnected sockets not implemented;
    nested exception is:
         java.net.SocketException: Unconnected sockets not implemented
         at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:571)
         at javax.mail.Service.connect(Service.java:288)
         at com.maxis.getmail.receiveEmails(getmail.java:58)
         at com.maxis.getmail.main(getmail.java:22)
    Caused by: java.net.SocketException: Unconnected sockets not implemented
         at javax.net.SocketFactory.createSocket(SocketFactory.java:97)
         at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:225)
         at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
         at com.sun.mail.iap.Protocol.<init>(Protocol.java:107)
         at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:104)
         at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:538)
         ... 3 more
    Here is my code..
    String host = "host";
    String name = "username";
    String passwd = "pwd";
    java.security.Security.setProperty("ssl.SocketFactory.provider", "DummySSLSocketFactory");
    System.setProperty("javax.net.ssl.trustStore"," JAVA_HOME/jre/lib/security/cacert");
    // Get a Properties object
    Properties props = System.getProperties();
    props.setProperty("mail.imaps.ssl.enable", "true");
    props.setProperty("mail.imaps.ssl.socketFactory.class","DummySSLSocketFactory");
    //props.setProperty("mail.imaps.ssl.socketFactory.fallback", "false");
    Session session = Session.getDefaultInstance(props, null);
    session.setDebug(true);
    Store store = session.getStore("imaps");
    store.connect(host,portno ,name, passwd); // exception here
    ===================================================
    I am unable to understand where went wrong. Could someone help me ,Plz?
    Any help would be appreciated.
    Thanks.

    There were some bugs in the old instructions for socket factories. Search this forum for the details.
    But, you should just upgrade to JavaMail 1.4.3, which supports properties that better control SSL
    connections, as well as a MailSSLSocketFactory that will give you more control without having to
    write your own.

  • Javax.naming.NameNotFoundException: buslogic.HRAppFacade not found, help!!!

    I have followed the tutorial on http://www.oracle.com/technology/obe/obe1013jdev/10131/10131_ejb_30/ejb_30.htm to create my own EJB with Jdeveloper, but I got some errors. Please help.
    When I run the client, it gave out the following errors:
    javax.naming.NameNotFoundException: buslogic.HRAppFacade not found
         at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at client.HRAppFacadeClient.main(HRAppFacadeClient.java:15)
    Process exited with exit code 0.
    I have created the entity and facade (with interface), but the client couldn't lookup the facade, giving out the above error. How to solve the problm? Thanks.
    The following is my source code:
    Employees.java
    package buslogic.persistence;
    import java.io.Serializable;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.NamedQuery;
    import javax.persistence.Table;
    import javax.persistence.Id;
    import javax.persistence.NamedQueries;
    @Entity
    @NamedQueries({
    @NamedQuery(name = "Employees.findAll", query = "select o from Employees o"),
    @NamedQuery(name = "Employees.findEmployeeById", query = "select o from Employees o where o.empid = :empid")
    @Table(name = "\"employees\"")
    public class Employees implements Serializable {
    @Id
    @Column(name="empid")
    private int empid;
    @Column(name="name")
    private String name;
    @Column(name="phone")
    private int phone;
    public Employees() {
    public int getEmpid() {
    return empid;
    public void setEmpid(int empid) {
    this.empid = empid;
    public String getName() {
    return name;
    public void setName(String name) {
    this.name = name;
    public int getPhone() {
    return phone;
    public void setPhone(int phone) {
    this.phone = phone;
    (HRAppFacadeBean.java)
    package buslogic;
    import buslogic.persistence.Employees;
    import java.util.List;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    @Stateless(name="HRAppFacade")
    public class HRAppFacadeBean implements HRAppFacade, HRAppFacadeLocal {
    @PersistenceContext(unitName="EJB_Project")
    private EntityManager em;
    public HRAppFacadeBean() {
    public Object mergeEntity(Object entity) {
    return em.merge(entity);
    public Object persistEntity(Object entity) {
    em.persist(entity);
    return entity;
    /** <code>select o from Employees o</code> */
    public List<Employees> queryEmployeesFindAll() {
    return em.createNamedQuery("Employees.findAll").getResultList();
    /** <code>select o from Employees o where o.empid = :empid</code> */
    public Employees queryEmployeesFindEmployeeById(int empid) {
    return (Employees)em.createNamedQuery("Employees.findEmployeeById").setParameter("empid", empid).getSingleResult();
    public void removeEmployees(Employees employees) {
    employees = em.find(Employees.class, employees.getEmpid());
    em.remove(employees);
    (HRAppFacade.java)
    package buslogic;
    import buslogic.persistence.Employees;
    import java.util.List;
    import javax.ejb.Remote;
    @Remote
    public interface HRAppFacade {
    Object mergeEntity(Object entity);
    Object persistEntity(Object entity);
    List<Employees> queryEmployeesFindAll();
    Employees queryEmployeesFindEmployeeById(int empid);
    void removeEmployees(Employees employees);
    (HRAppFacadeLocal.java)
    package buslogic;
    import buslogic.persistence.Employees;
    import java.util.List;
    import javax.ejb.Local;
    @Local
    public interface HRAppFacadeLocal {
    Object mergeEntity(Object entity);
    Object persistEntity(Object entity);
    List<Employees> queryEmployeesFindAll();
    Employees queryEmployeesFindEmployeeById(int empid);
    void removeEmployees(Employees employees);
    }

    I hit the exact same error. In my case it was due to missing "@Id" line in Departments.java. I must have accidently deleted it when pasting in some code.
    (my clue was the errors I got when starting imbedded OC4J)
    This section of Departments.java should read as follows:
    public class Departments implements Serializable {
    @Id
    @GeneratedValue(strategy=SEQUENCE, generator="DEPARTMENTS_SEQ")
    @Column(name="DEPARTMENT_ID", nullable = false)
    After fixing this, I ran a "make" of "HRApp", restarted the embedded OC4J server (terminate it, then right click HRAppFacadeBean.java, and click Run).
    Then ran the application...

  • Javax.naming.NameNotFoundException: jms/QueueConnectionFactory not found

    Hi,
    I wrote a Java JMS client that connect to Oracle9iAs 9.0.2.1
    using OC4J 9.0.3.
    I got the error javax.naming.NameNotFoundException: jms/QueueConnectionFactory not found?
    first I'm a bit confused about which rmi port to use to connect
    to Oracle9ias, I found there is 7 ports open from 3101 to 3107?
    How could I I know which port my OC4J_Home is using??
    thanks
    Ahmed

    thanks for your help, I know now that i'm connecting to the right port, however, i'm still getting the error message
    error javax.naming.NameNotFoundException: jms/QueueConnectionFactory not found?
    note that i'm not getting such message on OC4J standalone.
    I know that Oracle donestn't recommend the use of ligth
    JMS only AQ, becouse light oracle JMS have some bugs,
    is this one of the bugs?
    any body have a idea what could be the probelm?
    Ahmed

  • Error in compiling: file javax\servlet\jsp\PageContext.class not found

    Hi,
    i'm getting an error when I'm trying to compile an java file. The error is as follows:
    cannot access javax.servlet.jsp.PageContext
    file javax\servlet\jsp\PageContext.class not found
    Isn't the javax package included in jdk? I've installed jdk 1.3.1_03 and j2re1.4.0_02. Shouldn't this PageContext.class be automatically loaded when i've installed jdk?
    I'm getting desperated! I've tried almost everything: i've changed the classpath, moved the directory of the java file I'm trying to compile over and over but i'm getting no success!
    Any help is very welcome!
    Thankx,
    Nuno.

    hmmm... i had a look and it seems that what you are trying to "import" is actually in a package... instead of import try:
    package javax.servlet.jsp;you may need to go download this "package" and complile it in the directory you are working in.
    my advice: try the above statement (which does compile for me), if it doesn't work, you will need to find the source code for this package and compile it just like you do any other source code.
    hope this helps.

  • Configure incoming e-mail settings - Error File Not Found?

    Hello
    I am trying to setup a test server for SharePoint 2010 and I have followed the MS instructions for deploying a single SharePoint 2010 server with SQL server. I have had no problems or errors during the setup; however now going through the recomended
    post installation task of configuring incoming email settings I am getting an error message.
    I have added the SMTP service to the server, configured it in IIS then gone back to the SharePoint central administration page. When I click Configure incoming e-mail settings under System Settings I get the following error message.
    Error File Not Found. Correlation ID: cc08f335-6762-4c70-a690-ecfd012ec3c2
    I have no idea what is causing this so have no way to resolve it, any help would be really appreciated.
    Thanks

    Hi Terradog,
    Firstly, you can check the ULS log, which is located in Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\LOGS folder. You can find the exact
    correlection ID from the log file.
    For the similar issue, you can refer to the following post:
    http://social.technet.microsoft.com/Forums/en-US/sharepoint2010setup/thread/b24e2a4e-c422-49de-8f35-478c8df84329#470d6dd5-722f-4226-bf2f-07e261c47618
    For more information about configuring incoming e-mail in SharePoint 2010, you can refer to the following article:
    http://sharepointgeorge.com/2010/configuring-incoming-email-sharepoint-2010/
    Hope this helps.
    Rock Wang
    Regards, Rock Wang Microsoft Online Community Support

  • When give username and password to yahoo mail, it tells 404 not found

    When i opened yahoo mail and typed user name and password, the browser did not open the account, instead it showed,
    404 not found,
    nginx/0.6.32

    Go to: http://help.yahoo.com/l/us/yahoo/mail/yahoomail/ and click the link to "Problems and error messages".

  • Yahoo loads log in click mail 404 error page not found why?

    I upload yahoo site, log in, click 'mail' and am given a '404' error; page not found... This does NOT happen on Chrome or IE, but the pages of yahoo on IE suck and Chrome won't let me have a single toolbar even though there are all sorts of claim you can have one... (sorry) WHY doesn't FIREFOX let yahoo mail load? I LOVE FIREFOX and ALL THINGS MOZILLA, but after I ran into crappy-sappy babylon... it put a toolbar on IE, CHROME and MOZILLA... I had to delete everything associated with them all, get toolbar sweepers and better uninstall programs to weed their junk out and now MOZILLA, FIREFOX, rather warns no one and makes me submit this rather than help

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"

  • Sending Human Task notification mail to a assignee not found in LDAP

    Hi All,
    I have 2 requirements:
    1. Suppose i have a HumanTask which sends a notification mail to the assignee when the task is assigned to him/her.
        In our process we are first checking if the assignee's email address is present in LDAP using the BPEL variable that holds the assigneeID.
        If it is not present in LDAP, then we are getting the email address from database before the invocation of the HumanTask.
        Now, as the emailaddress is not found in LDAP, so when the HumanTask is invoked the notification mail will not be sent to the assignee.
        So, we have used a separate email activity after the invocation of HumanTask to send the notification mail to the assignee using his emailaddress that we fetched from the database.
        I don't want to use this separate email activity and wanted to know if there is any other alternative to send the notification mail during invocation of the HumanTask using the emailaddress that
        we fetched from the database?
       Basically i want to know if there is any other way to send the notification mail when a task is assigned and the assignee's email address is not found in LDAP?
    2. Is it possible to send a Human Task's outcomes as links in an email activity body?
       Actually, i am sending a mail to a user using the email activity. Before that a HumanTask is present in my BPEL process.
       I want to send the HumanTask's outcomes as links in the email that i am sending to the user using the email activity just as they get displayed in the notification mail when HumanTask's "Make
       notification actionable" feature is selected.
    Please help me with the above requirements.
    Regards,
    Suman

    AnilB,
    Assigning a task to a user that is not in the directory will likely result in the BPM flow going into suspended state. To avoid this, assign the task to a pre-created group, you should not get an error even if the group is empty. You can then add and remove the users to that group to control access to the task.
    Phil

  • Smart Folder "Mailbox '***' not found"

    I upgraded to Leopard on my MacBook Pro and my iMac; mail on the MBP now has three Smart folders that I can not not remove. Each time I open mail it adds another "Mailbox '[mailbox name]' not found"
    1st open = "Mailbox '[mailbox name]' not found"
    2nd open = "Mailbox "Mailbox '[mailbox name]' not found" not found"
    etc....
    I can rename them but it just start over.
    How can I remove these?

    I have the same problem. Were you able to delete the problem mailboxes from the VersionedSmartMailboxes.plist or did you have to delete the file? The only way I can see to fix the problem is to delete the SmartMailboxes.plist but then all my Smart Mailboxes are gone.

  • Javax.servlet.Filter, throw file not found exception

    I want to use a url which is not exists to let the filter run.
    In the method doFIlter(), if the URL is this one, I will return and do not run chain.doFilter
    Why throw FIle not found exception? Will the fileter check the url whether exist or not?

    I use the URL to let the filter run, but do not want to go to the URL.What should happen if someone requests the URL from the server ?
    Nothing is not possible.
    One possibilty is to send the HTTP Response Code 204 - No Content
    The server has fulfilled the request but does not need to return an entity-body, and might want to return updated metainformation. The response MAY include new or updated metainformation in the form of entity-headers, which if present SHOULD be associated with the requested variant.
    If the client is a user agent, it SHOULD NOT change its document view from that which caused the request to be sent. This response is primarily intended to allow input for actions to take place without causing a change to the user agent's active document view, although any new or updated metainformation SHOULD be applied to the document currently in the user agent's active view.
    The 204 response MUST NOT include a message-body, and thus is always terminated by the first empty line after the header fields.
    (RFC 2616 Fielding, et al.)

  • .mac mail and mail.app, IMAP, inbox not refreshing on web after delete

    I am using mail.app with my .mac mail account. When i delete an email from the inbox it moves it to my trash in the mail.app program and takes it out of the inbox, which is normal. However, it does not do this when i open up my mail using the web. Here, the message is still in my inbox and it is also in the deleted messages folder.
    So, i have searched everywhere for some answers on this but have found nothing. In trying to figure this out i realized that if i click on the trash within mail.app, the little clock refresh icon pops up, then if i click back onto the "inbox" icon it then gets the refresh clock icon. After this is done the .mac web page is correct, nothing in my inbox and it is still in my deleted.
    The problem is I dont click on trash and the back to inbox everytime i use my mail.app program so when i leave the house and check my mail at work using the web everything i deleted the night before is still there.
    Is this normal? is there an auto refresh? i have it set to check for new mail every 5 minutes but that doesnt seem to get the refresh thing to happen. I also have my .mac sync to sync mailboxes and settings.
    any help with this is appreciated. I have searched google and many forums for the answer and have given up.
    Thank you

    You're welcome.
    It does as the selection indicates. It automatically synchronizes changed mailboxes only after a change is made to a mailbox that is stored on the server. So when selecting a message for deletion in the account's Inbox mailbox and after the message is moved to the account's Trash mailbox which stored locally on the hard drive or on the server via Mail preferences, each changed server stored mailbox in Mail is automatically synchronized with the server at that time.

  • Mail 3.6 Inbox not getting new Gmail mail

    So since I updated to 10.5.7 and 10.5.8 (both use Mail 3.6), the Inbox of Mail will not populate properly from my gmail hosted IMAP account. The All Mail and label folders are all fine but the Inbox won't show messages newer than 11:28 am on August 4th.. it's the 7th now.
    I've tried rebuilding the inbox, turning off my rules, hunting through the preference files, removing the account and making a new one (re-downloading all mail for that account) - nothing works. I either get the same stopping point or I get a completely blank (empty) inbox.
    Anyone know of a fix?

    I've been experiencing this for 3 months now. Totally sporadic. I've checked preferences, rebuilt mailboxes, etc. to no avail. It's like going to start an unreliable car on a cold morning. Sometimes it cranks, sometimes it doesn't. Hasn't downloaded new mail for a day. Probably will tomorrow.
    I'd like to go to 10.5.8, but I don't want things to get worse. When I really need to read email (other than my iPhone), I fire up Thunderbird, and there are all my new messages.
    Come on, Apple! I'd rather be using Mail!

  • Calling webservice - meta-inf/services/javax.xml.ws.spi.provider not found

    Hi,
    I have created an applet. Its running well in standalone application. But it is not getting referred in some other localhost. The JAXWS is not getting referred by the JRE. I'm getting the exception as invocation exception, and cannot find the META-INF/services/javax.xml.ws.spi.provider.
    Anyone can solve, pls reply me.

    your problem is too stuffed to understand properly..could you elobarate a lil bit

Maybe you are looking for