Skip to Content
0
Oct 20, 2009 at 09:26 AM

commons email validate-problem

25 Views

hi,

i'm getting a strange error while executing a webservice-method using the webservice-navigator.

javax.mail.internet.InternetAddress.validate()V

gets thrown... but i dont know why.

here's my code-snippet:

		try {
			SimpleEmail email = new SimpleEmail();
			email.setHostName("some.mail.host");
			email.addTo("<emailaddress>");
			email.setFrom("<emailaddress>");
			email.setSubject("Test message");
			email.setMsg("This is a simple test of commons-email");
			email.send();
		} catch (Exception e) {
			LOG.debugT(e.getMessage());
		}

these are just emails for this forum, i use real emails while testing. but i dont know why the webservice-manager catches the exception and not my try&catch block... and i dont even know why an exception gets even thrown.

i used the newest activation.jar and mail.jar from sun and the newest commons-email as a used dc in my project.

if i try that locally withing my java eclipse, everything works fine, but not on the netweaver...

any suggestions?

Edited by: Constantin Wildförster on Oct 20, 2009 11:26 AM

Edited by: Constantin Wildförster on Oct 20, 2009 11:26 AM