 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
John Natale
Joined: 13 Sep 2000 Posts: 107
|
|
Mail.send Illegal Address |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7955
|
|
|
|
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 |
|
 |
John Natale
Joined: 13 Sep 2000 Posts: 107
|
|
|
|
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 |
|
 |
John Natale
Joined: 13 Sep 2000 Posts: 107
|
|
Here is the Java Mailer Error |
|
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 |
|
 |
John Natale
Joined: 13 Sep 2000 Posts: 107
|
|
Here is where 24x7 send out the email in the trace file |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7955
|
|
|
|
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 |
|
 |
John Natale
Joined: 13 Sep 2000 Posts: 107
|
|
|
|
I'm getting the same error when I try all three of those options.
|
|
Wed Sep 12, 2007 10:45 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7955
|
|
|
|
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 |
|
 |
|
|
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
|
|
|