Hi Renu, Can you please show a paste.bin of your tasks.xml?
Cheers, Chris ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Chris Mattmann, Ph.D. Adjunct Associate Professor, Computer Science Department University of Southern California Los Angeles, CA 90089 USA Email: [email protected] WWW: http://sunset.usc.edu/~mattmann/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -----Original Message----- From: Renu Kanakamedala <[email protected]> Date: Wednesday, November 5, 2014 at 7:55 PM To: Chris Mattmann <[email protected]> Subject: CSCI 572 - Homework 2 - SEVERE: PGE Task FAILED! Failed to parse null Error. >Hello Professor, > > >When i am trying to run file concatenator CAS PGE example using the >following command. > > >./wmgr-client --url http://localhost:9001 --operation --sendEvent >--eventName fileconcatenator-pge --metaData --key RunID testNumber1 > > > >The message shown after executing this command is "Sending Event >SUCCESS". Below are the log messages in workflow mgr, res mgr and batch >stub. > > >Batch Stub: >Caused by: >org.apache.oodt.cas.workflow.structs.exceptions.WorkflowTaskInstanceExcept >ion: PGETask FAILED!!! : Failed to build PgeConfig : Failed to parse >value: null >at org.apache.oodt.cas.pge.PGETaskInstance.run(PGETaskInstance.java:150) >at org.apache.oodt.cas.workflow.structs.TaskJob.execute(TaskJob.java:102) >... 2 more >Caused by: java.io.IOException: Failed to build PgeConfig : Failed to >parse value: null >at >org.apache.oodt.cas.pge.config.XmlFilePgeConfigBuilder.build(XmlFilePgeCon >figBuilder.java:87) >at >org.apache.oodt.cas.pge.PGETaskInstance.createPgeConfig(PGETaskInstance.ja >va:230) >at org.apache.oodt.cas.pge.PGETaskInstance.run(PGETaskInstance.java:123) >... 3 more >Caused by: java.lang.Exception: Failed to parse value: null >at org.apache.oodt.cas.pge.util.XmlHelper.fillIn(XmlHelper.java:501) >at org.apache.oodt.cas.pge.util.XmlHelper.fillIn(XmlHelper.java:480) >at >org.apache.oodt.cas.pge.config.XmlFilePgeConfigBuilder.build(XmlFilePgeCon >figBuilder.java:77) >... 5 more >Caused by: java.lang.NullPointerException >at java.util.regex.Matcher.getTextLength(Matcher.java:1234) >at java.util.regex.Matcher.reset(Matcher.java:308) >at java.util.regex.Matcher.<init>(Matcher.java:228) >at java.util.regex.Pattern.matcher(Pattern.java:1088) >at >org.apache.oodt.cas.metadata.util.PathUtils.doDynamicDateToMillisReplaceme >nt(PathUtils.java:321) >at >org.apache.oodt.cas.metadata.util.PathUtils.doDynamicReplacement(PathUtils >.java:96) >at org.apache.oodt.cas.pge.util.XmlHelper.fillIn(XmlHelper.java:488) >... 7 more > > > > > >RES mngr: > > >Nov 05, 2014 5:26:28 PM org.apache.oodt.cas.resource.jobqueue.JobStack >addJob >INFO: Added Job: [2014-11-05T17:26:28.785-08:00] to queue >Nov 05, 2014 5:26:30 PM >org.apache.oodt.cas.resource.scheduler.LRUScheduler run >INFO: Obtained Job: [2014-11-05T17:26:28.785-08:00] from Queue: >Scheduling for execution >Nov 05, 2014 5:26:30 PM >org.apache.oodt.cas.resource.scheduler.LRUScheduler schedule >INFO: Assigning job: [urn:oodt:FileConcatenator] to node: [localhost] >Nov 05, 2014 5:26:30 PM sun.net.www.protocol.http.HttpURLConnection >plainConnect >FINEST: ProxySelector Request for >http://localhost:2001/ <http://localhost:2001/> >Nov 05, 2014 5:26:30 PM sun.net.www.protocol.http.HttpURLConnection >plainConnect >FINEST: Proxy used: DIRECT >Nov 05, 2014 5:26:30 PM sun.net.www.protocol.http.HttpURLConnection >writeRequests >FINE: sun.net.www.MessageHeader@61fc61a79 pairs: {POST / HTTP/1.1: >null}{Content-Type: text/xml}{Cache-Control: no-cache}{Pragma: >no-cache}{User-Agent: Java/1.7.0_65}{Host: localhost:2001}{Accept: >text/html, image/gif, image/jpeg, *; q=.2, */*; > q=.2}{Connection: keep-alive}{Content-Length: 105} >Nov 05, 2014 5:26:30 PM sun.net.www.protocol.http.HttpURLConnection >getInputStream >FINE: sun.net.www.MessageHeader@90ff2a15 pairs: {null: HTTP/1.1 200 >OK}{Server: Apache XML-RPC 1.0}{Connection: close}{Content-Type: >text/xml}{Content-Length: 121} >Nov 05, 2014 5:26:30 PM sun.net.www.protocol.http.HttpURLConnection >plainConnect >FINEST: ProxySelector Request for >http://localhost:2001/ <http://localhost:2001/> >Nov 05, 2014 5:26:30 PM sun.net.www.protocol.http.HttpURLConnection >plainConnect >FINEST: Proxy used: DIRECT >Nov 05, 2014 5:26:31 PM sun.net.www.protocol.http.HttpURLConnection >writeRequests >FINE: sun.net.www.MessageHeader@2f33cbcc9 pairs: {POST / HTTP/1.1: >null}{Content-Type: text/xml}{Cache-Control: no-cache}{Pragma: >no-cache}{User-Agent: Java/1.7.0_65}{Host: localhost:2001}{Accept: >text/html, image/gif, image/jpeg, *; q=.2, */*; > q=.2}{Connection: keep-alive}{Content-Length: 2536} >Nov 05, 2014 5:26:32 PM sun.net.www.protocol.http.HttpURLConnection >getInputStream >FINE: sun.net.www.MessageHeader@7188d6495 pairs: {null: HTTP/1.1 200 >OK}{Server: Apache XML-RPC 1.0}{Connection: close}{Content-Type: >text/xml}{Content-Length: 121} >Nov 05, 2014 5:26:32 PM >org.apache.oodt.cas.resource.batchmgr.XmlRpcBatchMgrProxy run >SEVERE: Job execution failed for jobId '2014-11-05T17:26:28.785-08:00' : >batchstub.executeJob returned false >java.lang.Exception: batchstub.executeJob returned false >at >org.apache.oodt.cas.resource.batchmgr.XmlRpcBatchMgrProxy.run(XmlRpcBatchM >grProxy.java:125) > > > > > >Workflow: > > >Nov 05, 2014 5:26:27 PM >org.apache.oodt.cas.workflow.engine.IterativeWorkflowProcessorThread >checkTaskRequiredMetadata >INFO: All required metadata fields present for task: [FileConcatenator] >Nov 05, 2014 5:26:28 PM >org.apache.oodt.cas.resource.system.XmlRpcResourceManagerClient submitJob >FINEST: [{job.queueName=high, >job.instanceClassName=org.apache.oodt.cas.workflow.structs.TaskJob, >job.name <http://job.name>=urn:oodt:FileConcatenator, >job.id <http://job.id>=, job.status=, job.load=2, >job.inputClassName=org.apache.oodt.cas.workflow.structs.TaskJobInput}, >{task.instance.class=org.apache.oodt.pge.examples.fileconcatenator.FileCon >catenatorPGETask, >task.config={PGETask_ConfigFilePath=null/file_concatenator/pge-configs/PGE >Config.xml, > >PCS_ClientTransferServiceFactory=org.apache.oodt.cas.filemgr.datatransfer. >LocalDataTransferFactory, >PCS_ActionRepoFile=file:/home/renu/oodt/crawler/policy/crawler-config.xml, > PCS_MetFileExtension=met, PGETask_DumpMetadata=true, >PCS_WorkflowManagerUrl=http://localhost:9001, > PCS_FileManagerUrl=http://localhost:9000, >PGETask_Name=FileConcatenator}, >task.metadata={TaskId=[urn:oodt:FileConcatenator], >WorkflowManagerUrl=[http://ubuntu:9001], >JobId=[ec8a60b4-6553-11e4-a26b-d92795c16b95], > ProcessingNode=[ubuntu], RunID=[testNumber1], >WorkflowInstId=[ec8a60b4-6553-11e4-a26b-d92795c16b95]}}] >Nov 05, 2014 5:26:39 PM >org.apache.oodt.cas.workflow.engine.IterativeWorkflowProcessorThread stop >WARNING: Attempt to kill current resmgr job: >[2014-11-05T17:26:28.785-08:00]: failed > > >When i searched online i found one of your mail archives where you had >mentioned to change tasks.xml >https://www.mail-archive.com/[email protected]/msg04403.html > > > >It did not work. Please let us know how to proceed. > > > >Regards, >Renu > > > > > > > >
