Paul Medawar
Posts: 0
Joined: Thu Apr 03, 2014 10:55 am

javax.crypto.BadPaddingException

Hi,

I'm getting the following error message when trying to send a Push Notification.

Do you have any ideas why?

Kind regards

Paul

Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

javax.crypto.BadPaddingException

Hi Paul -

Could you please clarify what app are you building jQuery Mobile or AngularJS?

Also have you tried to use another keystore file?

Paul Medawar
Posts: 0
Joined: Thu Apr 03, 2014 10:55 am

javax.crypto.BadPaddingException

Hi Illya,

Jquery Mobile and yes i've tried a different key store file, same response

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

javax.crypto.BadPaddingException

We will need to test your app, this not reproducible for me.

Please specify Android version that you're using and share your app with us.
Also provide us your app name and detailed steps how to reproduce it.

Paul Medawar
Posts: 0
Joined: Thu Apr 03, 2014 10:55 am

javax.crypto.BadPaddingException

Hi Illya,

I've tries another Push Certificate and now the error message I'm receiving is

"Unrecoverable error occurred while trying to communicate with apple servers: connection failed
Devices count 1"

I've seen somebody else had the same problem, and the response was that the certificate is out of date or not for the right environment.

My certificate is in date, a production push certificate, and my device is registering in the Devices collection as well as appearing in the device count when i go to send the push.

I've succesfully completed this procedure for two other apps, can you give me some guidance on where I should be looking to resolve this?

thanks
Paul

Paul Medawar
Posts: 0
Joined: Thu Apr 03, 2014 10:55 am

javax.crypto.BadPaddingException

Hi any thoughts on this?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

javax.crypto.BadPaddingException

Paul - Perhaps you had a communication issues. In our environment push messages work well on iOS devices.

Paul Medawar
Posts: 0
Joined: Thu Apr 03, 2014 10:55 am

javax.crypto.BadPaddingException

Thanks Illya..i'd done this process a number of times before with Appery without any problems

So after redoing all my certs and profiles a number of times I found this

http://reactor.apppresser.com/blog/io...

and it was this specific advice that turned out to work

"Use the same certificate signing request for all certs"

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

javax.crypto.BadPaddingException

Thank you for update, glad it's sorted out.

Elizabeth B.
Posts: 0
Joined: Wed Jul 20, 2016 4:38 pm

javax.crypto.BadPaddingException

Hello, how did you fix the problem?

Return to “Issues”