Hello Community,
I hope you are doing well, your help is highly appreciated because I am stuck on this.
When I run the service in debug mode using “CodeRunner.bat” everything is working fine but I get this when I try to deploy the service running “Deploy.bat”:
12:21:06.596 [INFO] c.b.c.d.DebuggerConsoleInterface |main| Publishing 0 event handlers and 0 timers and 1 service to the server…
12:25:36.081 [ERROR] c.b.c.CodeRunnerLoader |main| Can not parse generic service: BusinessLogicExecutionTimeoutException: Custom business logic execution has been terminated because it did not complete in permitted time - 243 seconds
12:25:36.161 [INFO] c.b.coderunner.LocalCodeRunner |Thread-0| Debugging Utility disconnected successfully
12:25:36.169 [INFO] c.b.coderunner.LocalCodeRunner |Thread-0| Thank you for using Backendless
Hi @Ibrahim_Elmahdi!
Could you provide your App ID?
Also can you try to create new service that do not contain any logic and try to depoy it?
Regards, Andriy
Hi @Andriy_Konoz,
FCAFD3BC-6F32-C01F-FF18-7D75FDEC8600 this my app ID, I tray to deploy the Demo service but it does not work, the only service that can be deployed is CartShoppingService which is provided by Backendless.
Here the demo service in debug mode:
C:\Users\ETECHS\Documents\Expertea\ExperteaAPIService\bin>CodeRunner.bat
Starting CodeRunner
Listening for transport dt_socket at address: 5005
10:20:20.334 [INFO] c.b.c.CodeRunnerLoader |main| JDK from “JAVA_HOME” - C:\Program Files\Java\jdk-13.0.2
10:20:20.631 [INFO] c.b.c.CommandLineProcessor |main| CodeRunner™ Backendless Debugging Utility
10:20:20.709 [INFO] c.b.c.CommandLineProcessor |main| Copyright© 2020 Backendless Corp. All rights reserved.
10:20:20.725 [INFO] c.b.c.CommandLineProcessor |main| Build date: 2020-06-19T13:42:23Z
Version: 6.0.0.8
Build id: 196137
VCS revision: 080f45335b9a0afc0530c36b9cafedff6faef77d
10:20:20.756 [INFO] c.b.c.CommandLineProcessor |main| CodeRunner session is running for 2 hours and will be terminated on 12:20:20.741010800[UTC]
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.backendless.coderunner.runtime.security.CodeRunnerSecurityManager (file:/C:/Users/ETECHS/Documents/Expertea/ExperteaAPIService/bin/CodeRunner.jar) to field java.lang.ThreadGroup.nUnstartedThreads
WARNING: Please consider reporting this to the maintainers of com.backendless.coderunner.runtime.security.CodeRunnerSecurityManager
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
10:20:21.240 [INFO] c.b.h.HealthCheckHttpServer |main| Management port is absent, management server not started
10:20:21.256 [INFO] c.b.coderunner.LocalCodeRunner |main| Registering runner on: ‘https://api.backendless.com’
10:20:21.272 [INFO] c.b.coderunner.LocalCodeRunner |main| Application ID: ‘FCAFD3BC-6F32-C01F-FF18-7D75FDEC8600’
10:20:21.287 [INFO] c.b.coderunner.LocalCodeRunner |main| Api key: ‘xxxx’
10:20:32.478 [INFO] c.b.coderunner.LocalCodeRunner |main| Runner successfully registered
10:20:32.556 [INFO] c.b.c.parser.EventModelParser |main| Parsing event model…
10:20:35.900 [INFO] c.b.c.r.t.CustomServiceParserTask |main| Run dependency analyzer for app: FCAFD3BC-6F32-C01F-FF18-7D75FDEC8600
ClassPath: C:\Users\ETECHS\Documents\Expertea\ExperteaAPIService\libs\backendless.jar;C:\Users\ETECHS\Documents\Expertea\ExperteaAPIService\libs\servlet-api-2.5.jar
10:20:35.931 [INFO] DependencyAnalyzer |main| Analyze service: com.sample.api.DemoService
10:20:37.323 [INFO] c.b.c.d.DebuggerConsoleInterface |main| Build successfully: 0 event handlers and 0 timers and 1 service
10:20:37.354 [INFO] c.b.c.d.DebuggerConsoleInterface |main| Deploying model to server, and starting debug…
10:20:40.011 [INFO] c.b.c.d.DebuggerConsoleInterface |main| Model successfully deployed.
10:20:40.011 [INFO] c.b.c.d.DebuggerConsoleInterface |main| Waiting for events…
Here when trying to deploy:
C:\Users\ETECHS\Documents\Expertea\ExperteaAPIService\bin>Deploy.bat
Starting CodeRunner
10:22:46.567 [INFO] c.b.c.CodeRunnerLoader |main| JDK from “JAVA_HOME” - C:\Program Files\Java\jdk-13.0.2
10:22:46.739 [INFO] c.b.c.CommandLineProcessor |main| CodeRunner™ Backendless Debugging Utility
10:22:46.739 [INFO] c.b.c.CommandLineProcessor |main| Copyright© 2020 Backendless Corp. All rights reserved.
10:22:46.754 [INFO] c.b.c.CommandLineProcessor |main| Build date: 2020-06-19T13:42:23Z
Version: 6.0.0.8
Build id: 196137
VCS revision: 080f45335b9a0afc0530c36b9cafedff6faef77d
10:22:46.801 [INFO] c.b.c.CommandLineProcessor |main| CodeRunner session is running for 2 hours and will be terminated on 12:22:46.786173900[UTC]
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.backendless.coderunner.runtime.security.CodeRunnerSecurityManager (file:/C:/Users/ETECHS/Documents/Expertea/ExperteaAPIService/bin/CodeRunner.jar) to field java.lang.ThreadGroup.nUnstartedThreads
WARNING: Please consider reporting this to the maintainers of com.backendless.coderunner.runtime.security.CodeRunnerSecurityManager
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
10:22:47.051 [INFO] c.b.h.HealthCheckHttpServer |main| Management port is absent, management server not started
10:22:47.973 [INFO] c.b.c.parser.EventModelParser |main| Parsing event model…
10:22:50.723 [INFO] c.b.c.r.t.CustomServiceParserTask |main| Run dependency analyzer for app: FCAFD3BC-6F32-C01F-FF18-7D75FDEC8600
ClassPath: C:\Users\ETECHS\Documents\Expertea\ExperteaAPIService\libs\backendless.jar;C:\Users\ETECHS\Documents\Expertea\ExperteaAPIService\libs\servlet-api-2.5.jar
10:22:50.768 [INFO] DependencyAnalyzer |main| Analyze service: com.sample.api.DemoService
10:22:54.027 [INFO] c.b.c.d.DebuggerConsoleInterface |main| Build successfully: 0 event handlers and 0 timers and 1 service
10:22:54.058 [WARN] c.b.c.d.DebuggerConsoleInterface |main| IMPORTANT! The business logic code will be deployed to model “default”.
Any business logic which is already deployed on the server in that model
will be removed and replaced with the code from your current project.
If this is an undesired behavior, stop now and set a different deployment model
either by using the -model argument or changing the model name in runner.properties.
Would you like to continue? (Y/N)
y
10:22:56.966 [INFO] c.b.c.d.DebuggerConsoleInterface |main| Publishing 0 event handlers and 0 timers and 1 service to the server…
10:27:11.031 [ERROR] c.b.c.CodeRunnerLoader |main| Can not parse generic service: BusinessLogicExecutionTimeoutException: Custom business logic execution has been terminated because it did not complete in permitted time - 243 seconds
10:27:11.094 [INFO] c.b.coderunner.LocalCodeRunner |Thread-0| Debugging Utility disconnected successfully
10:27:11.109 [INFO] c.b.coderunner.LocalCodeRunner |Thread-0| Thank you for using Backendless
I see that you use JDK 13 for compiling your code. Backendless supports only Java 11 and below. Try to rebuild your code with Java 11 and to deploy it again. I think that problem can be caused by Java version.
Regards, Andriy
Thank you @Andriy_Konoz, I change the Project SDK to 1.7 and the Project language
level to 11 and it works.