On 09.12.2009 14:57, Johannes Drachenfels wrote:
Hi,



sorry for re-posting - I am new to this list...



I am switching from lucene.net 2.0.0.4 to lucene.net 2.9.1.1 and I have
problems in a very early state.



With version 2.0.0.4 it works fine!

With version 2.9.1.1 on Microsoft it works fine

With version 2.9.1.1 on linux I always get the following errors:



################################

System.TypeInitializationException: An exception was thrown by the type
initializer for Lucene.Net.Store.FSDirectory --->
System.TypeInitializationException: An exception was thrown by the type
initializer for Lucene.Net.Util.Constants --->
System.NullReferenceException: Object reference not set to an instance
of an object

   at Lucene.Net.Util.Constants..cctor () [0x00000]

   --- End of inner exception stack trace ---

   at Lucene.Net.Store.FSDirectory..cctor () [0x00000]

   --- End of inner exception stack trace ---

   at ConsoleApplication1.Module1.Main () [0x00000]


This is probably caused by this line in Lucene.Net.Util.Constants.cs:

public static readonly System.String OS_NAME = System.Environment.GetEnvironmentVariable("OS");

Try to assign some value to the env var "OS":

        OS=foo mono yourapp.exe

Robert

Reply via email to