I got the following error when using UserService.login after changing my users table identify column to use the phone number as the identity column rather than the email column. The issue is solved for me, but I thought someone might be interested in the error. The cause was that I had renamed the “phoneNumber” column in the user table to “phone”. Apparently, it is hard-coded somewhere.
Backendless encountered an error while handling the request. An internal trouble ticket with ID 5DD80A71-4FC3-D0AB-FF2C-4EDC455D7F00 has been created and we will be investigating the issue.
class java.lang.Long cannot be cast to class java.lang.String (java.lang.Long and java.lang.String are in module java.base of loader ‘bootstrap’)
java.lang.ClassCastException: class java.lang.Long cannot be cast to class java.lang.String (java.lang.Long and java.lang.String are in module java.base of loader ‘bootstrap’)
at controllers.Users.lambda$login$11(Users.java:292)
at com.backendless.async.ExecutorService.lambda$submit$0(ExecutorService.java:64)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
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)