[jpos-users] translatedPINBlock 99- Wrong format

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jpos-users] translatedPINBlock 99- Wrong format

israel
Good day to you all,

While trying to carry out a transaction on a test environment, I am experiencing this error below:

INFO: MessageProcessor :: process0200:: >>>>>>>>>> translatedPINBlock: 99-Wrong Format.

The PINBLOCK that was been generated from this device was formatted rightly, because.. i have tried making use of the BP - Tools - Cryptographic Calculator 16.10 to carry this out which was successful.

What i do like to ask is this, where am i getting this wrong?

and this is how i am carrying out this with my code

m.set(52, Utils.hexToBytes(pinBlock));

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/66bfb829-7e35-4e21-843d-76fc9ceba366%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] translatedPINBlock 99- Wrong format

Victor Salaman-Medina
Hi:

Through the powers of ancient magic, I'll try to read your mind, and the code you have not supplied. From this, I've determined it's your fault :) The problem lies in the following line in your log file:

INFO: MessageProcessor :: process0200:: >>>>>>>>>> translatedPINBlock: 99-Wrong Format.

Apparently something is saying that your data has the wrong format....

Now seriously, can you be a sport and provide a detailed question, maybe some code, and the steps you made to reach your conclusion.

Thank you,

/V

On Mon, Dec 5, 2016 at 11:26 AM, Israel Meshileya <[hidden email]> wrote:
Good day to you all,

While trying to carry out a transaction on a test environment, I am experiencing this error below:

INFO: MessageProcessor :: process0200:: >>>>>>>>>> translatedPINBlock: 99-Wrong Format.

The PINBLOCK that was been generated from this device was formatted rightly, because.. i have tried making use of the BP - Tools - Cryptographic Calculator 16.10 to carry this out which was successful.

What i do like to ask is this, where am i getting this wrong?

and this is how i am carrying out this with my code

m.set(52, Utils.hexToBytes(pinBlock));

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/66bfb829-7e35-4e21-843d-76fc9ceba366%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CALK1Syx9-oto-TZiyao0P3BGgzhqTF%3DSwQYqmJzhyGx9G8hCqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] translatedPINBlock 99- Wrong format

israel
Thanks so much for your response @Victor, I do appreciate your time.
Although, I as a client, I am trying to carry out a transaction with a server-side, I was actually been told the HSM is returning back that error log I posted above i.e, the Wrong PINBLOCK format on the demo environment (that was all the detail i was able to get).

Since the field 52 is Personal identification number data field which ought to be b 64, which i was able to get done by using this below code 
public static byte[] hexToBytes(String str) {
           
if (str == null) {
               
return null;
           
} else if (str.length() < 2) {
               
return null;
           
} else {
               
short len = (short)(str.length() / 2);
               
byte[] buffer = new byte[len];
               
for (short i = 0; i < len; i++) {
                    buffer
[i] = (byte) Integer.parseInt(str.substring(i * 2, i * 2 + 2), 16);
               
}
               
return buffer;
           
}
       
}

by implementing it like this :
 m.set(52, Utils.hexToBytes(pinBlock));

I still do not know where i am getting it all wrong (why the HSM is returning 
MessageProcessor processPINBlock
INFO  
| jvm 1    | 2016/12/05 15:53:13 | INFO: MessageProcessor :: process0200 :: >>>>>>>>>>>>>>>>>>>>>>> translatedPINBlock: 99-Wrong Format

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/f50a9d59-0387-4ef2-9243-84d81cb1c33e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] translatedPINBlock 99- Wrong format

Victor Salaman-Medina
Can you guide us on how this is jPOS relevant? 

From your code, I can't see how this is jPOS related and for that matter where exactly do you need help.

This is offtopic, please contact your server endpoint and/or your HSM vendor.

Have an awesome day,

/V

On Mon, Dec 5, 2016 at 12:35 PM, Israel Meshileya <[hidden email]> wrote:
Thanks so much for your response @Victor, I do appreciate your time.
Although, I as a client, I am trying to carry out a transaction with a server-side, I was actually been told the HSM is returning back that error log I posted above i.e, the Wrong PINBLOCK format on the demo environment (that was all the detail i was able to get).

Since the field 52 is Personal identification number data field which ought to be b 64, which i was able to get done by using this below code 
public static byte[] hexToBytes(String str) {
           
if (str == null) {
               
return null;
           
} else if (str.length() < 2) {
               
return null;
           
} else {
               
short len = (short)(str.length() / 2);
               
byte[] buffer = new byte[len];
               
for (short i = 0; i < len; i++) {
                    buffer
[i] = (byte) Integer.parseInt(str.substring(i * 2, i * 2 + 2), 16);
               
}
               
return buffer;
           
}
       
}

by implementing it like this :
 m.set(52, Utils.hexToBytes(pinBlock));

I still do not know where i am getting it all wrong (why the HSM is returning 
MessageProcessor processPINBlock
INFO  
| jvm 1    | 2016/12/05 15:53:13 | INFO: MessageProcessor :: process0200 :: >>>>>>>>>>>>>>>>>>>>>>> translatedPINBlock: 99-Wrong Format

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/f50a9d59-0387-4ef2-9243-84d81cb1c33e%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CALK1Syz-wAeey6amZET8SvWNW%3Dw2dMz0Ja%3DeZW-Fmi3Utmr9Tw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...