job.getLogger().logUWS(LogLevel.ERROR,job,"SET_JOB_INFO","Error when moving the XML JobInfo file closer to the job "+job.getJobId()+"! Current file location: "+file.getLocation(),ioe);
}
...
...
@@ -322,11 +322,13 @@ public class XMLJobInfo implements JobInfo {
}
@Override
publicvoiddestroy()throwsUWSException{
try{
file.deleteFile();
}catch(IOExceptionioe){
thrownewUWSException(UWSException.INTERNAL_SERVER_ERROR,ioe,"Error when deleting a JobInfo file!");
publicvoiddestroy()throwsUWSException{
if(file!=null){
try{
file.deleteFile();
}catch(IOExceptionioe){
thrownewUWSException(UWSException.INTERNAL_SERVER_ERROR,ioe,"Error when deleting a JobInfo file!");
}
}
}
...
...
@@ -349,7 +351,7 @@ public class XMLJobInfo implements JobInfo {
* @throws IOException If any error occurs while serializing this