Irina Zaporozhtseva created IGNITE-6675:
-------------------------------------------
Summary: IGNITE_HOME is not detected automatically when using
IgniteOutputCacheProvider
Key: IGNITE-6675
URL: https://issues.apache.org/jira/browse/IGNITE-6675
Project: Ignite
Issue Type: Bug
Security Level: Public (Viewable by anyone)
Components: platforms
Affects Versions: 2.3
Environment: Visual Studio Community 2015 version 14.0.25431.01 update
3
.NET Framework version 4.7.02046
64bit version of IIS
Reporter: Irina Zaporozhtseva
Fix For: 2.3
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:
{code:java}
<configSections>
<section name="igniteConfiguration"
type="Apache.Ignite.Core.IgniteConfigurationSection, Apache.Ignite.Core" />
</configSections>
<igniteConfiguration>
<cacheConfiguration>
<cacheConfiguration name='myWebCache' />
</cacheConfiguration>
</igniteConfiguration>
{code}
And following code into beginning of "system.web" section:
{code:java}
<caching>
<outputCache defaultProvider="apacheIgnite">
<providers>
<add name="apacheIgnite" type="Apache.Ignite.AspNet.IgniteOutputCacheProvider,
Apache.Ignite.AspNet" igniteConfigurationSectionName="igniteConfiguration"
cacheName="myWebCache" />
</providers>
</outputCache>
</caching>
<sessionState mode="Custom" customProvider="IgniteSessionStateProvider">
<providers>
<add name="IgniteSessionStateProvider"
type="Apache.Ignite.AspNet.IgniteSessionStateStoreProvider,
Apache.Ignite.AspNet" />
</providers>
</sessionState>
{code}
Open Default.aspx.cs file and add the following to Page_Load method:
{code:java}
Session["test"] = "abc";
{code}
4) Run project
Following exception appears in browser:
{code}
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
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)