This happened when I cloned this application from another application. Looking at the console I have an error message warning beside the table ‘Voucher’. I don’t need this table anyway so I tried to delete it, but this gave another error message. I tried cloning again in case a once off, but the same thing happened again. If you could remove the voucher table for me or get it fixed up so that I can delete it please and check everything else is ok on this app please before I continue development with this app Id. Thanks, Mike
Application ID: 62F94B85-91B6-46F3-857F-8EE69A16717B
Error UID: ED89452E-AABD-915F-FFA1-43CDF98AF100
Backendless encountered an error while handling the request. An internal trouble ticket with ID ED89452E-AABD-915F-FFA1-43CDF98AF100 has been created and we will be investigating the issue.
java.sql.SQLSyntaxErrorException: Unknown table '62F94B85-91B6-46F3-857F-8EE69A16717B.udt.Voucher'
java.lang.RuntimeException: java.sql.SQLSyntaxErrorException: Unknown table '62F94B85-91B6-46F3-857F-8EE69A16717B.udt.Voucher'
at com.backendless.services.persistence.schema.DatabaseOperation.handleDdlException(DatabaseOperation.java:185)
at com.backendless.services.persistence.schema.DatabaseOperation.lambda$doExecute$2(DatabaseOperation.java:162)
at com.backendless.datamodel.dao.JpaTransaction.executeSync(JpaTransaction.java:273)
at com.backendless.datamodel.dao.JpaTransaction.executeAppSync(JpaTransaction.java:183)
at com.backendless.datamodel.dao.JpaTransaction.lambda$executeApp$1(JpaTransaction.java:210)
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)
Suppressed: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.sql.SQLSyntaxErrorException: Unknown table '62F94B85-91B6-46F3-857F-8EE69A16717B.udt.Voucher'
at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1999)
at com.backendless.async.UncheckedCompletableFutureImpl.getUnchecked(UncheckedCompletableFutureImpl.java:158)
at com.backendless.services.persistence.schema.DatabaseOperation.doExecute(DatabaseOperation.java:169)
at com.backendless.services.persistence.schema.DatabaseOperation.lambda$execute$0(DatabaseOperation.java:123)
at com.backendless.util.sync.RedisSync.execute(RedisSync.java:107)
at com.backendless.util.SyncUtil.execute(SyncUtil.java:45)
at com.backendless.util.sync.ISync.execute(ISync.java:33)
at com.backendless.services.persistence.schema.DatabaseOperation.execute(DatabaseOperation.java:126)
at com.backendless.services.persistence.common.TablesService.removeTableByName(TablesService.java:244)
at com.backendless.management.persistence.DirectManagementService.lambda$deleteTable$1(DirectManagementService.java:296)
at java.base/java.util.Optional.ifPresent(Optional.java:183)
at com.backendless.management.persistence.DirectManagementService.deleteTable(DirectManagementService.java:287)
at com.backendless.management.persistence.DirectManagementService$$EnhancerByGuice$$b0222dd.CGLIB$deleteTable$7(<generated>)
at com.backendless.management.persistence.DirectManagementService$$EnhancerByGuice$$b0222dd$$FastClassByGuice$$52fd21ff.invoke(<generated>)
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:76)
at org.jsr107.ri.annotations.guice.CacheRemoveEntryInterceptor.proceed(CacheRemoveEntryInterceptor.java:56)
at org.jsr107.ri.annotations.guice.CacheRemoveEntryInterceptor.proceed(CacheRemoveEntryInterceptor.java:31)
at org.jsr107.ri.annotations.AbstractCacheRemoveEntryInterceptor.cacheRemoveEntry(AbstractCacheRemoveEntryInterceptor.java:63)
at org.jsr107.ri.annotations.guice.CacheRemoveEntryInterceptor.invoke(CacheRemoveEntryInterceptor.java:51)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:78)
at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:54)
at com.backendless.management.persistence.DirectManagementService$$EnhancerByGuice$$b0222dd.deleteTable(<generated>)
at com.backendless.management.persistence.DataManagementService.deleteTable(DataManagementService.java:112)
at controllers.console.DataManagement.lambda$deleteTable$6(DataManagement.java:189)
at com.backendless.async.ExecutorService.lambda$submit$0(ExecutorService.java:67)
... 4 more
Caused by: java.sql.SQLSyntaxErrorException: Unknown table '62F94B85-91B6-46F3-857F-8EE69A16717B.udt.Voucher'
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:953)
at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1092)
at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1040)
at com.mysql.cj.jdbc.ClientPreparedStatement.executeLargeUpdate(ClientPreparedStatement.java:1347)
at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdate(ClientPreparedStatement.java:1025)
at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:136)
at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:197)
at org.hibernate.engine.query.spi.NativeSQLQueryPlan.performExecuteUpdate(NativeSQLQueryPlan.java:107)
at org.hibernate.internal.SessionImpl.executeNativeUpdate(SessionImpl.java:1507)
at org.hibernate.query.internal.NativeQueryImpl.doExecuteUpdate(NativeQueryImpl.java:295)
at org.hibernate.query.internal.AbstractProducedQuery.executeUpdate(AbstractProducedQuery.java:1612)
at com.backendless.services.persistence.schema.DatabaseOperation.lambda$doExecute$1(DatabaseOperation.java:146)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
at com.backendless.services.persistence.schema.DatabaseOperation.lambda$doExecute$2(DatabaseOperation.java:144)
... 7 more
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.