You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Rupert Westenthaler (JIRA)" <ji...@apache.org> on 2013/03/22 10:55:17 UTC
[jira] [Resolved] (STANBOL-945) Initialization of ManagedSolrServer
may fail on Windows because '/' is used within relative path
[ https://issues.apache.org/jira/browse/STANBOL-945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rupert Westenthaler resolved STANBOL-945.
-----------------------------------------
Resolution: Fixed
fixed with http://svn.apache.org/r1447860
> Initialization of ManagedSolrServer may fail on Windows because '/' is used within relative path
> ------------------------------------------------------------------------------------------------
>
> Key: STANBOL-945
> URL: https://issues.apache.org/jira/browse/STANBOL-945
> Project: Stanbol
> Issue Type: Bug
> Components: Commons
> Affects Versions: commons-0.11.0
> Environment: any OS that uses other file seperators than '/' - all Windows OS versions
> Reporter: Rupert Westenthaler
> Assignee: Rupert Westenthaler
>
> The Configuration of the ManagedSolrServer expects the configuration of a Solr CoreContainer (basically only the solr.xml file) to be provided by the bundle under the relative path "solr/conf" (the constant with the name CONFIG_DIR).
> For determining the target Files any '/' used as paths for reading data from JAR files need to be converted to the path separator of the system ( '\' for Windows OS). However the '/' contained in "solr/conf" is not converted accordingly before calculating the relative path. Because of the the relative path can not be determined correctly causing a WARN level log like
> [FelixDispatchQueue] org.apache.stanbol.commons.solr.utils.ConfigUtils Context solr/conf\ not found in resource bundle:\\75.0:0\solr\conf\solr.xml -> ignored!
> and later an Exception like
> [FelixDispatchQueue] org.apache.stanbol.commons.solr.managed
> [org.apache.stanbol.commons.solr.managed.impl.ManagedSolrServerImpl] The activate method has
> thrown an exception (java.lang.IllegalArgumentException: The parsed SolrServerDir '{path}' MUST refer to a Directory) java.lang.IllegalArgumentException: The parsed SolrServerDir '{path}' MUST refer to a Directory
> at org.apache.stanbol.commons.solr.SolrServerAdapter$SolrServerProperties.<init> SolrServerAdapter.java:693)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira