Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-2688

NativeFSLockFactory throws an exception on Android 2.2 platform as java.lang.management package is not available on android.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0, 3.0.1, 3.0.2
    • Fix Version/s: 2.9.4, 3.0.3, 3.1, 4.0-ALPHA
    • Component/s: core/store
    • Labels:
      None
    • Environment:

      Android 2.2 Froyo Nexus One

    • Lucene Fields:
      New

      Description

      NativeFSLockFactory throws an exception on Android 2.2 platform as java.lang.management package is not available on android.
      Looks like FSDirectory defaults to NativeFSLockFactory, and this class refers to java.lang.management package to generate a unique lock. java.lang.management is not available in Android 2.2 and hence a runtime exception is raised. The workaround is to use another custom LockFactory or SimpleFSLockFactory, but Fixing NativeFSLockFactroy will help.

      Thanks,
      Surinder

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bbindra Surinder Pal Singh Bindra
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: