Letractively / noweco

Automatically exported from code.google.com/p/noweco
0 stars 0 forks source link

Stack trace : Invalid use of SingleClientConnManager #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
Exception in thread "pool-1-thread-3" java.lang.IllegalStateException: Invalid 
use of SingleClientConnManager: connection still allocated.
Make sure to release the connection before allocating another one.
    at org.apache.http.impl.conn.SingleClientConnManager.getConnection(SingleClientConnManager.java:216)
    at org.apache.http.impl.conn.SingleClientConnManager$1.getConnection(SingleClientConnManager.java:190)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:391)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:776)
    at com.googlecode.noweco.core.webmail.lotus.LotusWebmailConnection.loadPageContent(LotusWebmailConnection.java:243)
    at com.googlecode.noweco.core.webmail.lotus.LotusWebmailConnection.getMessages(LotusWebmailConnection.java:226)
    at com.googlecode.noweco.core.webmail.lotus.LotusPagesIterator.next(LotusPagesIterator.java:52)
    at com.googlecode.noweco.core.webmail.lotus.LotusPagesIterator.next(LotusPagesIterator.java:31)
    at com.googlecode.noweco.core.webmail.cache.CachedPageIterator.next(CachedPageIterator.java:73)
    at com.googlecode.noweco.core.webmail.cache.CachedPageIterator.next(CachedPageIterator.java:30)
    at com.googlecode.noweco.core.webmail.cache.CachedWebmail.connect(CachedWebmail.java:91)
    at com.googlecode.noweco.core.webmail.cache.CachedWebmail.connect(CachedWebmail.java:41)
    at com.googlecode.noweco.core.seam.WebmailPop3Manager.authent(WebmailPop3Manager.java:38)
    at com.googlecode.noweco.core.seam.DispatcherPop3Manager.authent(DispatcherPop3Manager.java:46)
    at com.googlecode.noweco.core.pop.Pop3Connection.run(Pop3Connection.java:130)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:680)

Please use labels and text to provide additional information.

Original issue reported on code.google.com by gael.lal...@gmail.com on 1 Jun 2011 at 2:22

GoogleCodeExporter commented 8 years ago
1) An java.lang.IllegalStateException should be logged instead of print on 
error console.
2) CachedWebmail should create a new connection when the current is used 
(instead of sharing it)

Original comment by gael.lal...@gmail.com on 1 Jun 2011 at 2:23

GoogleCodeExporter commented 8 years ago

Original comment by gael.lal...@gmail.com on 3 Jun 2011 at 10:33