Commit a66d3aa2 authored by cpatil's avatar cpatil

for null pointer error n rollback


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101614 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2edb7362
......@@ -58,7 +58,7 @@ public class MrpWizPrsSaveBean
return "";
}
private String executepreSaveForm(Document dom , String chgUser , String chgTerm , String sorderList)throws ITMException
private String executepreSaveForm(Document dom , String chgUser , String chgTerm , String sorderList)throws ITMException, SQLException
{
PreparedStatement pstmt = null, pstmt1 = null, pstmt2 = null;
String sql = "", itemCode = "", effDate = "", itemSer = "", sql1="", sql2="";
......@@ -1243,12 +1243,14 @@ public class MrpWizPrsSaveBean
}//try end
catch (SQLException sqx)
{
conn.rollback(); //added by cpatil on 11/05/16
System.out.println("The SQLException occurs in MrpWizPrsSaveBean :"+sqx);
sqx.printStackTrace();
throw new ITMException(sqx);
}
catch(Exception e)
{
conn.rollback(); //added by cpatil on 11/05/16
System.out.println("The SQLException occurs in MrpWizPrsSaveBean :"+e);
e.printStackTrace();
throw new ITMException(e);
......@@ -1277,6 +1279,7 @@ public class MrpWizPrsSaveBean
}
catch(Exception e)
{
conn.rollback(); //added by cpatil on 11/05/16
System.out.println("The SQLException occurs in MrpWizPrsSaveBean :"+e);
e.printStackTrace();
throw new ITMException(e);
......
......@@ -374,8 +374,8 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
isWizard=true;
}
//sorderList= genericUtility.getColumnValue("sale_order_list", dom);
itemCodeList = genericUtility.getColumnValue("item_code_list", dom); // added by cpatil
siteItemList = genericUtility.getColumnValue("site_item_list", dom); //added by chandrashekar
itemCodeList = checkNull(genericUtility.getColumnValue("item_code_list", dom)); // added by cpatil
siteItemList = checkNull(genericUtility.getColumnValue("site_item_list", dom)); //added by chandrashekar
if(isRequirement)
{
siteItemQtyList = genericUtility.getColumnValue("site_item_qtylist", dom);
......@@ -5015,7 +5015,7 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
{
//System.out.println("@@@@@@@@@4887::saleOrder["+saleOrder+"]rsItemCode["+rsItemCode+"]itemCodeList["+itemCodeList+"]");
//if(itemCodeList.length()>0 && !(itemCodeList.indexOf(saleOrder+rsItemCode) > -1 ))
if( itemCodeList.length()>0 && ( ! "null".equalsIgnoreCase(itemCodeList) ) && !(itemCodeList.indexOf(saleOrder+rsItemCode) > -1 ))
if(itemCodeList != null && itemCodeList.length()>0 && ( ! "null".equalsIgnoreCase(itemCodeList) ) && !(itemCodeList.indexOf(saleOrder+rsItemCode) > -1 )) // added null condition
{
//System.out.println("@@@@@@@@@ for continue........ ");
//if(!(itemCodeList.indexOf(rsItemCode) > -1 ))
......
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