[
http://issues.apache.org/jira/browse/JAMES-697?page=comments#action_12451053 ]
Joachim Draeger commented on JAMES-697:
---------------------------------------
Okay, now we know that the problem is related to properties of a particular
message. We also know that it is the next one (maybe uid 72 in this case)
I just remembered this from FetchCommand:
// TODO only fetch needed results
int resultToFetch = MessageResult.FLAGS | MessageResult.MIME_MESSAGE
| MessageResult.INTERNAL_DATE | MessageResult.MSN
| MessageResult.SIZE;
:-) So it fetches the complete MimeMessage every time, although only uid and
flags are requested.
So the problem could be related to big messages or parsing MimeMessage. It
could e.g. resist in TorqueMimeMessage.
What I don't understand is that you could probably open that mailbox before and
now there is a problem.
Can you open the mailbox in that you have moved the message?
Well, because there is unfortunately no error message we can't avoid debugging.
Are you using MySQL?
You could configure your options in
- TorqueMailboxManagerProvider.configureDefaults()
- change TestConstants.USER_NAME
And start ImapServerLauncher from eclipse in debugging mode.
> Exception when try login imapserver
> -----------------------------------
>
> Key: JAMES-697
> URL: http://issues.apache.org/jira/browse/JAMES-697
> Project: James
> Issue Type: Bug
> Components: IMAPServer
> Reporter: Norman Maurer
>
> 15/11/06 20:05:29 DEBUG imapserver: Created command class
> org.apache.james.imapserver.commands.LoginCommand
> 15/11/06 20:05:34 ERROR imapserver: Exception on connection from
> IP-213157026062.dialin.heagmedianet.de (213.157.26.62) : An exception occurre
> d getting a database connection.
> org.apache.avalon.framework.CascadingRuntimeException: An exception occurred
> getting a database connection.
> at
> org.apache.james.userrepository.AbstractJdbcUsersRepository.openConnection(AbstractJdbcUsersRepository.java:758)
> at
> org.apache.james.userrepository.AbstractJdbcUsersRepository.getUserByName(AbstractJdbcUsersRepository.java:662)
> at
> org.apache.james.userrepository.AbstractJdbcUsersRepository.test(AbstractJdbcUsersRepository.java:201)
> at
> org.apache.james.core.LocalUsersRepository.test(LocalUsersRepository.java:139)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:134)
> at $Proxy6.test(Unknown Source)
> at
> org.apache.james.imapserver.commands.LoginCommand.doProcess(LoginCommand.java:49)
> at
> org.apache.james.imapserver.commands.CommandTemplate.process(CommandTemplate.java:66)
> at
> org.apache.james.imapserver.ImapRequestHandler.doProcessRequest(ImapRequestHandler.java:128)
> at
> org.apache.james.imapserver.ImapRequestHandler.handleRequest(ImapRequestHandler.java:74)
> at
> org.apache.james.imapserver.ImapHandler.handleConnection(ImapHandler.java:244)
> at
> org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run(ServerConnection.java:468)
> at
> org.apache.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:55)
> at
> org.apache.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:116)
> Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot get a
> connection, pool exhausted
> at
> org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:103)
> at
> org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at
> org.apache.james.util.dbcp.JdbcDataSource.getConnection(JdbcDataSource.java:222)
> at
> org.apache.james.userrepository.AbstractJdbcUsersRepository.openConnection(AbstractJdbcUsersRepository.java:756)
> ... 17 more
> Caused by: java.util.NoSuchElementException: Timeout waiting for idle object
> at
> org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:756)
> at
> org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:95)
> ... 20 more
> 15/11/06 20:05:34 DEBUG imapserver: Calling disposeWatchdog() default Worker
> #6
> 15/11/06 20:05:34 DEBUG imapserver: Returning a
> org.apache.james.imapserver.ImapHandler to the pool
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]