I’ve recently upgraded my version of the Code Runner to v3.0.0 from the previous version available. However, since then I’ve been unable to run it as I have before. When executing CodeRunner.bat the console only ever gets as far as displaying the following (the same as what is dumped in the log)…
C:\Users\kerrgrant\Desktop\CodeRunnerSDK_3.0.0\bin>CodeRunner.bat
Starting CodeRunner
Listening for transport dt_socket at address: 5005
[INFO] CodeRunner(tm) Backendless Debugging Utility
[INFO] Copyright(C) 2016 Backendless Corp. All rights reserved.
[INFO] Version: 3.0.0 Build date: 20151127-0920
I’ve upgraded my version of Java to 1.8, as initially it stated I needed to do so. I’ve tried changing my code runner secret key in case that was causing any problems but this hasn’t had any affect.
I’m using Eclipse, which does seem to connect to the code runner (as I can tell from the debug context). I believe this because if I try to run the remote debug configuration within Eclipse WITHOUT first launching CodeRunner.bat then the process simply fails. Running CodeRunner.bat first, then starting the remote debug configuration allows Eclipse to attach.
Breakpoints aren’t being hit and logs to the console (via System.out.println) that previously printed, now don’t, so i’m not convinced the code is actually being executed (i.e. Bootstrap.java).
Any idea what could be going on here? If it helps, my Application ID is: A457D875-7D4C-535B-FF1C-200316776800
[INFO] Registering runner on: https://api.backendless.com with secretKey: ********-****-****-****-************
[ERROR] Internal server error with id ********-****-****-****-************
[ERROR] Runner registration failed. Please check 'application.id', 'application.secretKey' and 'application.version' in 'runner.properties' file.
[INFO] Debugging Utility disconnected successfully
[INFO] Thank you for using Backendless
Press any key to continue . . .
I did actually get that error when I was running the previous version of the code runner, and that’s what first prompted me to change my code runner secret and then upgrade my code runner version. Is this symptom related to the problem I’m having with the new version?
I’ve re-run the older version 2.0 of the Code Runner and the error message i’ve been getting and am still receiving is slightly different from the one you stated above (i’ve hidden my code runner secret):
C:\Users\kerrgrant\Desktop\CodeRunnerSDK_2.0\bin>CodeRunner.bat
Starting CodeRunner
Listening for transport dt_socket at address: 5005
[INFO] CodeRunner(tm) Backendless Debugging Utility
[INFO] Copyright(C) 2016 Backendless Corp. All rights reserved.
[INFO] Version: 2.1 Build date: 20150616-1632
[INFO] Registering runner on: https://api.backendless.com with secretKey: ******
**-****-****-****--*************
[ERROR] Runner registration failed. Please check 'application.id', 'application.
secretKey' and 'application.version' in 'runner.properties' file.
[INFO] Debugging Utility disconnected successfully
[INFO] Thank you for using Backendless
Press any key to continue . . .
I’ve checked all my keys and they seem correct. Does this tell you anything else about what might be happening with either this version of the Code Runner or the newer one (v3.0.0)?
I’m afraid i’m still getting the same problems with both version of Code Runner as before. Is there something you’re flushing at your end that should be enabling use at my end?
I managed to get the latest version of the Code Runner up and running with a helpful reminder to use custom code generation tools within the Backendless web console from Kate. The major gotcha was the runner.properties file I was using. When I used the one auto-generated one from the console, everything worked. However, when I manually edited the one distributed with the Code Runner download (from https://backendless.com/downloads/) to use my application and code runner secret keys, the Code Runner failed to run, getting as far as displaying (the reason for my original post):
C:\Users\kerrgrant\Desktop\CodeRunnerSDK_3.0.0\bin>CodeRunner.bat
Starting CodeRunner
Listening for transport dt_socket at address: 5005
[INFO] CodeRunner(tm) Backendless Debugging Utility
[INFO] Copyright(C) 2016 Backendless Corp. All rights reserved.
[INFO] Version: 3.0.0 Build date: 20151127-0920
There seem to be more config options within the standard download version than in my custom-generated version. Just thought I’d dump this info here in case anyone else is having trouble.
Separately, i’ve also noticed that the CodeRunner.jar and backendless.jar files distributed with the standard download are different from those bundled with my generated zip from the console. I am able to run Code Runner with either combination, but thought i’d mention this also, as I wasn’t expecting this.