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