Commit 3ca293b3 authored by prane's avatar prane

closed rs and pstmt from the reference of E12ConnectionLog.jsp

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@197006 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5d10855c
...@@ -114,9 +114,9 @@ public class AdjIssueRcpConf extends ActionHandlerEJB implements AdjIssueRcpConf ...@@ -114,9 +114,9 @@ public class AdjIssueRcpConf extends ActionHandlerEJB implements AdjIssueRcpConf
//Commented by sarita on 19MARCH2018 [start] //Commented by sarita on 19MARCH2018 [start]
/*ConnDriver connDriver = null; /*ConnDriver connDriver = null;
connDriver = new ConnDriver(); connDriver = new ConnDriver();
//Changes and Commented By Bhushan on 09-06-2016 :START //Changes and Commented By Bhushan on 09-06-2016 :START
//conn = connDriver.getConnectDB("DriverITM"); //conn = connDriver.getConnectDB("DriverITM");
conn = getConnection(); conn = getConnection();
//Changes and Commented By Bhushan on 09-06-2016 :END //Changes and Commented By Bhushan on 09-06-2016 :END
conn.setAutoCommit(false);*/ conn.setAutoCommit(false);*/
//Commented by sarita on 19MARCH2018 [end] //Commented by sarita on 19MARCH2018 [end]
...@@ -662,6 +662,10 @@ public class AdjIssueRcpConf extends ActionHandlerEJB implements AdjIssueRcpConf ...@@ -662,6 +662,10 @@ public class AdjIssueRcpConf extends ActionHandlerEJB implements AdjIssueRcpConf
pstmt1 = null; pstmt1 = null;
if(itemCnt==0) if(itemCnt==0)
{ {
rs.close(); //Pavan [closed expected opening cursor and pstmt].
rs = null;
pstmt.close();
pstmt = null;
errCode = itmDBAccessLocal.getErrorString("", "VMITEM1", "","",conn); errCode = itmDBAccessLocal.getErrorString("", "VMITEM1", "","",conn);
return errCode; return errCode;
} }
...@@ -750,11 +754,19 @@ public class AdjIssueRcpConf extends ActionHandlerEJB implements AdjIssueRcpConf ...@@ -750,11 +754,19 @@ public class AdjIssueRcpConf extends ActionHandlerEJB implements AdjIssueRcpConf
errCode = stockUpdate.updateStock(stockUpd,xtraParams, conn); errCode = stockUpdate.updateStock(stockUpd,xtraParams, conn);
if(errCode !=null && errCode.trim().length() >0) if(errCode !=null && errCode.trim().length() >0)
{ {
rs.close(); //Pavan [closed expected opening cursor and pstmt].
rs = null;
pstmt.close();
pstmt = null;
return errCode; return errCode;
} }
errCode =invAdjPost(tranId, rate, refSer, lineNoPost,conn); errCode =invAdjPost(tranId, rate, refSer, lineNoPost,conn);
if(errCode !=null && errCode.trim().length() >0) if(errCode !=null && errCode.trim().length() >0)
{ {
rs.close(); //Pavan [closed expected opening cursor and pstmt].
rs = null;
pstmt.close();
pstmt = null;
return errCode; return errCode;
} }
} }
...@@ -945,6 +957,10 @@ public class AdjIssueRcpConf extends ActionHandlerEJB implements AdjIssueRcpConf ...@@ -945,6 +957,10 @@ public class AdjIssueRcpConf extends ActionHandlerEJB implements AdjIssueRcpConf
pstmt1 = null; pstmt1 = null;
if(refSer == null || refSer.trim().length() ==0 ) if(refSer == null || refSer.trim().length() ==0 )
{ {
rs.close(); //Pavan [closed expected opening cursor and pstmt].
rs = null;
pstmt.close();
pstmt = null;
errCode = itmDBAccessLocal.getErrorString("", "VTREFID", "","",conn); errCode = itmDBAccessLocal.getErrorString("", "VTREFID", "","",conn);
return errCode; return errCode;
} }
...@@ -964,11 +980,19 @@ public class AdjIssueRcpConf extends ActionHandlerEJB implements AdjIssueRcpConf ...@@ -964,11 +980,19 @@ public class AdjIssueRcpConf extends ActionHandlerEJB implements AdjIssueRcpConf
pstmt1 = null; pstmt1 = null;
if(siteeCnt ==0) if(siteeCnt ==0)
{ {
rs.close(); //Pavan [closed expected opening cursor and pstmt].
rs = null;
pstmt.close();
pstmt = null;
errCode = itmDBAccessLocal.getErrorString("", "VTSITECD1", "","",conn); errCode = itmDBAccessLocal.getErrorString("", "VTSITECD1", "","",conn);
return errCode; return errCode;
} }
if(finEntity == null || finEntity.trim().length() ==0 ) if(finEntity == null || finEntity.trim().length() ==0 )
{ {
rs.close(); //Pavan [closed expected opening cursor and pstmt].
rs = null;
pstmt.close();
pstmt = null;
errCode = itmDBAccessLocal.getErrorString("", "VMFINENT", "","",conn); errCode = itmDBAccessLocal.getErrorString("", "VMFINENT", "","",conn);
return errCode; return errCode;
} }
...@@ -987,11 +1011,19 @@ public class AdjIssueRcpConf extends ActionHandlerEJB implements AdjIssueRcpConf ...@@ -987,11 +1011,19 @@ public class AdjIssueRcpConf extends ActionHandlerEJB implements AdjIssueRcpConf
pstmt1 = null; pstmt1 = null;
if(curFinCnt==0) if(curFinCnt==0)
{ {
rs.close(); //Pavan [closed expected opening cursor and pstmt].
rs = null;
pstmt.close();
pstmt = null;
errCode = itmDBAccessLocal.getErrorString("", "VTFINENT1", "","",conn); errCode = itmDBAccessLocal.getErrorString("", "VTFINENT1", "","",conn);
return errCode; return errCode;
} }
if(currCode == null || currCode.trim().length() ==0 ) if(currCode == null || currCode.trim().length() ==0 )
{ {
rs.close(); //Pavan [closed expected opening cursor and pstmt].
rs = null;
pstmt.close();
pstmt = null;
errCode = itmDBAccessLocal.getErrorString("", "VTCURFIN", "","",conn); errCode = itmDBAccessLocal.getErrorString("", "VTCURFIN", "","",conn);
return errCode; return errCode;
} }
...@@ -1020,6 +1052,10 @@ public class AdjIssueRcpConf extends ActionHandlerEJB implements AdjIssueRcpConf ...@@ -1020,6 +1052,10 @@ public class AdjIssueRcpConf extends ActionHandlerEJB implements AdjIssueRcpConf
} }
if(costRate==0) if(costRate==0)
{ {
rs.close(); //Pavan [closed expected opening cursor and pstmt].
rs = null;
pstmt.close();
pstmt = null;
errCode = itmDBAccessLocal.getErrorString("", "VTITCOST", "","",conn); errCode = itmDBAccessLocal.getErrorString("", "VTITCOST", "","",conn);
return errCode; return errCode;
} }
...@@ -1028,6 +1064,10 @@ public class AdjIssueRcpConf extends ActionHandlerEJB implements AdjIssueRcpConf ...@@ -1028,6 +1064,10 @@ public class AdjIssueRcpConf extends ActionHandlerEJB implements AdjIssueRcpConf
if(rate == 0) if(rate == 0)
{ {
rs.close(); //Pavan [closed expected opening cursor and pstmt].
rs = null;
pstmt.close();
pstmt = null;
errCode = itmDBAccessLocal.getErrorString("", "VTSTKRATE", "","",conn); errCode = itmDBAccessLocal.getErrorString("", "VTSTKRATE", "","",conn);
return errCode; return errCode;
} }
...@@ -1140,6 +1180,10 @@ public class AdjIssueRcpConf extends ActionHandlerEJB implements AdjIssueRcpConf ...@@ -1140,6 +1180,10 @@ public class AdjIssueRcpConf extends ActionHandlerEJB implements AdjIssueRcpConf
if(errCode.trim().length()>0) if(errCode.trim().length()>0)
{ {
rs.close(); //Pavan [closed expected opening cursor and pstmt].
rs = null;
pstmt.close();
pstmt = null;
return errCode; return errCode;
} }
......
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