Hi all,

I am hoping someone can tell me why this happens!  When I installed
Tomcat, my mail example did not work.  I got the following error:

java.lang.NullPointerException
        at java.net.InetAddress.cacheAddress(InetAddress.java:648)
        at java.net.InetAddress.cacheAddress(InetAddress.java:633)
        at
java.net.InetAddress.getAddressFromNameService(InetAddress.java:1016)
        at java.net.InetAddress.getLocalHost(InetAddress.java:1125)
        at
javax.mail.internet.InternetAddress.getLocalAddress(InternetAddress.java:474)


When I run the EXACT same code from my client IDE as a test it works fine!
 To make it work from the web though, I had to add 127.0.0.1 <machineName>
to my hosts file.  My question is, WHY?  Why does it work different from
within Tomcat than straight from my test app?  IS it looking up via
machine name instead of localhost?  What exactly is happening here?  I am
running on Redhat 8.0 and using JSDK 1.4.1.

Thanks for any help on this strange phenomenon!

Kevin



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to