B4J Question and another ClassCastException [SOLVED]

koffie

Member
Licensed User
Longtime User
My b4j program works great. It decrypts incoming AES/CBC/PKCS5Padding data through asyncprefix.

But every time after around 740-750 loops it says

java.lang.ClassCastException: java.lang.StackOverflowError cannot be cast to java.lang.Exception

so 740-750 times no probs....and then it does not decrypt the data anymore.
I tested the incoming data. It is not corrupted in any way.

When I physically restart the app...everything goes until it reaches approx. 740 loops.

Any hints ?
 

koffie

Member
Licensed User
Longtime User
The real error is probably the stack overflow. Can you post the full logs?

I am not able to reproduce the error in debug, but I did find a 'startmessageloop'...hidden in a place outside MAIN.:oops::oops: could that be the problem ?
 
Upvote 0

koffie

Member
Licensed User
Longtime User
After 24 hours and more then a thousand decryptions...everything looks okay. I think it was the (overlooked) :rolleyes::rolleyes: Startmessageloop that caused the stackoverflow...

Thanks
 
Upvote 0
Top