Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-6675

.NET: IGNITE_HOME is not detected automatically when using IgniteOutputCacheProvider



    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3
    • 2.3
    • platforms
    • Visual Studio Community 2015 version 14.0.25431.01 update 3
      .NET Framework version 4.7.02046
      64bit version of IIS


      Steps to reproduce:
      1) Create a new C# Web application in the MS Visual Studio:
      File -> New -> Project -> Visual C# -> Web -> ASP.NET Web Application

      2) Install Apache.Ignite.AspNet NuGet package

      3) Open Web.config file and add following code into beginning of "configuration" section:

      <section name="igniteConfiguration" type="Apache.Ignite.Core.IgniteConfigurationSection, Apache.Ignite.Core" />
      <cacheConfiguration name='myWebCache' />

      And following code into beginning of "system.web" section:

      <outputCache defaultProvider="apacheIgnite">
      <add name="apacheIgnite" type="Apache.Ignite.AspNet.IgniteOutputCacheProvider, Apache.Ignite.AspNet" igniteConfigurationSectionName="igniteConfiguration" cacheName="myWebCache" />
      <sessionState mode="Custom" customProvider="IgniteSessionStateProvider">
      <add name="IgniteSessionStateProvider"
      type="Apache.Ignite.AspNet.IgniteSessionStateStoreProvider, Apache.Ignite.AspNet" />

      Open Default.aspx.cs file and add the following to Page_Load method:

      Session["test"] = "abc";

      4) Run project

      Following exception appears in browser:

      Configuration Error
      Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 
      Parser Error Message: Failed to initialize Apache.Ignite.AspNet.IgniteSessionStateStoreProvider: Apache.Ignite.Core.Common.IgniteException: Failed to initialize JVM. ---> Apache.Ignite.Core.Common.IgniteException: Java class is not found (did you set IGNITE_HOME environment variable?): org/apache/ignite/internal/processors/platform/utils/PlatformUtils ---> Apache.Ignite.Core.Common.JavaException
        --- End of inner exception stack trace ---
        --- End of inner exception stack trace ---
        at Apache.Ignite.Core.Impl.Unmanaged.UnmanagedCallbacks.Error(Void* target, Int32 errType, SByte* errClsChars, Int32 errClsCharsLen, SByte* errMsgChars, Int32 errMsgCharsLen, SByte* stackTraceChars, Int32 stackTraceCharsLen, Void* errData, Int32 errDataLen)
        at Apache.Ignite.Core.Impl.Unmanaged.IgniteJniNativeMethods.CreateContext(Void* opts, Int32 optsLen, Void* cbs)
        at Apache.Ignite.Core.Impl.IgniteManager.CreateJvm(IgniteConfiguration cfg, UnmanagedCallbacks cbs)
        at Apache.Ignite.Core.Impl.IgniteManager.CreateJvmContext(IgniteConfiguration cfg, UnmanagedCallbacks cbs, ILogger log)
        at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
        at Apache.Ignite.AspNet.Impl.ConfigUtil.InitializeCache[TK,TV](NameValueCollection config, Type callerType, String defaultCacheName)
      Source Error: 
      Line 29:     <sessionState mode="Custom" customProvider="IgniteSessionStateProvider">
      Line 30:       <providers>
      Line 31:         <add name="IgniteSessionStateProvider" type="Apache.Ignite.AspNet.IgniteSessionStateStoreProvider, Apache.Ignite.AspNet" />
      Line 32:       </providers>
      Line 33:     </sessionState>
      Source File: c:\visual studio 2015\Projects\WebApplication10\WebApplication10\web.config    Line: 31 


        Issue Links



              ptupitsyn Pavel Tupitsyn
              izaporozhtseva Irina Zaporozhtseva
              0 Vote for this issue
              3 Start watching this issue