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

Path not set on installation so JNotify not loaded so Sync won't sync files if started from installer

    Details

    • Type: Regression Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0 B1
    • Fix Version/s: 1.1.1 GA1
    • Component/s: General
    • Labels:
      None
    • Environment:
      SYNC 1.1.x GIT ID: 86753bf365701e95004d1b6f6ec81c85baea65ca

      Description

      Files added to the local repository are not synced until sync is restarted.

      Steps to reproduce:

      1. Start Sync
      2. Locally add a file and a folder
        • File and folder are not added to the remote repository
      3. Restart Sync
        • File and folder are synced

      The following stacktrace is also thrown in the logs:

      java.lang.UnsatisfiedLinkError: no jnotify in java.library.path
      at java.lang.ClassLoader.loadLibrary(Unknown Source)
      at java.lang.Runtime.loadLibrary0(Unknown Source)
      at java.lang.System.loadLibrary(Unknown Source)
      at net.contentobjects.jnotify.win32.JNotify_win32.<clinit>(Unknown Source)
      at net.contentobjects.jnotify.win32.JNotifyAdapterWin32.<init>(Unknown Source)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      at java.lang.reflect.Constructor.newInstance(Unknown Source)
      at java.lang.Class.newInstance(Unknown Source)
      at net.contentobjects.jnotify.JNotify.<clinit>(Unknown Source)
      at com.liferay.sync.modules.documentlibrary.server.local.LocalFileSystemMonitor._startMonitor(LocalFileSystemMonitor.java:110)
      at com.liferay.sync.modules.documentlibrary.server.local.LocalFileSystemMonitor.propertyResetCompleted(LocalFileSystemMonitor.java:43)
      at com.liferay.sync.modules.documentlibrary.server.manager.PropsManager._fireResetEventCompleted(PropsManager.java:378)
      at com.liferay.sync.modules.documentlibrary.server.manager.PropsManager._setValue(PropsManager.java:487)
      at com.liferay.sync.modules.documentlibrary.server.manager.PropsManager.setAccountProps(PropsManager.java:275)
      at com.liferay.sync.gui.desktop.properties.PropertiesWindowHandler$1.run(PropertiesWindowHandler.java:215)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      

      My path files reads as:

      C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Wind
      owsPowerShell\v1.0\
      

        Attachments

        1. install.png
          install.png
          70 kB
        2. liferay-sync.log
          22 kB
        3. log.txt
          5 kB
        4. log.txt
          4 kB

          Activity

            People

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

              Dates

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

                Packages

                Version Package
                1.1.1 GA1