Uploaded image for project: 'PUBLIC - Liferay Sync'
  1. PUBLIC - Liferay Sync
  2. SYNC-1028

java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask rejected from java.util.concurrent.ScheduledThreadPoolExecutor

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: No Longer Reproducible
    • Affects Version/s: 1.0.10 GA4
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      None
    • Environment:
      LIFERAY VERSION: 6.1 GA2
      OPERATING SYSTEM: Windows Server 2008
      APPLICATION SERVER: Tomcat 7.0
      JAVA VIRTUAL MACHINE: Java 6
      LIFERAY SYNC VERSION: 1.0.10 GA4

      Description

      26 Aug 2013 15:51:39,540 ERROR [OfflineChangeWalker:142] Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@6c6948c rejected from java.util.concurrent.ScheduledThreadPoolExecutor@12d12c9b[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 883]
      java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@6c6948c rejected from java.util.concurrent.ScheduledThreadPoolExecutor@12d12c9b[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 883]
      	at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.reject(Unknown Source)
      	at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(Unknown Source)
      	at java.util.concurrent.ScheduledThreadPoolExecutor.schedule(Unknown Source)
      	at java.util.concurrent.ScheduledThreadPoolExecutor.submit(Unknown Source)
      	at com.liferay.sync.modules.documentlibrary.server.manager.RemoteFileSystemManager._processEvent(RemoteFileSystemManager.java:332)
      	at com.liferay.sync.modules.documentlibrary.server.manager.RemoteFileSystemManager.uploadFile(RemoteFileSystemManager.java:162)
      	at com.liferay.sync.modules.documentlibrary.server.local.handler.FileEventHandler._handleUploadFile(FileEventHandler.java:228)
      	at com.liferay.sync.modules.documentlibrary.server.local.handler.FileEventHandler._handleEvent(FileEventHandler.java:181)
      	at com.liferay.sync.modules.documentlibrary.server.local.handler.FileEventHandler.fileAdded(FileEventHandler.java:45)
      	at com.liferay.sync.modules.documentlibrary.server.local.offline.OfflineChangeWalker.handleFile(OfflineChangeWalker.java:112)
      	at org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:367)
      	at org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:364)
      	at org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:364)
      	at org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:335)
      	at com.liferay.sync.modules.documentlibrary.server.local.offline.OfflineChangeWalker.inspect(OfflineChangeWalker.java:53)
      	at com.liferay.sync.modules.documentlibrary.server.local.offline.OfflineChangeResolver.resolveOfflineChanges(OfflineChangeResolver.java:117)
      	at com.liferay.sync.modules.documentlibrary.server.local.LocalFileSystemMonitor._initialize(LocalFileSystemMonitor.java:80)
      	at com.liferay.sync.modules.documentlibrary.server.local.LocalFileSystemMonitor.start(LocalFileSystemMonitor.java:68)
      	at com.liferay.sync.modules.documentlibrary.util.SyncLifecycleListener._start(SyncLifecycleListener.java:86)
      	at com.liferay.sync.modules.documentlibrary.util.SyncLifecycleListener.statusChanged(SyncLifecycleListener.java:47)
      	at com.liferay.sync.modules.documentlibrary.server.DLServer._fireEvent(DLServer.java:186)
      	at com.liferay.sync.modules.documentlibrary.server.DLServer.start(DLServer.java:144)
      	at com.liferay.sync.gui.desktop.DesktopSyncClient.resumeDLServer(DesktopSyncClient.java:117)
      	at com.liferay.sync.gui.desktop.trayicon.TrayIconHandler.doTogglePause(TrayIconHandler.java:783)
      	at com.liferay.sync.gui.desktop.trayicon.TrayIconHandler$16.run(TrayIconHandler.java:409)
      	at org.eclipse.swt.widgets.Synchronizer.syncExec(Unknown Source)
      	at org.eclipse.swt.widgets.Display.syncExec(Unknown Source)
      	at com.liferay.sync.gui.desktop.trayicon.TrayIconHandler.togglePause(TrayIconHandler.java:402)
      	at com.liferay.sync.gui.desktop.trayicon.TrayIconBinder$5.handleEvent(TrayIconBinder.java:70)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
      	at com.liferay.sync.gui.desktop.trayicon.TrayIconHandler.openTrayIcon(TrayIconHandler.java:210)
      	at com.liferay.sync.gui.desktop.DesktopSyncClient._doRun(DesktopSyncClient.java:272)
      	at com.liferay.sync.gui.desktop.DesktopSyncClient.run(DesktopSyncClient.java:138)
      	at com.liferay.sync.gui.desktop.DesktopSyncClient.main(DesktopSyncClient.java:91)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)

      And after Detected OS: Windows

      26 Aug 2013 15:58:54,330 DEBUG [OfflineChangeResolver:87] Resolving offline changes
      26 Aug 2013 15:58:54,331 INFO  [TableUtils:44] clearing table 'OfflineChange' with 'TRUNCATE TABLE `OfflineChange`
      26 Aug 2013 15:58:54,368 ERROR [OfflineChangeManager:137] Unable to run insert stmt on object com.liferay.sync.model.OfflineChange@c1fa3cf: INSERT INTO `OfflineChange` (`filePath` ,`fileState` ,`lastSynced` ) VALUES (?,?,?)
      java.sql.SQLException: Unable to run insert stmt on object com.liferay.sync.model.OfflineChange@c1fa3cf: INSERT INTO `OfflineChange` (`filePath` ,`fileState` ,`lastSynced` ) VALUES (?,?,?)
      	at com.j256.ormlite.misc.SqlExceptionUtil.create(SqlExceptionUtil.java:22)
      	at com.j256.ormlite.stmt.mapped.MappedCreate.insert(MappedCreate.java:124)
      	at com.j256.ormlite.stmt.StatementExecutor.create(StatementExecutor.java:394)
      	at com.j256.ormlite.dao.BaseDaoImpl.create(BaseDaoImpl.java:308)
      	at com.liferay.sync.modules.documentlibrary.server.manager.OfflineChangeManager.initializeOfflineChange(OfflineChangeManager.java:133)
      	at com.liferay.sync.modules.documentlibrary.server.local.offline.OfflineChangeResolver.resolveOfflineChanges(OfflineChangeResolver.java:114)
      	at com.liferay.sync.modules.documentlibrary.server.manager.UserSiteManager.updateUserSite(UserSiteManager.java:193)
      	at com.liferay.sync.modules.documentlibrary.server.manager.UserSiteManager.updateUserSites(UserSiteManager.java:218)
      	at com.liferay.sync.gui.desktop.properties.PropertiesWindowHandler.saveProperties(PropertiesWindowHandler.java:235)
      	at com.liferay.sync.gui.desktop.properties.PropertiesWindowBinder$3.widgetSelected(PropertiesWindowBinder.java:76)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
      	at com.liferay.sync.gui.desktop.properties.PropertiesWindow.doOpen(PropertiesWindow.java:560)
      	at com.liferay.sync.gui.desktop.properties.PropertiesWindow$1.run(PropertiesWindow.java:156)
      	at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
      	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
      	at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
      	at com.liferay.sync.gui.desktop.trayicon.TrayIconHandler.openTrayIcon(TrayIconHandler.java:210)
      	at com.liferay.sync.gui.desktop.DesktopSyncClient._doRun(DesktopSyncClient.java:272)
      	at com.liferay.sync.gui.desktop.DesktopSyncClient.run(DesktopSyncClient.java:138)
      	at com.liferay.sync.gui.desktop.DesktopSyncClient.main(DesktopSyncClient.java:91)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at com.liferay.sync.gui.desktop.DesktopSyncClientLoader.main(DesktopSyncClientLoader.java:39)
      Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "PRIMARY_KEY_9 ON PUBLIC.OFFLINECHANGE(FILEPATH)"; SQL statement:
      INSERT INTO `OfflineChange` (`filePath` ,`fileState` ,`lastSynced` ) VALUES (?,?,?) [23505-170]
      	at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
      	at org.h2.message.DbException.get(DbException.java:169)
      	at org.h2.message.DbException.get(DbException.java:146)
      	at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:81)
      	at org.h2.index.PageBtree.find(PageBtree.java:121)
      	at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:147)
      	at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:100)
      	at org.h2.index.PageBtreeNode.addRowTry(PageBtreeNode.java:200)
      	at org.h2.index.PageBtreeNode.addRowTry(PageBtreeNode.java:200)
      	at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:102)
      	at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:93)
      	at org.h2.table.RegularTable.addRow(RegularTable.java:122)
      	at org.h2.command.dml.Insert.insertRows(Insert.java:124)
      	at org.h2.command.dml.Insert.update(Insert.java:84)
      	at org.h2.command.CommandContainer.update(CommandContainer.java:75)
      	at org.h2.command.Command.executeUpdate(Command.java:230)
      	at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:156)
      	at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:142)
      	at com.j256.ormlite.jdbc.JdbcDatabaseConnection.insert(JdbcDatabaseConnection.java:168)
      	at com.j256.ormlite.stmt.mapped.MappedCreate.insert(MappedCreate.java:89)
      	... 28 more

      On stopping sync server:

      26 Aug 2013 16:20:09,879 DEBUG [DLServer:155] Stop sync server
      26 Aug 2013 16:20:09,881 DEBUG [DLServer:179] Done stopping sync server
      26 Aug 2013 16:20:19,129 DEBUG [BaseEvent:150] Read timed out
      26 Aug 2013 16:23:48,084 INFO  [DesktopSyncClient:62] Shutting down Liferay Sync
      26 Aug 2013 16:23:48,084 DEBUG [DLServer:100] Shutting down sync server
      26 Aug 2013 16:23:48,085 DEBUG [DLServer:124] Done shutting down sync server
      26 Aug 2013 16:23:48,090 DEBUG [Library:245] Failed to unload native library
      java.lang.NoSuchMethodException: java.lang.System.getCallerClass()
      	at java.lang.Class.getDeclaredMethod(Unknown Source)
      	at com.jniwrapper.Library.b(SourceFile:181)
      	at com.jniwrapper.n.a(SourceFile:22)
      	at com.jniwrapper.bm.run(SourceFile:141)

      On restart:

      27 Aug 2013 09:03:21,965 ERROR [DesktopRootEventListener:25] Root folder missing. Original path: C:\Users\nmaestas\Documents\liferay-sync 11
      27 Aug 2013 09:03:21,965 ERROR [RootFolderConfigurationManager:303] C:\Users\***\Documents\liferay-sync\.liferay.sync.uuid (The system cannot find the path specified)
      java.io.FileNotFoundException: C:\Users\**\Documents\liferay-sync\.liferay.sync.uuid (The system cannot find the path specified)
      	at java.io.FileOutputStream.open(Native Method)
      	at java.io.FileOutputStream.<init>(Unknown Source)
      	at java.io.FileOutputStream.<init>(Unknown Source)
      	at java.io.PrintWriter.<init>(Unknown Source)
      	at com.liferay.sync.modules.documentlibrary.server.manager.RootFolderConfigurationManager._writeUuidFile(RootFolderConfigurationManager.java:296)
      	at com.liferay.sync.modules.documentlibrary.server.manager.RootFolderConfigurationManager.saveConfiguration(RootFolderConfigurationManager.java:188)
      	at com.liferay.sync.modules.documentlibrary.server.manager.RootFolderConfigurationManager.validateUuidFile(RootFolderConfigurationManager.java:223)
      	at com.liferay.sync.modules.documentlibrary.server.manager.RootFolderConfigurationManager.start(RootFolderConfigurationManager.java:246)
      	at com.liferay.sync.modules.documentlibrary.util.SyncLifecycleListener._start(SyncLifecycleListener.java:86)
      	at com.liferay.sync.modules.documentlibrary.util.SyncLifecycleListener.statusChanged(SyncLifecycleListener.java:47)
      	at com.liferay.sync.modules.documentlibrary.server.DLServer._fireEvent(DLServer.java:186)
      	at com.liferay.sync.modules.documentlibrary.server.DLServer.start(DLServer.java:144)
      	at com.liferay.sync.gui.desktop.DesktopSyncClient.startDLServer(DesktopSyncClient.java:154)
      	at com.liferay.sync.gui.desktop.DesktopSyncClient$1.run(DesktopSyncClient.java:239)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 44 weeks, 6 days ago

                Packages

                Version Package