v.2.7.5 jvm.dll error=DLL could not be loaded

classic Classic list List threaded Threaded
6 messages Options
vladtovbin vladtovbin
Reply | Threaded
Open this post in threaded view
|

v.2.7.5 jvm.dll error=DLL could not be loaded

Hi. I have the latest version of Ignite on Win 2016 x64. JDK v.12 x64 is
installed and referenced.
Running Ignite using \bin\ignite.bat works fine. I'm trying to have Ignite
launch as a service, but running \platforms\dotnet\bin\Apache.Ignite.exe
produces this error, jvm.dll error=DLL could not be loaded.

Does not matter if I run it as a service, or from admin cmd prompt.
I understand from an earlier post that MFC 2010 redistributable is no longer
needed to be installed in the latest version.

Please help figure out what else may be missing.
Thanks



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
vladtovbin vladtovbin
Reply | Threaded
Open this post in threaded view
|

Re: v.2.7.5 jvm.dll error=DLL could not be loaded

Installing 2010 MFC redistributable actually fixed the issue. Thought it was
not needed in the latest version, but I guess it still is.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
ptupitsyn ptupitsyn
Reply | Threaded
Open this post in threaded view
|

Re: v.2.7.5 jvm.dll error=DLL could not be loaded

Hi Vlad,

I see that the problem is solved, but do you have the full error message?

Thanks,
Pavel

On Tue, Sep 3, 2019 at 8:04 AM vladtovbin <[hidden email]> wrote:
Installing 2010 MFC redistributable actually fixed the issue. Thought it was
not needed in the latest version, but I guess it still is.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
vladtovbin vladtovbin
Reply | Threaded
Open this post in threaded view
|

Re: v.2.7.5 jvm.dll error=DLL could not be loaded

What's crazy is that I just tried the same thing on another identical server
and getting the error again, even with c++ redistributable package
installed. Confirmed jmv dll is at the first path location below, and ignite
still works if launched from \bin folder.
Any suggestions ?
Here's the full error:

C:\Apache\apache-ignite-2.7.5-bin\platforms\dotnet\bin>apache.ignite
ERROR: Apache.Ignite.Core.Common.IgniteException: Failed to load jvm.dll:
[option=JAVA_HOME, path=C:\Program Files\Java\jdk-12.0.2\bin\server\jvm.dll,
error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be caused
by missing dependencies. ]
[option=JAVA_HOME, path=C:\Program Files\Java\jdk-12.0.2\bin\client\jvm.dll,
error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be caused
by missing dependencies. ]
[option=JAVA_HOME, path=C:\Program
Files\Java\jdk-12.0.2\jre\bin\server\jvm.dll, error=DLL could not be loaded
(126: ERROR_MOD_NOT_FOUND). This can be caused by missing dependencies. ]
[option=JAVA_HOME, path=C:\Program
Files\Java\jdk-12.0.2\jre\bin\client\jvm.dll, error=DLL could not be loaded
(126: ERROR_MOD_NOT_FOUND). This can be caused by missing dependencies. ]
[option=JAVA_HOME, path=C:\Program
Files\Java\jdk-12.0.2\jre\bin\default\jvm.dll, error=DLL could not be loaded
(126: ERROR_MOD_NOT_FOUND). This can be caused by missing dependencies. ]
   at Apache.Ignite.Core.Impl.Unmanaged.Jni.JvmDll.Load(String
configJvmDllPath, ILogger log)
   at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
   at Apache.Ignite.IgniteRunner.Main(String[] args)




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
ilya.kasnacheev ilya.kasnacheev
Reply | Threaded
Open this post in threaded view
|

Re: v.2.7.5 jvm.dll error=DLL could not be loaded

Hello!

I would imagine that JVM is 32-bit but binary is 64-bit. Or vice versa. You can also check the dependencies of jvm.dll with some DLL introspection tools.

Regards.
--
Ilya Kasnacheev


чт, 5 сент. 2019 г. в 03:33, vladtovbin <[hidden email]>:
What's crazy is that I just tried the same thing on another identical server
and getting the error again, even with c++ redistributable package
installed. Confirmed jmv dll is at the first path location below, and ignite
still works if launched from \bin folder.
Any suggestions ?
Here's the full error:

C:\Apache\apache-ignite-2.7.5-bin\platforms\dotnet\bin>apache.ignite
ERROR: Apache.Ignite.Core.Common.IgniteException: Failed to load jvm.dll:
[option=JAVA_HOME, path=C:\Program Files\Java\jdk-12.0.2\bin\server\jvm.dll,
error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be caused
by missing dependencies. ]
[option=JAVA_HOME, path=C:\Program Files\Java\jdk-12.0.2\bin\client\jvm.dll,
error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be caused
by missing dependencies. ]
[option=JAVA_HOME, path=C:\Program
Files\Java\jdk-12.0.2\jre\bin\server\jvm.dll, error=DLL could not be loaded
(126: ERROR_MOD_NOT_FOUND). This can be caused by missing dependencies. ]
[option=JAVA_HOME, path=C:\Program
Files\Java\jdk-12.0.2\jre\bin\client\jvm.dll, error=DLL could not be loaded
(126: ERROR_MOD_NOT_FOUND). This can be caused by missing dependencies. ]
[option=JAVA_HOME, path=C:\Program
Files\Java\jdk-12.0.2\jre\bin\default\jvm.dll, error=DLL could not be loaded
(126: ERROR_MOD_NOT_FOUND). This can be caused by missing dependencies. ]
   at Apache.Ignite.Core.Impl.Unmanaged.Jni.JvmDll.Load(String
configJvmDllPath, ILogger log)
   at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
   at Apache.Ignite.IgniteRunner.Main(String[] args)




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
vladtovbin vladtovbin
Reply | Threaded
Open this post in threaded view
|

Re: v.2.7.5 jvm.dll error=DLL could not be loaded

No, both are 64-bit. Found a solution, and it's a bit of an odd one. I had to
have both JDK and JRE installed for this error to go away. Even though JDK
is referenced in JAVA_HOME, it needed JRE installed for some reason.
And what's also a bit confusing is that 'regular' Apache Ignite launched
from \bin worked fine without JRE, but Apache.Ignite.Net would not work
without it.
Thanks for the replies though.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/