github201407 / contactlistimporter

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

Star whit warn for the test code... #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
ContactList importer=ContactListFactory.guess
("zhanyanyanzyy@hotmail.com", "***");

          List<Contact> contacts=importer.getContactList();
          System.out.println("list size is:"+contacts.size());
          for(Contact c : contacts) {
            System.out.println("name: "+c.getName()+", 
email: "+c.getEmailAddress());
          }

This email account had a lot of number good friends email,bu i get 0 
number good friend,why!
So i run by java application for output down is:

2009-1-5 21:58:38 com.mail.tool.impl.ContactListImpl getContactList
信息: Performing login
2009-1-5 21:58:38 com.mail.tool.hotmail.Hotmail login
信息: Requesting login page
2009-1-5 21:58:40 com.mail.tool.hotmail.Hotmail login
信息: Performing login
2009-1-5 21:58:49 com.mail.tool.impl.ContactListImpl getContactList
信息: Login succeeded
2009-1-5 21:58:49 com.mail.tool.impl.ContactListImpl getAndParseContacts
信息: Retrieving contactlist
[WARN] SingleClientConnManager - Invalid use of SingleClientConnManager: 
connection still allocated.
Make sure to release the connection before allocating another one. 
<java.lang.IllegalStateException: Revoking connection to HttpRoute[{}-
>http://by142w.bay142.mail.live.com]>java.lang.IllegalStateException: 
Revoking connection to HttpRoute[{}->http://by142w.bay142.mail.live.com]
    at 
org.apache.http.impl.conn.SingleClientConnManager.revokeConnection
(SingleClientConnManager.java:345)
    at org.apache.http.impl.conn.SingleClientConnManager.getConnection
(SingleClientConnManager.java:220)
    at org.apache.http.impl.conn.SingleClientConnManager.getConnection
(SingleClientConnManager.java:195)
    at 
org.apache.http.impl.client.DefaultClientRequestDirector.allocateConnection
(DefaultClientRequestDirector.java:508)
    at org.apache.http.impl.client.DefaultClientRequestDirector.execute
(DefaultClientRequestDirector.java:293)
    at org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:500)
    at org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:455)
    at com.mail.tool.impl.ContactListImpl.doGet
(ContactListImpl.java:176)
    at com.mail.tool.impl.ContactListImpl.getContactListContent
(ContactListImpl.java:110)
    at com.mail.tool.impl.ContactListImpl.getAndParseContacts
(ContactListImpl.java:98)
    at com.mail.tool.impl.ContactListImpl.getContactList
(ContactListImpl.java:84)
    at com.Test.main(Test.java:21)

2009-1-5 21:58:50 com.mail.tool.impl.ContactListImpl getAndParseContacts
信息: Parsing contactlist
list size is:0

Original issue reported on code.google.com by axiang2...@gmail.com on 5 Jan 2009 at 2:02

GoogleCodeExporter commented 8 years ago
which version of the code are you using ? 

look in HotmailImporter.java and see if replacing :

     String redirectLocation=getJSRedirectLocation(content);
     this.doGet(client, redirectLocation, formUrl);

by :
     String redirectLocation=getJSRedirectLocation(content);
     this.doGet(client, redirectLocation, formUrl).close();

fixes the problem

Original comment by miniu...@free.fr on 7 Jan 2009 at 6:14

GoogleCodeExporter commented 8 years ago
Thanks thomas, should be fixed in 1.3 Closing this issue

Original comment by tje...@gmail.com on 7 Jan 2009 at 10:06