[Anthill-pro] Error using Simple Workflow Email Template
(changelog)
Ryan Smith
rws at urbancode.com
Mon Oct 15 09:00:38 CDT 2007
Patrick, what is the event that you are notifying on? You are using this in a notification scheme, correct?
Ryan Smith
Curley, Patrick wrote:
> I am using your notification template (_Simple Workflow Email Template
> (changelog)_
> <http://mnsvlcvsp001:9090/tasks/admin/templates/TemplateTasks/viewTemplate?template_id=-2>)
> and I am getting the error message below. I’m using _anthillpro_
> <http://www.anthillpro.com/>(Version 3.2.1.b112). The subjectline of
> the email is:* Workflow: $project.Name - $workflow.Name
> ($workflow.BuildLife.LatestStampValue): $workflow.Status.Name**.*
>
> This is part of a generic job that successfully builds my code, the
> email notification just doesn’t work, any ideas?
>
>
> Pat Curley
>
>
>
> 2007-10-15 08:35:18,184 ERROR 297 4 0 - Error executing script:
> org.apache.bsf.BSFException: The application script threw an exception:
> java.lang.NullPointerException BSF info: noFile at line: 15
>
> com.urbancode.anthill3.runtime.scripting.ScriptException:
> org.apache.bsf.BSFException: The application script threw an exception:
> java.lang.NullPointerException BSF info: noFile at line: 15
>
> at
> com.urbancode.anthill3.runtime.scripting.ScriptEvaluator.doEvaluate(ScriptEvaluator.java:98)
>
> at
> com.urbancode.anthill3.runtime.scripting.ScriptEvaluator.evaluate(ScriptEvaluator.java:40)
>
> at
> com.urbancode.anthill3.services.template.TemplateApplication.writeTemplateApplication(TemplateApplication.java:179)
>
> at
> com.urbancode.anthill3.services.template.TemplateApplication.getString(TemplateApplication.java:133)
>
> at
> com.urbancode.anthill3.command.publishers.emailnotifier.EmailNotifierCommandBuilder.buildSendEmailCommand(EmailNotifierCommandBuilder.java:55)
>
> at
> com.urbancode.anthill3.step.publisher.email.EmailNotifierStep.perform(EmailNotifierStep.java:64)
>
> at
> com.urbancode.anthill3.services.jobs.StepExecutor.execute(StepExecutor.java:269)
>
> at
> com.urbancode.anthill3.services.jobs.StepExecutor.execute(StepExecutor.java:342)
>
> at
> com.urbancode.anthill3.services.jobs.SimpleAgentJobDelegate.perform(SimpleAgentJobDelegate.java:193)
>
> at com.urbancode.anthill3.services.jobs.Job.start(Job.java:116)
>
> at
> com.urbancode.anthill3.services.jobs.JobService$JobRunner.run(JobService.java:423)
>
> at
> com.urbancode.commons.util.ThreadPool$WorkerThread.run(ThreadPool.java:167)
>
> Caused by: org.apache.bsf.BSFException: The application script threw an
> exception: java.lang.NullPointerException BSF info: noFile at line: 15
>
> at bsh.util.BeanShellBSFEngine.eval(Unknown Source)
>
> at org.apache.bsf.BSFManager$5.run(Unknown Source)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at org.apache.bsf.BSFManager.eval(Unknown Source)
>
> at
> com.urbancode.anthill3.runtime.scripting.ScriptEvaluator.doEvaluate(ScriptEvaluator.java:95)
>
> ... 11 more
>
> 2007-10-15 08:35:18,186 ERROR 297 4 0 - RHS of #set statement is null.
> Context will not be modified. null [line 1, column 1]
>
> 2007-10-15 08:35:18,186 WARN 297 4 0 -
> org.apache.velocity.runtime.exception.ReferenceException: reference :
> template = null [line 3,column 11] : $project.Name is not a valid reference.
>
> 2007-10-15 08:35:18,186 WARN 297 4 0 -
> org.apache.velocity.runtime.exception.ReferenceException: reference :
> template = null [line 3,column 27] : $workflow.Name is not a valid
> reference.
>
> 2007-10-15 08:35:18,186 WARN 297 4 0 -
> org.apache.velocity.runtime.exception.ReferenceException: reference :
> template = null [line 4,column 2] : $workflow.BuildLife.LatestStampValue
> is not a valid reference.
>
> 2007-10-15 08:35:18,186 WARN 297 4 0 -
> org.apache.velocity.runtime.exception.ReferenceException: reference :
> template = null [line 8,column 3] : $workflow.Status.Name is not a valid
> reference.
>
> 2007-10-15 08:35:18,204 ERROR 297 4 0 - Error executing script:
> org.apache.bsf.BSFException: The application script threw an exception:
> java.lang.NullPointerException BSF info: noFile at line: 15
>
> com.urbancode.anthill3.runtime.scripting.ScriptException:
> org.apache.bsf.BSFException: The application script threw an exception:
> java.lang.NullPointerException BSF info: noFile at line: 15
>
> at
> com.urbancode.anthill3.runtime.scripting.ScriptEvaluator.doEvaluate(ScriptEvaluator.java:98)
>
> at
> com.urbancode.anthill3.runtime.scripting.ScriptEvaluator.evaluate(ScriptEvaluator.java:40)
>
> at
> com.urbancode.anthill3.services.template.TemplateApplication.writeTemplateApplication(TemplateApplication.java:179)
>
> at
> com.urbancode.anthill3.services.template.TemplateApplication.writeTo(TemplateApplication.java:203)
>
> at
> com.urbancode.anthill3.command.publishers.emailnotifier.SendEmailCommand.execute(SendEmailCommand.java:101)
>
> at
> com.urbancode.anthill3.step.publisher.email.EmailNotifierStep.perform(EmailNotifierStep.java:67)
>
> at
> com.urbancode.anthill3.services.jobs.StepExecutor.execute(StepExecutor.java:269)
>
> at
> com.urbancode.anthill3.services.jobs.StepExecutor.execute(StepExecutor.java:342)
>
> at
> com.urbancode.anthill3.services.jobs.SimpleAgentJobDelegate.perform(SimpleAgentJobDelegate.java:193)
>
> at com.urbancode.anthill3.services.jobs.Job.start(Job.java:116)
>
> at
> com.urbancode.anthill3.services.jobs.JobService$JobRunner.run(JobService.java:423)
>
> at
> com.urbancode.commons.util.ThreadPool$WorkerThread.run(ThreadPool.java:167)
>
> Caused by: org.apache.bsf.BSFException: The application script threw an
> exception: java.lang.NullPointerException BSF info: noFile at line: 15
>
> at bsh.util.BeanShellBSFEngine.eval(Unknown Source)
>
> at org.apache.bsf.BSFManager$5.run(Unknown Source)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at org.apache.bsf.BSFManager.eval(Unknown Source)
>
> at
> com.urbancode.anthill3.runtime.scripting.ScriptEvaluator.doEvaluate(ScriptEvaluator.java:95)
>
> ... 11 more
>
> 2007-10-15 08:35:18,211 WARN 297 4 0 -
> org.apache.velocity.runtime.exception.ReferenceException: reference :
> template = null [line 65,column 16] : $workflow.Name is not a valid
> reference.
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
--
===========================================================
Ryan Smith. 2044 Euclid Ave., Suite 600
Lead Developer Cleveland, Ohio 44115
Urbancode, Inc.
email: rws at urbancode.com
web: www.urbancode.com phone: 216-858-9000
web: www.anthillpro.com fax: 216-858-9602
===========================================================
More information about the Anthill-pro
mailing list