lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Erera (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-2688) NativeFSLockFactory throws an exception on Android 2.2 platform as java.lang.management package is not available on android.
Date Tue, 05 Oct 2010 12:20:32 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-2688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12917951#action_12917951
] 

Shai Erera commented on LUCENE-2688:
------------------------------------

Isn't it part of Java 5? Is Android using a different JDK? I agree w/ Robert on one hand,
but adding a try-catch and fallback seems reasonable in this case.

I'd only like to understand how is it that java.lang.management does not exist on Android,
because that might indicate other classes don't exist as well, and thus fixing NativeFSLockFactory
won't solve the real problem of running Lucene 3.x on Android.

> NativeFSLockFactory throws an exception on Android 2.2 platform as java.lang.management
package is not available on android.
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-2688
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2688
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Store
>    Affects Versions: 3.0, 3.0.1, 3.0.2
>         Environment: Android 2.2 Froyo Nexus One
>            Reporter: Surinder Pal Singh Bindra
>             Fix For: 2.9.4, 3.0.3, 3.1, 4.0
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message