Menu

#76 Cannot find bean core_model_mailidentity in Expert mode

closed-fixed
5
2004-10-18
2004-10-13
No

I'm in Settings, and I toggle Expert mode on, and get the following
exception:

javax.servlet.jsp.JspException: Cannot find bean
core_model_mailidentity in any scope
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:
963)

org.apache.struts.taglib.html.RadioTag.doStartTag(RadioTag.java:
231)

org.apache.jsp.preferences_jsp._jspService(preferences_jsp.java:
1197)
...

I don't see what's wrong. It looks like the bean has session scope,
and isn't referenced in the section of preferences.jsp in which
expert mode features are displayed.

==Leonard

Discussion

  • Dieter Wimberger

    • labels: --> Controllers
    • assigned_to: nobody --> wimpi
     
  • Dieter Wimberger

    Logged In: YES
    user_id=36782

    Leonard,

    I cannot reproduce this problem with a fresh deployed copy of the last
    CVS and Tomcat 4.1.30.
    Does this happen when you deploy a completely new build of the HEAD
    on CVS?
    What container are you using?

    Regards,
    Dieter

     
  • Leonard Sitongia

    Logged In: YES
    user_id=620875

    Hi Dieter,

    I got the HEAD for the module jwma-scratch. I just diff'd it with the
    HEAD, and there's no difference (I checked it out yesterday).

    I'm running Tomcat 5.0.27.

    I just restarted it and tried again, logging in, and got the same error.

    Must be related to Tomcat 5.

    ==Leonard

     
  • Dieter Wimberger

    Logged In: YES
    user_id=36782

    Leonard,

    Suppose that it's Tomcat 5 but maybe together with Struts 1.1 (is that
    fully compatible?).

    I will investigate as soon as I find some time, in general I just see that it
    is not an obvious bug :) I was planning switching to a newer Struts
    release anyway, probably that helps.

    Regards,
    Dieter

     
  • Leonard Sitongia

    Logged In: YES
    user_id=620875

    This may not be a matter of Tomcat 4 versus 5, but IMAP servers...

    I'm running this against the Sun (ONE?) IMAP server.

    When I click on Expert and Update, the jwma.log has an exception
    related to /sent-mail:

    javax.mail.FolderNotFoundException: /sent-mail not found
    at com.sun.mail.imap.IMAPFolder.checkExists(IMAPFolder.java:
    266)
    at com.sun.mail.imap.IMAPFolder.setSubscribed(IMAPFolder.java:
    537)
    at
    net.wimpi.webmail.mail.model.JwmaStoreImpl.setSentMailFolder(JwmaSt
    oreImpl.java:398)
    at
    net.wimpi.webmail.mail.controller.PreferencesAction.doUpdatePreference
    s(PreferencesAction.java:183)
    at
    net.wimpi.webmail.mail.controller.PreferencesAction.doDispatchActions(P
    referencesAction.java:86)
    at
    net.wimpi.webmail.mail.controller.CoreAction.execute(CoreAction.java:
    87)
    ...

    2004-10-15 15:22:52,440 [http-8088-Processor25] DEBUG
    net.wimpi.webmail.mail.controller.CoreAction - jwma.store.sentmailfolder
    net.wimpi.webmail.mail.JwmaException: jwma.store.sentmailfolder
    at
    net.wimpi.webmail.mail.model.JwmaStoreImpl.setSentMailFolder(JwmaSt
    oreImpl.java:408)
    at
    net.wimpi.webmail.mail.controller.PreferencesAction.doUpdatePreference
    s(PreferencesAction.java:183)
    at
    net.wimpi.webmail.mail.controller.PreferencesAction.doDispatchActions(P
    referencesAction.java:86)
    at
    net.wimpi.webmail.mail.controller.CoreAction.execute(CoreAction.java:
    87)

    /sent-mail does exist, and I can see when I send mail that it is being
    used, as I have the preference enabled by which it saves a copy of mail
    I send.

    Why would this exception be triggered by Expert mode, and be related to
    the bean not being found?

    ==Leonard

     
  • Leonard Sitongia

    Logged In: YES
    user_id=620875

    (I see that the line numbers in the stack trace are not right...)

     
  • Leonard Sitongia

    Logged In: YES
    user_id=620875

    Dieter and I were chatting about this and concluded that the exception I
    see is an effect of another error related to the IMAP server I'm running.
    The cause is indicated by another exception:

    2004-10-15 16:46:06,598 [http-8088-Processor23] DEBUG
    net.wimpi.webmail.mail.model.JwmaStoreImpl - setSentMailFolder():
    Created sent-mail folder=/sent-mail:false
    2004-10-15 16:46:06,647 [http-8088-Processor23] ERROR
    net.wimpi.webmail.mail.model.JwmaStoreImpl -
    javax.mail.FolderNotFoundException: /sent-mail not found

    In turn, this is caused by the empty root folder setting used in the
    Communigate IMAP server used at my site.

    ==Leonard

     
  • Leonard Sitongia

    Logged In: YES
    user_id=620875

    I've tested Dieter's fix, and this is working correctly now (the problem
    related to Communigate and /sent-mail is fixed).

    Thanks!
    ==Leonard

     
  • Leonard Sitongia

    Logged In: YES
    user_id=620875

    I've tested Dieter's fix, and this is working correctly now (the problem
    related to Communigate and /sent-mail is fixed).

    Thanks!
    ==Leonard

     
  • Dieter Wimberger

    Logged In: YES
    user_id=36782

    The problem was related to the fact that the special folder could not be
    set correctly, as it was a post office server with a root folder without
    name (i.e. empty String).
    Added a statement that ensures a correct root prefix for servers with
    such an empty root folder name (Communigate Pro and MS Exchange).

    Fixed, committed and closed.

    Regards,
    Dieter

     
  • Dieter Wimberger

    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB