[ http://issues.apache.org/jira/browse/JAMES-697?page=comments#action_12451045 ] Norman Maurer commented on JAMES-697: -------------------------------------
The login not seems to be completed after this happen one time. With telnet: # telnet 192.168.0.252 10143 Trying 192.168.0.252... Connected to 192.168.0.252. Escape character is '^]'. * OK IMAP4rev1 Server 127.0.0.1 ready a login nm xxxx Error closing connection. Connection closed by foreign host. # Maybe the connection get not released after the error ? After restarting james i can login but it not work again: # telnet 192.168.0.252 10143 Trying 192.168.0.252... Connected to 192.168.0.252. Escape character is '^]'. * OK IMAP4rev1 Server 127.0.0.1 ready a login nm xxxx a OK LOGIN completed. a select "INBOX" * FLAGS (\Answered \Deleted \Draft \Flagged \Recent \Seen) * 1099 RECENT * OK [UIDVALIDITY 472129943] * 1099 EXISTS * OK [UNSEEN 5] Message 5 is the first unseen * OK [PERMANENTFLAGS (\Answered \Deleted \Draft \Flagged \Recent \Seen)] a OK [READ-WRITE] SELECT completed. a UID fetch 1:* (FLAGS) * 1 FETCH (FLAGS (\Recent \Seen) UID 1) * 2 FETCH (FLAGS (\Recent \Seen) UID 2) * 3 FETCH (FLAGS (\Recent \Seen) UID 3) * 4 FETCH (FLAGS (\Recent \Seen) UID 4) * 5 FETCH (FLAGS (\Recent) UID 5) * 6 FETCH (FLAGS (\Recent) UID 6) * 7 FETCH (FLAGS (\Recent) UID 7) * 8 FETCH (FLAGS (\Recent) UID 8) * 9 FETCH (FLAGS (\Recent) UID 9) * 10 FETCH (FLAGS (\Recent) UID 10) * 11 FETCH (FLAGS (\Recent \Seen) UID 11) Error closing connection. Connection closed by foreign host. # . It maybe create to much connections when try to fetch the mails. After that james gives an error and the connections not get released. So any new action will fail too.. Make this sense ? > 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]
