aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes illlegal address exception. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "illlegal address exception." Watch "illlegal address exception." New topic
Author

illlegal address exception.

Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

Hi friends,,

I am facing a problem in sending a javamail..

while creating a session it says "illegal address".So the session is not getting created because of this.

The code which i am using is.......




the code is not executing beyond the line of..
before creating session.

and is throughing the exception as "illegal address".

Can anybody please guide me how to correct this.


Thanks
Shanky

SCJP6.0,My blog Ranchers from Delhi
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

What address are you trying that with?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

the address which i am trying with that is

SMTP_AUTH_USER = "shanky@mydomain.com";

by puttin it into the properties file
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Sorry, not that address the from address.
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

Paul Sturrock wrote:Sorry, not that address the from address.


From address is the address which the person filling the feedback form will enter..
Is the illegal address error is coming from there...
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Perhaps. The simplest way to find out is to add logging of all the addresses you intend to use (though from memory this should be included in the stack trace... might be wrong about that though).
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

please ignore
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: illlegal address exception.