Hi,
I'm trying to print a password using a printer that is already configured to my system.
But when I click on print, all the classes are working fine, except the PrintUtil class , which gives me the java.io.Exception.
I've pasted a copy of the trace below.
Would be grateful to anyone who could find a solution. If any more details are required, please ask as i don't know where to look to figure out the error.
LOGS
42316 [28108402@qtp-16651101-3] DEBUG app.tracelog - LoginPinMailerExtractService:exService Entered
42316 [28108402@qtp-16651101-3] DEBUG app.tracelog - LoginPinMailerExtractService:exService userid : administrator
42316 [28108402@qtp-16651101-3] DEBUG app.tracelog - LoginPinMailerExtractService:exService strbatchno before customer list retrieval:
42331 [28108402@qtp-16651101-3] DEBUG app.pintracelog - PinMailerProcessLogin:extractProcess() Extract Process Started :
42456 [28108402@qtp-16651101-3] DEBUG app.pintracelog - PinMailerProcessLogin:extractProcess() Extract Process querystring : SELECT AUL.USER_ID, AUL.USER_NAME, TRANS_REF_NO, USER_EMAIL FROM APP_USER_LOGIN_PWD_REQUEST AUL,IHB_USER_PROFILE AUP WHERE AUL.USER_ID=AUP.USER_ID AND AUL.USER_ID IN ('testbankuser124') AND STATUS = 'C'
42456 [28108402@qtp-16651101-3] DEBUG app.pintracelog - PinMailerProcessLogin:extractProcess() Extract Process querystring : SELECT AUL.USER_ID, AUL.USER_NAME, TRANS_REF_NO, USER_EMAIL FROM APP_USER_LOGIN_PWD_REQUEST AUL,IHB_USER_PROFILE AUP WHERE AUL.USER_ID=AUP.USER_ID AND AUL.USER_ID IN ('testbankuser124') AND STATUS = 'C'
42487 [28108402@qtp-16651101-3] DEBUG app.pintracelog - PinMailerProcessLogin:extractProcess() Extract Process userid : testbankuser124
42487 [28108402@qtp-16651101-3] DEBUG app.pintracelog - PinMailerProcessLogin:extractProcess() Extract Process username : testbankuser
42487 [28108402@qtp-16651101-3] DEBUG app.pintracelog - PinMailerProcessLogin:extractProcess() Extract Process tranrefno : 5554
42487 [28108402@qtp-16651101-3] DEBUG app.pintracelog - PinMailerProcessLogin:extractProcess() Extract Process useremail : testbankuser124
42487 [28108402@qtp-16651101-3] DEBUG app.pintracelog - PinMailerProcessLogin:getCustomerDetails CustomerId:testbankuser124
42518 [28108402@qtp-16651101-3] INFO app.pintracelog - PinMailerControllerLogin:generatePinMailer Pin File Name:D:/workspace/DLB/retail/admin/data/pinmailerlogin/Pinmailer.ps
42518 [28108402@qtp-16651101-3] DEBUG app.pintracelog - PinMailer:writePinMailer Details Map pad :Key Array:[pinmessage, userid, username, tranrefno, pinnumber, pinbatchno, useremail, address1, address2, address3, address4, address5],Values:[Pin : Login Password, testbankuser124, testbankuser, 5554, P1*8WB1#, 22852295, testbankuser124, DEPOSIT, , , , ]
42534 [28108402@qtp-16651101-3] DEBUG app.tracelog - PrintUtil:printUtil -2 PrinterName : TVS MSP 245 Star
42534 [28108402@qtp-16651101-3] DEBUG app.tracelog - PrintUtil:printUtil -2 File Path : D:/workspace/DLB/retail/admin/data/pinmailerlogin/Pinmailer.ps
42534 [28108402@qtp-16651101-3] DEBUG app.tracelog - PrintUtil:printUtil -2 Exception : java.io.IOException: Cannot run program "printtest": CreateProcess error=2, The system cannot find the file specified
42534 [28108402@qtp-16651101-3] INFO app.pintracelog - PinMailerControllerLogin:generatePinMailer statusFlag : false