Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exceptions in WebBackgroundWorker when cleaning previously hanged tasks #1285

Open
alexbudarov opened this issue Sep 21, 2018 · 0 comments
Open
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@alexbudarov
Copy link
Member

alexbudarov commented Sep 21, 2018

Environment

  • Platform version: 6.8.12
  • Client type: Web

Description of the bug or enhancement

During workload testing, test server was hung for >30 mins because of database locks.
After I have killed all conflicting connections, server continued to work.
But in the log started to appear many error messages (new error every 5 seconds), stacktraces below:

Click to expand
2018-09-21 11:59:00,853 ERROR [cuba_web_backgroundScheduler-1] [o.s.s.support.TaskUtils$LoggingErrorHandler] Unexpected error occurred in scheduled task.
com.vaadin.ui.UIDetachedException: null
        at com.vaadin.ui.UI.access(UI.java:1452)
        at com.haulmont.cuba.web.gui.executors.impl.WebBackgroundWorker$WebUIAccessor.access(WebBackgroundWorker.java:419)
        at com.haulmont.cuba.gui.executors.impl.TaskHandlerImpl.kill(TaskHandlerImpl.java:190)
        at com.haulmont.cuba.gui.executors.impl.TaskHandlerImpl.closeByTimeout(TaskHandlerImpl.java:183)
        at com.haulmont.cuba.gui.executors.impl.TasksWatchDog.cleanupTasks(TasksWatchDog.java:69)
        at sun.reflect.GeneratedMethodAccessor1644.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65)
        at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
2018-09-21 11:59:05,854 ERROR [cuba_web_backgroundScheduler-1] [o.s.s.support.TaskUtils$LoggingErrorHandler] Unexpected error occurred in scheduled task.
com.vaadin.ui.UIDetachedException: null
        at com.vaadin.ui.UI.access(UI.java:1452)
        at com.haulmont.cuba.web.gui.executors.impl.WebBackgroundWorker$WebUIAccessor.access(WebBackgroundWorker.java:419)
        at com.haulmont.cuba.gui.executors.impl.TaskHandlerImpl.kill(TaskHandlerImpl.java:190)
        at com.haulmont.cuba.gui.executors.impl.TaskHandlerImpl.closeByTimeout(TaskHandlerImpl.java:183)
        at com.haulmont.cuba.gui.executors.impl.TasksWatchDog.cleanupTasks(TasksWatchDog.java:69)
        at sun.reflect.GeneratedMethodAccessor1644.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65)
        at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
These messages continue to appear every 5 seconds even 12 minutes after first one.
@jreznot jreznot self-assigned this Sep 21, 2018
@jreznot jreznot added the type: bug Something isn't working label Sep 21, 2018
@jreznot jreznot added this to the Release 6.8 milestone Oct 14, 2018
@jreznot jreznot modified the milestones: Release 6.8, Release 6.10 Jan 28, 2019
@jreznot jreznot assigned glebfox and unassigned jreznot Jun 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants