aspose file tools
The moose likes Other JSE/JEE APIs and the fly likes unknown host exception error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply locked New topic

unknown host exception error

gayathri murugesan
Ranch Hand

Joined: Dec 21, 2009
Posts: 32
we are retrieving mail from gmail server.we could connect to the gmail server without proxy. As there is a proxy setting in our college we couldn't connect to the gmailserver even after setting the system properties. we could connect to from our browser but we couldn't connect from our program.

i am getting the exception as
at com.sun.mail.imap.IMAPStore.protocolConnect(
at javax.mail.Service.connect(
at javax.mail.Service.connect(
at EmailClient.connect(
at EmailClient.main(
at Source)
at Source)
at Source)
at Source)
at Source

at com.sun.mail.util.SocketFetcher.createSocket(
at com.sun.mail.util.SocketFetcher.getSocket(
at com.sun.mail.iap.Protocol.<init>(
at com.sun.mail.imap.protocol.IMAPProtocol.<init>(

at com.sun.mail.imap.IMAPStore.protocolConnect(
... 4 more

please help!

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10732

Please do not post the same question multiple times.
Original here

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Don't get me started about those stupid light bulbs.
subject: unknown host exception error
It's not a secret anymore!