SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Mail.send Illegal Address

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Mail.send Illegal Address
Author Message
John Natale



Joined: 13 Sep 2000
Posts: 107

Post Mail.send Illegal Address Reply with quote
I have a JavaScript job in 24x7 Multiplatform Edition 4.1

Mail.send("***scheduler***@clarksna.com", "", "***john***@clarksna.com", "Test Subject", "Test Message");

What's really goofy is that this line returns the following error message:
An error occurred while executing automation script: Line 3: Illegal address

BUT

the job sends me an email telling me that the job had an error and that works fine.

John
Wed Aug 29, 2007 8:05 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Reply with quote
Sorry, I edited your post and replaced email addresses as a precaution. There lots of spammers browsing this forum every day, not to mention web robots.

Back to the topic. Did you enter the same email address (first one) in the Tools/Options? That email address seems to working fine.

If yes, please enable the tracing options in the Tools/Options men; Log tab. Rerun the job and review debug.log. It might shed some light on the problem and help you figure out the root cause.
Wed Aug 29, 2007 9:28 am View user's profile Send private message
John Natale



Joined: 13 Sep 2000
Posts: 107

Post Reply with quote
Yes, I have the same values in the scheduler itself and that works fine. I will enable tracing.
Wed Aug 29, 2007 3:43 pm View user's profile Send private message
John Natale



Joined: 13 Sep 2000
Posts: 107

Post Here is the Java Mailer Error Reply with quote
2007-08-29 15:44:15,484 [JavaScript] DEBUG com.softtreetech.jscheduler.business.if - Mailer
java.lang.NullPointerException
at com.softtreetech.jscheduler.business.preferences.AbstractPrefDatabase.open(Unknown Source)
at com.softtreetech.jscheduler.business.if.<init>(Unknown Source)
at com.softtreetech.jscheduler.business.runner.javascript.JavaScriptRunner$Mail.send(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:174)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:197)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:3026)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2164)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:304)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2769)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2145)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:149)
at org.mozilla.javascript.Context.evaluateReader(Context.java:1251)
at com.softtreetech.jscheduler.business.runner.javascript.JavaScriptRunner.runScript(Unknown Source)
at com.softtreetech.jscheduler.business.runner.javascript.JavaScriptThreadImpl.run(Unknown Source)
2007-08-29 15:44:15,562 [JavaScript] DEBUG com.softtreetech.jscheduler.business.if - sendEmailImpl
javax.mail.internet.AddressException: Illegal address in string ``''
at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:68)
at com.softtreetech.jscheduler.business.if.o00000(Unknown Source)
at com.softtreetech.jscheduler.business.if.o00000(Unknown Source)
at com.softtreetech.jscheduler.business.runner.javascript.JavaScriptRunner$Mail.send(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:174)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:197)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:3026)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2164)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:304)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2769)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2145)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:149)
at org.mozilla.javascript.Context.evaluateReader(Context.java:1251)
at com.softtreetech.jscheduler.business.runner.javascript.JavaScriptRunner.runScript(Unknown Source)
at com.softtreetech.jscheduler.business.runner.javascript.JavaScriptThreadImpl.run(Unknown Source)
2007-08-29 15:44:15,562 [JavaScript] DEBUG com.softtreetech.jscheduler.business.runner.javascript.JavaScriptThreadImpl - org.mozilla.javascript.WrappedException: Wrapped com.softtreetech.jscheduler.common.SchedException: Illegal address
Wed Aug 29, 2007 3:57 pm View user's profile Send private message
John Natale



Joined: 13 Sep 2000
Posts: 107

Post Here is where 24x7 send out the email in the trace file Reply with quote
2007-08-29 15:44:15,859 [Job #11 - Email Oracle Database Connect Errors] DEBUG com.softtreetech.jscheduler.business.if - sendEmailImpl(): Date: Wed, 29 Aug 2007 15:44:15 -0400 (EDT)
2007-08-29 15:44:15,859 [Job #11 - Email Oracle Database Connect Errors] DEBUG com.softtreetech.jscheduler.business.if - sendEmailImpl(): From: scheduler*@***.com
2007-08-29 15:44:15,859 [Job #11 - Email Oracle Database Connect Errors] DEBUG com.softtreetech.jscheduler.business.if - sendEmailImpl(): To: john*@*****.com
2007-08-29 15:44:15,859 [Job #11 - Email Oracle Database Connect Errors] DEBUG com.softtreetech.jscheduler.business.if - sendEmailImpl(): Subject: Message from 24x7 Scheduler
2007-08-29 15:44:15,859 [Job #11 - Email Oracle Database Connect Errors] DEBUG com.softtreetech.jscheduler.business.if - sendEmailImpl(): X-Mailer: 24x7 Scheduler
2007-08-29 15:44:15,890 [Job #11 - Email Oracle Database Connect Errors] DEBUG com.softtreetech.jscheduler.business.if - sendEmailImpl(): account & password information is specified
Wed Aug 29, 2007 3:58 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Reply with quote
There are couple things in the trace that don't look right.
Please try 3 things: 1. try specifying some password in the mailSend; 2. Try specifying a different email address and check if you get exactly the same error. 3. Try specifying null for the password. Please let us know if any of these make a difference.
Wed Aug 29, 2007 4:06 pm View user's profile Send private message
John Natale



Joined: 13 Sep 2000
Posts: 107

Post Reply with quote
I'm getting the same error when I try all three of those options.
Wed Sep 12, 2007 10:45 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Reply with quote
Is mailSend the only line in the script? Are there any special characters or other commands after that line?
Does Syntax Check report any problems in the script?
Wed Sep 12, 2007 10:59 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.