OpenContent
OpenContent copied to clipboard
strange errors
I get a lot of these errors:
DotNetNuke.Services.Exceptions.ModuleLoadException: Invalid shift value in prefixCoded string (is encoded value really a LONG?) ---> System.FormatException: Invalid shift value in prefixCoded string (is encoded value really a LONG?) at Lucene.Net.Util.NumericUtils.PrefixCodedToLong(String prefixCoded) at Lucene.Net.Search.AnonymousClassLongParser1.ParseLong(String val) at Lucene.Net.Search.FieldCacheImpl.LongCache.CreateValue(IndexReader reader, Entry entryKey) at Lucene.Net.Search.FieldCacheImpl.Cache.Get(IndexReader reader, Entry key) at Lucene.Net.Search.FieldCacheImpl.GetLongs(IndexReader reader, String field, LongParser parser) at Lucene.Net.Search.FieldCacheImpl.LongCache.CreateValue(IndexReader reader, Entry entryKey) at Lucene.Net.Search.FieldCacheImpl.Cache.Get(IndexReader reader, Entry key) at Lucene.Net.Search.FieldCacheImpl.GetLongs(IndexReader reader, String field, LongParser parser) at Lucene.Net.Search.FieldComparator.LongComparator.SetNextReader(IndexReader reader, Int32 docBase) at Lucene.Net.Search.TopFieldCollector.OneComparatorNonScoringCollector.SetNextReader(IndexReader reader, Int32 docBase) at Lucene.Net.Search.IndexSearcher.Search(Weight weight, Filter filter, Collector collector) at Lucene.Net.Search.IndexSearcher.Search(Weight weight, Filter filter, Int32 nDocs, Sort sort, Boolean fillFields) at Lucene.Net.Search.IndexSearcher.Search(Weight weight, Filter filter, Int32 nDocs, Sort sort) at Lucene.Net.Search.Searcher.Search(Query query, Filter filter, Int32 n, Sort sort) at Satrabel.OpenContent.Components.Lucene.LuceneController.Search(Searcher searcher, String type, Query query, Query filter, Int32 numResults, Sort sort) at Satrabel.OpenContent.Components.Lucene.LuceneController.Search(String type, Query filter, Query query, Sort sort, Int32 pageSize, Int32 pageIndex) at Satrabel.OpenContent.Components.Datasource.OpenContentDataSource.GetAll(DataSourceContext context, Select selectQuery) at Satrabel.OpenContent.Components.Render.RenderEngine.GetDataList(RenderInfo info, OpenContentModuleConfig ocModuleConfig) at Satrabel.OpenContent.Components.Render.RenderEngine.Render(Page page) at Satrabel.OpenContent.View.OnLoad(EventArgs e) --- End of inner exception stack trace ---
what does these mean? Somehow it had something to do with the creation of the title which is a date field. Is that not allowed?
I came across this just now. But in the context of sorting. The documentation warns for this error https://opencontent.readme.io/v3.5/docs/sorting#section-lucene-issues But that does not solve my problem. I will dig deeper.
==edit==
The error "Invalid shift value in prefixCoded ..." occurs when you Sort on a field for which not all items have a value.
In version 4.5 (currently on develop branch) I have strengthen the code to avoid such error for multilingual SortIndex.
==edit==
see also instructions to fix it here https://opencontent.readme.io/v4.0/docs/sorting#lucene-issues. Thx to @Timo-Breumelhof