[Anthill-pro] Scheduled Trigger throwing exception
Kochhar, Saloni
Saloni.Kochhar at newsint.co.uk
Fri Oct 2 03:45:00 CDT 2009
Hi
I created nightly schedule to run a deploy workflow on the last
successful build.
The Buildlife script is:
import com.urbancode.anthill3.domain.buildlife.*;
return
BuildLifeLookup.mostRecentSuccessForProjectAndWorkflowName(project,"L2 -
Build with Trunk workflow");
This workflow runs fine when I run it manually.
However, at scheduled time it doesn't run the deploy workflow. I've
checked the logs, it gives the following error:
2009-09-30 17:02:00,977 ERROR 12 org.apache.bsf.BSFManager - Exception:
java.security.PrivilegedActionException: org.apache.bsf.BSFException:
The application script threw an exception:
java.lang.NullPointerException BSF info: noFile at line: 0 column:
columnNo
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.bsf.BSFManager.eval(BSFManager.java:442)
at
com.urbancode.anthill3.runtime.scripting.ScriptEvaluator.doEvaluate(Scri
ptEvaluator.java:248)
at
com.urbancode.anthill3.runtime.scripting.ScriptEvaluator.evaluate(Script
Evaluator.java:78)
at
com.urbancode.anthill3.runtime.scripting.ScriptEvaluator.evaluate(Script
Evaluator.java:69)
at
com.urbancode.anthill3.domain.trigger.scheduled.workflow.ScheduledRunWor
kflowTrigger.trigger(ScheduledRunWorkflowTrigger.java:65)
at
com.urbancode.anthill3.domain.trigger.scheduled.ScheduledTrigger.run(Sch
eduledTrigger.java:148)
at
com.urbancode.anthill3.services.scheduler.SchedulableThread.run(Schedula
bleThread.java:79)
Caused by: org.apache.bsf.BSFException: The application script threw an
exception: java.lang.NullPointerException BSF info: noFile at line: 0
column: columnNo
at
com.urbancode.bsh.BeanShellBSFEngine.eval(BeanShellBSFEngine.java:209)
at org.apache.bsf.BSFManager$5.run(BSFManager.java:445)
... 8 more
2009-09-30 17:02:00,977 ERROR 12
com.urbancode.anthill3.domain.trigger.scheduled.workflow.ScheduledRunWor
kflowTrigger - com.urbancode.anthill3.runtime.scripting.ScriptException:
org.apache.bsf.BSFException: The application script threw an exception:
java.lang.NullPointerException BSF info: noFile at line: 0 column:
columnNo
2009-09-30 17:02:01,203 INFO JobThread-17
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:01,252 INFO JobThread-16
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:01,321 INFO JobThread-14
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:01,350 INFO JobThread-20
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:01,380 INFO JobThread-23
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:01,397 INFO JobThread-22
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:01,417 INFO JobThread-21
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:01,484 INFO JobThread-19
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:01,522 INFO JobThread-24
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:01,523 INFO JobThread-18
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:01,571 INFO JobThread-17
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:01,654 INFO JobThread-14
com.urbancode.anthill3.step.cleanup.CleanupMiscJobsStep - Skipping Misc
Job Cleanup: never cleanup
2009-09-30 17:02:01,654 INFO JobThread-16
com.urbancode.anthill3.step.cleanup.CleanupMiscJobsStep - Skipping Misc
Job Cleanup: never cleanup
2009-09-30 17:02:01,654 INFO JobThread-23
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:01,779 INFO JobThread-20
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:01,789 INFO JobThread-22
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:01,880 INFO JobThread-16
com.urbancode.anthill3.step.cleanup.CleanupRequestsStep - Skipping Build
Request Cleanup: never cleanup
2009-09-30 17:02:01,881 INFO JobThread-21
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:01,917 INFO JobThread-24
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:01,961 INFO JobThread-23
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:01,989 INFO JobThread-17
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:01,989 INFO JobThread-19
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:02,045 INFO JobThread-14
com.urbancode.anthill3.step.cleanup.CleanupRequestsStep - Skipping Build
Request Cleanup: never cleanup
2009-09-30 17:02:02,045 INFO JobThread-22
com.urbancode.anthill3.step.cleanup.CleanupMiscJobsStep - Skipping Misc
Job Cleanup: never cleanup
2009-09-30 17:02:02,149 INFO JobThread-20
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:02,149 INFO JobThread-21
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:02,158 INFO JobThread-18
com.urbancode.anthill3.step.cleanup.CleanupMiscJobsStep - Skipping Misc
Job Cleanup: never cleanup
2009-09-30 17:02:02,242 INFO JobThread-24
com.urbancode.anthill3.step.cleanup.CleanupMiscJobsStep - Skipping Misc
Job Cleanup: never cleanup
2009-09-30 17:02:02,294 INFO JobThread-23
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:02,294 INFO JobThread-19
com.urbancode.anthill3.step.cleanup.CleanupMiscJobsStep - Skipping Misc
Job Cleanup: never cleanup
2009-09-30 17:02:02,331 INFO JobThread-22
com.urbancode.anthill3.step.cleanup.CleanupRequestsStep - Skipping Build
Request Cleanup: never cleanup
2009-09-30 17:02:02,412 INFO JobThread-21
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:02,412 INFO JobThread-17
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:02,412 INFO JobThread-24
com.urbancode.anthill3.step.cleanup.CleanupRequestsStep - Skipping Build
Request Cleanup: never cleanup
2009-09-30 17:02:02,496 INFO JobThread-19
com.urbancode.anthill3.step.cleanup.CleanupRequestsStep - Skipping Build
Request Cleanup: never cleanup
2009-09-30 17:02:02,597 INFO JobThread-20
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:02,683 INFO JobThread-18
com.urbancode.anthill3.step.cleanup.CleanupRequestsStep - Skipping Build
Request Cleanup: never cleanup
2009-09-30 17:02:02,683 INFO JobThread-23
com.urbancode.anthill3.step.cleanup.CleanupMiscJobsStep - Skipping Misc
Job Cleanup: never cleanup
2009-09-30 17:02:02,739 INFO JobThread-21
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:02,814 INFO JobThread-17
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:02,814 INFO JobThread-20
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:02,856 INFO JobThread-23
com.urbancode.anthill3.step.cleanup.CleanupRequestsStep - Skipping Build
Request Cleanup: never cleanup
2009-09-30 17:02:02,914 INFO JobThread-21
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:02,981 INFO JobThread-20
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:02,981 INFO JobThread-17
com.urbancode.anthill3.step.cleanup.CleanupBuildLifesStep - Skipping
Buildlife cleanup: never cleanup
2009-09-30 17:02:03,059 INFO JobThread-21
com.urbancode.anthill3.step.cleanup.CleanupMiscJobsStep - Skipping Misc
Job Cleanup: never cleanup
2009-09-30 17:02:03,120 INFO JobThread-17
com.urbancode.anthill3.step.cleanup.CleanupMiscJobsStep - Skipping Misc
Job Cleanup: never cleanup
2009-09-30 17:02:03,120 INFO JobThread-20
com.urbancode.anthill3.step.cleanup.CleanupMiscJobsStep - Skipping Misc
Job Cleanup: never cleanup
2009-09-30 17:02:03,173 INFO JobThread-21
com.urbancode.anthill3.step.cleanup.CleanupRequestsStep - Skipping Build
Request Cleanup: never cleanup
2009-09-30 17:02:03,220 INFO JobThread-20
com.urbancode.anthill3.step.cleanup.CleanupRequestsStep - Skipping Build
Request Cleanup: never cleanup
2009-09-30 17:02:03,220 INFO JobThread-17
com.urbancode.anthill3.step.cleanup.CleanupRequestsStep - Skipping Build
Request Cleanup: never cleanup
2009-09-30 17:02:38,400 INFO JobThread-2
com.urbancode.anthill3.step.status.AssignStatusStep - Successfully
assigned status success to buildlife
Any idea why?
I've also tried the following script but it gives the same error (as
above):
import com.urbancode.anthill3.domain.project.*;
import com.urbancode.anthill3.domain.agent.Agent;
import com.urbancode.anthill3.runtime.scripting.helpers.*;
Project project=ProjectLookup.getCurrent();
return
BuildLifeLookup.mostRecentSuccessForProjectAndWorkflowName(project,"L2 -
Build with Trunk workflow");
Thanks
Saloni A. Kochhar
Build and Configuration Manager, Solutions Engineering - Technology
News International Limited
1 Virginia Street
London E98 1TH
Desk: +44 (0)20 7782 1426
Mob: +44 (0)7901 009 071
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20091002/74940c87/attachment.htm
More information about the Anthill-pro
mailing list