Error While issuing PM Command

Sep 7, 2012 at 11:41 AM

Using ThalesSim.Setup.0.9.6.x86 Tried to issue PM command, following is result

Client: 10.10.8.194:45844

Request: 0003PM12UF782BED549884513EB91357AF32174DBA165445440000000091;0000854454400000000910123456705482XX123

Parsing header and code of message 0003PM12UF782BED549884513EB91357AF32174DBA165445440000000091;0000854454400000000910123456705482XX123...

Searching for implementor of PM...

Found implementor ThalesSim.Core.HostCommands.BuildIn.VerifyDynamicCVV_PM, instantiating...

Calling AcceptMessage()...

Calling ConstructResponse()...

Exception while processing message

System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.

Parameter name: startIndex

at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)

at System.String.Substring(Int32 startIndex, Int32 length)

at ThalesSim.Core.HostCommands.BuildIn.VerifyDynamicCVV_PM.GetIVMac(String trackData, HexKey KD)

at ThalesSim.Core.HostCommands.BuildIn.VerifyDynamicCVV_PM.CalculateDynamicCVV_MastercardPaypass(HexKey IMK, String PAN, String PANSequenceNo, String trackData, String UN, String ATC)

at ThalesSim.Core.HostCommands.BuildIn.VerifyDynamicCVV_PM.ConstructResponse()

at ThalesSim.Core.ThalesMain.WCMessageArrived(WorkerClient sender, Byte[]& b, Int32 len)

Disconnecting client.

Calling Terminate()...

Implementor to Nothing

Client disconnected.

Client: 10.10.8.194:46140

Request: 0003PM12UF782BED549884513EB91357AF32174DBA165445440000000091;0000854454400000000910123456705482XX123

Parsing header and code of message 0003PM12UF782BED549884513EB91357AF32174DBA165445440000000091;0000854454400000000910123456705482XX123...

Searching for implementor of PM...

Found implementor ThalesSim.Core.HostCommands.BuildIn.VerifyDynamicCVV_PM, instantiating...

Calling AcceptMessage()...

Calling ConstructResponse()...

Exception while processing message

System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.

Parameter name: startIndex

at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)

at System.String.Substring(Int32 startIndex, Int32 length)

at ThalesSim.Core.HostCommands.BuildIn.VerifyDynamicCVV_PM.GetIVMac(String trackData, HexKey KD)

at ThalesSim.Core.HostCommands.BuildIn.VerifyDynamicCVV_PM.CalculateDynamicCVV_MastercardPaypass(HexKey IMK, String PAN, String PANSequenceNo, String trackData, String UN, String ATC)

at ThalesSim.Core.HostCommands.BuildIn.VerifyDynamicCVV_PM.ConstructResponse()

at ThalesSim.Core.ThalesMain.WCMessageArrived(WorkerClient sender, Byte[]& b, Int32 len)

Disconnecting client.

Calling Terminate()...

Implementor to Nothing

Client disconnected.