Zero Block
Click "Block Editor" to enter the edit mode. Use layers, shapes and customize adaptability. Everything is in your hands.
Tilda Publishing
create your own block from scratch
Zero Block
Click "Block Editor" to enter the edit mode. Use layers, shapes and customize adaptability. Everything is in your hands.
Tilda Publishing
create your own block from scratch
VAT_INVOICE PROCESSED
Застряла черга продажу
Версійність: Від 8.5.8 баг наявний, від 8.8.7+ пофіксили

Остання редакція від березня 2024 рочку
Помилка в лозі update-tasks-queue.log :
[2024-06-01 18:41:20,523] ERROR [13] [SendUpdatesToServer] - Exception raised on updates processing.
Resto.Data.RestoServiceInternalException: java.lang.ClassCastException: Cannot convert to class resto.back.vatinvoice.model.DetailedVatInvoice instance VatInvoice[a3203883-337c-4813-8e60-7e1f3cbe55b1]@969308028 (VAT_INVOICE F-9-6-85/02/2024 PROCESSED, incoming 2024-02-23 12:49:27, created 2024-02-23 13:49:42, ) of class resto.back.vatinvoice.model.VatInvoice
java.lang.ClassCastException: Cannot convert to class resto.back.vatinvoice.model.DetailedVatInvoice instance VatInvoice[a3203883-337c-4813-8e60-7e1f3cbe55b1]@969308028 (VAT_INVOICE F-9-6-85/02/2024 PROCESSED, incoming 2024-02-23 12:49:27, created 2024-02-23 13:49:42, ) of class resto.back.vatinvoice.model.VatInvoice
    at resto.utils.reflect.ReflectionUtil.checkedCast(ReflectionUtil.java:925)
    at resto.db.AbstractMemoryEntityManager.get(AbstractMemoryEntityManager.java:121)
    at resto.db.EntitiesUpdateItem.readEntity(EntitiesUpdateItem.java:190)
    at resto.frontnet.cache.FrontUpdateService.lambda$null$1(FrontUpdateService.java:383)
    at resto.frontnet.cache.FrontUpdateService.forEachInBatch(FrontUpdateService.java:1600)
    at resto.frontnet.cache.FrontUpdateService.lambda$importFrontDataImpl$2(FrontUpdateService.java:373)
    at resto.db.AsyncEntityManager$1.run(AsyncEntityManager.java:998)
    at resto.rpc.ServiceMethodCaller.invokeWith(ServiceMethodCaller.java:511)
    at resto.db.AsyncEntityManagerUtilImpl.lambda$callNowWithSessionAndContext$0(AsyncEntityManagerUtilImpl.java:41)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at resto.core.InterruptAwareCallable.call(InterruptAwareCallable.java:56)
    at resto.core.RestoExecutorCallable.call(RestoExecutorCallable.java:58)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at resto.core.SingleThreadedRestoExecutor$ExecutorRunnable.doTask(SingleThreadedRestoExecutor.java:442)
    at resto.core.SingleThreadedRestoExecutor$ExecutorRunnable.run(SingleThreadedRestoExecutor.java:424)
    at java.lang.Thread.run(Unknown Source)
    Suppressed: resto.RestoException: That ClassCastException occurred while performing 'importFrontDataImpl' on object DetailedVatInvoice@a3203883-337c-4813-8e60-7e1f3cbe55b1,h=259853a9,i=1
        at resto.RestoException.format(RestoException.java:234)
        at resto.frontnet.cache.FrontUpdateService.forEachInBatch(FrontUpdateService.java:1605)
        ... 11 more
Отже, як це вилікувати?
0) СПОЧАТКУ РОБИМО БЕКАП КЕШСЕРВЕРУ
1) Робимо запит до бази entities.sdf
DELETE FROM [UploadQueue]
where type='DetailedVatInvoice'
2) Запускаємо фронт і перевіряємо чи черга пішла на сервер
3) Profit ;)