ClassCastException when calling DavMail from Thunderbird/Lightning.

Help
DeegC
2014-05-08
2014-05-08
  • DeegC
    DeegC
    2014-05-08

    After rebooting my Ubuntu system, when Thunderbird/lightning starts up I get the ClassCastException error in the davmail.log shown below. The error occurs every time I attempt to sync my calendar.

    I'm running Ubuntu 14.04, Thunderbird 24.5.0, and DavMail 4.4.1-2225, all installed via apt-get. This was definitely working before I rebooted but I don't know what I could have done to break it. I'm sure I didn't explicitly change any Thunderbird or DavMail settings. The reboot was required by a normal update of Ubuntu. The log is in /tmp and unfortunately the old (working) log was deleted on the reboot.

    Thanks.

    2014-05-08 12:53:57,331 DEBUG [CaldavConnection-45937] davmail - executeFollowRedirects(https://pod51009.outlook.com/)
    2014-05-08 12:53:57,424 DEBUG [CaldavConnection-45937] davmail.exchange.ExchangeSession - Form based authentication detected
    2014-05-08 12:53:57,442 DEBUG [CaldavConnection-45937] davmail.exchange.ExchangeSession - Post logon redirect to: /owa/
    2014-05-08 12:53:57,442 DEBUG [CaldavConnection-45937] davmail - executeFollowRedirects(/owa/)
    2014-05-08 12:53:57,585 DEBUG [CaldavConnection-45937] davmail - executeFollowRedirects: https://login.live.com/login.srf?wa=wsignin1.0<... SOME DATA REDACTED...> redirectCount:1
    2014-05-08 12:53:57,793 ERROR [CaldavConnection-45937] davmail.exchange.ExchangeSession - Connect exception: java.lang.ClassCastException org.apache.commons.httpclient.methods.GetMethod cannot be cast to org.apache.commons.httpclient.methods.PostMethod
    2014-05-08 12:53:57,794 ERROR [CaldavConnection-45937] davmail - DavMail configuration exception:
    Connect exception: java.lang.ClassCastException org.apache.commons.httpclient.methods.GetMethod cannot be cast to org.apache.commons.httpclient.methods.PostMethod
    davmail.exception.DavMailException: DavMail configuration exception:
    Connect exception: java.lang.ClassCastException org.apache.commons.httpclient.methods.GetMethod cannot be cast to org.apache.commons.httpclient.methods.PostMethod
    at davmail.exchange.ExchangeSessionFactory.handleNetworkDown(ExchangeSessionFactory.java:265)
    at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:175)
    at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:94)
    at davmail.caldav.CaldavConnection.run(CaldavConnection.java:167)
    2014-05-08 12:53:58,796 DEBUG [CaldavConnection-45937] davmail - > HTTP/1.1 503 Service Unavailable
    2014-05-08 12:53:58,797 DEBUG [CaldavConnection-45937] davmail - > Server: DavMail Gateway 4.4.1-2225
    2014-05-08 12:53:58,798 DEBUG [CaldavConnection-45937] davmail - > DAV: 1, calendar-access, calendar-schedule, calendarserver-private-events, addressbook
    2014-05-08 12:53:58,799 DEBUG [CaldavConnection-45937] davmail - > Date: Thu, 08 May 2014 16:53:58 +0000
    2014-05-08 12:53:58,800 DEBUG [CaldavConnection-45937] davmail - > Expires: Thu, 08 May 2014 16:53:58 +0000
    2014-05-08 12:53:58,800 DEBUG [CaldavConnection-45937] davmail - > Cache-Control: private, max-age=0
    2014-05-08 12:53:58,800 DEBUG [CaldavConnection-45937] davmail - > Content-Type: text/plain;charset=UTF-8
    2014-05-08 12:53:58,801 DEBUG [CaldavConnection-45937] davmail - > Connection: close
    2014-05-08 12:53:58,801 DEBUG [CaldavConnection-45937] davmail - > Content-Length: 195
    2014-05-08 12:53:58,802 DEBUG [CaldavConnection-45937] davmail - >
    2014-05-08 12:53:58,802 DEBUG [CaldavConnection-45937] davmail.caldav.CaldavConnection - > DavMail configuration exception:
    Connect exception: java.lang.ClassCastException org.apache.commons.httpclient.methods.GetMethod cannot be cast to org.apache.commons.httpclient.methods.PostMethod

     
  • DeegC
    DeegC
    2014-05-08

    I should add that I'm running java version "1.7.0_55".

     
  • DeegC
    DeegC
    2014-05-08

    I guess you can ignore this error. It is now working and I didn't change anything.