I have an app that I deploy via WebStart that uses Lucene 5.2.1 (we are locked to 5.2.1 because that's what LanguageTool uses).
When running under the WebStart security manager, there are two locations where exceptions are thrown and prevent pretty much all Lucene classes from initializing. This is true even when we sign everything and specify <security><all-permissions/></security>.
- In RamUsageEstimator, fixed by
- In Constants, caused by the call System.getProperty("sun.arch.data.model") (stack trace below).
The latter is still present in the latest version. My patch illustrates one solution that appears to be working for us.
(This patch, together with a backport of the fix to
LUCENE-6923, seems to fix the issue for our purposes. However if you really wanted to make my day you could put out a maintenance release of 5.2 with both fixes included.)