lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [lucenenet] ensemblebd opened a new issue #311: Bug or environment GAC? Method 'get_properties' in ConfigurationBuilder does not have an impl.
Date Mon, 20 Jul 2020 16:38:40 GMT

ensemblebd opened a new issue #311:
URL: https://github.com/apache/lucenenet/issues/311


   After upgrading from beta7 to **beta10**, I am now receiving an error:
   ```
   System.TypeInitializationException: The type initializer for 'Lucene.Net.Diagnostics.Debugging'
threw an exception. 
   ---> System.TypeInitializationException: The type initializer for 'Lucene.Net.Configuration.ConfigurationSettings'
threw an exception. 
   ---> System.TypeLoadException: Method 'get_Properties' in type 'Lucene.Net.Configuration.ConfigurationBuilder'
from assembly 'Lucene.Net, Version=4.0.0.0, Culture=neutral, PublicKeyToken=85089178b9ac3181'
does not have an implementation.
      at Lucene.Net.Configuration.DefaultConfigurationFactory..ctor()
      at Lucene.Net.Configuration.ConfigurationSettings..cctor()
      --- End of inner exception stack trace ---
      at Lucene.Net.Configuration.ConfigurationSettings.GetConfigurationFactory()
      at Lucene.Net.Util.Properties.GetProperty[T](String key, T defaultValue, Func`2 conversionFunction)
      at Lucene.Net.Diagnostics.Debugging..cctor()
      --- End of inner exception stack trace ---
      at Lucene.Net.Analysis.Tokenizer.SetReader(TextReader input)
      at Lucene.Net.Analysis.Analyzer.GetTokenStream(String fieldName, TextReader reader)
      at Lucene.Net.Util.QueryBuilder.CreateFieldQuery(Analyzer analyzer, Occur operator,
String field, String queryText, Boolean quoted, Int32 phraseSlop)
      at Lucene.Net.Util.QueryBuilder.CreateBooleanQuery(String field, String queryText, Occur
operator)```
   
   I decompiled the .dll's to verify the class property exists. 
   However I noticed in changelog for the versions many items were marked Internal instead
of public.
   But both `.Debugging` and `.Configuration` namespaces are internal to the main `Lucene.Net`
dll, so it couldn't possibly lack access, right?
   I'm not quite sure how it's failing to resolve the `Properties` property via `DefaultConfigurationFactory`
 during the constructors of the `StandardAnalyzer`, or `SimpleAnalyzer`.
   
   Can anyone potentially point me in the right direction on this issue? Am at a grinding
halt. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message