Note that there are some explanatory texts on larger screens.

plurals
  1. POnative move command - java function
    text
    copied!<p>Java function moveFile uses the native move command to move the output report file to ready directory. It was working well earlier but now it started throwing the below disk space exception now. But when i check the diskspace there is a lot of sace available in the directories and i did a clean up also. I tried to rerun it but still i am getting the below error. Not sure what is the issue.</p> <pre><code>java.io.IOException: Cannot run program "mv": error=12, Not enough space at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) at java.lang.Runtime.exec(Runtime.java:593) at java.lang.Runtime.exec(Runtime.java:431) at java.lang.Runtime.exec(Runtime.java:328) at powertel.usageExtract.ctfCompactExtract.moveFile(ctfCompactExtract.java:507) at powertel.usageExtract.ctfCompactExtract.run(ctfCompactExtract.java:1189) Caused by: java.io.IOException: error=12, Not enough space at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.&lt;init&gt;(UNIXProcess.java:53) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:452) </code></pre> <p>private int moveFile(int moveto) {</p> <p>String runCmd = ""; Process p = null; int extVal = 0;</p> <pre><code>if (moveto == 1) { runCmd = "mv "+ outfile + " " + localbaseDir+"/ctf/ready/"; } else { runCmd = "mv "+ outfile + " " + localbaseDir+"/ctf/error/"; } try { Runtime r = Runtime.getRuntime(); p = r.exec(runCmd); p.waitFor(); extVal = p.exitValue(); log.debug("Process exit value: " + extVal); } catch (IOException e) { extVal = 1; log.error("IO Exception - "+ e.getMessage()); e.printStackTrace(); } catch (InterruptedException e1) { extVal = 1; log.error("Interrupted Exception - "+e1.getMessage()); } return extVal; </code></pre> <p>}</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload