• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Javamail IMAP connection to exchange just hangs

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i'm trying to connect to an Exchange server in my company's HQ. The server has a web interface and this is the one I'm using to also connect (successfully) through android exchange clients - say it's https://xxx.yyy.com.
So I was trying to use the JavaMail API to connect to the exchange server using the IMAP store. When I run the code, on connection attempt, the code just hangs there. It looks frozen. Does nothing.
I also tried sniffing it out with Wireshark and it looks it goes through the handshaking process just fine. And then... nothing.
Please help. here's the code:

The debugger prints: "DEBUG: trying to connect to host "xxx.yyy.com", port 443, isSSL true" and then... just sits there... doing nothing... waiting... i don't know.

The user name is as proposed by the documentations: "DOMAIN\\DomainUser\\Mail.User(Without domain.com extension)"
Thanks guys. Looking forward to your help.

Moshe
 
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Moshe

Does the code terminate or sit idle? Also, I wouldn't leave the catch block empty.
 
I’m tired of walking, and will rest for a minute and grow some wheels. This is the promise of this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic