Support Topics Documentation Slack YouTube Blog

Custom Timer Not able to create

Application ID: CEE6C01E-DD2D-47F5-BE7A-2EF06B5AA69D
Error UID: 9DA9C872-2528-0A69-FF9B-2A55B1FB2B00

Backendless encountered an error while handling the request. An internal trouble ticket with ID 9DA9C872-2528-0A69-FF9B-2A55B1FB2B00 has been created and we will be investigating the issue.
java.lang.RuntimeException: java.lang.ClassCastException: class java.util.HashMap cannot be cast to class com.backendless.taskman.Task (java.util.HashMap is in module java.base of loader 'bootstrap'; com.backendless.taskman.Task is in unnamed module of loader 'app')
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassCastException: class java.util.HashMap cannot be cast to class com.backendless.taskman.Task (java.util.HashMap is in module java.base of loader 'bootstrap'; com.backendless.taskman.Task is in unnamed module of loader 'app')
	at com.backendless.services.CheckDeveloperPermission.execute(CheckDeveloperPermission.java:39)
	at com.backendless.inject.interceptors.AbstractDeveloperOperationInterceptor.invoke(AbstractDeveloperOperationInterceptor.java:21)
	at router.Routes$$anonfun$routes$1.$anonfun$applyOrElse$133(Routes.scala:11427)
	at play.core.routing.HandlerInvokerFactory$$anon$8.resultCall(HandlerInvoker.scala:150)
	at play.core.routing.HandlerInvokerFactory$$anon$8.resultCall(HandlerInvoker.scala:149)
	at play.core.routing.HandlerInvokerFactory$JavaActionInvokerFactory$$anon$3$$anon$4$$anon$5.invocation(HandlerInvoker.scala:115)
	at play.core.j.JavaAction$$anon$1.call(JavaAction.scala:119)
	at play.http.DefaultActionCreator$1.call(DefaultActionCreator.java:33)
	at com.backendless.old.security.ConsoleOriginAction.call(ConsoleOriginAction.java:45)
	at com.backendless.management.developer.DeveloperApplicationAccessAction.call(DeveloperApplicationAccessAction.java:31)
	at com.backendless.old.security.ApplicationExistenceAndUseAction.call(ApplicationExistenceAndUseAction.java:38)
	at com.backendless.management.developer.AbstractAuthenticateDeveloperAction.call(AbstractAuthenticateDeveloperAction.java:52)
	at com.backendless.googleanalytic.ReportGoogleAnalyticsAction.call(ReportGoogleAnalyticsAction.java:43)
	at com.backendless.InitApiKeyForConsoleAction.call(InitApiKeyForConsoleAction.java:49)
	at com.backendless.ApiCallLimitAction.call(ApiCallLimitAction.java:26)
	at com.backendless.old.security.ConsoleOriginAction.call(ConsoleOriginAction.java:45)
	at com.backendless.StaticHttpResponseHeadersAction.call(StaticHttpResponseHeadersAction.java:22)
	at com.backendless.StackOverflowHandlerAction.call(StackOverflowHandlerAction.java:21)
	at com.backendless.CloseEntityManagerAction.call(CloseEntityManagerAction.java:36)
	at com.backendless.CurrentRequestsNumberAction.call(CurrentRequestsNumberAction.java:31)
	at com.backendless.ContextInitAction.call(ContextInitAction.java:19)
	at play.core.j.JavaAction.$anonfun$apply$8(JavaAction.scala:175)
	at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659)
	at scala.util.Success.$anonfun$map$1(Try.scala:255)
	at scala.util.Success.map(Try.scala:213)
	at scala.concurrent.Future.$anonfun$map$1(Future.scala:292)
	at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33)
	at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
	at play.core.j.HttpExecutionContext.$anonfun$execute$1(HttpExecutionContext.scala:64)
	at play.api.libs.streams.Execution$trampoline$.execute(Execution.scala:70)
	at play.core.j.HttpExecutionContext.execute(HttpExecutionContext.scala:59)
	at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:72)
	at scala.concurrent.impl.Promise$KeptPromise$Kept.onComplete(Promise.scala:372)
	at scala.concurrent.impl.Promise$KeptPromise$Kept.onComplete$(Promise.scala:371)
	at scala.concurrent.impl.Promise$KeptPromise$Successful.onComplete(Promise.scala:379)
	at scala.concurrent.impl.Promise.transform(Promise.scala:33)
	at scala.concurrent.impl.Promise.transform$(Promise.scala:31)
	at scala.concurrent.impl.Promise$KeptPromise$Successful.transform(Promise.scala:379)
	at scala.concurrent.Future.map(Future.scala:292)
	at scala.concurrent.Future.map$(Future.scala:292)
	at scala.concurrent.impl.Promise$KeptPromise$Successful.map(Promise.scala:379)
	at scala.concurrent.Future$.apply(Future.scala:659)
	at play.core.j.JavaAction.apply(JavaAction.scala:176)
	at play.api.mvc.Action.$anonfun$apply$4(Action.scala:82)
	at scala.concurrent.Future.$anonfun$flatMap$1(Future.scala:307)
	at scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:41)
	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
	at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:56)
	at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:93)
	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
	at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:85)
	at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:93)
	at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:48)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.RuntimeException: java.lang.ClassCastException: class java.util.HashMap cannot be cast to class com.backendless.taskman.Task (java.util.HashMap is in module java.base of loader 'bootstrap'; com.backendless.taskman.Task is in unnamed module of loader 'app')
	at com.backendless.redis.JedisManager.execute(JedisManager.java:150)
	at com.backendless.taskman.JedisClientManager.execute(JedisClientManager.java:70)
	at com.backendless.taskman.TaskManagerService.getTask(TaskManagerService.java:161)
	at com.backendless.taskman.timers.TimerExecutorImpl.register(TimerExecutorImpl.java:35)
	at com.backendless.management.servercode.TimerService.updateTimer(TimerService.java:196)
	at controllers.console.ServerCode.updateTimer(ServerCode.java:329)
	at com.backendless.inject.interceptors.AbstractDeveloperOperationInterceptor.lambda$invoke$0(AbstractDeveloperOperationInterceptor.java:24)
	at com.backendless.services.CheckDeveloperPermission.execute(CheckDeveloperPermission.java:28)
	... 56 more
Caused by: java

Problem description

Describe what you did in console that led to the error. Please provide a description of what actually happens. Be descriptive: “it doesn’t work” does not describe what the behavior actually is. This will help us with reproducing the problem.

Steps to reproduce

Please describe steps to reproduce starting from the first action.

Hello @Vinod_Sahu,

Please provide steps to reproduce this error, because I was able to create a new Codeless Timer in your app without any errors (already removed it).

Regards,
Olha

Sorry, I can create timer but issue with scheduling. When i am trying to call timer frequently in seconds getting error

As of now we want to run timer every 5 min

I’ve created an internal ticket BKNDLSS-23824. We’ll investigate this issue as soon as possible.

Regards,
Olha

When the problem resolved ?

Hello @Vinod_Sahu

Our engineers are now working on your problem. We will notify you as soon as the problem is resolved.

Regards,
Inna

Hello @Vinod_Sahu,

the problem has been fixed

Regards,
Sergey

Thank Let me check