Commit 94642050 authored by sankara.rao's avatar sankara.rao

changed by sankara on 11/07/13 acct_code__dr null in porddet bug fixing


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93850 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5ce97a9b
......@@ -257,6 +257,11 @@ public class AsnConf extends ActionHandlerEJB implements AsnConfLocal, AsnConfRe
{
System.out.println( "inside finally rollback else" );
conn.rollback();
//changed by sankara on 11/07/13 for acct_code__dr bug fixing start.
System.out.println("Exception Method calling");
String errMessage = printExceptionMessage("VTPRCERR",conn,errString);
return errMessage ;
//changed by sankara on 11/07/13 for acct_code__dr bug fixing end.
}
if( pstmt != null )
{
......@@ -1407,6 +1412,13 @@ public class AsnConf extends ActionHandlerEJB implements AsnConfLocal, AsnConfRe
}
*/
}
//changed by sankara on 11/07/13 for acct_code__dr bug fixing start.
else
{
System.out.println("asn confirm error checking");
return retString;
}
//changed by sankara on 11/07/13 for acct_code__dr bug fixing end.
}
}
else
......@@ -1956,4 +1968,42 @@ public class AsnConf extends ActionHandlerEJB implements AsnConfLocal, AsnConfRe
return mainStr;
}
//Changed by Rohan on 11-07-13 for generate erraor with asn no,line no and item code.end
//changed by sankara on 11/07/13 for acct_code__dr bug fixing start..
private String printExceptionMessage( String Code, Connection conn, String errString) throws ITMException
{
String mainStr = "";
String errMessage = "";
String endDesc = "";
try
{
System.out.println("ERRSTRINGSANKARA====="+errString);
errMessage = new ITMDBAccessEJB().getErrorString("",Code,"","",conn);
String begPart = errMessage.substring(0,errMessage.indexOf("<message>")+9);
System.out.println("BEGPART===="+begPart);
//String endDesc = errMessage.substring(errMessage.indexOf("</description>"));
if(errString != null && errString.indexOf("<description>") != -1 && (errString.indexOf("</description>") + 14) != -1)
{
endDesc = errString.substring(errString.indexOf("<description>"),errString.indexOf("</description>")+14);
}
else
{
//endDesc = errMessage.substring(errMessage.indexOf("</description>"));
return errMessage;
}
System.out.println("ENDDESC====="+endDesc);
// String message = errString.substring(107,185);
mainStr= begPart+"Exception Data"+"</message>";
mainStr= mainStr + "Exception"+endDesc+"</error>"+"</Errors>"+"</Root>";
System.out.println("printExceptionMessage:::::::::::::::::: "+mainStr);
begPart = null;
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
return mainStr;
}
//changed by sankara on 11/07/13 for acct_code__dr bug fixing end..
}
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