Skip to Content
avatar image
Former Member

Redwood file upload not working at first time. if i try multiple times, it start working

HI Former Member / Former Member / Former Member / Nanda Kumar

	BufferedReader br=null;
	try {
         br= new BufferedReader(new FileReader(JobFile));
	}catch(IOException e){
		jcsOut.println("\nErr= :" + e.getMessage());

I have referred your code, but instead of read a log file, im trying to upload a flat file.

At very first time when i'm trying to submit the above code, it throws an error message

/usr/sap/SJ1/J00/j2ee/cluster/server0/scheduler/120000-129999/127176/JOB_127176_FILE_0_JobParameterUpload.dat (No such file or directory)

But if i keep on submitting the same code for 2/3 times or clear browser cache and resubmit, it starts working, then i can read flat file and create jobs and do other stuffs.

But wt's the problem ? at very first time, file reading is not working.

Can you help me to resolve this ?

Yokesvaran Kumarasamy

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 02, 2018 at 05:11 AM

    Hi Yokesh,

    This happens when you have run SAP CPS or BPA on multiple app servers.

    When there are multiple server nodes, one will be chosen as a master (you can find the master under monitor tree).

    Now everytime you upload a file, it is uploaded to the master.

    Lets say you have two app servers, each running a java server node, app01 and app02. App01 is the master in this scenario.

    Now when you run the script, you should login to the master node(http://app01:5xx00/scheduler) so that the script has access to file, else you will get the file not found error.



    Add comment
    10|10000 characters needed characters exceeded