You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Tupitsyn (JIRA)" <ji...@apache.org> on 2017/09/26 15:09:00 UTC

[jira] [Updated] (IGNITE-5730) .NET: Failed to load ignite.jni.dll when starting up multiple nodes

     [ https://issues.apache.org/jira/browse/IGNITE-5730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Tupitsyn updated IGNITE-5730:
-----------------------------------
    Description: 
When starting multiple nodes at once (with a script of some kind), failure to load unmanaged dll can occur:

{code}
set IGNITE_NATIVE_TEST_CLASSPATH=true

FOR /L %%A IN (1,1,20) DO (
  start Apache.Ignite.exe
)
{code}

Exception:
{code}
ERROR: System.TypeInitializationException: The type initializer for 'Apache.Ignite.Core.Impl.Unmanaged.UnmanagedUtils' threw an exception. ---> Apache.Ignite.Core.Common.IgniteException: Failed to load ignite.jni.dll: 126
   at Apache.Ignite.Core.Impl.Unmanaged.UnmanagedUtils..cctor()
   --- End of inner exception stack trace ---
   at Apache.Ignite.Core.Impl.Unmanaged.UnmanagedUtils.Initialize()
   at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String configJvmDllPath, ILogger log)
   at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
   at Apache.Ignite.IgniteRunner.Main(String[] args)
{code}

Error codes may be 5 (ERROR_ACCESS_DENIED) or 126 (ERROR_MOD_NOT_FOUND).

  was:
When starting multiple nodes at once (with a script of some kind), failure to load unmanaged dll can occur:

{code}
for (int i = 0; i < 30; i++)
{
	Process.Start(@"cmd.exe", @"/k Apache.Ignite.exe");
}
{code}

Exception:
{code}
ERROR: System.TypeInitializationException: The type initializer for 'Apache.Ignite.Core.Impl.Unmanaged.UnmanagedUtils' threw an exception. ---> Apache.Ignite.Core.Common.IgniteException: Failed to load ignite.jni.dll: 126
   at Apache.Ignite.Core.Impl.Unmanaged.UnmanagedUtils..cctor()
   --- End of inner exception stack trace ---
   at Apache.Ignite.Core.Impl.Unmanaged.UnmanagedUtils.Initialize()
   at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String configJvmDllPath, ILogger log)
   at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
   at Apache.Ignite.IgniteRunner.Main(String[] args)
{code}

Error codes may be 5 (ERROR_ACCESS_DENIED) or 126 (ERROR_MOD_NOT_FOUND).


> .NET: Failed to load ignite.jni.dll when starting up multiple nodes
> -------------------------------------------------------------------
>
>                 Key: IGNITE-5730
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5730
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>    Affects Versions: 2.0
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>              Labels: .NET
>
> When starting multiple nodes at once (with a script of some kind), failure to load unmanaged dll can occur:
> {code}
> set IGNITE_NATIVE_TEST_CLASSPATH=true
> FOR /L %%A IN (1,1,20) DO (
>   start Apache.Ignite.exe
> )
> {code}
> Exception:
> {code}
> ERROR: System.TypeInitializationException: The type initializer for 'Apache.Ignite.Core.Impl.Unmanaged.UnmanagedUtils' threw an exception. ---> Apache.Ignite.Core.Common.IgniteException: Failed to load ignite.jni.dll: 126
>    at Apache.Ignite.Core.Impl.Unmanaged.UnmanagedUtils..cctor()
>    --- End of inner exception stack trace ---
>    at Apache.Ignite.Core.Impl.Unmanaged.UnmanagedUtils.Initialize()
>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String configJvmDllPath, ILogger log)
>    at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
>    at Apache.Ignite.IgniteRunner.Main(String[] args)
> {code}
> Error codes may be 5 (ERROR_ACCESS_DENIED) or 126 (ERROR_MOD_NOT_FOUND).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)