Commit b33a922d authored by kshinde's avatar kshinde

Process GenericUtility class variable initialized and object set null in finally

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@188169 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0c58b4bb
......@@ -95,7 +95,7 @@ public class CreateBatchPrc extends ProcessEJB implements CreateBatchPrcLocal ,
Document headerDom = null;
//changes and added by sarita on 31/05/2017
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
//E12GenericUtility genericUtility = new E12GenericUtility();
try
{
if(xmlString != null && xmlString.trim().length()!=0)
......
......@@ -108,6 +108,10 @@ public class GenWOTrackStatusPrc extends ProcessEJB implements GenWOTrackStatusP
System.out.println("Exception :SoHoldRefPrcEJB :process(String xmlString, String xmlString2, String windowName, String xtraParams):" + e.getMessage() + ":");
e.printStackTrace();
}
finally
{
genericUtility=null;
}
return retStr;
} //end of confirm method
......@@ -312,6 +316,7 @@ public class GenWOTrackStatusPrc extends ProcessEJB implements GenWOTrackStatusP
rs.close();
rs = null;
}
genericUtility=null;
}
catch(Exception e)
{
......@@ -561,6 +566,10 @@ public class GenWOTrackStatusPrc extends ProcessEJB implements GenWOTrackStatusP
catch(Exception e1){}
throw new ITMException(e);
}
finally
{
genericUtility=null;
}
/*finally
{
try
......@@ -861,6 +870,7 @@ public class GenWOTrackStatusPrc extends ProcessEJB implements GenWOTrackStatusP
ByteArrayInputStream baos = new ByteArrayInputStream(xmlString.getBytes( CommonConstants.ENCODING ));
dom1 = db.parse(baos);
genericUtility=null;
}
catch(Exception e)
{
......
......@@ -432,7 +432,7 @@ public class UserRightsPrc extends ProcessEJB implements UserRightsPrcLocal , U
System.out.println("xmlString2-->"+ xmlString2);
//changes and commented by sarita on 01/06/2017
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
//E12GenericUtility genericUtility = new E12GenericUtility();
try
{
System.out.println("xmlString ["+xmlString+"]");
......@@ -1075,6 +1075,7 @@ public class UserRightsPrc extends ProcessEJB implements UserRightsPrcLocal , U
conn.close();
conn = null;
genericUtility=null;
}catch(Exception e){
throw new ITMException(e);// added by akhilesh on 31/oct/12
......
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