K koffie Member Licensed User Longtime User Mar 10, 2015 #1 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 ?
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 ?
Erel B4X founder Staff member Licensed User Longtime User Mar 10, 2015 #2 The real error is probably the stack overflow. Can you post the full logs? Upvote 0
K koffie Member Licensed User Longtime User Mar 10, 2015 #3 Erel said: The real error is probably the stack overflow. Can you post the full logs? Click to expand... I am not able to reproduce the error in debug, but I did find a 'startmessageloop'...hidden in a place outside MAIN. could that be the problem ? Upvote 0
Erel said: The real error is probably the stack overflow. Can you post the full logs? Click to expand... I am not able to reproduce the error in debug, but I did find a 'startmessageloop'...hidden in a place outside MAIN. could that be the problem ?
Erel B4X founder Staff member Licensed User Longtime User Mar 10, 2015 #4 It depends. There are valid usages of StartMessageLoop outside of the main method. Upvote 0
K koffie Member Licensed User Longtime User Mar 11, 2015 #5 After 24 hours and more then a thousand decryptions...everything looks okay. I think it was the (overlooked) Startmessageloop that caused the stackoverflow... Thanks Upvote 0
After 24 hours and more then a thousand decryptions...everything looks okay. I think it was the (overlooked) Startmessageloop that caused the stackoverflow... Thanks