2 Replies Latest reply on Sep 29, 2011 11:00 AM by igfcss.dsi

    ePO 4.6 Task Run Report Error

      Hi,

       

      I have 1 task that generates a report  and executes 2 steps: e-mail the PDF report and exports that PDF to a folder (for archiving). The first step always executes but the second always fails with an error.

       

      9/29/11 4:17:52 PM Started: Run Report
      9/29/11 4:17:53 PM Completed: Run Report
      9/29/11 4:17:53 PM Started: Email File - xxx@Ssomewhere,
      9/29/11 4:17:53 PM Completed: Email File - xxx@Ssomewhere, (Email was sent successfully to Email File.)
      9/29/11 4:17:53 PM Started: Export to File - ProdDeployment
      9/29/11 4:17:53 PM Failed: Export to File (ProdDeployment) was unsuccessful due to an unknown error. Source 'C:\PROGRA~1\McAfee\EPOLIC~1\Server\cache\report\32b113c2-9f33-4df9-9417-3d080a f920db' does not exist
      9/29/11 4:17:53 PM Run Report - Product Deployment & Versions (Export to File (ProdDeployment) was unsuccessful due to an unknown error. Source 'C:\PROGRA~1\McAfee\EPOLIC~1\Server\cache\report\32b113c2-9f33-4df9-9417-3d080a f920db' does not exist)

       

      I've checked the creation of the cache file on the folder and I can see it being created and deleted before the second subtask starts. Executing both steps on separate tasks works but I should be done only in one!!!

       

      The orion.log show a java error when the second subtask starts...

       

      2011-09-29 15:49:37,544 ERROR [mfs:pool-2-thread-3] scheduler.Engine  - Run Report - Product Deployment & Versions] failed with exception

      java.util.concurrent.ExecutionException: com.mcafee.orion.core.cmd.CommandException: Source 'C:\PROGRA~1\McAfee\EPOLIC~1\Server\cache\report\bbaf7e1c-4983-416c-b942-4df7f1 3ee706' does not exist

      at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)

      at java.util.concurrent.FutureTask.get(FutureTask.java:83)

      at com.mcafee.orion.scheduler.Engine.runTasks(Engine.java:348)

      at com.mcafee.orion.scheduler.engine.EngineTask.run(EngineTask.java:57)

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101 (ScheduledThreadPoolExecutor.java:98)

      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodi c(ScheduledThreadPoolExecutor.java:181)

      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedu ledThreadPoolExecutor.java:205)

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 886)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

      at java.lang.Thread.run(Thread.java:619)

      Caused by: com.mcafee.orion.core.cmd.CommandException: Source 'C:\PROGRA~1\McAfee\EPOLIC~1\Server\cache\report\bbaf7e1c-4983-416c-b942-4df7f1 3ee706' does not exist

      at com.mcafee.orion.core.cmd.CommandInvoker.invoke(CommandInvoker.java:1025)

      at com.mcafee.orion.core.cmd.CommandInvoker.invokeCommand(CommandInvoker.java:761)

      at com.mcafee.orion.core.cmd.CommandInvoker.invoke(CommandInvoker.java:750)

      at com.mcafee.orion.core.cmd.CommandInvoker.invoke(CommandInvoker.java:722)

      at com.mcafee.orion.scheduler.chainable.Chain.invokeChain(Chain.java:279)

      at com.mcafee.orion.scheduler.chainable.Chain.invokeChain(Chain.java:304)

      at com.mcafee.orion.scheduler.chainable.Chain.invokeChain(Chain.java:304)

      at com.mcafee.orion.scheduler.chainable.Chain.invokeChain(Chain.java:220)

      at com.mcafee.orion.scheduler.chainable.Chain.invoke(Chain.java:41)

      at com.mcafee.orion.core.cmd.CommandInvoker.invoke(CommandInvoker.java:988)

      at com.mcafee.orion.core.cmd.CommandInvoker$AsyncCommandRunner.call(CommandInvoker .java:899)

      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

      at java.util.concurrent.FutureTask.run(FutureTask.java:138)

      ... 3 more

      Caused by: java.io.FileNotFoundException: Source 'C:\PROGRA~1\McAfee\EPOLIC~1\Server\cache\report\bbaf7e1c-4983-416c-b942-4df7f1 3ee706' does not exist

      at org.apache.commons.io.FileUtils.moveFile(FileUtils.java:1805)

      at com.mcafee.orion.console.export.command.ExportToFileCommand.deliver(ExportToFil eCommand.java:88)

      at com.mcafee.orion.console.export.command.ExportCommandBase.invoke(ExportCommandB ase.java:61)

      at com.mcafee.orion.core.cmd.CommandInvoker.invoke(CommandInvoker.java:988)

      ... 15 more

       

      It looks like a BUG on the code. The first step deletes the cache file, when it shouldn't because it's necessary for the second step.

       

      Message was edited by: igfcss.dsi on 9/29/11 10:46:02 AM CDT