An OutOfMemoryException or StackOverflowException is thrown
during the login procedure on certain configurations (problem
reported so far for Jetty 4.x and Debian with a 1.3.1 JVM).
I have isolated the problem down to the jpim implementation, and
decided to remove dependencies on jpim completely until it is ready for
use.
The problem was caused by a weird recursion-till-die situation. The new
version should not be subject to this problem any longer. It has been
verified for the reported cases (Jetty 4.x, and Debian with 1.3.1 JVM).
The fix will be available as HEAD from CVS after I checked in my
working copy.
--
Dieter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It's not consistent, in that I can login with a different
mail-only account but not my regular user account. SuSE
appears to use $HOME as the default root directory, and it
appears that recursing through alll the folders of a regular
user account is too much to handle.
If you need any more info, let me know.
Richard.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Regarding the $HOME, well this behavior is from the UW imap (not SUSE) implementation, and could only be configured at compile time as far as I know. You have to set a rootfolder (mail is standard I think), which will indeed be inside of the $HOME.
I hope this fixes the problem for you. There is not much we can do, except probably detect when this happens. Anything else must be done twiggling with the IMAP server.
Regards,
Dieter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Re the rootfolder being $HOME, that sounds right. But as I
see it, it is a bug if jwma cannot handle this, while other
clients (mozilla, evolution, squirrelmail) can - I don't
think I should have to change the distro imapd defaults to
make jwma work properly.
Is there any reason not to use .mailboxlist to read/set the
list of mail folders? Or can you suggest the class/methods
for me to "fix" - I'm guessing it's the folder list caching
getting too big? (it appears to list all folders/files under
rootfolder/$HOME, not just mail, so maybe cache mailboxes only)
Richard.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well at the current stage it will be necessary to use a subfolder of your $HOME folder to store mail. You can configure jwma to access this subfolder as root mail folder, and this will indeed work (you do not need to reconfigure or change your IMAPD for this).
What you are referring to as .mailboxlist, is a consequence of the IMAP subscribe/unsubscribe mechanism and there is no implementation in jwma that uses this mechanism so far.
There are two options now; none of them being a "fix" (as it is not a bug, but a missing feature):
1) Implement full support for this mechanism.
2) List only subscribed folders
The latter option will be much more easy to implement, however, if you want to use jwma only, you will basically see nothing on login and be unable to subscribe to any folder.
Also be aware that per default UW imapd gives you access to EVERYTHING in the path the user has reading rights for (i.e. when you put / as folder, you'll see your root, also it is indeed possible to read your password file like this for example ;)
See for reference: http://www.geocrawler.com/archives/3/7823/2001/2/0/5143401/
Regards,
Dieter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
FYI:
The Feature Request for the subscription mechanism has been closed, as a preliminary version has been committed to the repository.
jwma (HEAD on CVS) can now observe subscriptions and allows the user to change them.
Dieter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=36782
I have isolated the problem down to the jpim implementation, and
decided to remove dependencies on jpim completely until it is ready for
use.
The problem was caused by a weird recursion-till-die situation. The new
version should not be subject to this problem any longer. It has been
verified for the reported cases (Jetty 4.x, and Debian with 1.3.1 JVM).
The fix will be available as HEAD from CVS after I checked in my
working copy.
--
Dieter
Logged In: YES
user_id=526886
I've still got an OutOfMemory on login error resulting in a
500/server error. Suse Linux 8.0, running JBoss 3.0.6 with
Jetty, and Sun JVM 1.4.1.
Jetty/4.2.6 (Linux 2.4.20 i386)(Servlet 2.3; JSP 1.2; java
1.4.1_01)
It's not consistent, in that I can login with a different
mail-only account but not my regular user account. SuSE
appears to use $HOME as the default root directory, and it
appears that recursing through alll the folders of a regular
user account is too much to handle.
If you need any more info, let me know.
Richard.
Logged In: YES
user_id=36782
Richard,
Are you using the 0.9.7 release?
Regarding the $HOME, well this behavior is from the UW imap (not SUSE) implementation, and could only be configured at compile time as far as I know. You have to set a rootfolder (mail is standard I think), which will indeed be inside of the $HOME.
I hope this fixes the problem for you. There is not much we can do, except probably detect when this happens. Anything else must be done twiggling with the IMAP server.
Regards,
Dieter
Logged In: YES
user_id=526886
Dieter,
I've tried both 0.9.7 and CVS.
Re the rootfolder being $HOME, that sounds right. But as I
see it, it is a bug if jwma cannot handle this, while other
clients (mozilla, evolution, squirrelmail) can - I don't
think I should have to change the distro imapd defaults to
make jwma work properly.
Is there any reason not to use .mailboxlist to read/set the
list of mail folders? Or can you suggest the class/methods
for me to "fix" - I'm guessing it's the folder list caching
getting too big? (it appears to list all folders/files under
rootfolder/$HOME, not just mail, so maybe cache mailboxes only)
Richard.
Logged In: YES
user_id=36782
Richard,
Well at the current stage it will be necessary to use a subfolder of your $HOME folder to store mail. You can configure jwma to access this subfolder as root mail folder, and this will indeed work (you do not need to reconfigure or change your IMAPD for this).
What you are referring to as .mailboxlist, is a consequence of the IMAP subscribe/unsubscribe mechanism and there is no implementation in jwma that uses this mechanism so far.
There are two options now; none of them being a "fix" (as it is not a bug, but a missing feature):
1) Implement full support for this mechanism.
2) List only subscribed folders
The latter option will be much more easy to implement, however, if you want to use jwma only, you will basically see nothing on login and be unable to subscribe to any folder.
You are welcome to join the development; you will find that we have recently adopted Jakarta guidelines (see http://jwma.sourceforge.net/development\).
Also be aware that per default UW imapd gives you access to EVERYTHING in the path the user has reading rights for (i.e. when you put / as folder, you'll see your root, also it is indeed possible to read your password file like this for example ;)
See for reference:
http://www.geocrawler.com/archives/3/7823/2001/2/0/5143401/
Regards,
Dieter
Logged In: YES
user_id=36782
Richard,
FYI:
The Feature Request for the subscription mechanism has been closed, as a preliminary version has been committed to the repository.
jwma (HEAD on CVS) can now observe subscriptions and allows the user to change them.
Dieter