ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Tupitsyn (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (IGNITE-6675) .NET: IGNITE_HOME is not detected automatically when using IgniteOutputCacheProvider
Date Thu, 19 Oct 2017 13:38:00 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-6675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16211056#comment-16211056
] 

Pavel Tupitsyn edited comment on IGNITE-6675 at 10/19/17 1:37 PM:
------------------------------------------------------------------

Reproduced the problem.
* {{IgniteConfiguration.IgniteHome}} is being detected correctly (points to {{c:\w\temp\WebApplication1\WebApplication1\bin}}).
* JARs are in place
* Same IgniteHome works well in Console application
* Same code works with ignite-2.2


was (Author: ptupitsyn):
Reproduced the problem.
* {{IgniteConfiguration.IgniteHome}} is being detected correctly (points to {{c:\w\temp\WebApplication1\WebApplication1\bin}}).
* JARs are in place
* Same IgniteHome works well in Console application

> .NET: 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
>            Assignee: Pavel Tupitsyn
>              Labels: .NET, NuGet
>             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)

Mime
View raw message