You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Stefano Bagnara <ap...@bago.org> on 2006/02/09 16:50:02 UTC

Re: Problem downloading 5000 mails

David Araujo wrote:
> Hi,
> 
> this time i'm getting another error when trying to pop 5000 from james:
> 
> 09/02/06 15:23:09 ERROR pop3server: Exception during connection from 
> .................... : Error accessing database
> Caused by: java.sql.SQLException: Column Index out of range ( 2 > 1).
>        at com.mysql.jdbc.ResultSet.getString(ResultSet.java:1787)
>        at 
> org.apache.james.userrepository.JamesUsersJdbcRepository.readUserFromResultSet(JamesUsersJdbcRepository.java:46) 
> 
>        at 
> org.apache.james.userrepository.AbstractJdbcUsersRepository.getUserByName(AbstractJdbcUsersRepository.java:521)        
> ... 7 more
> 
> My mail client only download 10 messages when james starts with this error.


I'm not sure but maybe there are synchronization issues with the 
JamesUserJdbcRepository. I don't know the userrepository code, but I see 
no "synchronize" around in the source code, so maybe the problem is in 
sharing a connection with no synchronization.

The problem could be there or in the db connection provider: are you 
still using mordred?
Can you confirm the 2 errors using the default dbcp pool provider?

If so, can you file an issue in our issue tracker?

Stefano

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org