mirror of https://github.com/apache/lucene.git
SOLR-6387: Try to fix this a second time...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1618938 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b9cf600c56
commit
ffeb6b029c
|
@ -83,7 +83,7 @@ class RunExecutableListener extends AbstractSolrEventListener {
|
|||
proc = Runtime.getRuntime().exec(cmd, envp ,dir);
|
||||
} catch (Error err) {
|
||||
// Create better error message
|
||||
if (err.getMessage() != null && err.getMessage().contains("posix_spawn")) {
|
||||
if (err.getMessage() != null && (err.getMessage().contains("posix_spawn") || err.getMessage().contains("UNIXProcess"))) {
|
||||
Error newErr = new Error("Error forking command due to JVM locale bug (see https://issues.apache.org/jira/browse/SOLR-6387): " + err.getMessage());
|
||||
newErr.setStackTrace(err.getStackTrace());
|
||||
err = newErr;
|
||||
|
|
|
@ -225,7 +225,7 @@ public class SystemInfoHandler extends RequestHandlerBase
|
|||
// ignore - log.warn("Error executing command", ex);
|
||||
return "(error executing: " + cmd + ")";
|
||||
} catch (Error err) {
|
||||
if (err.getMessage() != null && err.getMessage().contains("posix_spawn")) {
|
||||
if (err.getMessage() != null && (err.getMessage().contains("posix_spawn") || err.getMessage().contains("UNIXProcess"))) {
|
||||
log.warn("Error forking command due to JVM locale bug (see https://issues.apache.org/jira/browse/SOLR-6387): " + err.getMessage());
|
||||
return "(error executing: " + cmd + ")";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue