Hi Reto
If it is only an error that occurs from time to time than it can not
be related to a faulty configuration. Because of that I had a short
look at the code that loads/updates/store this configuration.
Principally the loading of the configuration is not thread save. But
loading only occurs once if the a new SolrCore is loaded.
So triggering this would require a lot things:
* it can only appear of a new SolrCore was bound (e.g. after
activation OR if you update the "{core}.solrindex.zip" file in the
/datafiles folder" and the SolrCore with the new data replaces the
old.
* it would require two concurrent threads to request the SolrYard
So if you use multiple threads and this error appears shortly after
startup or an update to the index, than this might be the reason.
can you please check that
best
Rupert
So if you see this exception only on the
On Thu, Apr 5, 2012 at 1:48 PM, Reto Bachmann-Gmür <[email protected]> wrote:
> Hi rupert
>
> The problem occured twice, but I don't know yet how I can reproduce it.
> I'll check next time that it occurs.
>
> Cheers,
> Reto
> On Apr 5, 2012 1:39 PM, "Rupert Westenthaler" <[email protected]>
> wrote:
>
>>
>> On 05.04.2012, at 11:33, Reto Bachmann-Gmür wrote:
>>
>> > Hello,
>> >
>> > I'm getting the following error on invoking featuredSearch.search("a*");
>> >
>> > 04.04.2012 13:28:00.623 *INFO* [499054983@qtp-1780804346-0]
>> > org.apache.stanbol.enhancer.jobmanager.event.impl.EventJobManagerImpl
>> > Finished EnhancementJob for ContentItem
>> > <urn:content-item-sha1-308ab8140c595dbad9d3ac81515fac02e6c3e988> after
>> 15ms
>> > 04.04.2012 13:28:00.628 *ERROR* [499054983@qtp-1780804346-0]
>> > com.bradmcevoy.http.StandardFilter process
>> java.lang.IllegalStateException:
>> > Unknown prefix rdf (parsed from field rdf:type)!
>> > at
>> >
>> org.apache.stanbol.entityhub.yard.solr.impl.SolrFieldMapper.getFullFieldName(SolrFieldMapper.java:611)
>> >
>> [...]
>> >
>> > Has anyone seen this before or an idea waht is causing it?
>> >
>>
>> Yes this happened sometimes before
>> https://issues.apache.org/jira/browse/STANBOL-519 got fixed. But as this
>> only appeared if new - formally unknown namespaces where added to a
>> SolrIndex used by the SolrYard. Because of that it is nearly impossible to
>> appear with the RDF namespace.
>>
>> The prefix mappings are stored in a SolrDocument with the ID
>> "urn:eu.iksproject:rick.yard.solr:config.namespacePrefixConfig".
>>
>> You can actually look at the present mappings by querying for
>>
>> q=uri:urn\:eu.iksproject\:rick.yard.solr\:config.namespacePrefixConfig
>>
>> e.g.
>>
>>
>> http://dev.iks-project.eu:8081/solr/default/dbpedia/select?q=uri:urn\:eu.iksproject\:rick.yard.solr\:config.namespacePrefixConfig
>>
>> This document should define a field like
>>
>> <arr name="_config/rdf">
>> <str>
>> http://www.w3.org/1999/02/22-rdf-syntax-ns#
>> </str>
>> </arr>
>>
>> defining the RDF namespace.
>>
>> Reto can you place check this.
>>
>> best
>> Rupert
>>
>> > Cheers,
>> > Reto
>>
>>
--
| Rupert Westenthaler [email protected]
| Bodenlehenstraße 11 ++43-699-11108907
| A-5500 Bischofshofen