Commit fb561fad authored by msharma's avatar msharma

Handled execption if occured in gltrace insertion


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101094 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 996b22b2
...@@ -8491,7 +8491,7 @@ public class FinCommon ...@@ -8491,7 +8491,7 @@ public class FinCommon
System.out.println("EXCH_RATE :"+exchRate); System.out.println("EXCH_RATE :"+exchRate);
pstmt.executeUpdate(); pstmt.executeUpdate();
pstmt.close(); pstmt.close();
System.out.println("errString :::: "+errString); System.out.println("errString :::: ["+errString+"]["+isPreview+"]");
if(errString == null || errString.trim().length() == 0 ){ if(errString == null || errString.trim().length() == 0 ){
if(conn !=null && isPreview == true){ if(conn !=null && isPreview == true){
conn.commit(); conn.commit();
...@@ -8499,15 +8499,17 @@ public class FinCommon ...@@ -8499,15 +8499,17 @@ public class FinCommon
} }
System.out.println("connection close and commit"); System.out.println("connection close and commit");
} }
if(errString != null && errString.trim().length() == 0 && isPreview == false ){ //Commented by Manoj dtd 04/04/2016 to be tested , then will be enabled
/* if(errString != null && errString.trim().length() == 0 && isPreview == false ){
System.out.println("Calling glTraceUpdatebudget...."); System.out.println("Calling glTraceUpdatebudget....");
errString = glTraceUpdatebudget(tranId,refId,refSer,conn); errString = glTraceUpdatebudget(tranId,refId,refSer,conn);
} }*/
}catch(Exception e){ }catch(Exception e){
System.out.println("Exception in GlTraceUpdate "+e); System.out.println("Exception in GlTraceUpdate "+e);
errString="ERROR";
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); throw new ITMException(e);
}finally{ }finally{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment