You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Patrick Brunmayr <pa...@kpibench.com> on 2017/09/29 14:51:03 UTC

Ignite.NET 2.2 crashes on startup without any information

Hello

I am using Visual Studio 2017 and have installed Apache Ignite via NuGet.
Also checked the VC++ Redis is installed.

Tried to run this little code

try
{
var ignite = Ignition.Start();
}
catch (Exception e)
{
Console.WriteLine(e);
}

My app terminates with following output

 ConsoleApp1.exe' has exited with code 1 (0x1)

It just crashes without any information

My setup


   - Windows 10 64 Bit
   - Visual Studio 2017
   - jdk1.8.0_144
   - Ignite 2.2


How can i know whats going on without any information. Any ideas ?

Thx

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Patrick Brunmayr <pa...@kpibench.com>.
 I have Java SE Development Kit 8u144

Maybe it did not work because the jdk and the jre have not been at the same
root level ? The JRE was installed inside the JDK folder. Maybe thats the
bug

thx



2017-09-29 18:09 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:

> Ignite.NET uses multiple lookup paths to locate jvm.dll:
>
> https://github.com/apache/ignite/blob/master/modules/
> platforms/dotnet/Apache.Ignite.Core/Impl/IgniteUtils.cs#L49
>
> // JRE paths@"bin\server",@"bin\client",
>  // JDK paths@"jre\bin\server",@"jre\bin\client",@"jre\bin\default"
>
>
> On my machine JAVA_HOME points to "c:\Program Files\Java\jdk1.7.0_75", and
> Ignite.NET works fine.
> Same with Java 8 on another machine.
>
> Which Java version do you have? Is it Oracle or something else?
>
> As a workaround you can set IgniteConfiguration.JvmDllPath explicitly.
>
> On Fri, Sep 29, 2017 at 7:00 PM, Patrick Brunmayr <
> patrick.brunmayr@kpibench.com> wrote:
>
>> I just removed the JDK and reinstalled it properly.
>>
>> BUT
>>
>> I need JAVA_HOME for other applications like cassandra. According to
>> internet JAVA_HOME should point to the JDK installation dir right ?
>>
>> But when i do this Ignite tries to load %JAVA_HOME%\bin\server.dll which
>> is not present in the JDK folder. It's only available in the JRE folder.
>>
>> How can i fix that without altering my JAVA_HOME ?
>>
>> Thx
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> 2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>
>>> You don't have to copy these files manually. Something is wrong with
>>> your setup.
>>> I would advise to remove and reinstall the JRE/JDK.
>>>
>>> By the way, JAVA_HOME is not necessary with Oracle JRE/JDK, Ignite.NET
>>> detects it automatically.
>>>
>>> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
>>> patrick.brunmayr@kpibench.com> wrote:
>>>
>>>> JAVA_HOME points to my JDK folder!
>>>>
>>>> There was a problem first! There was no bin\server\jvm.dll there Dont
>>>> know why so i copied the jvm.dl from the embedded jdk\jre\bin\server to
>>>> jdk\bin\server
>>>>
>>>> the funny thing is! I was able to run my app about 10 times with no
>>>> problems and suddenly it stopped working.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29. Sep. 2017 um
>>>> 17:34:
>>>>
>>>>> > Error occurred during initialization of VM
>>>>> > Unable to load native library: Can't find dependent libraries
>>>>>
>>>>> What is your JAVA_HOME?
>>>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK install is
>>>>> corrupted.
>>>>>
>>>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>
>>>>>> I run my app now from a cmd and this is the output
>>>>>>
>>>>>> Error occurred during initialization of VM
>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>
>>>>>>
>>>>>>
>>>>>> Patrick Brunmayr <pa...@kpibench.com> schrieb am Fr. 29.
>>>>>> Sep. 2017 um 17:30:
>>>>>>
>>>>>>> There is no output from visual studio! When i set a break point to
>>>>>>> Ignition.Start and try to step over it crashes imediately! No output!
>>>>>>> The only output visual studio gives me is that the app exited with
>>>>>>> code ox1
>>>>>>>
>>>>>>> The output i got was from running the Apache.Ignite.exe directly
>>>>>>> that was copied to the bin\Debug folder!
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb am Fr. 29.
>>>>>>> Sep. 2017 um 17:22:
>>>>>>>
>>>>>>>> Patrick,
>>>>>>>>
>>>>>>>> Is that output from Visual Studio console window? Ignite writes
>>>>>>>> information to standard output and error and not to the Visual Studio
>>>>>>>> console. Can you either run your app from cmd.exe or put a breakpoint on
>>>>>>>> the last line and see output in the cmd.exe that Visual Studio opens?
>>>>>>>>
>>>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>
>>>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>>>
>>>>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>>>>
>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>>>
>>>>>>>>> Where should ignite logs reside or how can i activate them ?
>>>>>>>>>
>>>>>>>>> Thx
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>>>
>>>>>>>>>> Hi Patrick,
>>>>>>>>>>
>>>>>>>>>> Would you please share ignite logs?
>>>>>>>>>>
>>>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hello
>>>>>>>>>>>
>>>>>>>>>>> I am using Visual Studio 2017 and have installed Apache Ignite
>>>>>>>>>>> via NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>>>
>>>>>>>>>>> Tried to run this little code
>>>>>>>>>>>
>>>>>>>>>>> try
>>>>>>>>>>> {
>>>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>>>> }
>>>>>>>>>>> catch (Exception e)
>>>>>>>>>>> {
>>>>>>>>>>> Console.WriteLine(e);
>>>>>>>>>>> }
>>>>>>>>>>>
>>>>>>>>>>> My app terminates with following output
>>>>>>>>>>>
>>>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>>>
>>>>>>>>>>> It just crashes without any information
>>>>>>>>>>>
>>>>>>>>>>> My setup
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>>>    - Ignite 2.2
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> How can i know whats going on without any information. Any ideas
>>>>>>>>>>> ?
>>>>>>>>>>>
>>>>>>>>>>> Thx
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Best regards,
>>>>>>>>>> Andrey V. Mashenkov
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Best regards,
>>>>>>>> Alexey
>>>>>>>>
>>>>>>>
>>>>>
>>>
>>
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Alexey Kukushkin <ku...@gmail.com>.
BTW, I have MSVC++ 2010 redistributable.

On Fri, Sep 29, 2017 at 7:13 PM, Alexey Kukushkin <kukushkinalexey@gmail.com
> wrote:

> Pavel,
>
> It does not work for me - seems same problem. I also have VisualStudio
> 2017 and Oracle JDK 8.144. I suggest we open a ticket and investigate. I
> have jvm.dll inside jre\bin\server\jvm.dll but for some reason Ignite does
> not try it.
>
> Apache.Ignite.Core.Common.IgniteException: Failed to load jvm.dll:
> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\server\jvm.dll,
> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
> Redistributable Package is installed (https://www.microsoft.com/en-
> us/download/details.aspx?id=14632).]
> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\client\jvm.dll,
> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
> Redistributable Package is installed (https://www.microsoft.com/en-
> us/download/details.aspx?id=14632).]
> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll,
> error=DLL could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often
> caused by x64/x86 mismatch. Current process runs in x86 mode, and DLL is
> not x86.]
> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\client\jvm.dll,
> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
> Redistributable Package is installed (https://www.microsoft.com/en-
> us/download/details.aspx?id=14632).]
> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\default\jvm.dll,
> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
> Redistributable Package is installed (https://www.microsoft.com/en-
> us/download/details.aspx?id=14632).]
>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadJvmDll(String
> configJvmDllPath, ILogger log)
>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String
> configJvmDllPath, ILogger log)
>    at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
>    at Apache.Ignite.Core.Ignition.Start()
>    at ConsoleApp1.Program.Main(String[] args) in
> C:\Users\kukushal\Documents\Samples\ConsoleApp1\ConsoleApp1\Program.cs:line
> 16
>
>
>
>
> On Fri, Sep 29, 2017 at 7:09 PM, Pavel Tupitsyn <pt...@apache.org>
> wrote:
>
>> Ignite.NET uses multiple lookup paths to locate jvm.dll:
>>
>> https://github.com/apache/ignite/blob/master/modules/platfor
>> ms/dotnet/Apache.Ignite.Core/Impl/IgniteUtils.cs#L49
>>
>> // JRE paths@"bin\server",@"bin\client",
>>  // JDK paths@"jre\bin\server",@"jre\bin\client",@"jre\bin\default"
>>
>>
>> On my machine JAVA_HOME points to "c:\Program Files\Java\jdk1.7.0_75",
>> and Ignite.NET works fine.
>> Same with Java 8 on another machine.
>>
>> Which Java version do you have? Is it Oracle or something else?
>>
>> As a workaround you can set IgniteConfiguration.JvmDllPath explicitly.
>>
>> On Fri, Sep 29, 2017 at 7:00 PM, Patrick Brunmayr <
>> patrick.brunmayr@kpibench.com> wrote:
>>
>>> I just removed the JDK and reinstalled it properly.
>>>
>>> BUT
>>>
>>> I need JAVA_HOME for other applications like cassandra. According to
>>> internet JAVA_HOME should point to the JDK installation dir right ?
>>>
>>> But when i do this Ignite tries to load %JAVA_HOME%\bin\server.dll which
>>> is not present in the JDK folder. It's only available in the JRE folder.
>>>
>>> How can i fix that without altering my JAVA_HOME ?
>>>
>>> Thx
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> 2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>
>>>> You don't have to copy these files manually. Something is wrong with
>>>> your setup.
>>>> I would advise to remove and reinstall the JRE/JDK.
>>>>
>>>> By the way, JAVA_HOME is not necessary with Oracle JRE/JDK, Ignite.NET
>>>> detects it automatically.
>>>>
>>>> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>
>>>>> JAVA_HOME points to my JDK folder!
>>>>>
>>>>> There was a problem first! There was no bin\server\jvm.dll there Dont
>>>>> know why so i copied the jvm.dl from the embedded jdk\jre\bin\server to
>>>>> jdk\bin\server
>>>>>
>>>>> the funny thing is! I was able to run my app about 10 times with no
>>>>> problems and suddenly it stopped working.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29. Sep. 2017 um
>>>>> 17:34:
>>>>>
>>>>>> > Error occurred during initialization of VM
>>>>>> > Unable to load native library: Can't find dependent libraries
>>>>>>
>>>>>> What is your JAVA_HOME?
>>>>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK install is
>>>>>> corrupted.
>>>>>>
>>>>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>
>>>>>>> I run my app now from a cmd and this is the output
>>>>>>>
>>>>>>> Error occurred during initialization of VM
>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Patrick Brunmayr <pa...@kpibench.com> schrieb am Fr. 29.
>>>>>>> Sep. 2017 um 17:30:
>>>>>>>
>>>>>>>> There is no output from visual studio! When i set a break point to
>>>>>>>> Ignition.Start and try to step over it crashes imediately! No output!
>>>>>>>> The only output visual studio gives me is that the app exited with
>>>>>>>> code ox1
>>>>>>>>
>>>>>>>> The output i got was from running the Apache.Ignite.exe directly
>>>>>>>> that was copied to the bin\Debug folder!
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb am Fr. 29.
>>>>>>>> Sep. 2017 um 17:22:
>>>>>>>>
>>>>>>>>> Patrick,
>>>>>>>>>
>>>>>>>>> Is that output from Visual Studio console window? Ignite writes
>>>>>>>>> information to standard output and error and not to the Visual Studio
>>>>>>>>> console. Can you either run your app from cmd.exe or put a breakpoint on
>>>>>>>>> the last line and see output in the cmd.exe that Visual Studio opens?
>>>>>>>>>
>>>>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>
>>>>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>>>>
>>>>>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>>>>>
>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>>>>
>>>>>>>>>> Where should ignite logs reside or how can i activate them ?
>>>>>>>>>>
>>>>>>>>>> Thx
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>>>>
>>>>>>>>>>> Hi Patrick,
>>>>>>>>>>>
>>>>>>>>>>> Would you please share ignite logs?
>>>>>>>>>>>
>>>>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hello
>>>>>>>>>>>>
>>>>>>>>>>>> I am using Visual Studio 2017 and have installed Apache Ignite
>>>>>>>>>>>> via NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>>>>
>>>>>>>>>>>> Tried to run this little code
>>>>>>>>>>>>
>>>>>>>>>>>> try
>>>>>>>>>>>> {
>>>>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>>>>> }
>>>>>>>>>>>> catch (Exception e)
>>>>>>>>>>>> {
>>>>>>>>>>>> Console.WriteLine(e);
>>>>>>>>>>>> }
>>>>>>>>>>>>
>>>>>>>>>>>> My app terminates with following output
>>>>>>>>>>>>
>>>>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>>>>
>>>>>>>>>>>> It just crashes without any information
>>>>>>>>>>>>
>>>>>>>>>>>> My setup
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>>>>    - Ignite 2.2
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> How can i know whats going on without any information. Any
>>>>>>>>>>>> ideas ?
>>>>>>>>>>>>
>>>>>>>>>>>> Thx
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Best regards,
>>>>>>>>>>> Andrey V. Mashenkov
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Best regards,
>>>>>>>>> Alexey
>>>>>>>>>
>>>>>>>>
>>>>>>
>>>>
>>>
>>
>
>
> --
> Best regards,
> Alexey
>



-- 
Best regards,
Alexey

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Pavel Tupitsyn <pt...@apache.org>.
Hi Ilya,

Yes, this requirement is stated in the documentation in Getting Started [1]
and Troubleshooting [2] sections.

By the way, this is no longer the case since 2.4 onwards.

[1] https://apacheignite-net.readme.io/v2.2/docs/getting-started-2
[2] https://apacheignite-net.readme.io/v2.2/docs/troubleshooting

On Tue, Jul 31, 2018 at 11:16 AM ilya.kasnacheev <il...@gmail.com>
wrote:

> Hello!
>
> I have just witnessed this problem and was able to fix it by installing MFC
> Redistributable 2010.
>
> Apparently jvm.dll depends on msvcr100.dll and it can get misplaced even on
> modern Windows as to require reinstall of this component.
>
> Regards,
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by "ilya.kasnacheev" <il...@gmail.com>.
Hello!

I have just witnessed this problem and was able to fix it by installing MFC
Redistributable 2010.

Apparently jvm.dll depends on msvcr100.dll and it can get misplaced even on
modern Windows as to require reinstall of this component.

Regards,



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

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Patrick Brunmayr <pa...@kpibench.com>.
Okay tried the setup on another station and it works like a charme! Seems
my box has a bad setup. Don't know how to fix but i know its an issue of my
setup.

Thx a lot guys

Patrick Brunmayr <pa...@kpibench.com> schrieb am Fr. 29. Sep.
2017 um 19:20:

> i will try on monday and give feedback
>
> Thx for your help so far
>
> 2017-09-29 19:15 GMT+02:00 Patrick Brunmayr <patrick.brunmayr@kpibench.com
> >:
>
>>
>>    1. jre\bin\server\jvm.dll is there
>>
>>    2. I can try it
>>
>>
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Patrick Brunmayr <pa...@kpibench.com>.
i will try on monday and give feedback

Thx for your help so far

2017-09-29 19:15 GMT+02:00 Patrick Brunmayr <pa...@kpibench.com>:

>
>    1. jre\bin\server\jvm.dll is there
>
>    2. I can try it
>
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Patrick Brunmayr <pa...@kpibench.com>.
   1. jre\bin\server\jvm.dll is there

   2. I can try it

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Pavel Tupitsyn <pt...@apache.org>.
1) Does it have "jre\bin\server\jvm.dll" though?
2) Can you set IgniteConfiguretion.JvmDllPath to point to jvm.dll, wherever
it is on your machine?

On Fri, Sep 29, 2017 at 8:10 PM, Patrick Brunmayr <
patrick.brunmayr@kpibench.com> wrote:

>
>    1. No. I am running x64 Build not Any Cpu
>
>    2. No i have Oracle JDK 8.144 64 Bit and pointed my JAVA_HOME there (
>    BUT JDK Folder does not have bin\server\jvm.dll )
>
>
> 2017-09-29 19:05 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>:
>
>> Patrick,
>>
>> Can you please confirm two things:
>>
>>
>>    1. This is the only output you see if you run your app build for "Any
>>    CPU" in cmd:
>>    Error occurred during initialization of VM
>>    Unable to load native library: Can't find dependent libraries
>>
>>    2. You have Oracle JDK 8.144, which is 32bit (installed in C:\Program
>>    Files x86\...) and pointed by JAVA_HOME. Is that right? Or you have 64bit
>>    JVM?
>>
>>
>> On Fri, Sep 29, 2017 at 8:00 PM, Patrick Brunmayr <
>> patrick.brunmayr@kpibench.com> wrote:
>>
>>> it still does not work!
>>>
>>> Thes items are yellow in dependency manager
>>>
>>> API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL
>>> API-MS-WIN-CORE-WINRT-L1-1-0.DLL
>>> API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL
>>> API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL
>>> DCOMP.DLL
>>> IESHIMS.DLL
>>>
>>>
>>> 2017-09-29 18:56 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>:
>>>
>>>> Patrick,
>>>>
>>>> It seems you might have a different problem. My problem was I had Java
>>>> x64 but my console app preferred 32bit JNI library, which could not load
>>>> 64bit jvm.dll. I fixed it by either switching to x64 or unchecking "Prefer
>>>> 32bit" for "Any CPU".
>>>>
>>>> Your errors and behaviour seems different. Let us know if it still does
>>>> not work.
>>>>
>>>>
>>>> On Fri, Sep 29, 2017 at 7:47 PM, Patrick Brunmayr <
>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>
>>>>> okay i try that
>>>>>
>>>>> 2017-09-29 18:44 GMT+02:00 Alexey Kukushkin <kukushkinalexey@gmail.com
>>>>> >:
>>>>>
>>>>>> OK, I solved all my issues. I can run the console app on "Any CPU"
>>>>>> after unchecking "Prefer 32-bit" in the project build properties.
>>>>>>
>>>>>> On Fri, Sep 29, 2017 at 7:39 PM, Patrick Brunmayr <
>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>
>>>>>>> Yes and as i told you there is no exception :)
>>>>>>>
>>>>>>> The output from the console window is
>>>>>>>
>>>>>>> Error occurred during initialization of VM
>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> 2017-09-29 18:37 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>>>>>
>>>>>>>> You said "without any exception" above, but it turns out there is a
>>>>>>>> very good and descriptive exception :)
>>>>>>>> Please make sure to get the exception details and attach them here.
>>>>>>>>
>>>>>>>> If you run Apache.Ignite.exe, do so from a console window, so that
>>>>>>>> you can see the output.
>>>>>>>>
>>>>>>>> On Fri, Sep 29, 2017 at 7:32 PM, Patrick Brunmayr <
>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>
>>>>>>>>> Yes but that is not the problem. I came across that exception and
>>>>>>>>> changed to a x64 build config and rebuilt all. But it still crashes without
>>>>>>>>> any exception
>>>>>>>>>
>>>>>>>>> 2017-09-29 18:30 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>>>>>>>
>>>>>>>>>> > C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll,
>>>>>>>>>> error=DLL could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often
>>>>>>>>>> caused by x64/x86 mismatch. Current process runs in x86 mode, and DLL is
>>>>>>>>>> not x86.]
>>>>>>>>>>
>>>>>>>>>> There is your problem. Ignite.NET found the dll, but there is
>>>>>>>>>> x86-x64 mismatch.
>>>>>>>>>> Make sure your project runs in x64 mode.
>>>>>>>>>> Uncheck "Prefer 32 bit"  in project settings:
>>>>>>>>>> https://ptupitsyn.github.io/images/prefer32bit.png
>>>>>>>>>>
>>>>>>>>>> > I still do not understand why Any CPU does not work.
>>>>>>>>>> Because "Prefer 32 bit" is enabled by default for some reason,
>>>>>>>>>> see above.
>>>>>>>>>>
>>>>>>>>>> On Fri, Sep 29, 2017 at 7:21 PM, Patrick Brunmayr <
>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Did the same like you but now its crashing
>>>>>>>>>>>
>>>>>>>>>>> 2017-09-29 18:19 GMT+02:00 Alexey Kukushkin <
>>>>>>>>>>> kukushkinalexey@gmail.com>:
>>>>>>>>>>>
>>>>>>>>>>>> Patrick,
>>>>>>>>>>>>
>>>>>>>>>>>> I fixed the problem by creating new x64 configuration (set
>>>>>>>>>>>> Platform to "x64") since I have JDK x64 installed. I still do not
>>>>>>>>>>>> understand why Any CPU does not work.
>>>>>>>>>>>>
>>>>>>>>>>>> On Fri, Sep 29, 2017 at 7:15 PM, Patrick Brunmayr <
>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> I got the exact same message like you Alexey
>>>>>>>>>>>>>
>>>>>>>>>>>>> 2017-09-29 18:13 GMT+02:00 Alexey Kukushkin <
>>>>>>>>>>>>> kukushkinalexey@gmail.com>:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Pavel,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> It does not work for me - seems same problem. I also have
>>>>>>>>>>>>>> VisualStudio 2017 and Oracle JDK 8.144. I suggest we open a ticket and
>>>>>>>>>>>>>> investigate. I have jvm.dll inside jre\bin\server\jvm.dll but for some
>>>>>>>>>>>>>> reason Ignite does not try it.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Apache.Ignite.Core.Common.IgniteException: Failed to load
>>>>>>>>>>>>>> jvm.dll:
>>>>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program
>>>>>>>>>>>>>> Files\Java\jdk1.8.0_144\bin\server\jvm.dll, error=DLL could
>>>>>>>>>>>>>> not be loaded (126: ERROR_MOD_NOT_FOUND). This can be caused by missing
>>>>>>>>>>>>>> dependencies. Make sure that Microsoft Visual C++ 2010 Redistributable
>>>>>>>>>>>>>> Package is installed (https://www.microsoft.com/en-
>>>>>>>>>>>>>> us/download/details.aspx?id=14632).]
>>>>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program
>>>>>>>>>>>>>> Files\Java\jdk1.8.0_144\bin\client\jvm.dll, error=DLL could
>>>>>>>>>>>>>> not be loaded (126: ERROR_MOD_NOT_FOUND). This can be caused by missing
>>>>>>>>>>>>>> dependencies. Make sure that Microsoft Visual C++ 2010 Redistributable
>>>>>>>>>>>>>> Package is installed (https://www.microsoft.com/en-
>>>>>>>>>>>>>> us/download/details.aspx?id=14632).]
>>>>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program
>>>>>>>>>>>>>> Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll, error=DLL
>>>>>>>>>>>>>> could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often caused by
>>>>>>>>>>>>>> x64/x86 mismatch. Current process runs in x86 mode, and DLL is not x86.]
>>>>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program
>>>>>>>>>>>>>> Files\Java\jdk1.8.0_144\jre\bin\client\jvm.dll, error=DLL
>>>>>>>>>>>>>> could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be caused by
>>>>>>>>>>>>>> missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>>>>>>>> Redistributable Package is installed (
>>>>>>>>>>>>>> https://www.microsoft.com/en-us/download/details.aspx?id=14
>>>>>>>>>>>>>> 632).]
>>>>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program
>>>>>>>>>>>>>> Files\Java\jdk1.8.0_144\jre\bin\default\jvm.dll, error=DLL
>>>>>>>>>>>>>> could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be caused by
>>>>>>>>>>>>>> missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>>>>>>>> Redistributable Package is installed (
>>>>>>>>>>>>>> https://www.microsoft.com/en-us/download/details.aspx?id=14
>>>>>>>>>>>>>> 632).]
>>>>>>>>>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadJvmDll(String
>>>>>>>>>>>>>> configJvmDllPath, ILogger log)
>>>>>>>>>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String
>>>>>>>>>>>>>> configJvmDllPath, ILogger log)
>>>>>>>>>>>>>>    at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration
>>>>>>>>>>>>>> cfg)
>>>>>>>>>>>>>>    at Apache.Ignite.Core.Ignition.Start()
>>>>>>>>>>>>>>    at ConsoleApp1.Program.Main(String[] args) in
>>>>>>>>>>>>>> C:\Users\kukushal\Documents\Samples\ConsoleApp1\ConsoleApp1\Program.cs:line
>>>>>>>>>>>>>> 16
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 7:09 PM, Pavel Tupitsyn <
>>>>>>>>>>>>>> ptupitsyn@apache.org> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Ignite.NET uses multiple lookup paths to locate jvm.dll:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> https://github.com/apache/ignite/blob/master/modules/platfor
>>>>>>>>>>>>>>> ms/dotnet/Apache.Ignite.Core/Impl/IgniteUtils.cs#L49
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> // JRE paths@"bin\server",@"bin\client",
>>>>>>>>>>>>>>>  // JDK paths@"jre\bin\server",@"jre\bin\client",@"jre\bin\default"
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On my machine JAVA_HOME points to "c:\Program
>>>>>>>>>>>>>>> Files\Java\jdk1.7.0_75", and Ignite.NET works fine.
>>>>>>>>>>>>>>> Same with Java 8 on another machine.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Which Java version do you have? Is it Oracle or something
>>>>>>>>>>>>>>> else?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> As a workaround you can set IgniteConfiguration.JvmDllPath
>>>>>>>>>>>>>>> explicitly.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 7:00 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I just removed the JDK and reinstalled it properly.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> BUT
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I need JAVA_HOME for other applications like cassandra.
>>>>>>>>>>>>>>>> According to internet JAVA_HOME should point to the JDK installation dir
>>>>>>>>>>>>>>>> right ?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> But when i do this Ignite tries to load
>>>>>>>>>>>>>>>> %JAVA_HOME%\bin\server.dll which is not present in the JDK folder. It's
>>>>>>>>>>>>>>>> only available in the JRE folder.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> How can i fix that without altering my JAVA_HOME ?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> 2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <
>>>>>>>>>>>>>>>> ptupitsyn@apache.org>:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> You don't have to copy these files manually. Something is
>>>>>>>>>>>>>>>>> wrong with your setup.
>>>>>>>>>>>>>>>>> I would advise to remove and reinstall the JRE/JDK.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> By the way, JAVA_HOME is not necessary with Oracle
>>>>>>>>>>>>>>>>> JRE/JDK, Ignite.NET detects it automatically.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> JAVA_HOME points to my JDK folder!
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> There was a problem first! There was no
>>>>>>>>>>>>>>>>>> bin\server\jvm.dll there Dont know why so i copied the jvm.dl from the
>>>>>>>>>>>>>>>>>> embedded jdk\jre\bin\server to jdk\bin\server
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> the funny thing is! I was able to run my app about 10
>>>>>>>>>>>>>>>>>> times with no problems and suddenly it stopped working.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29.
>>>>>>>>>>>>>>>>>> Sep. 2017 um 17:34:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> > Error occurred during initialization of VM
>>>>>>>>>>>>>>>>>>> > Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> What is your JAVA_HOME?
>>>>>>>>>>>>>>>>>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK
>>>>>>>>>>>>>>>>>>> install is corrupted.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> I run my app now from a cmd and this is the output
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>>>>>>>> Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Patrick Brunmayr <pa...@kpibench.com>
>>>>>>>>>>>>>>>>>>>> schrieb am Fr. 29. Sep. 2017 um 17:30:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> There is no output from visual studio! When i set a
>>>>>>>>>>>>>>>>>>>>> break point to Ignition.Start and try to step over it crashes imediately!
>>>>>>>>>>>>>>>>>>>>> No output!
>>>>>>>>>>>>>>>>>>>>> The only output visual studio gives me is that the app
>>>>>>>>>>>>>>>>>>>>> exited with code ox1
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> The output i got was from running the
>>>>>>>>>>>>>>>>>>>>> Apache.Ignite.exe directly that was copied to the bin\Debug folder!
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb
>>>>>>>>>>>>>>>>>>>>> am Fr. 29. Sep. 2017 um 17:22:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Patrick,
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Is that output from Visual Studio console window?
>>>>>>>>>>>>>>>>>>>>>> Ignite writes information to standard output and error and not to the
>>>>>>>>>>>>>>>>>>>>>> Visual Studio console. Can you either run your app from cmd.exe or put a
>>>>>>>>>>>>>>>>>>>>>> breakpoint on the last line and see output in the cmd.exe that Visual
>>>>>>>>>>>>>>>>>>>>>> Studio opens?
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> I got some more details. Launching Ignite.Exe gives
>>>>>>>>>>>>>>>>>>>>>>> me
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>>>>>>>>>>>> Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Where should ignite logs reside or how can i
>>>>>>>>>>>>>>>>>>>>>>> activate them ?
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>>>>>>>>>>>>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> Hi Patrick,
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> Would you please share ignite logs?
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Hello
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> I am using Visual Studio 2017 and have installed
>>>>>>>>>>>>>>>>>>>>>>>>> Apache Ignite via NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Tried to run this little code
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> try
>>>>>>>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>>>>>>>> catch (Exception e)
>>>>>>>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>>>>>>>> Console.WriteLine(e);
>>>>>>>>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> My app terminates with following output
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> It just crashes without any information
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> My setup
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>>>>>>>>>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>>>>>>>>>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>>>>>>>>>>>>>>>>>    - Ignite 2.2
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> How can i know whats going on without any
>>>>>>>>>>>>>>>>>>>>>>>>> information. Any ideas ?
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>>>>>>>>>>> Andrey V. Mashenkov
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>>>>>>>>> Alexey
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>> Alexey
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Best regards,
>>>>>>>>>>>> Alexey
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Best regards,
>>>>>> Alexey
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Best regards,
>>>> Alexey
>>>>
>>>
>>>
>>
>>
>> --
>> Best regards,
>> Alexey
>>
>
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Alexey Kukushkin <ku...@gmail.com>.
Patrick,

With the configuration above (App built for x64 platform and having x64
Java installed), do you still see this output ?
Error occurred during initialization of VM
Unable to load native library: Can't find dependent libraries

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Patrick Brunmayr <pa...@kpibench.com>.
   1. No. I am running x64 Build not Any Cpu

   2. No i have Oracle JDK 8.144 64 Bit and pointed my JAVA_HOME there (
   BUT JDK Folder does not have bin\server\jvm.dll )


2017-09-29 19:05 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>:

> Patrick,
>
> Can you please confirm two things:
>
>
>    1. This is the only output you see if you run your app build for "Any
>    CPU" in cmd:
>    Error occurred during initialization of VM
>    Unable to load native library: Can't find dependent libraries
>
>    2. You have Oracle JDK 8.144, which is 32bit (installed in C:\Program
>    Files x86\...) and pointed by JAVA_HOME. Is that right? Or you have 64bit
>    JVM?
>
>
> On Fri, Sep 29, 2017 at 8:00 PM, Patrick Brunmayr <
> patrick.brunmayr@kpibench.com> wrote:
>
>> it still does not work!
>>
>> Thes items are yellow in dependency manager
>>
>> API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL
>> API-MS-WIN-CORE-WINRT-L1-1-0.DLL
>> API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL
>> API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL
>> DCOMP.DLL
>> IESHIMS.DLL
>>
>>
>> 2017-09-29 18:56 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>:
>>
>>> Patrick,
>>>
>>> It seems you might have a different problem. My problem was I had Java
>>> x64 but my console app preferred 32bit JNI library, which could not load
>>> 64bit jvm.dll. I fixed it by either switching to x64 or unchecking "Prefer
>>> 32bit" for "Any CPU".
>>>
>>> Your errors and behaviour seems different. Let us know if it still does
>>> not work.
>>>
>>>
>>> On Fri, Sep 29, 2017 at 7:47 PM, Patrick Brunmayr <
>>> patrick.brunmayr@kpibench.com> wrote:
>>>
>>>> okay i try that
>>>>
>>>> 2017-09-29 18:44 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>
>>>> :
>>>>
>>>>> OK, I solved all my issues. I can run the console app on "Any CPU"
>>>>> after unchecking "Prefer 32-bit" in the project build properties.
>>>>>
>>>>> On Fri, Sep 29, 2017 at 7:39 PM, Patrick Brunmayr <
>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>
>>>>>> Yes and as i told you there is no exception :)
>>>>>>
>>>>>> The output from the console window is
>>>>>>
>>>>>> Error occurred during initialization of VM
>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> 2017-09-29 18:37 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>>>>
>>>>>>> You said "without any exception" above, but it turns out there is a
>>>>>>> very good and descriptive exception :)
>>>>>>> Please make sure to get the exception details and attach them here.
>>>>>>>
>>>>>>> If you run Apache.Ignite.exe, do so from a console window, so that
>>>>>>> you can see the output.
>>>>>>>
>>>>>>> On Fri, Sep 29, 2017 at 7:32 PM, Patrick Brunmayr <
>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>
>>>>>>>> Yes but that is not the problem. I came across that exception and
>>>>>>>> changed to a x64 build config and rebuilt all. But it still crashes without
>>>>>>>> any exception
>>>>>>>>
>>>>>>>> 2017-09-29 18:30 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>>>>>>
>>>>>>>>> > C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll,
>>>>>>>>> error=DLL could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often
>>>>>>>>> caused by x64/x86 mismatch. Current process runs in x86 mode, and DLL is
>>>>>>>>> not x86.]
>>>>>>>>>
>>>>>>>>> There is your problem. Ignite.NET found the dll, but there is
>>>>>>>>> x86-x64 mismatch.
>>>>>>>>> Make sure your project runs in x64 mode.
>>>>>>>>> Uncheck "Prefer 32 bit"  in project settings:
>>>>>>>>> https://ptupitsyn.github.io/images/prefer32bit.png
>>>>>>>>>
>>>>>>>>> > I still do not understand why Any CPU does not work.
>>>>>>>>> Because "Prefer 32 bit" is enabled by default for some reason, see
>>>>>>>>> above.
>>>>>>>>>
>>>>>>>>> On Fri, Sep 29, 2017 at 7:21 PM, Patrick Brunmayr <
>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>
>>>>>>>>>> Did the same like you but now its crashing
>>>>>>>>>>
>>>>>>>>>> 2017-09-29 18:19 GMT+02:00 Alexey Kukushkin <
>>>>>>>>>> kukushkinalexey@gmail.com>:
>>>>>>>>>>
>>>>>>>>>>> Patrick,
>>>>>>>>>>>
>>>>>>>>>>> I fixed the problem by creating new x64 configuration (set
>>>>>>>>>>> Platform to "x64") since I have JDK x64 installed. I still do not
>>>>>>>>>>> understand why Any CPU does not work.
>>>>>>>>>>>
>>>>>>>>>>> On Fri, Sep 29, 2017 at 7:15 PM, Patrick Brunmayr <
>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> I got the exact same message like you Alexey
>>>>>>>>>>>>
>>>>>>>>>>>> 2017-09-29 18:13 GMT+02:00 Alexey Kukushkin <
>>>>>>>>>>>> kukushkinalexey@gmail.com>:
>>>>>>>>>>>>
>>>>>>>>>>>>> Pavel,
>>>>>>>>>>>>>
>>>>>>>>>>>>> It does not work for me - seems same problem. I also have
>>>>>>>>>>>>> VisualStudio 2017 and Oracle JDK 8.144. I suggest we open a ticket and
>>>>>>>>>>>>> investigate. I have jvm.dll inside jre\bin\server\jvm.dll but for some
>>>>>>>>>>>>> reason Ignite does not try it.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Apache.Ignite.Core.Common.IgniteException: Failed to load
>>>>>>>>>>>>> jvm.dll:
>>>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program
>>>>>>>>>>>>> Files\Java\jdk1.8.0_144\bin\server\jvm.dll, error=DLL could
>>>>>>>>>>>>> not be loaded (126: ERROR_MOD_NOT_FOUND). This can be caused by missing
>>>>>>>>>>>>> dependencies. Make sure that Microsoft Visual C++ 2010 Redistributable
>>>>>>>>>>>>> Package is installed (https://www.microsoft.com/en-
>>>>>>>>>>>>> us/download/details.aspx?id=14632).]
>>>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program
>>>>>>>>>>>>> Files\Java\jdk1.8.0_144\bin\client\jvm.dll, error=DLL could
>>>>>>>>>>>>> not be loaded (126: ERROR_MOD_NOT_FOUND). This can be caused by missing
>>>>>>>>>>>>> dependencies. Make sure that Microsoft Visual C++ 2010 Redistributable
>>>>>>>>>>>>> Package is installed (https://www.microsoft.com/en-
>>>>>>>>>>>>> us/download/details.aspx?id=14632).]
>>>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program
>>>>>>>>>>>>> Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll, error=DLL
>>>>>>>>>>>>> could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often caused by
>>>>>>>>>>>>> x64/x86 mismatch. Current process runs in x86 mode, and DLL is not x86.]
>>>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program
>>>>>>>>>>>>> Files\Java\jdk1.8.0_144\jre\bin\client\jvm.dll, error=DLL
>>>>>>>>>>>>> could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be caused by
>>>>>>>>>>>>> missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>>>>>>> Redistributable Package is installed (
>>>>>>>>>>>>> https://www.microsoft.com/en-us/download/details.aspx?id=14
>>>>>>>>>>>>> 632).]
>>>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program
>>>>>>>>>>>>> Files\Java\jdk1.8.0_144\jre\bin\default\jvm.dll, error=DLL
>>>>>>>>>>>>> could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be caused by
>>>>>>>>>>>>> missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>>>>>>> Redistributable Package is installed (
>>>>>>>>>>>>> https://www.microsoft.com/en-us/download/details.aspx?id=14
>>>>>>>>>>>>> 632).]
>>>>>>>>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadJvmDll(String
>>>>>>>>>>>>> configJvmDllPath, ILogger log)
>>>>>>>>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String
>>>>>>>>>>>>> configJvmDllPath, ILogger log)
>>>>>>>>>>>>>    at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration
>>>>>>>>>>>>> cfg)
>>>>>>>>>>>>>    at Apache.Ignite.Core.Ignition.Start()
>>>>>>>>>>>>>    at ConsoleApp1.Program.Main(String[] args) in
>>>>>>>>>>>>> C:\Users\kukushal\Documents\Samples\ConsoleApp1\ConsoleApp1\Program.cs:line
>>>>>>>>>>>>> 16
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 7:09 PM, Pavel Tupitsyn <
>>>>>>>>>>>>> ptupitsyn@apache.org> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Ignite.NET uses multiple lookup paths to locate jvm.dll:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> https://github.com/apache/ignite/blob/master/modules/platfor
>>>>>>>>>>>>>> ms/dotnet/Apache.Ignite.Core/Impl/IgniteUtils.cs#L49
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> // JRE paths@"bin\server",@"bin\client",
>>>>>>>>>>>>>>  // JDK paths@"jre\bin\server",@"jre\bin\client",@"jre\bin\default"
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On my machine JAVA_HOME points to "c:\Program
>>>>>>>>>>>>>> Files\Java\jdk1.7.0_75", and Ignite.NET works fine.
>>>>>>>>>>>>>> Same with Java 8 on another machine.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Which Java version do you have? Is it Oracle or something
>>>>>>>>>>>>>> else?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> As a workaround you can set IgniteConfiguration.JvmDllPath
>>>>>>>>>>>>>> explicitly.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 7:00 PM, Patrick Brunmayr <
>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I just removed the JDK and reinstalled it properly.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> BUT
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I need JAVA_HOME for other applications like cassandra.
>>>>>>>>>>>>>>> According to internet JAVA_HOME should point to the JDK installation dir
>>>>>>>>>>>>>>> right ?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> But when i do this Ignite tries to load
>>>>>>>>>>>>>>> %JAVA_HOME%\bin\server.dll which is not present in the JDK folder. It's
>>>>>>>>>>>>>>> only available in the JRE folder.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> How can i fix that without altering my JAVA_HOME ?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> 2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <
>>>>>>>>>>>>>>> ptupitsyn@apache.org>:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> You don't have to copy these files manually. Something is
>>>>>>>>>>>>>>>> wrong with your setup.
>>>>>>>>>>>>>>>> I would advise to remove and reinstall the JRE/JDK.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> By the way, JAVA_HOME is not necessary with Oracle JRE/JDK,
>>>>>>>>>>>>>>>> Ignite.NET detects it automatically.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> JAVA_HOME points to my JDK folder!
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> There was a problem first! There was no bin\server\jvm.dll
>>>>>>>>>>>>>>>>> there Dont know why so i copied the jvm.dl from the embedded
>>>>>>>>>>>>>>>>> jdk\jre\bin\server to jdk\bin\server
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> the funny thing is! I was able to run my app about 10
>>>>>>>>>>>>>>>>> times with no problems and suddenly it stopped working.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29.
>>>>>>>>>>>>>>>>> Sep. 2017 um 17:34:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> > Error occurred during initialization of VM
>>>>>>>>>>>>>>>>>> > Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> What is your JAVA_HOME?
>>>>>>>>>>>>>>>>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK
>>>>>>>>>>>>>>>>>> install is corrupted.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> I run my app now from a cmd and this is the output
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>>>>>>> Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Patrick Brunmayr <pa...@kpibench.com>
>>>>>>>>>>>>>>>>>>> schrieb am Fr. 29. Sep. 2017 um 17:30:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> There is no output from visual studio! When i set a
>>>>>>>>>>>>>>>>>>>> break point to Ignition.Start and try to step over it crashes imediately!
>>>>>>>>>>>>>>>>>>>> No output!
>>>>>>>>>>>>>>>>>>>> The only output visual studio gives me is that the app
>>>>>>>>>>>>>>>>>>>> exited with code ox1
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> The output i got was from running the Apache.Ignite.exe
>>>>>>>>>>>>>>>>>>>> directly that was copied to the bin\Debug folder!
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb
>>>>>>>>>>>>>>>>>>>> am Fr. 29. Sep. 2017 um 17:22:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Patrick,
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Is that output from Visual Studio console window?
>>>>>>>>>>>>>>>>>>>>> Ignite writes information to standard output and error and not to the
>>>>>>>>>>>>>>>>>>>>> Visual Studio console. Can you either run your app from cmd.exe or put a
>>>>>>>>>>>>>>>>>>>>> breakpoint on the last line and see output in the cmd.exe that Visual
>>>>>>>>>>>>>>>>>>>>> Studio opens?
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>>>>>>>>>>> Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Where should ignite logs reside or how can i activate
>>>>>>>>>>>>>>>>>>>>>> them ?
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>>>>>>>>>>>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Hi Patrick,
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Would you please share ignite logs?
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> Hello
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> I am using Visual Studio 2017 and have installed
>>>>>>>>>>>>>>>>>>>>>>>> Apache Ignite via NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> Tried to run this little code
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> try
>>>>>>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>>>>>>> catch (Exception e)
>>>>>>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>>>>>>> Console.WriteLine(e);
>>>>>>>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> My app terminates with following output
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> It just crashes without any information
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> My setup
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>>>>>>>>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>>>>>>>>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>>>>>>>>>>>>>>>>    - Ignite 2.2
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> How can i know whats going on without any
>>>>>>>>>>>>>>>>>>>>>>>> information. Any ideas ?
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>>>>>>>>>> Andrey V. Mashenkov
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>>>>>>>> Alexey
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>> Alexey
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Best regards,
>>>>>>>>>>> Alexey
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best regards,
>>>>> Alexey
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Alexey
>>>
>>
>>
>
>
> --
> Best regards,
> Alexey
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Alexey Kukushkin <ku...@gmail.com>.
Patrick,

Can you please confirm two things:


   1. This is the only output you see if you run your app build for "Any
   CPU" in cmd:
   Error occurred during initialization of VM
   Unable to load native library: Can't find dependent libraries

   2. You have Oracle JDK 8.144, which is 32bit (installed in C:\Program
   Files x86\...) and pointed by JAVA_HOME. Is that right? Or you have 64bit
   JVM?


On Fri, Sep 29, 2017 at 8:00 PM, Patrick Brunmayr <
patrick.brunmayr@kpibench.com> wrote:

> it still does not work!
>
> Thes items are yellow in dependency manager
>
> API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL
> API-MS-WIN-CORE-WINRT-L1-1-0.DLL
> API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL
> API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL
> DCOMP.DLL
> IESHIMS.DLL
>
>
> 2017-09-29 18:56 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>:
>
>> Patrick,
>>
>> It seems you might have a different problem. My problem was I had Java
>> x64 but my console app preferred 32bit JNI library, which could not load
>> 64bit jvm.dll. I fixed it by either switching to x64 or unchecking "Prefer
>> 32bit" for "Any CPU".
>>
>> Your errors and behaviour seems different. Let us know if it still does
>> not work.
>>
>>
>> On Fri, Sep 29, 2017 at 7:47 PM, Patrick Brunmayr <
>> patrick.brunmayr@kpibench.com> wrote:
>>
>>> okay i try that
>>>
>>> 2017-09-29 18:44 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>:
>>>
>>>> OK, I solved all my issues. I can run the console app on "Any CPU"
>>>> after unchecking "Prefer 32-bit" in the project build properties.
>>>>
>>>> On Fri, Sep 29, 2017 at 7:39 PM, Patrick Brunmayr <
>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>
>>>>> Yes and as i told you there is no exception :)
>>>>>
>>>>> The output from the console window is
>>>>>
>>>>> Error occurred during initialization of VM
>>>>> Unable to load native library: Can't find dependent libraries
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> 2017-09-29 18:37 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>>>
>>>>>> You said "without any exception" above, but it turns out there is a
>>>>>> very good and descriptive exception :)
>>>>>> Please make sure to get the exception details and attach them here.
>>>>>>
>>>>>> If you run Apache.Ignite.exe, do so from a console window, so that
>>>>>> you can see the output.
>>>>>>
>>>>>> On Fri, Sep 29, 2017 at 7:32 PM, Patrick Brunmayr <
>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>
>>>>>>> Yes but that is not the problem. I came across that exception and
>>>>>>> changed to a x64 build config and rebuilt all. But it still crashes without
>>>>>>> any exception
>>>>>>>
>>>>>>> 2017-09-29 18:30 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>>>>>
>>>>>>>> > C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll,
>>>>>>>> error=DLL could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often
>>>>>>>> caused by x64/x86 mismatch. Current process runs in x86 mode, and DLL is
>>>>>>>> not x86.]
>>>>>>>>
>>>>>>>> There is your problem. Ignite.NET found the dll, but there is
>>>>>>>> x86-x64 mismatch.
>>>>>>>> Make sure your project runs in x64 mode.
>>>>>>>> Uncheck "Prefer 32 bit"  in project settings:
>>>>>>>> https://ptupitsyn.github.io/images/prefer32bit.png
>>>>>>>>
>>>>>>>> > I still do not understand why Any CPU does not work.
>>>>>>>> Because "Prefer 32 bit" is enabled by default for some reason, see
>>>>>>>> above.
>>>>>>>>
>>>>>>>> On Fri, Sep 29, 2017 at 7:21 PM, Patrick Brunmayr <
>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>
>>>>>>>>> Did the same like you but now its crashing
>>>>>>>>>
>>>>>>>>> 2017-09-29 18:19 GMT+02:00 Alexey Kukushkin <
>>>>>>>>> kukushkinalexey@gmail.com>:
>>>>>>>>>
>>>>>>>>>> Patrick,
>>>>>>>>>>
>>>>>>>>>> I fixed the problem by creating new x64 configuration (set
>>>>>>>>>> Platform to "x64") since I have JDK x64 installed. I still do not
>>>>>>>>>> understand why Any CPU does not work.
>>>>>>>>>>
>>>>>>>>>> On Fri, Sep 29, 2017 at 7:15 PM, Patrick Brunmayr <
>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> I got the exact same message like you Alexey
>>>>>>>>>>>
>>>>>>>>>>> 2017-09-29 18:13 GMT+02:00 Alexey Kukushkin <
>>>>>>>>>>> kukushkinalexey@gmail.com>:
>>>>>>>>>>>
>>>>>>>>>>>> Pavel,
>>>>>>>>>>>>
>>>>>>>>>>>> It does not work for me - seems same problem. I also have
>>>>>>>>>>>> VisualStudio 2017 and Oracle JDK 8.144. I suggest we open a ticket and
>>>>>>>>>>>> investigate. I have jvm.dll inside jre\bin\server\jvm.dll but for some
>>>>>>>>>>>> reason Ignite does not try it.
>>>>>>>>>>>>
>>>>>>>>>>>> Apache.Ignite.Core.Common.IgniteException: Failed to load
>>>>>>>>>>>> jvm.dll:
>>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program
>>>>>>>>>>>> Files\Java\jdk1.8.0_144\bin\server\jvm.dll, error=DLL could
>>>>>>>>>>>> not be loaded (126: ERROR_MOD_NOT_FOUND). This can be caused by missing
>>>>>>>>>>>> dependencies. Make sure that Microsoft Visual C++ 2010 Redistributable
>>>>>>>>>>>> Package is installed (https://www.microsoft.com/en-
>>>>>>>>>>>> us/download/details.aspx?id=14632).]
>>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program
>>>>>>>>>>>> Files\Java\jdk1.8.0_144\bin\client\jvm.dll, error=DLL could
>>>>>>>>>>>> not be loaded (126: ERROR_MOD_NOT_FOUND). This can be caused by missing
>>>>>>>>>>>> dependencies. Make sure that Microsoft Visual C++ 2010 Redistributable
>>>>>>>>>>>> Package is installed (https://www.microsoft.com/en-
>>>>>>>>>>>> us/download/details.aspx?id=14632).]
>>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program
>>>>>>>>>>>> Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll, error=DLL
>>>>>>>>>>>> could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often caused by
>>>>>>>>>>>> x64/x86 mismatch. Current process runs in x86 mode, and DLL is not x86.]
>>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program
>>>>>>>>>>>> Files\Java\jdk1.8.0_144\jre\bin\client\jvm.dll, error=DLL
>>>>>>>>>>>> could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be caused by
>>>>>>>>>>>> missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>>>>>> Redistributable Package is installed (
>>>>>>>>>>>> https://www.microsoft.com/en-us/download/details.aspx?id=14632)
>>>>>>>>>>>> .]
>>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program
>>>>>>>>>>>> Files\Java\jdk1.8.0_144\jre\bin\default\jvm.dll, error=DLL
>>>>>>>>>>>> could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be caused by
>>>>>>>>>>>> missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>>>>>> Redistributable Package is installed (
>>>>>>>>>>>> https://www.microsoft.com/en-us/download/details.aspx?id=14632)
>>>>>>>>>>>> .]
>>>>>>>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadJvmDll(String
>>>>>>>>>>>> configJvmDllPath, ILogger log)
>>>>>>>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String
>>>>>>>>>>>> configJvmDllPath, ILogger log)
>>>>>>>>>>>>    at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration
>>>>>>>>>>>> cfg)
>>>>>>>>>>>>    at Apache.Ignite.Core.Ignition.Start()
>>>>>>>>>>>>    at ConsoleApp1.Program.Main(String[] args) in
>>>>>>>>>>>> C:\Users\kukushal\Documents\Samples\ConsoleApp1\ConsoleApp1\Program.cs:line
>>>>>>>>>>>> 16
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Fri, Sep 29, 2017 at 7:09 PM, Pavel Tupitsyn <
>>>>>>>>>>>> ptupitsyn@apache.org> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Ignite.NET uses multiple lookup paths to locate jvm.dll:
>>>>>>>>>>>>>
>>>>>>>>>>>>> https://github.com/apache/ignite/blob/master/modules/platfor
>>>>>>>>>>>>> ms/dotnet/Apache.Ignite.Core/Impl/IgniteUtils.cs#L49
>>>>>>>>>>>>>
>>>>>>>>>>>>> // JRE paths@"bin\server",@"bin\client",
>>>>>>>>>>>>>  // JDK paths@"jre\bin\server",@"jre\bin\client",@"jre\bin\default"
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On my machine JAVA_HOME points to "c:\Program
>>>>>>>>>>>>> Files\Java\jdk1.7.0_75", and Ignite.NET works fine.
>>>>>>>>>>>>> Same with Java 8 on another machine.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Which Java version do you have? Is it Oracle or something else?
>>>>>>>>>>>>>
>>>>>>>>>>>>> As a workaround you can set IgniteConfiguration.JvmDllPath
>>>>>>>>>>>>> explicitly.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 7:00 PM, Patrick Brunmayr <
>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> I just removed the JDK and reinstalled it properly.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> BUT
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I need JAVA_HOME for other applications like cassandra.
>>>>>>>>>>>>>> According to internet JAVA_HOME should point to the JDK installation dir
>>>>>>>>>>>>>> right ?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> But when i do this Ignite tries to load
>>>>>>>>>>>>>> %JAVA_HOME%\bin\server.dll which is not present in the JDK folder. It's
>>>>>>>>>>>>>> only available in the JRE folder.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> How can i fix that without altering my JAVA_HOME ?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> 2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <
>>>>>>>>>>>>>> ptupitsyn@apache.org>:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> You don't have to copy these files manually. Something is
>>>>>>>>>>>>>>> wrong with your setup.
>>>>>>>>>>>>>>> I would advise to remove and reinstall the JRE/JDK.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> By the way, JAVA_HOME is not necessary with Oracle JRE/JDK,
>>>>>>>>>>>>>>> Ignite.NET detects it automatically.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> JAVA_HOME points to my JDK folder!
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> There was a problem first! There was no bin\server\jvm.dll
>>>>>>>>>>>>>>>> there Dont know why so i copied the jvm.dl from the embedded
>>>>>>>>>>>>>>>> jdk\jre\bin\server to jdk\bin\server
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> the funny thing is! I was able to run my app about 10 times
>>>>>>>>>>>>>>>> with no problems and suddenly it stopped working.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29.
>>>>>>>>>>>>>>>> Sep. 2017 um 17:34:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> > Error occurred during initialization of VM
>>>>>>>>>>>>>>>>> > Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> What is your JAVA_HOME?
>>>>>>>>>>>>>>>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK
>>>>>>>>>>>>>>>>> install is corrupted.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> I run my app now from a cmd and this is the output
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>>>>>> Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Patrick Brunmayr <pa...@kpibench.com> schrieb
>>>>>>>>>>>>>>>>>> am Fr. 29. Sep. 2017 um 17:30:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> There is no output from visual studio! When i set a
>>>>>>>>>>>>>>>>>>> break point to Ignition.Start and try to step over it crashes imediately!
>>>>>>>>>>>>>>>>>>> No output!
>>>>>>>>>>>>>>>>>>> The only output visual studio gives me is that the app
>>>>>>>>>>>>>>>>>>> exited with code ox1
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> The output i got was from running the Apache.Ignite.exe
>>>>>>>>>>>>>>>>>>> directly that was copied to the bin\Debug folder!
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb am
>>>>>>>>>>>>>>>>>>> Fr. 29. Sep. 2017 um 17:22:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Patrick,
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Is that output from Visual Studio console window?
>>>>>>>>>>>>>>>>>>>> Ignite writes information to standard output and error and not to the
>>>>>>>>>>>>>>>>>>>> Visual Studio console. Can you either run your app from cmd.exe or put a
>>>>>>>>>>>>>>>>>>>> breakpoint on the last line and see output in the cmd.exe that Visual
>>>>>>>>>>>>>>>>>>>> Studio opens?
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>>>>>>>>>> Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Where should ignite logs reside or how can i activate
>>>>>>>>>>>>>>>>>>>>> them ?
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>>>>>>>>>>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Hi Patrick,
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Would you please share ignite logs?
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Hello
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> I am using Visual Studio 2017 and have installed
>>>>>>>>>>>>>>>>>>>>>>> Apache Ignite via NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Tried to run this little code
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> try
>>>>>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>>>>>> catch (Exception e)
>>>>>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>>>>>> Console.WriteLine(e);
>>>>>>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> My app terminates with following output
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> It just crashes without any information
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> My setup
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>>>>>>>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>>>>>>>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>>>>>>>>>>>>>>>    - Ignite 2.2
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> How can i know whats going on without any
>>>>>>>>>>>>>>>>>>>>>>> information. Any ideas ?
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>>>>>>>>> Andrey V. Mashenkov
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>>>>>>> Alexey
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Best regards,
>>>>>>>>>>>> Alexey
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Best regards,
>>>>>>>>>> Alexey
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Best regards,
>>>> Alexey
>>>>
>>>
>>>
>>
>>
>> --
>> Best regards,
>> Alexey
>>
>
>


-- 
Best regards,
Alexey

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Patrick Brunmayr <pa...@kpibench.com>.
it still does not work!

Thes items are yellow in dependency manager

API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL
DCOMP.DLL
IESHIMS.DLL


2017-09-29 18:56 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>:

> Patrick,
>
> It seems you might have a different problem. My problem was I had Java x64
> but my console app preferred 32bit JNI library, which could not load 64bit
> jvm.dll. I fixed it by either switching to x64 or unchecking "Prefer 32bit"
> for "Any CPU".
>
> Your errors and behaviour seems different. Let us know if it still does
> not work.
>
>
> On Fri, Sep 29, 2017 at 7:47 PM, Patrick Brunmayr <
> patrick.brunmayr@kpibench.com> wrote:
>
>> okay i try that
>>
>> 2017-09-29 18:44 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>:
>>
>>> OK, I solved all my issues. I can run the console app on "Any CPU" after
>>> unchecking "Prefer 32-bit" in the project build properties.
>>>
>>> On Fri, Sep 29, 2017 at 7:39 PM, Patrick Brunmayr <
>>> patrick.brunmayr@kpibench.com> wrote:
>>>
>>>> Yes and as i told you there is no exception :)
>>>>
>>>> The output from the console window is
>>>>
>>>> Error occurred during initialization of VM
>>>> Unable to load native library: Can't find dependent libraries
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> 2017-09-29 18:37 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>>
>>>>> You said "without any exception" above, but it turns out there is a
>>>>> very good and descriptive exception :)
>>>>> Please make sure to get the exception details and attach them here.
>>>>>
>>>>> If you run Apache.Ignite.exe, do so from a console window, so that you
>>>>> can see the output.
>>>>>
>>>>> On Fri, Sep 29, 2017 at 7:32 PM, Patrick Brunmayr <
>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>
>>>>>> Yes but that is not the problem. I came across that exception and
>>>>>> changed to a x64 build config and rebuilt all. But it still crashes without
>>>>>> any exception
>>>>>>
>>>>>> 2017-09-29 18:30 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>>>>
>>>>>>> > C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll,
>>>>>>> error=DLL could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often
>>>>>>> caused by x64/x86 mismatch. Current process runs in x86 mode, and DLL is
>>>>>>> not x86.]
>>>>>>>
>>>>>>> There is your problem. Ignite.NET found the dll, but there is
>>>>>>> x86-x64 mismatch.
>>>>>>> Make sure your project runs in x64 mode.
>>>>>>> Uncheck "Prefer 32 bit"  in project settings:
>>>>>>> https://ptupitsyn.github.io/images/prefer32bit.png
>>>>>>>
>>>>>>> > I still do not understand why Any CPU does not work.
>>>>>>> Because "Prefer 32 bit" is enabled by default for some reason, see
>>>>>>> above.
>>>>>>>
>>>>>>> On Fri, Sep 29, 2017 at 7:21 PM, Patrick Brunmayr <
>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>
>>>>>>>> Did the same like you but now its crashing
>>>>>>>>
>>>>>>>> 2017-09-29 18:19 GMT+02:00 Alexey Kukushkin <
>>>>>>>> kukushkinalexey@gmail.com>:
>>>>>>>>
>>>>>>>>> Patrick,
>>>>>>>>>
>>>>>>>>> I fixed the problem by creating new x64 configuration (set
>>>>>>>>> Platform to "x64") since I have JDK x64 installed. I still do not
>>>>>>>>> understand why Any CPU does not work.
>>>>>>>>>
>>>>>>>>> On Fri, Sep 29, 2017 at 7:15 PM, Patrick Brunmayr <
>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>
>>>>>>>>>> I got the exact same message like you Alexey
>>>>>>>>>>
>>>>>>>>>> 2017-09-29 18:13 GMT+02:00 Alexey Kukushkin <
>>>>>>>>>> kukushkinalexey@gmail.com>:
>>>>>>>>>>
>>>>>>>>>>> Pavel,
>>>>>>>>>>>
>>>>>>>>>>> It does not work for me - seems same problem. I also have
>>>>>>>>>>> VisualStudio 2017 and Oracle JDK 8.144. I suggest we open a ticket and
>>>>>>>>>>> investigate. I have jvm.dll inside jre\bin\server\jvm.dll but for some
>>>>>>>>>>> reason Ignite does not try it.
>>>>>>>>>>>
>>>>>>>>>>> Apache.Ignite.Core.Common.IgniteException: Failed to load
>>>>>>>>>>> jvm.dll:
>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\server\jvm.dll,
>>>>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>>>>> Redistributable Package is installed (
>>>>>>>>>>> https://www.microsoft.com/en-us/download/details.aspx?id=14632)
>>>>>>>>>>> .]
>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\client\jvm.dll,
>>>>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>>>>> Redistributable Package is installed (
>>>>>>>>>>> https://www.microsoft.com/en-us/download/details.aspx?id=14632)
>>>>>>>>>>> .]
>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll,
>>>>>>>>>>> error=DLL could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often
>>>>>>>>>>> caused by x64/x86 mismatch. Current process runs in x86 mode, and DLL is
>>>>>>>>>>> not x86.]
>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\client\jvm.dll,
>>>>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>>>>> Redistributable Package is installed (
>>>>>>>>>>> https://www.microsoft.com/en-us/download/details.aspx?id=14632)
>>>>>>>>>>> .]
>>>>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\default\jvm.dll,
>>>>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>>>>> Redistributable Package is installed (
>>>>>>>>>>> https://www.microsoft.com/en-us/download/details.aspx?id=14632)
>>>>>>>>>>> .]
>>>>>>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadJvmDll(String
>>>>>>>>>>> configJvmDllPath, ILogger log)
>>>>>>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String
>>>>>>>>>>> configJvmDllPath, ILogger log)
>>>>>>>>>>>    at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
>>>>>>>>>>>    at Apache.Ignite.Core.Ignition.Start()
>>>>>>>>>>>    at ConsoleApp1.Program.Main(String[] args) in
>>>>>>>>>>> C:\Users\kukushal\Documents\Samples\ConsoleApp1\ConsoleApp1\Program.cs:line
>>>>>>>>>>> 16
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Fri, Sep 29, 2017 at 7:09 PM, Pavel Tupitsyn <
>>>>>>>>>>> ptupitsyn@apache.org> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Ignite.NET uses multiple lookup paths to locate jvm.dll:
>>>>>>>>>>>>
>>>>>>>>>>>> https://github.com/apache/ignite/blob/master/modules/platfor
>>>>>>>>>>>> ms/dotnet/Apache.Ignite.Core/Impl/IgniteUtils.cs#L49
>>>>>>>>>>>>
>>>>>>>>>>>> // JRE paths@"bin\server",@"bin\client",
>>>>>>>>>>>>  // JDK paths@"jre\bin\server",@"jre\bin\client",@"jre\bin\default"
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On my machine JAVA_HOME points to "c:\Program
>>>>>>>>>>>> Files\Java\jdk1.7.0_75", and Ignite.NET works fine.
>>>>>>>>>>>> Same with Java 8 on another machine.
>>>>>>>>>>>>
>>>>>>>>>>>> Which Java version do you have? Is it Oracle or something else?
>>>>>>>>>>>>
>>>>>>>>>>>> As a workaround you can set IgniteConfiguration.JvmDllPath
>>>>>>>>>>>> explicitly.
>>>>>>>>>>>>
>>>>>>>>>>>> On Fri, Sep 29, 2017 at 7:00 PM, Patrick Brunmayr <
>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> I just removed the JDK and reinstalled it properly.
>>>>>>>>>>>>>
>>>>>>>>>>>>> BUT
>>>>>>>>>>>>>
>>>>>>>>>>>>> I need JAVA_HOME for other applications like cassandra.
>>>>>>>>>>>>> According to internet JAVA_HOME should point to the JDK installation dir
>>>>>>>>>>>>> right ?
>>>>>>>>>>>>>
>>>>>>>>>>>>> But when i do this Ignite tries to load
>>>>>>>>>>>>> %JAVA_HOME%\bin\server.dll which is not present in the JDK folder. It's
>>>>>>>>>>>>> only available in the JRE folder.
>>>>>>>>>>>>>
>>>>>>>>>>>>> How can i fix that without altering my JAVA_HOME ?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> 2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <
>>>>>>>>>>>>> ptupitsyn@apache.org>:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> You don't have to copy these files manually. Something is
>>>>>>>>>>>>>> wrong with your setup.
>>>>>>>>>>>>>> I would advise to remove and reinstall the JRE/JDK.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> By the way, JAVA_HOME is not necessary with Oracle JRE/JDK,
>>>>>>>>>>>>>> Ignite.NET detects it automatically.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> JAVA_HOME points to my JDK folder!
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> There was a problem first! There was no bin\server\jvm.dll
>>>>>>>>>>>>>>> there Dont know why so i copied the jvm.dl from the embedded
>>>>>>>>>>>>>>> jdk\jre\bin\server to jdk\bin\server
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> the funny thing is! I was able to run my app about 10 times
>>>>>>>>>>>>>>> with no problems and suddenly it stopped working.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29.
>>>>>>>>>>>>>>> Sep. 2017 um 17:34:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> > Error occurred during initialization of VM
>>>>>>>>>>>>>>>> > Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> What is your JAVA_HOME?
>>>>>>>>>>>>>>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK
>>>>>>>>>>>>>>>> install is corrupted.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I run my app now from a cmd and this is the output
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>>>>> Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Patrick Brunmayr <pa...@kpibench.com> schrieb
>>>>>>>>>>>>>>>>> am Fr. 29. Sep. 2017 um 17:30:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> There is no output from visual studio! When i set a break
>>>>>>>>>>>>>>>>>> point to Ignition.Start and try to step over it crashes imediately! No
>>>>>>>>>>>>>>>>>> output!
>>>>>>>>>>>>>>>>>> The only output visual studio gives me is that the app
>>>>>>>>>>>>>>>>>> exited with code ox1
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> The output i got was from running the Apache.Ignite.exe
>>>>>>>>>>>>>>>>>> directly that was copied to the bin\Debug folder!
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb am
>>>>>>>>>>>>>>>>>> Fr. 29. Sep. 2017 um 17:22:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Patrick,
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Is that output from Visual Studio console window? Ignite
>>>>>>>>>>>>>>>>>>> writes information to standard output and error and not to the Visual
>>>>>>>>>>>>>>>>>>> Studio console. Can you either run your app from cmd.exe or put a
>>>>>>>>>>>>>>>>>>> breakpoint on the last line and see output in the cmd.exe that Visual
>>>>>>>>>>>>>>>>>>> Studio opens?
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>>>>>>>>> Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Where should ignite logs reside or how can i activate
>>>>>>>>>>>>>>>>>>>> them ?
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>>>>>>>>>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Hi Patrick,
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Would you please share ignite logs?
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Hello
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> I am using Visual Studio 2017 and have installed
>>>>>>>>>>>>>>>>>>>>>> Apache Ignite via NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Tried to run this little code
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> try
>>>>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>>>>> catch (Exception e)
>>>>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>>>>> Console.WriteLine(e);
>>>>>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> My app terminates with following output
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> It just crashes without any information
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> My setup
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>>>>>>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>>>>>>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>>>>>>>>>>>>>>    - Ignite 2.2
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> How can i know whats going on without any
>>>>>>>>>>>>>>>>>>>>>> information. Any ideas ?
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>>>>>>>> Andrey V. Mashenkov
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>>>>>> Alexey
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Best regards,
>>>>>>>>>>> Alexey
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Best regards,
>>>>>>>>> Alexey
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Alexey
>>>
>>
>>
>
>
> --
> Best regards,
> Alexey
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Alexey Kukushkin <ku...@gmail.com>.
Patrick,

It seems you might have a different problem. My problem was I had Java x64
but my console app preferred 32bit JNI library, which could not load 64bit
jvm.dll. I fixed it by either switching to x64 or unchecking "Prefer 32bit"
for "Any CPU".

Your errors and behaviour seems different. Let us know if it still does not
work.


On Fri, Sep 29, 2017 at 7:47 PM, Patrick Brunmayr <
patrick.brunmayr@kpibench.com> wrote:

> okay i try that
>
> 2017-09-29 18:44 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>:
>
>> OK, I solved all my issues. I can run the console app on "Any CPU" after
>> unchecking "Prefer 32-bit" in the project build properties.
>>
>> On Fri, Sep 29, 2017 at 7:39 PM, Patrick Brunmayr <
>> patrick.brunmayr@kpibench.com> wrote:
>>
>>> Yes and as i told you there is no exception :)
>>>
>>> The output from the console window is
>>>
>>> Error occurred during initialization of VM
>>> Unable to load native library: Can't find dependent libraries
>>>
>>>
>>>
>>>
>>>
>>> 2017-09-29 18:37 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>
>>>> You said "without any exception" above, but it turns out there is a
>>>> very good and descriptive exception :)
>>>> Please make sure to get the exception details and attach them here.
>>>>
>>>> If you run Apache.Ignite.exe, do so from a console window, so that you
>>>> can see the output.
>>>>
>>>> On Fri, Sep 29, 2017 at 7:32 PM, Patrick Brunmayr <
>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>
>>>>> Yes but that is not the problem. I came across that exception and
>>>>> changed to a x64 build config and rebuilt all. But it still crashes without
>>>>> any exception
>>>>>
>>>>> 2017-09-29 18:30 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>>>
>>>>>> > C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll,
>>>>>> error=DLL could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often
>>>>>> caused by x64/x86 mismatch. Current process runs in x86 mode, and DLL is
>>>>>> not x86.]
>>>>>>
>>>>>> There is your problem. Ignite.NET found the dll, but there is x86-x64
>>>>>> mismatch.
>>>>>> Make sure your project runs in x64 mode.
>>>>>> Uncheck "Prefer 32 bit"  in project settings:
>>>>>> https://ptupitsyn.github.io/images/prefer32bit.png
>>>>>>
>>>>>> > I still do not understand why Any CPU does not work.
>>>>>> Because "Prefer 32 bit" is enabled by default for some reason, see
>>>>>> above.
>>>>>>
>>>>>> On Fri, Sep 29, 2017 at 7:21 PM, Patrick Brunmayr <
>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>
>>>>>>> Did the same like you but now its crashing
>>>>>>>
>>>>>>> 2017-09-29 18:19 GMT+02:00 Alexey Kukushkin <
>>>>>>> kukushkinalexey@gmail.com>:
>>>>>>>
>>>>>>>> Patrick,
>>>>>>>>
>>>>>>>> I fixed the problem by creating new x64 configuration (set Platform
>>>>>>>> to "x64") since I have JDK x64 installed. I still do not understand why Any
>>>>>>>> CPU does not work.
>>>>>>>>
>>>>>>>> On Fri, Sep 29, 2017 at 7:15 PM, Patrick Brunmayr <
>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>
>>>>>>>>> I got the exact same message like you Alexey
>>>>>>>>>
>>>>>>>>> 2017-09-29 18:13 GMT+02:00 Alexey Kukushkin <
>>>>>>>>> kukushkinalexey@gmail.com>:
>>>>>>>>>
>>>>>>>>>> Pavel,
>>>>>>>>>>
>>>>>>>>>> It does not work for me - seems same problem. I also have
>>>>>>>>>> VisualStudio 2017 and Oracle JDK 8.144. I suggest we open a ticket and
>>>>>>>>>> investigate. I have jvm.dll inside jre\bin\server\jvm.dll but for some
>>>>>>>>>> reason Ignite does not try it.
>>>>>>>>>>
>>>>>>>>>> Apache.Ignite.Core.Common.IgniteException: Failed to load
>>>>>>>>>> jvm.dll:
>>>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\server\jvm.dll,
>>>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>>>> Redistributable Package is installed (
>>>>>>>>>> https://www.microsoft.com/en-us/download/details.aspx?id=14632).]
>>>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\client\jvm.dll,
>>>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>>>> Redistributable Package is installed (
>>>>>>>>>> https://www.microsoft.com/en-us/download/details.aspx?id=14632).]
>>>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll,
>>>>>>>>>> error=DLL could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often
>>>>>>>>>> caused by x64/x86 mismatch. Current process runs in x86 mode, and DLL is
>>>>>>>>>> not x86.]
>>>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\client\jvm.dll,
>>>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>>>> Redistributable Package is installed (
>>>>>>>>>> https://www.microsoft.com/en-us/download/details.aspx?id=14632).]
>>>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\default\jvm.dll,
>>>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>>>> Redistributable Package is installed (
>>>>>>>>>> https://www.microsoft.com/en-us/download/details.aspx?id=14632).]
>>>>>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadJvmDll(String
>>>>>>>>>> configJvmDllPath, ILogger log)
>>>>>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String
>>>>>>>>>> configJvmDllPath, ILogger log)
>>>>>>>>>>    at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
>>>>>>>>>>    at Apache.Ignite.Core.Ignition.Start()
>>>>>>>>>>    at ConsoleApp1.Program.Main(String[] args) in
>>>>>>>>>> C:\Users\kukushal\Documents\Samples\ConsoleApp1\ConsoleApp1\Program.cs:line
>>>>>>>>>> 16
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Fri, Sep 29, 2017 at 7:09 PM, Pavel Tupitsyn <
>>>>>>>>>> ptupitsyn@apache.org> wrote:
>>>>>>>>>>
>>>>>>>>>>> Ignite.NET uses multiple lookup paths to locate jvm.dll:
>>>>>>>>>>>
>>>>>>>>>>> https://github.com/apache/ignite/blob/master/modules/platfor
>>>>>>>>>>> ms/dotnet/Apache.Ignite.Core/Impl/IgniteUtils.cs#L49
>>>>>>>>>>>
>>>>>>>>>>> // JRE paths@"bin\server",@"bin\client",
>>>>>>>>>>>  // JDK paths@"jre\bin\server",@"jre\bin\client",@"jre\bin\default"
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On my machine JAVA_HOME points to "c:\Program
>>>>>>>>>>> Files\Java\jdk1.7.0_75", and Ignite.NET works fine.
>>>>>>>>>>> Same with Java 8 on another machine.
>>>>>>>>>>>
>>>>>>>>>>> Which Java version do you have? Is it Oracle or something else?
>>>>>>>>>>>
>>>>>>>>>>> As a workaround you can set IgniteConfiguration.JvmDllPath
>>>>>>>>>>> explicitly.
>>>>>>>>>>>
>>>>>>>>>>> On Fri, Sep 29, 2017 at 7:00 PM, Patrick Brunmayr <
>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> I just removed the JDK and reinstalled it properly.
>>>>>>>>>>>>
>>>>>>>>>>>> BUT
>>>>>>>>>>>>
>>>>>>>>>>>> I need JAVA_HOME for other applications like cassandra.
>>>>>>>>>>>> According to internet JAVA_HOME should point to the JDK installation dir
>>>>>>>>>>>> right ?
>>>>>>>>>>>>
>>>>>>>>>>>> But when i do this Ignite tries to load
>>>>>>>>>>>> %JAVA_HOME%\bin\server.dll which is not present in the JDK folder. It's
>>>>>>>>>>>> only available in the JRE folder.
>>>>>>>>>>>>
>>>>>>>>>>>> How can i fix that without altering my JAVA_HOME ?
>>>>>>>>>>>>
>>>>>>>>>>>> Thx
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> 2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <ptupitsyn@apache.org
>>>>>>>>>>>> >:
>>>>>>>>>>>>
>>>>>>>>>>>>> You don't have to copy these files manually. Something is
>>>>>>>>>>>>> wrong with your setup.
>>>>>>>>>>>>> I would advise to remove and reinstall the JRE/JDK.
>>>>>>>>>>>>>
>>>>>>>>>>>>> By the way, JAVA_HOME is not necessary with Oracle JRE/JDK,
>>>>>>>>>>>>> Ignite.NET detects it automatically.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> JAVA_HOME points to my JDK folder!
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> There was a problem first! There was no bin\server\jvm.dll
>>>>>>>>>>>>>> there Dont know why so i copied the jvm.dl from the embedded
>>>>>>>>>>>>>> jdk\jre\bin\server to jdk\bin\server
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> the funny thing is! I was able to run my app about 10 times
>>>>>>>>>>>>>> with no problems and suddenly it stopped working.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29.
>>>>>>>>>>>>>> Sep. 2017 um 17:34:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> > Error occurred during initialization of VM
>>>>>>>>>>>>>>> > Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> What is your JAVA_HOME?
>>>>>>>>>>>>>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK
>>>>>>>>>>>>>>> install is corrupted.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I run my app now from a cmd and this is the output
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>>>> Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Patrick Brunmayr <pa...@kpibench.com> schrieb
>>>>>>>>>>>>>>>> am Fr. 29. Sep. 2017 um 17:30:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> There is no output from visual studio! When i set a break
>>>>>>>>>>>>>>>>> point to Ignition.Start and try to step over it crashes imediately! No
>>>>>>>>>>>>>>>>> output!
>>>>>>>>>>>>>>>>> The only output visual studio gives me is that the app
>>>>>>>>>>>>>>>>> exited with code ox1
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> The output i got was from running the Apache.Ignite.exe
>>>>>>>>>>>>>>>>> directly that was copied to the bin\Debug folder!
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb am
>>>>>>>>>>>>>>>>> Fr. 29. Sep. 2017 um 17:22:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Patrick,
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Is that output from Visual Studio console window? Ignite
>>>>>>>>>>>>>>>>>> writes information to standard output and error and not to the Visual
>>>>>>>>>>>>>>>>>> Studio console. Can you either run your app from cmd.exe or put a
>>>>>>>>>>>>>>>>>> breakpoint on the last line and see output in the cmd.exe that Visual
>>>>>>>>>>>>>>>>>> Studio opens?
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>>>>>>>> Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Where should ignite logs reside or how can i activate
>>>>>>>>>>>>>>>>>>> them ?
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>>>>>>>>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Hi Patrick,
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Would you please share ignite logs?
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Hello
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> I am using Visual Studio 2017 and have installed
>>>>>>>>>>>>>>>>>>>>> Apache Ignite via NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Tried to run this little code
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> try
>>>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>>>> catch (Exception e)
>>>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>>>> Console.WriteLine(e);
>>>>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> My app terminates with following output
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> It just crashes without any information
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> My setup
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>>>>>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>>>>>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>>>>>>>>>>>>>    - Ignite 2.2
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> How can i know whats going on without any information.
>>>>>>>>>>>>>>>>>>>>> Any ideas ?
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>>>>>>> Andrey V. Mashenkov
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>>>>> Alexey
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Best regards,
>>>>>>>>>> Alexey
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Best regards,
>>>>>>>> Alexey
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>>
>> --
>> Best regards,
>> Alexey
>>
>
>


-- 
Best regards,
Alexey

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Patrick Brunmayr <pa...@kpibench.com>.
okay i try that

2017-09-29 18:44 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>:

> OK, I solved all my issues. I can run the console app on "Any CPU" after
> unchecking "Prefer 32-bit" in the project build properties.
>
> On Fri, Sep 29, 2017 at 7:39 PM, Patrick Brunmayr <
> patrick.brunmayr@kpibench.com> wrote:
>
>> Yes and as i told you there is no exception :)
>>
>> The output from the console window is
>>
>> Error occurred during initialization of VM
>> Unable to load native library: Can't find dependent libraries
>>
>>
>>
>>
>>
>> 2017-09-29 18:37 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>
>>> You said "without any exception" above, but it turns out there is a very
>>> good and descriptive exception :)
>>> Please make sure to get the exception details and attach them here.
>>>
>>> If you run Apache.Ignite.exe, do so from a console window, so that you
>>> can see the output.
>>>
>>> On Fri, Sep 29, 2017 at 7:32 PM, Patrick Brunmayr <
>>> patrick.brunmayr@kpibench.com> wrote:
>>>
>>>> Yes but that is not the problem. I came across that exception and
>>>> changed to a x64 build config and rebuilt all. But it still crashes without
>>>> any exception
>>>>
>>>> 2017-09-29 18:30 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>>
>>>>> > C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll,
>>>>> error=DLL could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often
>>>>> caused by x64/x86 mismatch. Current process runs in x86 mode, and DLL is
>>>>> not x86.]
>>>>>
>>>>> There is your problem. Ignite.NET found the dll, but there is x86-x64
>>>>> mismatch.
>>>>> Make sure your project runs in x64 mode.
>>>>> Uncheck "Prefer 32 bit"  in project settings:
>>>>> https://ptupitsyn.github.io/images/prefer32bit.png
>>>>>
>>>>> > I still do not understand why Any CPU does not work.
>>>>> Because "Prefer 32 bit" is enabled by default for some reason, see
>>>>> above.
>>>>>
>>>>> On Fri, Sep 29, 2017 at 7:21 PM, Patrick Brunmayr <
>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>
>>>>>> Did the same like you but now its crashing
>>>>>>
>>>>>> 2017-09-29 18:19 GMT+02:00 Alexey Kukushkin <
>>>>>> kukushkinalexey@gmail.com>:
>>>>>>
>>>>>>> Patrick,
>>>>>>>
>>>>>>> I fixed the problem by creating new x64 configuration (set Platform
>>>>>>> to "x64") since I have JDK x64 installed. I still do not understand why Any
>>>>>>> CPU does not work.
>>>>>>>
>>>>>>> On Fri, Sep 29, 2017 at 7:15 PM, Patrick Brunmayr <
>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>
>>>>>>>> I got the exact same message like you Alexey
>>>>>>>>
>>>>>>>> 2017-09-29 18:13 GMT+02:00 Alexey Kukushkin <
>>>>>>>> kukushkinalexey@gmail.com>:
>>>>>>>>
>>>>>>>>> Pavel,
>>>>>>>>>
>>>>>>>>> It does not work for me - seems same problem. I also have
>>>>>>>>> VisualStudio 2017 and Oracle JDK 8.144. I suggest we open a ticket and
>>>>>>>>> investigate. I have jvm.dll inside jre\bin\server\jvm.dll but for some
>>>>>>>>> reason Ignite does not try it.
>>>>>>>>>
>>>>>>>>> Apache.Ignite.Core.Common.IgniteException: Failed to load jvm.dll:
>>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\server\jvm.dll,
>>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>>> Redistributable Package is installed (
>>>>>>>>> https://www.microsoft.com/en-us/download/details.aspx?id=14632).]
>>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\client\jvm.dll,
>>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>>> Redistributable Package is installed (
>>>>>>>>> https://www.microsoft.com/en-us/download/details.aspx?id=14632).]
>>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll,
>>>>>>>>> error=DLL could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often
>>>>>>>>> caused by x64/x86 mismatch. Current process runs in x86 mode, and DLL is
>>>>>>>>> not x86.]
>>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\client\jvm.dll,
>>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>>> Redistributable Package is installed (
>>>>>>>>> https://www.microsoft.com/en-us/download/details.aspx?id=14632).]
>>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\default\jvm.dll,
>>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>>> Redistributable Package is installed (
>>>>>>>>> https://www.microsoft.com/en-us/download/details.aspx?id=14632).]
>>>>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadJvmDll(String
>>>>>>>>> configJvmDllPath, ILogger log)
>>>>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String
>>>>>>>>> configJvmDllPath, ILogger log)
>>>>>>>>>    at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
>>>>>>>>>    at Apache.Ignite.Core.Ignition.Start()
>>>>>>>>>    at ConsoleApp1.Program.Main(String[] args) in
>>>>>>>>> C:\Users\kukushal\Documents\Samples\ConsoleApp1\ConsoleApp1\Program.cs:line
>>>>>>>>> 16
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Fri, Sep 29, 2017 at 7:09 PM, Pavel Tupitsyn <
>>>>>>>>> ptupitsyn@apache.org> wrote:
>>>>>>>>>
>>>>>>>>>> Ignite.NET uses multiple lookup paths to locate jvm.dll:
>>>>>>>>>>
>>>>>>>>>> https://github.com/apache/ignite/blob/master/modules/platfor
>>>>>>>>>> ms/dotnet/Apache.Ignite.Core/Impl/IgniteUtils.cs#L49
>>>>>>>>>>
>>>>>>>>>> // JRE paths@"bin\server",@"bin\client",
>>>>>>>>>>  // JDK paths@"jre\bin\server",@"jre\bin\client",@"jre\bin\default"
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On my machine JAVA_HOME points to "c:\Program
>>>>>>>>>> Files\Java\jdk1.7.0_75", and Ignite.NET works fine.
>>>>>>>>>> Same with Java 8 on another machine.
>>>>>>>>>>
>>>>>>>>>> Which Java version do you have? Is it Oracle or something else?
>>>>>>>>>>
>>>>>>>>>> As a workaround you can set IgniteConfiguration.JvmDllPath
>>>>>>>>>> explicitly.
>>>>>>>>>>
>>>>>>>>>> On Fri, Sep 29, 2017 at 7:00 PM, Patrick Brunmayr <
>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> I just removed the JDK and reinstalled it properly.
>>>>>>>>>>>
>>>>>>>>>>> BUT
>>>>>>>>>>>
>>>>>>>>>>> I need JAVA_HOME for other applications like cassandra.
>>>>>>>>>>> According to internet JAVA_HOME should point to the JDK installation dir
>>>>>>>>>>> right ?
>>>>>>>>>>>
>>>>>>>>>>> But when i do this Ignite tries to load
>>>>>>>>>>> %JAVA_HOME%\bin\server.dll which is not present in the JDK folder. It's
>>>>>>>>>>> only available in the JRE folder.
>>>>>>>>>>>
>>>>>>>>>>> How can i fix that without altering my JAVA_HOME ?
>>>>>>>>>>>
>>>>>>>>>>> Thx
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>
>>>>>>>>>>> :
>>>>>>>>>>>
>>>>>>>>>>>> You don't have to copy these files manually. Something is wrong
>>>>>>>>>>>> with your setup.
>>>>>>>>>>>> I would advise to remove and reinstall the JRE/JDK.
>>>>>>>>>>>>
>>>>>>>>>>>> By the way, JAVA_HOME is not necessary with Oracle JRE/JDK,
>>>>>>>>>>>> Ignite.NET detects it automatically.
>>>>>>>>>>>>
>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> JAVA_HOME points to my JDK folder!
>>>>>>>>>>>>>
>>>>>>>>>>>>> There was a problem first! There was no bin\server\jvm.dll
>>>>>>>>>>>>> there Dont know why so i copied the jvm.dl from the embedded
>>>>>>>>>>>>> jdk\jre\bin\server to jdk\bin\server
>>>>>>>>>>>>>
>>>>>>>>>>>>> the funny thing is! I was able to run my app about 10 times
>>>>>>>>>>>>> with no problems and suddenly it stopped working.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29. Sep.
>>>>>>>>>>>>> 2017 um 17:34:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> > Error occurred during initialization of VM
>>>>>>>>>>>>>> > Unable to load native library: Can't find dependent
>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> What is your JAVA_HOME?
>>>>>>>>>>>>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK install
>>>>>>>>>>>>>> is corrupted.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I run my app now from a cmd and this is the output
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Patrick Brunmayr <pa...@kpibench.com> schrieb am
>>>>>>>>>>>>>>> Fr. 29. Sep. 2017 um 17:30:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> There is no output from visual studio! When i set a break
>>>>>>>>>>>>>>>> point to Ignition.Start and try to step over it crashes imediately! No
>>>>>>>>>>>>>>>> output!
>>>>>>>>>>>>>>>> The only output visual studio gives me is that the app
>>>>>>>>>>>>>>>> exited with code ox1
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> The output i got was from running the Apache.Ignite.exe
>>>>>>>>>>>>>>>> directly that was copied to the bin\Debug folder!
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb am
>>>>>>>>>>>>>>>> Fr. 29. Sep. 2017 um 17:22:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Patrick,
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Is that output from Visual Studio console window? Ignite
>>>>>>>>>>>>>>>>> writes information to standard output and error and not to the Visual
>>>>>>>>>>>>>>>>> Studio console. Can you either run your app from cmd.exe or put a
>>>>>>>>>>>>>>>>> breakpoint on the last line and see output in the cmd.exe that Visual
>>>>>>>>>>>>>>>>> Studio opens?
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>>>>>>> Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Where should ignite logs reside or how can i activate
>>>>>>>>>>>>>>>>>> them ?
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>>>>>>>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Hi Patrick,
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Would you please share ignite logs?
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Hello
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> I am using Visual Studio 2017 and have installed Apache
>>>>>>>>>>>>>>>>>>>> Ignite via NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Tried to run this little code
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> try
>>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>>> catch (Exception e)
>>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>>> Console.WriteLine(e);
>>>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> My app terminates with following output
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> It just crashes without any information
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> My setup
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>>>>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>>>>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>>>>>>>>>>>>    - Ignite 2.2
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> How can i know whats going on without any information.
>>>>>>>>>>>>>>>>>>>> Any ideas ?
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>>>>>> Andrey V. Mashenkov
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>>>> Alexey
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Best regards,
>>>>>>>>> Alexey
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Best regards,
>>>>>>> Alexey
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
>
> --
> Best regards,
> Alexey
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Alexey Kukushkin <ku...@gmail.com>.
OK, I solved all my issues. I can run the console app on "Any CPU" after
unchecking "Prefer 32-bit" in the project build properties.

On Fri, Sep 29, 2017 at 7:39 PM, Patrick Brunmayr <
patrick.brunmayr@kpibench.com> wrote:

> Yes and as i told you there is no exception :)
>
> The output from the console window is
>
> Error occurred during initialization of VM
> Unable to load native library: Can't find dependent libraries
>
>
>
>
>
> 2017-09-29 18:37 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>
>> You said "without any exception" above, but it turns out there is a very
>> good and descriptive exception :)
>> Please make sure to get the exception details and attach them here.
>>
>> If you run Apache.Ignite.exe, do so from a console window, so that you
>> can see the output.
>>
>> On Fri, Sep 29, 2017 at 7:32 PM, Patrick Brunmayr <
>> patrick.brunmayr@kpibench.com> wrote:
>>
>>> Yes but that is not the problem. I came across that exception and
>>> changed to a x64 build config and rebuilt all. But it still crashes without
>>> any exception
>>>
>>> 2017-09-29 18:30 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>
>>>> > C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll, error=DLL
>>>> could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often caused by
>>>> x64/x86 mismatch. Current process runs in x86 mode, and DLL is not x86.]
>>>>
>>>> There is your problem. Ignite.NET found the dll, but there is x86-x64
>>>> mismatch.
>>>> Make sure your project runs in x64 mode.
>>>> Uncheck "Prefer 32 bit"  in project settings:
>>>> https://ptupitsyn.github.io/images/prefer32bit.png
>>>>
>>>> > I still do not understand why Any CPU does not work.
>>>> Because "Prefer 32 bit" is enabled by default for some reason, see
>>>> above.
>>>>
>>>> On Fri, Sep 29, 2017 at 7:21 PM, Patrick Brunmayr <
>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>
>>>>> Did the same like you but now its crashing
>>>>>
>>>>> 2017-09-29 18:19 GMT+02:00 Alexey Kukushkin <kukushkinalexey@gmail.com
>>>>> >:
>>>>>
>>>>>> Patrick,
>>>>>>
>>>>>> I fixed the problem by creating new x64 configuration (set Platform
>>>>>> to "x64") since I have JDK x64 installed. I still do not understand why Any
>>>>>> CPU does not work.
>>>>>>
>>>>>> On Fri, Sep 29, 2017 at 7:15 PM, Patrick Brunmayr <
>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>
>>>>>>> I got the exact same message like you Alexey
>>>>>>>
>>>>>>> 2017-09-29 18:13 GMT+02:00 Alexey Kukushkin <
>>>>>>> kukushkinalexey@gmail.com>:
>>>>>>>
>>>>>>>> Pavel,
>>>>>>>>
>>>>>>>> It does not work for me - seems same problem. I also have
>>>>>>>> VisualStudio 2017 and Oracle JDK 8.144. I suggest we open a ticket and
>>>>>>>> investigate. I have jvm.dll inside jre\bin\server\jvm.dll but for some
>>>>>>>> reason Ignite does not try it.
>>>>>>>>
>>>>>>>> Apache.Ignite.Core.Common.IgniteException: Failed to load jvm.dll:
>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\server\jvm.dll,
>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>>>>> us/download/details.aspx?id=14632).]
>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\client\jvm.dll,
>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>>>>> us/download/details.aspx?id=14632).]
>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll,
>>>>>>>> error=DLL could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often
>>>>>>>> caused by x64/x86 mismatch. Current process runs in x86 mode, and DLL is
>>>>>>>> not x86.]
>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\client\jvm.dll,
>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>>>>> us/download/details.aspx?id=14632).]
>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\default\jvm.dll,
>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>>>>> us/download/details.aspx?id=14632).]
>>>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadJvmDll(String
>>>>>>>> configJvmDllPath, ILogger log)
>>>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String
>>>>>>>> configJvmDllPath, ILogger log)
>>>>>>>>    at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
>>>>>>>>    at Apache.Ignite.Core.Ignition.Start()
>>>>>>>>    at ConsoleApp1.Program.Main(String[] args) in
>>>>>>>> C:\Users\kukushal\Documents\Samples\ConsoleApp1\ConsoleApp1\Program.cs:line
>>>>>>>> 16
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, Sep 29, 2017 at 7:09 PM, Pavel Tupitsyn <
>>>>>>>> ptupitsyn@apache.org> wrote:
>>>>>>>>
>>>>>>>>> Ignite.NET uses multiple lookup paths to locate jvm.dll:
>>>>>>>>>
>>>>>>>>> https://github.com/apache/ignite/blob/master/modules/platfor
>>>>>>>>> ms/dotnet/Apache.Ignite.Core/Impl/IgniteUtils.cs#L49
>>>>>>>>>
>>>>>>>>> // JRE paths@"bin\server",@"bin\client",
>>>>>>>>>  // JDK paths@"jre\bin\server",@"jre\bin\client",@"jre\bin\default"
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On my machine JAVA_HOME points to "c:\Program
>>>>>>>>> Files\Java\jdk1.7.0_75", and Ignite.NET works fine.
>>>>>>>>> Same with Java 8 on another machine.
>>>>>>>>>
>>>>>>>>> Which Java version do you have? Is it Oracle or something else?
>>>>>>>>>
>>>>>>>>> As a workaround you can set IgniteConfiguration.JvmDllPath
>>>>>>>>> explicitly.
>>>>>>>>>
>>>>>>>>> On Fri, Sep 29, 2017 at 7:00 PM, Patrick Brunmayr <
>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>
>>>>>>>>>> I just removed the JDK and reinstalled it properly.
>>>>>>>>>>
>>>>>>>>>> BUT
>>>>>>>>>>
>>>>>>>>>> I need JAVA_HOME for other applications like cassandra. According
>>>>>>>>>> to internet JAVA_HOME should point to the JDK installation dir right ?
>>>>>>>>>>
>>>>>>>>>> But when i do this Ignite tries to load
>>>>>>>>>> %JAVA_HOME%\bin\server.dll which is not present in the JDK folder. It's
>>>>>>>>>> only available in the JRE folder.
>>>>>>>>>>
>>>>>>>>>> How can i fix that without altering my JAVA_HOME ?
>>>>>>>>>>
>>>>>>>>>> Thx
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>>>>>>>>
>>>>>>>>>>> You don't have to copy these files manually. Something is wrong
>>>>>>>>>>> with your setup.
>>>>>>>>>>> I would advise to remove and reinstall the JRE/JDK.
>>>>>>>>>>>
>>>>>>>>>>> By the way, JAVA_HOME is not necessary with Oracle JRE/JDK,
>>>>>>>>>>> Ignite.NET detects it automatically.
>>>>>>>>>>>
>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> JAVA_HOME points to my JDK folder!
>>>>>>>>>>>>
>>>>>>>>>>>> There was a problem first! There was no bin\server\jvm.dll
>>>>>>>>>>>> there Dont know why so i copied the jvm.dl from the embedded
>>>>>>>>>>>> jdk\jre\bin\server to jdk\bin\server
>>>>>>>>>>>>
>>>>>>>>>>>> the funny thing is! I was able to run my app about 10 times
>>>>>>>>>>>> with no problems and suddenly it stopped working.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29. Sep.
>>>>>>>>>>>> 2017 um 17:34:
>>>>>>>>>>>>
>>>>>>>>>>>>> > Error occurred during initialization of VM
>>>>>>>>>>>>> > Unable to load native library: Can't find dependent libraries
>>>>>>>>>>>>>
>>>>>>>>>>>>> What is your JAVA_HOME?
>>>>>>>>>>>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK install
>>>>>>>>>>>>> is corrupted.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> I run my app now from a cmd and this is the output
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Patrick Brunmayr <pa...@kpibench.com> schrieb am
>>>>>>>>>>>>>> Fr. 29. Sep. 2017 um 17:30:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> There is no output from visual studio! When i set a break
>>>>>>>>>>>>>>> point to Ignition.Start and try to step over it crashes imediately! No
>>>>>>>>>>>>>>> output!
>>>>>>>>>>>>>>> The only output visual studio gives me is that the app
>>>>>>>>>>>>>>> exited with code ox1
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The output i got was from running the Apache.Ignite.exe
>>>>>>>>>>>>>>> directly that was copied to the bin\Debug folder!
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb am Fr.
>>>>>>>>>>>>>>> 29. Sep. 2017 um 17:22:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Patrick,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Is that output from Visual Studio console window? Ignite
>>>>>>>>>>>>>>>> writes information to standard output and error and not to the Visual
>>>>>>>>>>>>>>>> Studio console. Can you either run your app from cmd.exe or put a
>>>>>>>>>>>>>>>> breakpoint on the last line and see output in the cmd.exe that Visual
>>>>>>>>>>>>>>>> Studio opens?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>>>>>> Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Where should ignite logs reside or how can i activate them
>>>>>>>>>>>>>>>>> ?
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>>>>>>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Hi Patrick,
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Would you please share ignite logs?
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Hello
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> I am using Visual Studio 2017 and have installed Apache
>>>>>>>>>>>>>>>>>>> Ignite via NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Tried to run this little code
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> try
>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>> catch (Exception e)
>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>> Console.WriteLine(e);
>>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> My app terminates with following output
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> It just crashes without any information
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> My setup
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>>>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>>>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>>>>>>>>>>>    - Ignite 2.2
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> How can i know whats going on without any information.
>>>>>>>>>>>>>>>>>>> Any ideas ?
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>>>>> Andrey V. Mashenkov
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>>> Alexey
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Best regards,
>>>>>>>> Alexey
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Best regards,
>>>>>> Alexey
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>


-- 
Best regards,
Alexey

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Pavel Tupitsyn <pt...@apache.org>.
Ok, can you try the Dependency Walker on your jvm.dll and see if it helps?
http://www.dependencywalker.com/

On Fri, Sep 29, 2017 at 7:39 PM, Patrick Brunmayr <
patrick.brunmayr@kpibench.com> wrote:

> Yes and as i told you there is no exception :)
>
> The output from the console window is
>
> Error occurred during initialization of VM
> Unable to load native library: Can't find dependent libraries
>
>
>
>
>
> 2017-09-29 18:37 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>
>> You said "without any exception" above, but it turns out there is a very
>> good and descriptive exception :)
>> Please make sure to get the exception details and attach them here.
>>
>> If you run Apache.Ignite.exe, do so from a console window, so that you
>> can see the output.
>>
>> On Fri, Sep 29, 2017 at 7:32 PM, Patrick Brunmayr <
>> patrick.brunmayr@kpibench.com> wrote:
>>
>>> Yes but that is not the problem. I came across that exception and
>>> changed to a x64 build config and rebuilt all. But it still crashes without
>>> any exception
>>>
>>> 2017-09-29 18:30 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>
>>>> > C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll, error=DLL
>>>> could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often caused by
>>>> x64/x86 mismatch. Current process runs in x86 mode, and DLL is not x86.]
>>>>
>>>> There is your problem. Ignite.NET found the dll, but there is x86-x64
>>>> mismatch.
>>>> Make sure your project runs in x64 mode.
>>>> Uncheck "Prefer 32 bit"  in project settings:
>>>> https://ptupitsyn.github.io/images/prefer32bit.png
>>>>
>>>> > I still do not understand why Any CPU does not work.
>>>> Because "Prefer 32 bit" is enabled by default for some reason, see
>>>> above.
>>>>
>>>> On Fri, Sep 29, 2017 at 7:21 PM, Patrick Brunmayr <
>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>
>>>>> Did the same like you but now its crashing
>>>>>
>>>>> 2017-09-29 18:19 GMT+02:00 Alexey Kukushkin <kukushkinalexey@gmail.com
>>>>> >:
>>>>>
>>>>>> Patrick,
>>>>>>
>>>>>> I fixed the problem by creating new x64 configuration (set Platform
>>>>>> to "x64") since I have JDK x64 installed. I still do not understand why Any
>>>>>> CPU does not work.
>>>>>>
>>>>>> On Fri, Sep 29, 2017 at 7:15 PM, Patrick Brunmayr <
>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>
>>>>>>> I got the exact same message like you Alexey
>>>>>>>
>>>>>>> 2017-09-29 18:13 GMT+02:00 Alexey Kukushkin <
>>>>>>> kukushkinalexey@gmail.com>:
>>>>>>>
>>>>>>>> Pavel,
>>>>>>>>
>>>>>>>> It does not work for me - seems same problem. I also have
>>>>>>>> VisualStudio 2017 and Oracle JDK 8.144. I suggest we open a ticket and
>>>>>>>> investigate. I have jvm.dll inside jre\bin\server\jvm.dll but for some
>>>>>>>> reason Ignite does not try it.
>>>>>>>>
>>>>>>>> Apache.Ignite.Core.Common.IgniteException: Failed to load jvm.dll:
>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\server\jvm.dll,
>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>>>>> us/download/details.aspx?id=14632).]
>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\client\jvm.dll,
>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>>>>> us/download/details.aspx?id=14632).]
>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll,
>>>>>>>> error=DLL could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often
>>>>>>>> caused by x64/x86 mismatch. Current process runs in x86 mode, and DLL is
>>>>>>>> not x86.]
>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\client\jvm.dll,
>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>>>>> us/download/details.aspx?id=14632).]
>>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\default\jvm.dll,
>>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>>>>> us/download/details.aspx?id=14632).]
>>>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadJvmDll(String
>>>>>>>> configJvmDllPath, ILogger log)
>>>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String
>>>>>>>> configJvmDllPath, ILogger log)
>>>>>>>>    at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
>>>>>>>>    at Apache.Ignite.Core.Ignition.Start()
>>>>>>>>    at ConsoleApp1.Program.Main(String[] args) in
>>>>>>>> C:\Users\kukushal\Documents\Samples\ConsoleApp1\ConsoleApp1\Program.cs:line
>>>>>>>> 16
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, Sep 29, 2017 at 7:09 PM, Pavel Tupitsyn <
>>>>>>>> ptupitsyn@apache.org> wrote:
>>>>>>>>
>>>>>>>>> Ignite.NET uses multiple lookup paths to locate jvm.dll:
>>>>>>>>>
>>>>>>>>> https://github.com/apache/ignite/blob/master/modules/platfor
>>>>>>>>> ms/dotnet/Apache.Ignite.Core/Impl/IgniteUtils.cs#L49
>>>>>>>>>
>>>>>>>>> // JRE paths@"bin\server",@"bin\client",
>>>>>>>>>  // JDK paths@"jre\bin\server",@"jre\bin\client",@"jre\bin\default"
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On my machine JAVA_HOME points to "c:\Program
>>>>>>>>> Files\Java\jdk1.7.0_75", and Ignite.NET works fine.
>>>>>>>>> Same with Java 8 on another machine.
>>>>>>>>>
>>>>>>>>> Which Java version do you have? Is it Oracle or something else?
>>>>>>>>>
>>>>>>>>> As a workaround you can set IgniteConfiguration.JvmDllPath
>>>>>>>>> explicitly.
>>>>>>>>>
>>>>>>>>> On Fri, Sep 29, 2017 at 7:00 PM, Patrick Brunmayr <
>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>
>>>>>>>>>> I just removed the JDK and reinstalled it properly.
>>>>>>>>>>
>>>>>>>>>> BUT
>>>>>>>>>>
>>>>>>>>>> I need JAVA_HOME for other applications like cassandra. According
>>>>>>>>>> to internet JAVA_HOME should point to the JDK installation dir right ?
>>>>>>>>>>
>>>>>>>>>> But when i do this Ignite tries to load
>>>>>>>>>> %JAVA_HOME%\bin\server.dll which is not present in the JDK folder. It's
>>>>>>>>>> only available in the JRE folder.
>>>>>>>>>>
>>>>>>>>>> How can i fix that without altering my JAVA_HOME ?
>>>>>>>>>>
>>>>>>>>>> Thx
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>>>>>>>>
>>>>>>>>>>> You don't have to copy these files manually. Something is wrong
>>>>>>>>>>> with your setup.
>>>>>>>>>>> I would advise to remove and reinstall the JRE/JDK.
>>>>>>>>>>>
>>>>>>>>>>> By the way, JAVA_HOME is not necessary with Oracle JRE/JDK,
>>>>>>>>>>> Ignite.NET detects it automatically.
>>>>>>>>>>>
>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> JAVA_HOME points to my JDK folder!
>>>>>>>>>>>>
>>>>>>>>>>>> There was a problem first! There was no bin\server\jvm.dll
>>>>>>>>>>>> there Dont know why so i copied the jvm.dl from the embedded
>>>>>>>>>>>> jdk\jre\bin\server to jdk\bin\server
>>>>>>>>>>>>
>>>>>>>>>>>> the funny thing is! I was able to run my app about 10 times
>>>>>>>>>>>> with no problems and suddenly it stopped working.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29. Sep.
>>>>>>>>>>>> 2017 um 17:34:
>>>>>>>>>>>>
>>>>>>>>>>>>> > Error occurred during initialization of VM
>>>>>>>>>>>>> > Unable to load native library: Can't find dependent libraries
>>>>>>>>>>>>>
>>>>>>>>>>>>> What is your JAVA_HOME?
>>>>>>>>>>>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK install
>>>>>>>>>>>>> is corrupted.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> I run my app now from a cmd and this is the output
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Patrick Brunmayr <pa...@kpibench.com> schrieb am
>>>>>>>>>>>>>> Fr. 29. Sep. 2017 um 17:30:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> There is no output from visual studio! When i set a break
>>>>>>>>>>>>>>> point to Ignition.Start and try to step over it crashes imediately! No
>>>>>>>>>>>>>>> output!
>>>>>>>>>>>>>>> The only output visual studio gives me is that the app
>>>>>>>>>>>>>>> exited with code ox1
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The output i got was from running the Apache.Ignite.exe
>>>>>>>>>>>>>>> directly that was copied to the bin\Debug folder!
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb am Fr.
>>>>>>>>>>>>>>> 29. Sep. 2017 um 17:22:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Patrick,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Is that output from Visual Studio console window? Ignite
>>>>>>>>>>>>>>>> writes information to standard output and error and not to the Visual
>>>>>>>>>>>>>>>> Studio console. Can you either run your app from cmd.exe or put a
>>>>>>>>>>>>>>>> breakpoint on the last line and see output in the cmd.exe that Visual
>>>>>>>>>>>>>>>> Studio opens?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>>>>>> Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Where should ignite logs reside or how can i activate them
>>>>>>>>>>>>>>>>> ?
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>>>>>>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Hi Patrick,
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Would you please share ignite logs?
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Hello
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> I am using Visual Studio 2017 and have installed Apache
>>>>>>>>>>>>>>>>>>> Ignite via NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Tried to run this little code
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> try
>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>> catch (Exception e)
>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>> Console.WriteLine(e);
>>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> My app terminates with following output
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> It just crashes without any information
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> My setup
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>>>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>>>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>>>>>>>>>>>    - Ignite 2.2
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> How can i know whats going on without any information.
>>>>>>>>>>>>>>>>>>> Any ideas ?
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>>>>> Andrey V. Mashenkov
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>>> Alexey
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Best regards,
>>>>>>>> Alexey
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Best regards,
>>>>>> Alexey
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Patrick Brunmayr <pa...@kpibench.com>.
Yes and as i told you there is no exception :)

The output from the console window is

Error occurred during initialization of VM
Unable to load native library: Can't find dependent libraries





2017-09-29 18:37 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:

> You said "without any exception" above, but it turns out there is a very
> good and descriptive exception :)
> Please make sure to get the exception details and attach them here.
>
> If you run Apache.Ignite.exe, do so from a console window, so that you can
> see the output.
>
> On Fri, Sep 29, 2017 at 7:32 PM, Patrick Brunmayr <
> patrick.brunmayr@kpibench.com> wrote:
>
>> Yes but that is not the problem. I came across that exception and changed
>> to a x64 build config and rebuilt all. But it still crashes without any
>> exception
>>
>> 2017-09-29 18:30 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>
>>> > C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll, error=DLL
>>> could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often caused by
>>> x64/x86 mismatch. Current process runs in x86 mode, and DLL is not x86.]
>>>
>>> There is your problem. Ignite.NET found the dll, but there is x86-x64
>>> mismatch.
>>> Make sure your project runs in x64 mode.
>>> Uncheck "Prefer 32 bit"  in project settings:
>>> https://ptupitsyn.github.io/images/prefer32bit.png
>>>
>>> > I still do not understand why Any CPU does not work.
>>> Because "Prefer 32 bit" is enabled by default for some reason, see above.
>>>
>>> On Fri, Sep 29, 2017 at 7:21 PM, Patrick Brunmayr <
>>> patrick.brunmayr@kpibench.com> wrote:
>>>
>>>> Did the same like you but now its crashing
>>>>
>>>> 2017-09-29 18:19 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>
>>>> :
>>>>
>>>>> Patrick,
>>>>>
>>>>> I fixed the problem by creating new x64 configuration (set Platform to
>>>>> "x64") since I have JDK x64 installed. I still do not understand why Any
>>>>> CPU does not work.
>>>>>
>>>>> On Fri, Sep 29, 2017 at 7:15 PM, Patrick Brunmayr <
>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>
>>>>>> I got the exact same message like you Alexey
>>>>>>
>>>>>> 2017-09-29 18:13 GMT+02:00 Alexey Kukushkin <
>>>>>> kukushkinalexey@gmail.com>:
>>>>>>
>>>>>>> Pavel,
>>>>>>>
>>>>>>> It does not work for me - seems same problem. I also have
>>>>>>> VisualStudio 2017 and Oracle JDK 8.144. I suggest we open a ticket and
>>>>>>> investigate. I have jvm.dll inside jre\bin\server\jvm.dll but for some
>>>>>>> reason Ignite does not try it.
>>>>>>>
>>>>>>> Apache.Ignite.Core.Common.IgniteException: Failed to load jvm.dll:
>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\server\jvm.dll,
>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>>>> us/download/details.aspx?id=14632).]
>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\client\jvm.dll,
>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>>>> us/download/details.aspx?id=14632).]
>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll,
>>>>>>> error=DLL could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often
>>>>>>> caused by x64/x86 mismatch. Current process runs in x86 mode, and DLL is
>>>>>>> not x86.]
>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\client\jvm.dll,
>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>>>> us/download/details.aspx?id=14632).]
>>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\default\jvm.dll,
>>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>>>> us/download/details.aspx?id=14632).]
>>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadJvmDll(String
>>>>>>> configJvmDllPath, ILogger log)
>>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String
>>>>>>> configJvmDllPath, ILogger log)
>>>>>>>    at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
>>>>>>>    at Apache.Ignite.Core.Ignition.Start()
>>>>>>>    at ConsoleApp1.Program.Main(String[] args) in
>>>>>>> C:\Users\kukushal\Documents\Samples\ConsoleApp1\ConsoleApp1\Program.cs:line
>>>>>>> 16
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Sep 29, 2017 at 7:09 PM, Pavel Tupitsyn <
>>>>>>> ptupitsyn@apache.org> wrote:
>>>>>>>
>>>>>>>> Ignite.NET uses multiple lookup paths to locate jvm.dll:
>>>>>>>>
>>>>>>>> https://github.com/apache/ignite/blob/master/modules/platfor
>>>>>>>> ms/dotnet/Apache.Ignite.Core/Impl/IgniteUtils.cs#L49
>>>>>>>>
>>>>>>>> // JRE paths@"bin\server",@"bin\client",
>>>>>>>>  // JDK paths@"jre\bin\server",@"jre\bin\client",@"jre\bin\default"
>>>>>>>>
>>>>>>>>
>>>>>>>> On my machine JAVA_HOME points to "c:\Program
>>>>>>>> Files\Java\jdk1.7.0_75", and Ignite.NET works fine.
>>>>>>>> Same with Java 8 on another machine.
>>>>>>>>
>>>>>>>> Which Java version do you have? Is it Oracle or something else?
>>>>>>>>
>>>>>>>> As a workaround you can set IgniteConfiguration.JvmDllPath
>>>>>>>> explicitly.
>>>>>>>>
>>>>>>>> On Fri, Sep 29, 2017 at 7:00 PM, Patrick Brunmayr <
>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>
>>>>>>>>> I just removed the JDK and reinstalled it properly.
>>>>>>>>>
>>>>>>>>> BUT
>>>>>>>>>
>>>>>>>>> I need JAVA_HOME for other applications like cassandra. According
>>>>>>>>> to internet JAVA_HOME should point to the JDK installation dir right ?
>>>>>>>>>
>>>>>>>>> But when i do this Ignite tries to load %JAVA_HOME%\bin\server.dll
>>>>>>>>> which is not present in the JDK folder. It's only available in the JRE
>>>>>>>>> folder.
>>>>>>>>>
>>>>>>>>> How can i fix that without altering my JAVA_HOME ?
>>>>>>>>>
>>>>>>>>> Thx
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>>>>>>>
>>>>>>>>>> You don't have to copy these files manually. Something is wrong
>>>>>>>>>> with your setup.
>>>>>>>>>> I would advise to remove and reinstall the JRE/JDK.
>>>>>>>>>>
>>>>>>>>>> By the way, JAVA_HOME is not necessary with Oracle JRE/JDK,
>>>>>>>>>> Ignite.NET detects it automatically.
>>>>>>>>>>
>>>>>>>>>> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> JAVA_HOME points to my JDK folder!
>>>>>>>>>>>
>>>>>>>>>>> There was a problem first! There was no bin\server\jvm.dll there
>>>>>>>>>>> Dont know why so i copied the jvm.dl from the embedded jdk\jre\bin\server
>>>>>>>>>>> to jdk\bin\server
>>>>>>>>>>>
>>>>>>>>>>> the funny thing is! I was able to run my app about 10 times with
>>>>>>>>>>> no problems and suddenly it stopped working.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29. Sep.
>>>>>>>>>>> 2017 um 17:34:
>>>>>>>>>>>
>>>>>>>>>>>> > Error occurred during initialization of VM
>>>>>>>>>>>> > Unable to load native library: Can't find dependent libraries
>>>>>>>>>>>>
>>>>>>>>>>>> What is your JAVA_HOME?
>>>>>>>>>>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK install
>>>>>>>>>>>> is corrupted.
>>>>>>>>>>>>
>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> I run my app now from a cmd and this is the output
>>>>>>>>>>>>>
>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Patrick Brunmayr <pa...@kpibench.com> schrieb am
>>>>>>>>>>>>> Fr. 29. Sep. 2017 um 17:30:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> There is no output from visual studio! When i set a break
>>>>>>>>>>>>>> point to Ignition.Start and try to step over it crashes imediately! No
>>>>>>>>>>>>>> output!
>>>>>>>>>>>>>> The only output visual studio gives me is that the app exited
>>>>>>>>>>>>>> with code ox1
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> The output i got was from running the Apache.Ignite.exe
>>>>>>>>>>>>>> directly that was copied to the bin\Debug folder!
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb am Fr.
>>>>>>>>>>>>>> 29. Sep. 2017 um 17:22:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Patrick,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Is that output from Visual Studio console window? Ignite
>>>>>>>>>>>>>>> writes information to standard output and error and not to the Visual
>>>>>>>>>>>>>>> Studio console. Can you either run your app from cmd.exe or put a
>>>>>>>>>>>>>>> breakpoint on the last line and see output in the cmd.exe that Visual
>>>>>>>>>>>>>>> Studio opens?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>>>>> Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Where should ignite logs reside or how can i activate them ?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>>>>>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Hi Patrick,
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Would you please share ignite logs?
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Hello
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> I am using Visual Studio 2017 and have installed Apache
>>>>>>>>>>>>>>>>>> Ignite via NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Tried to run this little code
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> try
>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>> catch (Exception e)
>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>> Console.WriteLine(e);
>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> My app terminates with following output
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> It just crashes without any information
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> My setup
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>>>>>>>>>>    - Ignite 2.2
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> How can i know whats going on without any information.
>>>>>>>>>>>>>>>>>> Any ideas ?
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>>>> Andrey V. Mashenkov
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>> Alexey
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Best regards,
>>>>>>> Alexey
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best regards,
>>>>> Alexey
>>>>>
>>>>
>>>>
>>>
>>
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Pavel Tupitsyn <pt...@apache.org>.
You said "without any exception" above, but it turns out there is a very
good and descriptive exception :)
Please make sure to get the exception details and attach them here.

If you run Apache.Ignite.exe, do so from a console window, so that you can
see the output.

On Fri, Sep 29, 2017 at 7:32 PM, Patrick Brunmayr <
patrick.brunmayr@kpibench.com> wrote:

> Yes but that is not the problem. I came across that exception and changed
> to a x64 build config and rebuilt all. But it still crashes without any
> exception
>
> 2017-09-29 18:30 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>
>> > C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll, error=DLL
>> could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often caused by
>> x64/x86 mismatch. Current process runs in x86 mode, and DLL is not x86.]
>>
>> There is your problem. Ignite.NET found the dll, but there is x86-x64
>> mismatch.
>> Make sure your project runs in x64 mode.
>> Uncheck "Prefer 32 bit"  in project settings:
>> https://ptupitsyn.github.io/images/prefer32bit.png
>>
>> > I still do not understand why Any CPU does not work.
>> Because "Prefer 32 bit" is enabled by default for some reason, see above.
>>
>> On Fri, Sep 29, 2017 at 7:21 PM, Patrick Brunmayr <
>> patrick.brunmayr@kpibench.com> wrote:
>>
>>> Did the same like you but now its crashing
>>>
>>> 2017-09-29 18:19 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>:
>>>
>>>> Patrick,
>>>>
>>>> I fixed the problem by creating new x64 configuration (set Platform to
>>>> "x64") since I have JDK x64 installed. I still do not understand why Any
>>>> CPU does not work.
>>>>
>>>> On Fri, Sep 29, 2017 at 7:15 PM, Patrick Brunmayr <
>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>
>>>>> I got the exact same message like you Alexey
>>>>>
>>>>> 2017-09-29 18:13 GMT+02:00 Alexey Kukushkin <kukushkinalexey@gmail.com
>>>>> >:
>>>>>
>>>>>> Pavel,
>>>>>>
>>>>>> It does not work for me - seems same problem. I also have
>>>>>> VisualStudio 2017 and Oracle JDK 8.144. I suggest we open a ticket and
>>>>>> investigate. I have jvm.dll inside jre\bin\server\jvm.dll but for some
>>>>>> reason Ignite does not try it.
>>>>>>
>>>>>> Apache.Ignite.Core.Common.IgniteException: Failed to load jvm.dll:
>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\server\jvm.dll,
>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>>> us/download/details.aspx?id=14632).]
>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\client\jvm.dll,
>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>>> us/download/details.aspx?id=14632).]
>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll,
>>>>>> error=DLL could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often
>>>>>> caused by x64/x86 mismatch. Current process runs in x86 mode, and DLL is
>>>>>> not x86.]
>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\client\jvm.dll,
>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>>> us/download/details.aspx?id=14632).]
>>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\default\jvm.dll,
>>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>>> us/download/details.aspx?id=14632).]
>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadJvmDll(String
>>>>>> configJvmDllPath, ILogger log)
>>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String
>>>>>> configJvmDllPath, ILogger log)
>>>>>>    at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
>>>>>>    at Apache.Ignite.Core.Ignition.Start()
>>>>>>    at ConsoleApp1.Program.Main(String[] args) in
>>>>>> C:\Users\kukushal\Documents\Samples\ConsoleApp1\ConsoleApp1\Program.cs:line
>>>>>> 16
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Sep 29, 2017 at 7:09 PM, Pavel Tupitsyn <ptupitsyn@apache.org
>>>>>> > wrote:
>>>>>>
>>>>>>> Ignite.NET uses multiple lookup paths to locate jvm.dll:
>>>>>>>
>>>>>>> https://github.com/apache/ignite/blob/master/modules/platfor
>>>>>>> ms/dotnet/Apache.Ignite.Core/Impl/IgniteUtils.cs#L49
>>>>>>>
>>>>>>> // JRE paths@"bin\server",@"bin\client",
>>>>>>>  // JDK paths@"jre\bin\server",@"jre\bin\client",@"jre\bin\default"
>>>>>>>
>>>>>>>
>>>>>>> On my machine JAVA_HOME points to "c:\Program
>>>>>>> Files\Java\jdk1.7.0_75", and Ignite.NET works fine.
>>>>>>> Same with Java 8 on another machine.
>>>>>>>
>>>>>>> Which Java version do you have? Is it Oracle or something else?
>>>>>>>
>>>>>>> As a workaround you can set IgniteConfiguration.JvmDllPath
>>>>>>> explicitly.
>>>>>>>
>>>>>>> On Fri, Sep 29, 2017 at 7:00 PM, Patrick Brunmayr <
>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>
>>>>>>>> I just removed the JDK and reinstalled it properly.
>>>>>>>>
>>>>>>>> BUT
>>>>>>>>
>>>>>>>> I need JAVA_HOME for other applications like cassandra. According
>>>>>>>> to internet JAVA_HOME should point to the JDK installation dir right ?
>>>>>>>>
>>>>>>>> But when i do this Ignite tries to load %JAVA_HOME%\bin\server.dll
>>>>>>>> which is not present in the JDK folder. It's only available in the JRE
>>>>>>>> folder.
>>>>>>>>
>>>>>>>> How can i fix that without altering my JAVA_HOME ?
>>>>>>>>
>>>>>>>> Thx
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> 2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>>>>>>
>>>>>>>>> You don't have to copy these files manually. Something is wrong
>>>>>>>>> with your setup.
>>>>>>>>> I would advise to remove and reinstall the JRE/JDK.
>>>>>>>>>
>>>>>>>>> By the way, JAVA_HOME is not necessary with Oracle JRE/JDK,
>>>>>>>>> Ignite.NET detects it automatically.
>>>>>>>>>
>>>>>>>>> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>
>>>>>>>>>> JAVA_HOME points to my JDK folder!
>>>>>>>>>>
>>>>>>>>>> There was a problem first! There was no bin\server\jvm.dll there
>>>>>>>>>> Dont know why so i copied the jvm.dl from the embedded jdk\jre\bin\server
>>>>>>>>>> to jdk\bin\server
>>>>>>>>>>
>>>>>>>>>> the funny thing is! I was able to run my app about 10 times with
>>>>>>>>>> no problems and suddenly it stopped working.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29. Sep.
>>>>>>>>>> 2017 um 17:34:
>>>>>>>>>>
>>>>>>>>>>> > Error occurred during initialization of VM
>>>>>>>>>>> > Unable to load native library: Can't find dependent libraries
>>>>>>>>>>>
>>>>>>>>>>> What is your JAVA_HOME?
>>>>>>>>>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK install is
>>>>>>>>>>> corrupted.
>>>>>>>>>>>
>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> I run my app now from a cmd and this is the output
>>>>>>>>>>>>
>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Patrick Brunmayr <pa...@kpibench.com> schrieb am
>>>>>>>>>>>> Fr. 29. Sep. 2017 um 17:30:
>>>>>>>>>>>>
>>>>>>>>>>>>> There is no output from visual studio! When i set a break
>>>>>>>>>>>>> point to Ignition.Start and try to step over it crashes imediately! No
>>>>>>>>>>>>> output!
>>>>>>>>>>>>> The only output visual studio gives me is that the app exited
>>>>>>>>>>>>> with code ox1
>>>>>>>>>>>>>
>>>>>>>>>>>>> The output i got was from running the Apache.Ignite.exe
>>>>>>>>>>>>> directly that was copied to the bin\Debug folder!
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb am Fr.
>>>>>>>>>>>>> 29. Sep. 2017 um 17:22:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Patrick,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Is that output from Visual Studio console window? Ignite
>>>>>>>>>>>>>> writes information to standard output and error and not to the Visual
>>>>>>>>>>>>>> Studio console. Can you either run your app from cmd.exe or put a
>>>>>>>>>>>>>> breakpoint on the last line and see output in the cmd.exe that Visual
>>>>>>>>>>>>>> Studio opens?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>>>> Unable to load native library: Can't find dependent
>>>>>>>>>>>>>>>> libraries
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Where should ignite logs reside or how can i activate them ?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>>>>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Hi Patrick,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Would you please share ignite logs?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Hello
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I am using Visual Studio 2017 and have installed Apache
>>>>>>>>>>>>>>>>> Ignite via NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Tried to run this little code
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> try
>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>> catch (Exception e)
>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>> Console.WriteLine(e);
>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> My app terminates with following output
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> It just crashes without any information
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> My setup
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>>>>>>>>>    - Ignite 2.2
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> How can i know whats going on without any information. Any
>>>>>>>>>>>>>>>>> ideas ?
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>>> Andrey V. Mashenkov
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>> Alexey
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Best regards,
>>>>>> Alexey
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Best regards,
>>>> Alexey
>>>>
>>>
>>>
>>
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Patrick Brunmayr <pa...@kpibench.com>.
Yes but that is not the problem. I came across that exception and changed
to a x64 build config and rebuilt all. But it still crashes without any
exception

2017-09-29 18:30 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:

> > C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll, error=DLL
> could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often caused by
> x64/x86 mismatch. Current process runs in x86 mode, and DLL is not x86.]
>
> There is your problem. Ignite.NET found the dll, but there is x86-x64
> mismatch.
> Make sure your project runs in x64 mode.
> Uncheck "Prefer 32 bit"  in project settings:
> https://ptupitsyn.github.io/images/prefer32bit.png
>
> > I still do not understand why Any CPU does not work.
> Because "Prefer 32 bit" is enabled by default for some reason, see above.
>
> On Fri, Sep 29, 2017 at 7:21 PM, Patrick Brunmayr <
> patrick.brunmayr@kpibench.com> wrote:
>
>> Did the same like you but now its crashing
>>
>> 2017-09-29 18:19 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>:
>>
>>> Patrick,
>>>
>>> I fixed the problem by creating new x64 configuration (set Platform to
>>> "x64") since I have JDK x64 installed. I still do not understand why Any
>>> CPU does not work.
>>>
>>> On Fri, Sep 29, 2017 at 7:15 PM, Patrick Brunmayr <
>>> patrick.brunmayr@kpibench.com> wrote:
>>>
>>>> I got the exact same message like you Alexey
>>>>
>>>> 2017-09-29 18:13 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>
>>>> :
>>>>
>>>>> Pavel,
>>>>>
>>>>> It does not work for me - seems same problem. I also have VisualStudio
>>>>> 2017 and Oracle JDK 8.144. I suggest we open a ticket and investigate. I
>>>>> have jvm.dll inside jre\bin\server\jvm.dll but for some reason Ignite does
>>>>> not try it.
>>>>>
>>>>> Apache.Ignite.Core.Common.IgniteException: Failed to load jvm.dll:
>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\server\jvm.dll,
>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>> us/download/details.aspx?id=14632).]
>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\client\jvm.dll,
>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>> us/download/details.aspx?id=14632).]
>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll,
>>>>> error=DLL could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often
>>>>> caused by x64/x86 mismatch. Current process runs in x86 mode, and DLL is
>>>>> not x86.]
>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\client\jvm.dll,
>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>> us/download/details.aspx?id=14632).]
>>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\default\jvm.dll,
>>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>>> us/download/details.aspx?id=14632).]
>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadJvmDll(String
>>>>> configJvmDllPath, ILogger log)
>>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String
>>>>> configJvmDllPath, ILogger log)
>>>>>    at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
>>>>>    at Apache.Ignite.Core.Ignition.Start()
>>>>>    at ConsoleApp1.Program.Main(String[] args) in
>>>>> C:\Users\kukushal\Documents\Samples\ConsoleApp1\ConsoleApp1\Program.cs:line
>>>>> 16
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Sep 29, 2017 at 7:09 PM, Pavel Tupitsyn <pt...@apache.org>
>>>>> wrote:
>>>>>
>>>>>> Ignite.NET uses multiple lookup paths to locate jvm.dll:
>>>>>>
>>>>>> https://github.com/apache/ignite/blob/master/modules/platfor
>>>>>> ms/dotnet/Apache.Ignite.Core/Impl/IgniteUtils.cs#L49
>>>>>>
>>>>>> // JRE paths@"bin\server",@"bin\client",
>>>>>>  // JDK paths@"jre\bin\server",@"jre\bin\client",@"jre\bin\default"
>>>>>>
>>>>>>
>>>>>> On my machine JAVA_HOME points to "c:\Program
>>>>>> Files\Java\jdk1.7.0_75", and Ignite.NET works fine.
>>>>>> Same with Java 8 on another machine.
>>>>>>
>>>>>> Which Java version do you have? Is it Oracle or something else?
>>>>>>
>>>>>> As a workaround you can set IgniteConfiguration.JvmDllPath explicitly.
>>>>>>
>>>>>> On Fri, Sep 29, 2017 at 7:00 PM, Patrick Brunmayr <
>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>
>>>>>>> I just removed the JDK and reinstalled it properly.
>>>>>>>
>>>>>>> BUT
>>>>>>>
>>>>>>> I need JAVA_HOME for other applications like cassandra. According to
>>>>>>> internet JAVA_HOME should point to the JDK installation dir right ?
>>>>>>>
>>>>>>> But when i do this Ignite tries to load %JAVA_HOME%\bin\server.dll
>>>>>>> which is not present in the JDK folder. It's only available in the JRE
>>>>>>> folder.
>>>>>>>
>>>>>>> How can i fix that without altering my JAVA_HOME ?
>>>>>>>
>>>>>>> Thx
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> 2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>>>>>
>>>>>>>> You don't have to copy these files manually. Something is wrong
>>>>>>>> with your setup.
>>>>>>>> I would advise to remove and reinstall the JRE/JDK.
>>>>>>>>
>>>>>>>> By the way, JAVA_HOME is not necessary with Oracle JRE/JDK,
>>>>>>>> Ignite.NET detects it automatically.
>>>>>>>>
>>>>>>>> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>
>>>>>>>>> JAVA_HOME points to my JDK folder!
>>>>>>>>>
>>>>>>>>> There was a problem first! There was no bin\server\jvm.dll there
>>>>>>>>> Dont know why so i copied the jvm.dl from the embedded jdk\jre\bin\server
>>>>>>>>> to jdk\bin\server
>>>>>>>>>
>>>>>>>>> the funny thing is! I was able to run my app about 10 times with
>>>>>>>>> no problems and suddenly it stopped working.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29. Sep.
>>>>>>>>> 2017 um 17:34:
>>>>>>>>>
>>>>>>>>>> > Error occurred during initialization of VM
>>>>>>>>>> > Unable to load native library: Can't find dependent libraries
>>>>>>>>>>
>>>>>>>>>> What is your JAVA_HOME?
>>>>>>>>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK install is
>>>>>>>>>> corrupted.
>>>>>>>>>>
>>>>>>>>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> I run my app now from a cmd and this is the output
>>>>>>>>>>>
>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Patrick Brunmayr <pa...@kpibench.com> schrieb am Fr.
>>>>>>>>>>> 29. Sep. 2017 um 17:30:
>>>>>>>>>>>
>>>>>>>>>>>> There is no output from visual studio! When i set a break point
>>>>>>>>>>>> to Ignition.Start and try to step over it crashes imediately! No output!
>>>>>>>>>>>> The only output visual studio gives me is that the app exited
>>>>>>>>>>>> with code ox1
>>>>>>>>>>>>
>>>>>>>>>>>> The output i got was from running the Apache.Ignite.exe
>>>>>>>>>>>> directly that was copied to the bin\Debug folder!
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb am Fr.
>>>>>>>>>>>> 29. Sep. 2017 um 17:22:
>>>>>>>>>>>>
>>>>>>>>>>>>> Patrick,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Is that output from Visual Studio console window? Ignite
>>>>>>>>>>>>> writes information to standard output and error and not to the Visual
>>>>>>>>>>>>> Studio console. Can you either run your app from cmd.exe or put a
>>>>>>>>>>>>> breakpoint on the last line and see output in the cmd.exe that Visual
>>>>>>>>>>>>> Studio opens?
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Where should ignite logs reside or how can i activate them ?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>>>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hi Patrick,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Would you please share ignite logs?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Hello
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I am using Visual Studio 2017 and have installed Apache
>>>>>>>>>>>>>>>> Ignite via NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Tried to run this little code
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> try
>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>> catch (Exception e)
>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>> Console.WriteLine(e);
>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> My app terminates with following output
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> It just crashes without any information
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> My setup
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>>>>>>>>    - Ignite 2.2
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> How can i know whats going on without any information. Any
>>>>>>>>>>>>>>>> ideas ?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>> Andrey V. Mashenkov
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>> Alexey
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best regards,
>>>>> Alexey
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Alexey
>>>
>>
>>
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Pavel Tupitsyn <pt...@apache.org>.
> C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll, error=DLL
could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often caused by
x64/x86 mismatch. Current process runs in x86 mode, and DLL is not x86.]

There is your problem. Ignite.NET found the dll, but there is x86-x64
mismatch.
Make sure your project runs in x64 mode.
Uncheck "Prefer 32 bit"  in project settings:
https://ptupitsyn.github.io/images/prefer32bit.png

> I still do not understand why Any CPU does not work.
Because "Prefer 32 bit" is enabled by default for some reason, see above.

On Fri, Sep 29, 2017 at 7:21 PM, Patrick Brunmayr <
patrick.brunmayr@kpibench.com> wrote:

> Did the same like you but now its crashing
>
> 2017-09-29 18:19 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>:
>
>> Patrick,
>>
>> I fixed the problem by creating new x64 configuration (set Platform to
>> "x64") since I have JDK x64 installed. I still do not understand why Any
>> CPU does not work.
>>
>> On Fri, Sep 29, 2017 at 7:15 PM, Patrick Brunmayr <
>> patrick.brunmayr@kpibench.com> wrote:
>>
>>> I got the exact same message like you Alexey
>>>
>>> 2017-09-29 18:13 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>:
>>>
>>>> Pavel,
>>>>
>>>> It does not work for me - seems same problem. I also have VisualStudio
>>>> 2017 and Oracle JDK 8.144. I suggest we open a ticket and investigate. I
>>>> have jvm.dll inside jre\bin\server\jvm.dll but for some reason Ignite does
>>>> not try it.
>>>>
>>>> Apache.Ignite.Core.Common.IgniteException: Failed to load jvm.dll:
>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\server\jvm.dll,
>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>> us/download/details.aspx?id=14632).]
>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\client\jvm.dll,
>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>> us/download/details.aspx?id=14632).]
>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll,
>>>> error=DLL could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often
>>>> caused by x64/x86 mismatch. Current process runs in x86 mode, and DLL is
>>>> not x86.]
>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\client\jvm.dll,
>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>> us/download/details.aspx?id=14632).]
>>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\default\jvm.dll,
>>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>>> us/download/details.aspx?id=14632).]
>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadJvmDll(String
>>>> configJvmDllPath, ILogger log)
>>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String
>>>> configJvmDllPath, ILogger log)
>>>>    at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
>>>>    at Apache.Ignite.Core.Ignition.Start()
>>>>    at ConsoleApp1.Program.Main(String[] args) in
>>>> C:\Users\kukushal\Documents\Samples\ConsoleApp1\ConsoleApp1\Program.cs:line
>>>> 16
>>>>
>>>>
>>>>
>>>>
>>>> On Fri, Sep 29, 2017 at 7:09 PM, Pavel Tupitsyn <pt...@apache.org>
>>>> wrote:
>>>>
>>>>> Ignite.NET uses multiple lookup paths to locate jvm.dll:
>>>>>
>>>>> https://github.com/apache/ignite/blob/master/modules/platfor
>>>>> ms/dotnet/Apache.Ignite.Core/Impl/IgniteUtils.cs#L49
>>>>>
>>>>> // JRE paths@"bin\server",@"bin\client",
>>>>>  // JDK paths@"jre\bin\server",@"jre\bin\client",@"jre\bin\default"
>>>>>
>>>>>
>>>>> On my machine JAVA_HOME points to "c:\Program Files\Java\jdk1.7.0_75",
>>>>> and Ignite.NET works fine.
>>>>> Same with Java 8 on another machine.
>>>>>
>>>>> Which Java version do you have? Is it Oracle or something else?
>>>>>
>>>>> As a workaround you can set IgniteConfiguration.JvmDllPath explicitly.
>>>>>
>>>>> On Fri, Sep 29, 2017 at 7:00 PM, Patrick Brunmayr <
>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>
>>>>>> I just removed the JDK and reinstalled it properly.
>>>>>>
>>>>>> BUT
>>>>>>
>>>>>> I need JAVA_HOME for other applications like cassandra. According to
>>>>>> internet JAVA_HOME should point to the JDK installation dir right ?
>>>>>>
>>>>>> But when i do this Ignite tries to load %JAVA_HOME%\bin\server.dll
>>>>>> which is not present in the JDK folder. It's only available in the JRE
>>>>>> folder.
>>>>>>
>>>>>> How can i fix that without altering my JAVA_HOME ?
>>>>>>
>>>>>> Thx
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> 2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>>>>
>>>>>>> You don't have to copy these files manually. Something is wrong with
>>>>>>> your setup.
>>>>>>> I would advise to remove and reinstall the JRE/JDK.
>>>>>>>
>>>>>>> By the way, JAVA_HOME is not necessary with Oracle JRE/JDK,
>>>>>>> Ignite.NET detects it automatically.
>>>>>>>
>>>>>>> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>
>>>>>>>> JAVA_HOME points to my JDK folder!
>>>>>>>>
>>>>>>>> There was a problem first! There was no bin\server\jvm.dll there
>>>>>>>> Dont know why so i copied the jvm.dl from the embedded jdk\jre\bin\server
>>>>>>>> to jdk\bin\server
>>>>>>>>
>>>>>>>> the funny thing is! I was able to run my app about 10 times with no
>>>>>>>> problems and suddenly it stopped working.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29. Sep. 2017
>>>>>>>> um 17:34:
>>>>>>>>
>>>>>>>>> > Error occurred during initialization of VM
>>>>>>>>> > Unable to load native library: Can't find dependent libraries
>>>>>>>>>
>>>>>>>>> What is your JAVA_HOME?
>>>>>>>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK install is
>>>>>>>>> corrupted.
>>>>>>>>>
>>>>>>>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>
>>>>>>>>>> I run my app now from a cmd and this is the output
>>>>>>>>>>
>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Patrick Brunmayr <pa...@kpibench.com> schrieb am Fr.
>>>>>>>>>> 29. Sep. 2017 um 17:30:
>>>>>>>>>>
>>>>>>>>>>> There is no output from visual studio! When i set a break point
>>>>>>>>>>> to Ignition.Start and try to step over it crashes imediately! No output!
>>>>>>>>>>> The only output visual studio gives me is that the app exited
>>>>>>>>>>> with code ox1
>>>>>>>>>>>
>>>>>>>>>>> The output i got was from running the Apache.Ignite.exe directly
>>>>>>>>>>> that was copied to the bin\Debug folder!
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb am Fr. 29.
>>>>>>>>>>> Sep. 2017 um 17:22:
>>>>>>>>>>>
>>>>>>>>>>>> Patrick,
>>>>>>>>>>>>
>>>>>>>>>>>> Is that output from Visual Studio console window? Ignite writes
>>>>>>>>>>>> information to standard output and error and not to the Visual Studio
>>>>>>>>>>>> console. Can you either run your app from cmd.exe or put a breakpoint on
>>>>>>>>>>>> the last line and see output in the cmd.exe that Visual Studio opens?
>>>>>>>>>>>>
>>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>>>>>>>
>>>>>>>>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>>>>>>>>
>>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>>>>>>>
>>>>>>>>>>>>> Where should ignite logs reside or how can i activate them ?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hi Patrick,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Would you please share ignite logs?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hello
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I am using Visual Studio 2017 and have installed Apache
>>>>>>>>>>>>>>> Ignite via NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Tried to run this little code
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> try
>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>> catch (Exception e)
>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>> Console.WriteLine(e);
>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> My app terminates with following output
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> It just crashes without any information
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> My setup
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>>>>>>>    - Ignite 2.2
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> How can i know whats going on without any information. Any
>>>>>>>>>>>>>>> ideas ?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>> Andrey V. Mashenkov
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Best regards,
>>>>>>>>>>>> Alexey
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Best regards,
>>>> Alexey
>>>>
>>>
>>>
>>
>>
>> --
>> Best regards,
>> Alexey
>>
>
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Patrick Brunmayr <pa...@kpibench.com>.
Did the same like you but now its crashing

2017-09-29 18:19 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>:

> Patrick,
>
> I fixed the problem by creating new x64 configuration (set Platform to
> "x64") since I have JDK x64 installed. I still do not understand why Any
> CPU does not work.
>
> On Fri, Sep 29, 2017 at 7:15 PM, Patrick Brunmayr <
> patrick.brunmayr@kpibench.com> wrote:
>
>> I got the exact same message like you Alexey
>>
>> 2017-09-29 18:13 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>:
>>
>>> Pavel,
>>>
>>> It does not work for me - seems same problem. I also have VisualStudio
>>> 2017 and Oracle JDK 8.144. I suggest we open a ticket and investigate. I
>>> have jvm.dll inside jre\bin\server\jvm.dll but for some reason Ignite does
>>> not try it.
>>>
>>> Apache.Ignite.Core.Common.IgniteException: Failed to load jvm.dll:
>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\server\jvm.dll,
>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>> us/download/details.aspx?id=14632).]
>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\client\jvm.dll,
>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>> us/download/details.aspx?id=14632).]
>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll,
>>> error=DLL could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often
>>> caused by x64/x86 mismatch. Current process runs in x86 mode, and DLL is
>>> not x86.]
>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\client\jvm.dll,
>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>> us/download/details.aspx?id=14632).]
>>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\default\jvm.dll,
>>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>>> Redistributable Package is installed (https://www.microsoft.com/en-
>>> us/download/details.aspx?id=14632).]
>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadJvmDll(String
>>> configJvmDllPath, ILogger log)
>>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String
>>> configJvmDllPath, ILogger log)
>>>    at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
>>>    at Apache.Ignite.Core.Ignition.Start()
>>>    at ConsoleApp1.Program.Main(String[] args) in
>>> C:\Users\kukushal\Documents\Samples\ConsoleApp1\ConsoleApp1\Program.cs:line
>>> 16
>>>
>>>
>>>
>>>
>>> On Fri, Sep 29, 2017 at 7:09 PM, Pavel Tupitsyn <pt...@apache.org>
>>> wrote:
>>>
>>>> Ignite.NET uses multiple lookup paths to locate jvm.dll:
>>>>
>>>> https://github.com/apache/ignite/blob/master/modules/platfor
>>>> ms/dotnet/Apache.Ignite.Core/Impl/IgniteUtils.cs#L49
>>>>
>>>> // JRE paths@"bin\server",@"bin\client",
>>>>  // JDK paths@"jre\bin\server",@"jre\bin\client",@"jre\bin\default"
>>>>
>>>>
>>>> On my machine JAVA_HOME points to "c:\Program Files\Java\jdk1.7.0_75",
>>>> and Ignite.NET works fine.
>>>> Same with Java 8 on another machine.
>>>>
>>>> Which Java version do you have? Is it Oracle or something else?
>>>>
>>>> As a workaround you can set IgniteConfiguration.JvmDllPath explicitly.
>>>>
>>>> On Fri, Sep 29, 2017 at 7:00 PM, Patrick Brunmayr <
>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>
>>>>> I just removed the JDK and reinstalled it properly.
>>>>>
>>>>> BUT
>>>>>
>>>>> I need JAVA_HOME for other applications like cassandra. According to
>>>>> internet JAVA_HOME should point to the JDK installation dir right ?
>>>>>
>>>>> But when i do this Ignite tries to load %JAVA_HOME%\bin\server.dll
>>>>> which is not present in the JDK folder. It's only available in the JRE
>>>>> folder.
>>>>>
>>>>> How can i fix that without altering my JAVA_HOME ?
>>>>>
>>>>> Thx
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> 2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>>>
>>>>>> You don't have to copy these files manually. Something is wrong with
>>>>>> your setup.
>>>>>> I would advise to remove and reinstall the JRE/JDK.
>>>>>>
>>>>>> By the way, JAVA_HOME is not necessary with Oracle JRE/JDK,
>>>>>> Ignite.NET detects it automatically.
>>>>>>
>>>>>> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>
>>>>>>> JAVA_HOME points to my JDK folder!
>>>>>>>
>>>>>>> There was a problem first! There was no bin\server\jvm.dll there
>>>>>>> Dont know why so i copied the jvm.dl from the embedded jdk\jre\bin\server
>>>>>>> to jdk\bin\server
>>>>>>>
>>>>>>> the funny thing is! I was able to run my app about 10 times with no
>>>>>>> problems and suddenly it stopped working.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29. Sep. 2017
>>>>>>> um 17:34:
>>>>>>>
>>>>>>>> > Error occurred during initialization of VM
>>>>>>>> > Unable to load native library: Can't find dependent libraries
>>>>>>>>
>>>>>>>> What is your JAVA_HOME?
>>>>>>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK install is
>>>>>>>> corrupted.
>>>>>>>>
>>>>>>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>
>>>>>>>>> I run my app now from a cmd and this is the output
>>>>>>>>>
>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Patrick Brunmayr <pa...@kpibench.com> schrieb am Fr.
>>>>>>>>> 29. Sep. 2017 um 17:30:
>>>>>>>>>
>>>>>>>>>> There is no output from visual studio! When i set a break point
>>>>>>>>>> to Ignition.Start and try to step over it crashes imediately! No output!
>>>>>>>>>> The only output visual studio gives me is that the app exited
>>>>>>>>>> with code ox1
>>>>>>>>>>
>>>>>>>>>> The output i got was from running the Apache.Ignite.exe directly
>>>>>>>>>> that was copied to the bin\Debug folder!
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb am Fr. 29.
>>>>>>>>>> Sep. 2017 um 17:22:
>>>>>>>>>>
>>>>>>>>>>> Patrick,
>>>>>>>>>>>
>>>>>>>>>>> Is that output from Visual Studio console window? Ignite writes
>>>>>>>>>>> information to standard output and error and not to the Visual Studio
>>>>>>>>>>> console. Can you either run your app from cmd.exe or put a breakpoint on
>>>>>>>>>>> the last line and see output in the cmd.exe that Visual Studio opens?
>>>>>>>>>>>
>>>>>>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>>>>>>
>>>>>>>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>>>>>>>
>>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>>>>>>
>>>>>>>>>>>> Where should ignite logs reside or how can i activate them ?
>>>>>>>>>>>>
>>>>>>>>>>>> Thx
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi Patrick,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Would you please share ignite logs?
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hello
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I am using Visual Studio 2017 and have installed Apache
>>>>>>>>>>>>>> Ignite via NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Tried to run this little code
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> try
>>>>>>>>>>>>>> {
>>>>>>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>>>>>>> }
>>>>>>>>>>>>>> catch (Exception e)
>>>>>>>>>>>>>> {
>>>>>>>>>>>>>> Console.WriteLine(e);
>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> My app terminates with following output
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> It just crashes without any information
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> My setup
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>>>>>>    - Ignite 2.2
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> How can i know whats going on without any information. Any
>>>>>>>>>>>>>> ideas ?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>> Andrey V. Mashenkov
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Best regards,
>>>>>>>>>>> Alexey
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Alexey
>>>
>>
>>
>
>
> --
> Best regards,
> Alexey
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Alexey Kukushkin <ku...@gmail.com>.
Patrick,

I fixed the problem by creating new x64 configuration (set Platform to
"x64") since I have JDK x64 installed. I still do not understand why Any
CPU does not work.

On Fri, Sep 29, 2017 at 7:15 PM, Patrick Brunmayr <
patrick.brunmayr@kpibench.com> wrote:

> I got the exact same message like you Alexey
>
> 2017-09-29 18:13 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>:
>
>> Pavel,
>>
>> It does not work for me - seems same problem. I also have VisualStudio
>> 2017 and Oracle JDK 8.144. I suggest we open a ticket and investigate. I
>> have jvm.dll inside jre\bin\server\jvm.dll but for some reason Ignite does
>> not try it.
>>
>> Apache.Ignite.Core.Common.IgniteException: Failed to load jvm.dll:
>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\server\jvm.dll,
>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>> Redistributable Package is installed (https://www.microsoft.com/en-
>> us/download/details.aspx?id=14632).]
>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\client\jvm.dll,
>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>> Redistributable Package is installed (https://www.microsoft.com/en-
>> us/download/details.aspx?id=14632).]
>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll,
>> error=DLL could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often
>> caused by x64/x86 mismatch. Current process runs in x86 mode, and DLL is
>> not x86.]
>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\client\jvm.dll,
>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>> Redistributable Package is installed (https://www.microsoft.com/en-
>> us/download/details.aspx?id=14632).]
>> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\default\jvm.dll,
>> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
>> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
>> Redistributable Package is installed (https://www.microsoft.com/en-
>> us/download/details.aspx?id=14632).]
>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadJvmDll(String
>> configJvmDllPath, ILogger log)
>>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String
>> configJvmDllPath, ILogger log)
>>    at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
>>    at Apache.Ignite.Core.Ignition.Start()
>>    at ConsoleApp1.Program.Main(String[] args) in
>> C:\Users\kukushal\Documents\Samples\ConsoleApp1\ConsoleApp1\Program.cs:line
>> 16
>>
>>
>>
>>
>> On Fri, Sep 29, 2017 at 7:09 PM, Pavel Tupitsyn <pt...@apache.org>
>> wrote:
>>
>>> Ignite.NET uses multiple lookup paths to locate jvm.dll:
>>>
>>> https://github.com/apache/ignite/blob/master/modules/platfor
>>> ms/dotnet/Apache.Ignite.Core/Impl/IgniteUtils.cs#L49
>>>
>>> // JRE paths@"bin\server",@"bin\client",
>>>  // JDK paths@"jre\bin\server",@"jre\bin\client",@"jre\bin\default"
>>>
>>>
>>> On my machine JAVA_HOME points to "c:\Program Files\Java\jdk1.7.0_75",
>>> and Ignite.NET works fine.
>>> Same with Java 8 on another machine.
>>>
>>> Which Java version do you have? Is it Oracle or something else?
>>>
>>> As a workaround you can set IgniteConfiguration.JvmDllPath explicitly.
>>>
>>> On Fri, Sep 29, 2017 at 7:00 PM, Patrick Brunmayr <
>>> patrick.brunmayr@kpibench.com> wrote:
>>>
>>>> I just removed the JDK and reinstalled it properly.
>>>>
>>>> BUT
>>>>
>>>> I need JAVA_HOME for other applications like cassandra. According to
>>>> internet JAVA_HOME should point to the JDK installation dir right ?
>>>>
>>>> But when i do this Ignite tries to load %JAVA_HOME%\bin\server.dll
>>>> which is not present in the JDK folder. It's only available in the JRE
>>>> folder.
>>>>
>>>> How can i fix that without altering my JAVA_HOME ?
>>>>
>>>> Thx
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> 2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>>
>>>>> You don't have to copy these files manually. Something is wrong with
>>>>> your setup.
>>>>> I would advise to remove and reinstall the JRE/JDK.
>>>>>
>>>>> By the way, JAVA_HOME is not necessary with Oracle JRE/JDK, Ignite.NET
>>>>> detects it automatically.
>>>>>
>>>>> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>
>>>>>> JAVA_HOME points to my JDK folder!
>>>>>>
>>>>>> There was a problem first! There was no bin\server\jvm.dll there Dont
>>>>>> know why so i copied the jvm.dl from the embedded jdk\jre\bin\server to
>>>>>> jdk\bin\server
>>>>>>
>>>>>> the funny thing is! I was able to run my app about 10 times with no
>>>>>> problems and suddenly it stopped working.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29. Sep. 2017
>>>>>> um 17:34:
>>>>>>
>>>>>>> > Error occurred during initialization of VM
>>>>>>> > Unable to load native library: Can't find dependent libraries
>>>>>>>
>>>>>>> What is your JAVA_HOME?
>>>>>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK install is
>>>>>>> corrupted.
>>>>>>>
>>>>>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>
>>>>>>>> I run my app now from a cmd and this is the output
>>>>>>>>
>>>>>>>> Error occurred during initialization of VM
>>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Patrick Brunmayr <pa...@kpibench.com> schrieb am Fr.
>>>>>>>> 29. Sep. 2017 um 17:30:
>>>>>>>>
>>>>>>>>> There is no output from visual studio! When i set a break point to
>>>>>>>>> Ignition.Start and try to step over it crashes imediately! No output!
>>>>>>>>> The only output visual studio gives me is that the app exited with
>>>>>>>>> code ox1
>>>>>>>>>
>>>>>>>>> The output i got was from running the Apache.Ignite.exe directly
>>>>>>>>> that was copied to the bin\Debug folder!
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb am Fr. 29.
>>>>>>>>> Sep. 2017 um 17:22:
>>>>>>>>>
>>>>>>>>>> Patrick,
>>>>>>>>>>
>>>>>>>>>> Is that output from Visual Studio console window? Ignite writes
>>>>>>>>>> information to standard output and error and not to the Visual Studio
>>>>>>>>>> console. Can you either run your app from cmd.exe or put a breakpoint on
>>>>>>>>>> the last line and see output in the cmd.exe that Visual Studio opens?
>>>>>>>>>>
>>>>>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>>>>>
>>>>>>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>>>>>>
>>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>>>>>
>>>>>>>>>>> Where should ignite logs reside or how can i activate them ?
>>>>>>>>>>>
>>>>>>>>>>> Thx
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>>>>>
>>>>>>>>>>>> Hi Patrick,
>>>>>>>>>>>>
>>>>>>>>>>>> Would you please share ignite logs?
>>>>>>>>>>>>
>>>>>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hello
>>>>>>>>>>>>>
>>>>>>>>>>>>> I am using Visual Studio 2017 and have installed Apache Ignite
>>>>>>>>>>>>> via NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Tried to run this little code
>>>>>>>>>>>>>
>>>>>>>>>>>>> try
>>>>>>>>>>>>> {
>>>>>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>>>>>> }
>>>>>>>>>>>>> catch (Exception e)
>>>>>>>>>>>>> {
>>>>>>>>>>>>> Console.WriteLine(e);
>>>>>>>>>>>>> }
>>>>>>>>>>>>>
>>>>>>>>>>>>> My app terminates with following output
>>>>>>>>>>>>>
>>>>>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>>>>>
>>>>>>>>>>>>> It just crashes without any information
>>>>>>>>>>>>>
>>>>>>>>>>>>> My setup
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>>>>>    - Ignite 2.2
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> How can i know whats going on without any information. Any
>>>>>>>>>>>>> ideas ?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thx
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Best regards,
>>>>>>>>>>>> Andrey V. Mashenkov
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Best regards,
>>>>>>>>>> Alexey
>>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>
>>>>
>>>
>>
>>
>> --
>> Best regards,
>> Alexey
>>
>
>


-- 
Best regards,
Alexey

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Patrick Brunmayr <pa...@kpibench.com>.
I got the exact same message like you Alexey

2017-09-29 18:13 GMT+02:00 Alexey Kukushkin <ku...@gmail.com>:

> Pavel,
>
> It does not work for me - seems same problem. I also have VisualStudio
> 2017 and Oracle JDK 8.144. I suggest we open a ticket and investigate. I
> have jvm.dll inside jre\bin\server\jvm.dll but for some reason Ignite does
> not try it.
>
> Apache.Ignite.Core.Common.IgniteException: Failed to load jvm.dll:
> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\server\jvm.dll,
> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
> Redistributable Package is installed (https://www.microsoft.com/en-
> us/download/details.aspx?id=14632).]
> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\bin\client\jvm.dll,
> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
> Redistributable Package is installed (https://www.microsoft.com/en-
> us/download/details.aspx?id=14632).]
> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll,
> error=DLL could not be loaded (193: ERROR_BAD_EXE_FORMAT). This is often
> caused by x64/x86 mismatch. Current process runs in x86 mode, and DLL is
> not x86.]
> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\client\jvm.dll,
> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
> Redistributable Package is installed (https://www.microsoft.com/en-
> us/download/details.aspx?id=14632).]
> [option=JAVA_HOME, path=C:\Program Files\Java\jdk1.8.0_144\jre\bin\default\jvm.dll,
> error=DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be
> caused by missing dependencies. Make sure that Microsoft Visual C++ 2010
> Redistributable Package is installed (https://www.microsoft.com/en-
> us/download/details.aspx?id=14632).]
>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadJvmDll(String
> configJvmDllPath, ILogger log)
>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String
> configJvmDllPath, ILogger log)
>    at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
>    at Apache.Ignite.Core.Ignition.Start()
>    at ConsoleApp1.Program.Main(String[] args) in
> C:\Users\kukushal\Documents\Samples\ConsoleApp1\ConsoleApp1\Program.cs:line
> 16
>
>
>
>
> On Fri, Sep 29, 2017 at 7:09 PM, Pavel Tupitsyn <pt...@apache.org>
> wrote:
>
>> Ignite.NET uses multiple lookup paths to locate jvm.dll:
>>
>> https://github.com/apache/ignite/blob/master/modules/platfor
>> ms/dotnet/Apache.Ignite.Core/Impl/IgniteUtils.cs#L49
>>
>> // JRE paths@"bin\server",@"bin\client",
>>  // JDK paths@"jre\bin\server",@"jre\bin\client",@"jre\bin\default"
>>
>>
>> On my machine JAVA_HOME points to "c:\Program Files\Java\jdk1.7.0_75",
>> and Ignite.NET works fine.
>> Same with Java 8 on another machine.
>>
>> Which Java version do you have? Is it Oracle or something else?
>>
>> As a workaround you can set IgniteConfiguration.JvmDllPath explicitly.
>>
>> On Fri, Sep 29, 2017 at 7:00 PM, Patrick Brunmayr <
>> patrick.brunmayr@kpibench.com> wrote:
>>
>>> I just removed the JDK and reinstalled it properly.
>>>
>>> BUT
>>>
>>> I need JAVA_HOME for other applications like cassandra. According to
>>> internet JAVA_HOME should point to the JDK installation dir right ?
>>>
>>> But when i do this Ignite tries to load %JAVA_HOME%\bin\server.dll which
>>> is not present in the JDK folder. It's only available in the JRE folder.
>>>
>>> How can i fix that without altering my JAVA_HOME ?
>>>
>>> Thx
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> 2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>>
>>>> You don't have to copy these files manually. Something is wrong with
>>>> your setup.
>>>> I would advise to remove and reinstall the JRE/JDK.
>>>>
>>>> By the way, JAVA_HOME is not necessary with Oracle JRE/JDK, Ignite.NET
>>>> detects it automatically.
>>>>
>>>> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>
>>>>> JAVA_HOME points to my JDK folder!
>>>>>
>>>>> There was a problem first! There was no bin\server\jvm.dll there Dont
>>>>> know why so i copied the jvm.dl from the embedded jdk\jre\bin\server to
>>>>> jdk\bin\server
>>>>>
>>>>> the funny thing is! I was able to run my app about 10 times with no
>>>>> problems and suddenly it stopped working.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29. Sep. 2017 um
>>>>> 17:34:
>>>>>
>>>>>> > Error occurred during initialization of VM
>>>>>> > Unable to load native library: Can't find dependent libraries
>>>>>>
>>>>>> What is your JAVA_HOME?
>>>>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK install is
>>>>>> corrupted.
>>>>>>
>>>>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>
>>>>>>> I run my app now from a cmd and this is the output
>>>>>>>
>>>>>>> Error occurred during initialization of VM
>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Patrick Brunmayr <pa...@kpibench.com> schrieb am Fr. 29.
>>>>>>> Sep. 2017 um 17:30:
>>>>>>>
>>>>>>>> There is no output from visual studio! When i set a break point to
>>>>>>>> Ignition.Start and try to step over it crashes imediately! No output!
>>>>>>>> The only output visual studio gives me is that the app exited with
>>>>>>>> code ox1
>>>>>>>>
>>>>>>>> The output i got was from running the Apache.Ignite.exe directly
>>>>>>>> that was copied to the bin\Debug folder!
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb am Fr. 29.
>>>>>>>> Sep. 2017 um 17:22:
>>>>>>>>
>>>>>>>>> Patrick,
>>>>>>>>>
>>>>>>>>> Is that output from Visual Studio console window? Ignite writes
>>>>>>>>> information to standard output and error and not to the Visual Studio
>>>>>>>>> console. Can you either run your app from cmd.exe or put a breakpoint on
>>>>>>>>> the last line and see output in the cmd.exe that Visual Studio opens?
>>>>>>>>>
>>>>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>
>>>>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>>>>
>>>>>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>>>>>
>>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>>>>
>>>>>>>>>> Where should ignite logs reside or how can i activate them ?
>>>>>>>>>>
>>>>>>>>>> Thx
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>>>>
>>>>>>>>>>> Hi Patrick,
>>>>>>>>>>>
>>>>>>>>>>> Would you please share ignite logs?
>>>>>>>>>>>
>>>>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hello
>>>>>>>>>>>>
>>>>>>>>>>>> I am using Visual Studio 2017 and have installed Apache Ignite
>>>>>>>>>>>> via NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>>>>
>>>>>>>>>>>> Tried to run this little code
>>>>>>>>>>>>
>>>>>>>>>>>> try
>>>>>>>>>>>> {
>>>>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>>>>> }
>>>>>>>>>>>> catch (Exception e)
>>>>>>>>>>>> {
>>>>>>>>>>>> Console.WriteLine(e);
>>>>>>>>>>>> }
>>>>>>>>>>>>
>>>>>>>>>>>> My app terminates with following output
>>>>>>>>>>>>
>>>>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>>>>
>>>>>>>>>>>> It just crashes without any information
>>>>>>>>>>>>
>>>>>>>>>>>> My setup
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>>>>    - Ignite 2.2
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> How can i know whats going on without any information. Any
>>>>>>>>>>>> ideas ?
>>>>>>>>>>>>
>>>>>>>>>>>> Thx
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Best regards,
>>>>>>>>>>> Andrey V. Mashenkov
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Best regards,
>>>>>>>>> Alexey
>>>>>>>>>
>>>>>>>>
>>>>>>
>>>>
>>>
>>
>
>
> --
> Best regards,
> Alexey
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Alexey Kukushkin <ku...@gmail.com>.
Pavel,

It does not work for me - seems same problem. I also have VisualStudio 2017
and Oracle JDK 8.144. I suggest we open a ticket and investigate. I have
jvm.dll inside jre\bin\server\jvm.dll but for some reason Ignite does not
try it.

Apache.Ignite.Core.Common.IgniteException: Failed to load jvm.dll:
[option=JAVA_HOME, path=C:\Program
Files\Java\jdk1.8.0_144\bin\server\jvm.dll, error=DLL could not be loaded
(126: ERROR_MOD_NOT_FOUND). This can be caused by missing dependencies.
Make sure that Microsoft Visual C++ 2010 Redistributable Package is
installed (https://www.microsoft.com/en-us/download/details.aspx?id=14632).]
[option=JAVA_HOME, path=C:\Program
Files\Java\jdk1.8.0_144\bin\client\jvm.dll, error=DLL could not be loaded
(126: ERROR_MOD_NOT_FOUND). This can be caused by missing dependencies.
Make sure that Microsoft Visual C++ 2010 Redistributable Package is
installed (https://www.microsoft.com/en-us/download/details.aspx?id=14632).]
[option=JAVA_HOME, path=C:\Program
Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll, error=DLL could not be
loaded (193: ERROR_BAD_EXE_FORMAT). This is often caused by x64/x86
mismatch. Current process runs in x86 mode, and DLL is not x86.]
[option=JAVA_HOME, path=C:\Program
Files\Java\jdk1.8.0_144\jre\bin\client\jvm.dll, error=DLL could not be
loaded (126: ERROR_MOD_NOT_FOUND). This can be caused by missing
dependencies. Make sure that Microsoft Visual C++ 2010 Redistributable
Package is installed (
https://www.microsoft.com/en-us/download/details.aspx?id=14632).]
[option=JAVA_HOME, path=C:\Program
Files\Java\jdk1.8.0_144\jre\bin\default\jvm.dll, error=DLL could not be
loaded (126: ERROR_MOD_NOT_FOUND). This can be caused by missing
dependencies. Make sure that Microsoft Visual C++ 2010 Redistributable
Package is installed (
https://www.microsoft.com/en-us/download/details.aspx?id=14632).]
   at Apache.Ignite.Core.Impl.IgniteUtils.LoadJvmDll(String
configJvmDllPath, ILogger log)
   at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String configJvmDllPath,
ILogger log)
   at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
   at Apache.Ignite.Core.Ignition.Start()
   at ConsoleApp1.Program.Main(String[] args) in
C:\Users\kukushal\Documents\Samples\ConsoleApp1\ConsoleApp1\Program.cs:line
16




On Fri, Sep 29, 2017 at 7:09 PM, Pavel Tupitsyn <pt...@apache.org>
wrote:

> Ignite.NET uses multiple lookup paths to locate jvm.dll:
>
> https://github.com/apache/ignite/blob/master/modules/
> platforms/dotnet/Apache.Ignite.Core/Impl/IgniteUtils.cs#L49
>
> // JRE paths@"bin\server",@"bin\client",
>  // JDK paths@"jre\bin\server",@"jre\bin\client",@"jre\bin\default"
>
>
> On my machine JAVA_HOME points to "c:\Program Files\Java\jdk1.7.0_75", and
> Ignite.NET works fine.
> Same with Java 8 on another machine.
>
> Which Java version do you have? Is it Oracle or something else?
>
> As a workaround you can set IgniteConfiguration.JvmDllPath explicitly.
>
> On Fri, Sep 29, 2017 at 7:00 PM, Patrick Brunmayr <
> patrick.brunmayr@kpibench.com> wrote:
>
>> I just removed the JDK and reinstalled it properly.
>>
>> BUT
>>
>> I need JAVA_HOME for other applications like cassandra. According to
>> internet JAVA_HOME should point to the JDK installation dir right ?
>>
>> But when i do this Ignite tries to load %JAVA_HOME%\bin\server.dll which
>> is not present in the JDK folder. It's only available in the JRE folder.
>>
>> How can i fix that without altering my JAVA_HOME ?
>>
>> Thx
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> 2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>>
>>> You don't have to copy these files manually. Something is wrong with
>>> your setup.
>>> I would advise to remove and reinstall the JRE/JDK.
>>>
>>> By the way, JAVA_HOME is not necessary with Oracle JRE/JDK, Ignite.NET
>>> detects it automatically.
>>>
>>> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
>>> patrick.brunmayr@kpibench.com> wrote:
>>>
>>>> JAVA_HOME points to my JDK folder!
>>>>
>>>> There was a problem first! There was no bin\server\jvm.dll there Dont
>>>> know why so i copied the jvm.dl from the embedded jdk\jre\bin\server to
>>>> jdk\bin\server
>>>>
>>>> the funny thing is! I was able to run my app about 10 times with no
>>>> problems and suddenly it stopped working.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29. Sep. 2017 um
>>>> 17:34:
>>>>
>>>>> > Error occurred during initialization of VM
>>>>> > Unable to load native library: Can't find dependent libraries
>>>>>
>>>>> What is your JAVA_HOME?
>>>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK install is
>>>>> corrupted.
>>>>>
>>>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>
>>>>>> I run my app now from a cmd and this is the output
>>>>>>
>>>>>> Error occurred during initialization of VM
>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>
>>>>>>
>>>>>>
>>>>>> Patrick Brunmayr <pa...@kpibench.com> schrieb am Fr. 29.
>>>>>> Sep. 2017 um 17:30:
>>>>>>
>>>>>>> There is no output from visual studio! When i set a break point to
>>>>>>> Ignition.Start and try to step over it crashes imediately! No output!
>>>>>>> The only output visual studio gives me is that the app exited with
>>>>>>> code ox1
>>>>>>>
>>>>>>> The output i got was from running the Apache.Ignite.exe directly
>>>>>>> that was copied to the bin\Debug folder!
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb am Fr. 29.
>>>>>>> Sep. 2017 um 17:22:
>>>>>>>
>>>>>>>> Patrick,
>>>>>>>>
>>>>>>>> Is that output from Visual Studio console window? Ignite writes
>>>>>>>> information to standard output and error and not to the Visual Studio
>>>>>>>> console. Can you either run your app from cmd.exe or put a breakpoint on
>>>>>>>> the last line and see output in the cmd.exe that Visual Studio opens?
>>>>>>>>
>>>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>
>>>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>>>
>>>>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>>>>
>>>>>>>>> Error occurred during initialization of VM
>>>>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>>>
>>>>>>>>> Where should ignite logs reside or how can i activate them ?
>>>>>>>>>
>>>>>>>>> Thx
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>>>
>>>>>>>>>> Hi Patrick,
>>>>>>>>>>
>>>>>>>>>> Would you please share ignite logs?
>>>>>>>>>>
>>>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hello
>>>>>>>>>>>
>>>>>>>>>>> I am using Visual Studio 2017 and have installed Apache Ignite
>>>>>>>>>>> via NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>>>
>>>>>>>>>>> Tried to run this little code
>>>>>>>>>>>
>>>>>>>>>>> try
>>>>>>>>>>> {
>>>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>>>> }
>>>>>>>>>>> catch (Exception e)
>>>>>>>>>>> {
>>>>>>>>>>> Console.WriteLine(e);
>>>>>>>>>>> }
>>>>>>>>>>>
>>>>>>>>>>> My app terminates with following output
>>>>>>>>>>>
>>>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>>>
>>>>>>>>>>> It just crashes without any information
>>>>>>>>>>>
>>>>>>>>>>> My setup
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>>>    - Ignite 2.2
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> How can i know whats going on without any information. Any ideas
>>>>>>>>>>> ?
>>>>>>>>>>>
>>>>>>>>>>> Thx
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Best regards,
>>>>>>>>>> Andrey V. Mashenkov
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Best regards,
>>>>>>>> Alexey
>>>>>>>>
>>>>>>>
>>>>>
>>>
>>
>


-- 
Best regards,
Alexey

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Pavel Tupitsyn <pt...@apache.org>.
Ignite.NET uses multiple lookup paths to locate jvm.dll:

https://github.com/apache/ignite/blob/master/modules/platforms/dotnet/Apache.Ignite.Core/Impl/IgniteUtils.cs#L49

// JRE paths@"bin\server",@"bin\client",
 // JDK paths@"jre\bin\server",@"jre\bin\client",@"jre\bin\default"


On my machine JAVA_HOME points to "c:\Program Files\Java\jdk1.7.0_75", and
Ignite.NET works fine.
Same with Java 8 on another machine.

Which Java version do you have? Is it Oracle or something else?

As a workaround you can set IgniteConfiguration.JvmDllPath explicitly.

On Fri, Sep 29, 2017 at 7:00 PM, Patrick Brunmayr <
patrick.brunmayr@kpibench.com> wrote:

> I just removed the JDK and reinstalled it properly.
>
> BUT
>
> I need JAVA_HOME for other applications like cassandra. According to
> internet JAVA_HOME should point to the JDK installation dir right ?
>
> But when i do this Ignite tries to load %JAVA_HOME%\bin\server.dll which
> is not present in the JDK folder. It's only available in the JRE folder.
>
> How can i fix that without altering my JAVA_HOME ?
>
> Thx
>
>
>
>
>
>
>
>
>
>
> 2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:
>
>> You don't have to copy these files manually. Something is wrong with your
>> setup.
>> I would advise to remove and reinstall the JRE/JDK.
>>
>> By the way, JAVA_HOME is not necessary with Oracle JRE/JDK, Ignite.NET
>> detects it automatically.
>>
>> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
>> patrick.brunmayr@kpibench.com> wrote:
>>
>>> JAVA_HOME points to my JDK folder!
>>>
>>> There was a problem first! There was no bin\server\jvm.dll there Dont
>>> know why so i copied the jvm.dl from the embedded jdk\jre\bin\server to
>>> jdk\bin\server
>>>
>>> the funny thing is! I was able to run my app about 10 times with no
>>> problems and suddenly it stopped working.
>>>
>>>
>>>
>>>
>>>
>>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29. Sep. 2017 um
>>> 17:34:
>>>
>>>> > Error occurred during initialization of VM
>>>> > Unable to load native library: Can't find dependent libraries
>>>>
>>>> What is your JAVA_HOME?
>>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK install is
>>>> corrupted.
>>>>
>>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>
>>>>> I run my app now from a cmd and this is the output
>>>>>
>>>>> Error occurred during initialization of VM
>>>>> Unable to load native library: Can't find dependent libraries
>>>>>
>>>>>
>>>>>
>>>>> Patrick Brunmayr <pa...@kpibench.com> schrieb am Fr. 29.
>>>>> Sep. 2017 um 17:30:
>>>>>
>>>>>> There is no output from visual studio! When i set a break point to
>>>>>> Ignition.Start and try to step over it crashes imediately! No output!
>>>>>> The only output visual studio gives me is that the app exited with
>>>>>> code ox1
>>>>>>
>>>>>> The output i got was from running the Apache.Ignite.exe directly that
>>>>>> was copied to the bin\Debug folder!
>>>>>>
>>>>>>
>>>>>>
>>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb am Fr. 29. Sep.
>>>>>> 2017 um 17:22:
>>>>>>
>>>>>>> Patrick,
>>>>>>>
>>>>>>> Is that output from Visual Studio console window? Ignite writes
>>>>>>> information to standard output and error and not to the Visual Studio
>>>>>>> console. Can you either run your app from cmd.exe or put a breakpoint on
>>>>>>> the last line and see output in the cmd.exe that Visual Studio opens?
>>>>>>>
>>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>
>>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>>
>>>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>>>
>>>>>>>> Error occurred during initialization of VM
>>>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>>
>>>>>>>>
>>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>>
>>>>>>>> Where should ignite logs reside or how can i activate them ?
>>>>>>>>
>>>>>>>> Thx
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>>
>>>>>>>>> Hi Patrick,
>>>>>>>>>
>>>>>>>>> Would you please share ignite logs?
>>>>>>>>>
>>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hello
>>>>>>>>>>
>>>>>>>>>> I am using Visual Studio 2017 and have installed Apache Ignite
>>>>>>>>>> via NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>>
>>>>>>>>>> Tried to run this little code
>>>>>>>>>>
>>>>>>>>>> try
>>>>>>>>>> {
>>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>>> }
>>>>>>>>>> catch (Exception e)
>>>>>>>>>> {
>>>>>>>>>> Console.WriteLine(e);
>>>>>>>>>> }
>>>>>>>>>>
>>>>>>>>>> My app terminates with following output
>>>>>>>>>>
>>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>>
>>>>>>>>>> It just crashes without any information
>>>>>>>>>>
>>>>>>>>>> My setup
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>>    - Ignite 2.2
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> How can i know whats going on without any information. Any ideas ?
>>>>>>>>>>
>>>>>>>>>> Thx
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Best regards,
>>>>>>>>> Andrey V. Mashenkov
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Best regards,
>>>>>>> Alexey
>>>>>>>
>>>>>>
>>>>
>>
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Patrick Brunmayr <pa...@kpibench.com>.
I just removed the JDK and reinstalled it properly.

BUT

I need JAVA_HOME for other applications like cassandra. According to
internet JAVA_HOME should point to the JDK installation dir right ?

But when i do this Ignite tries to load %JAVA_HOME%\bin\server.dll which is
not present in the JDK folder. It's only available in the JRE folder.

How can i fix that without altering my JAVA_HOME ?

Thx










2017-09-29 17:44 GMT+02:00 Pavel Tupitsyn <pt...@apache.org>:

> You don't have to copy these files manually. Something is wrong with your
> setup.
> I would advise to remove and reinstall the JRE/JDK.
>
> By the way, JAVA_HOME is not necessary with Oracle JRE/JDK, Ignite.NET
> detects it automatically.
>
> On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
> patrick.brunmayr@kpibench.com> wrote:
>
>> JAVA_HOME points to my JDK folder!
>>
>> There was a problem first! There was no bin\server\jvm.dll there Dont
>> know why so i copied the jvm.dl from the embedded jdk\jre\bin\server to
>> jdk\bin\server
>>
>> the funny thing is! I was able to run my app about 10 times with no
>> problems and suddenly it stopped working.
>>
>>
>>
>>
>>
>> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29. Sep. 2017 um
>> 17:34:
>>
>>> > Error occurred during initialization of VM
>>> > Unable to load native library: Can't find dependent libraries
>>>
>>> What is your JAVA_HOME?
>>> Looks like either JAVA_HOME is incorrect, or JRE/JDK install is
>>> corrupted.
>>>
>>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>>> patrick.brunmayr@kpibench.com> wrote:
>>>
>>>> I run my app now from a cmd and this is the output
>>>>
>>>> Error occurred during initialization of VM
>>>> Unable to load native library: Can't find dependent libraries
>>>>
>>>>
>>>>
>>>> Patrick Brunmayr <pa...@kpibench.com> schrieb am Fr. 29.
>>>> Sep. 2017 um 17:30:
>>>>
>>>>> There is no output from visual studio! When i set a break point to
>>>>> Ignition.Start and try to step over it crashes imediately! No output!
>>>>> The only output visual studio gives me is that the app exited with
>>>>> code ox1
>>>>>
>>>>> The output i got was from running the Apache.Ignite.exe directly that
>>>>> was copied to the bin\Debug folder!
>>>>>
>>>>>
>>>>>
>>>>> Alexey Kukushkin <ku...@gmail.com> schrieb am Fr. 29. Sep.
>>>>> 2017 um 17:22:
>>>>>
>>>>>> Patrick,
>>>>>>
>>>>>> Is that output from Visual Studio console window? Ignite writes
>>>>>> information to standard output and error and not to the Visual Studio
>>>>>> console. Can you either run your app from cmd.exe or put a breakpoint on
>>>>>> the last line and see output in the cmd.exe that Visual Studio opens?
>>>>>>
>>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>
>>>>>>> I use an embedded version of ignite! Does this help
>>>>>>>
>>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>>
>>>>>>> Error occurred during initialization of VM
>>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>>
>>>>>>>
>>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>>
>>>>>>> Where should ignite logs reside or how can i activate them ?
>>>>>>>
>>>>>>> Thx
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>>
>>>>>>>> Hi Patrick,
>>>>>>>>
>>>>>>>> Would you please share ignite logs?
>>>>>>>>
>>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>>
>>>>>>>>> Hello
>>>>>>>>>
>>>>>>>>> I am using Visual Studio 2017 and have installed Apache Ignite via
>>>>>>>>> NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>>
>>>>>>>>> Tried to run this little code
>>>>>>>>>
>>>>>>>>> try
>>>>>>>>> {
>>>>>>>>> var ignite = Ignition.Start();
>>>>>>>>> }
>>>>>>>>> catch (Exception e)
>>>>>>>>> {
>>>>>>>>> Console.WriteLine(e);
>>>>>>>>> }
>>>>>>>>>
>>>>>>>>> My app terminates with following output
>>>>>>>>>
>>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>>
>>>>>>>>> It just crashes without any information
>>>>>>>>>
>>>>>>>>> My setup
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>>    - Visual Studio 2017
>>>>>>>>>    - jdk1.8.0_144
>>>>>>>>>    - Ignite 2.2
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> How can i know whats going on without any information. Any ideas ?
>>>>>>>>>
>>>>>>>>> Thx
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Best regards,
>>>>>>>> Andrey V. Mashenkov
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Best regards,
>>>>>> Alexey
>>>>>>
>>>>>
>>>
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Pavel Tupitsyn <pt...@apache.org>.
You don't have to copy these files manually. Something is wrong with your
setup.
I would advise to remove and reinstall the JRE/JDK.

By the way, JAVA_HOME is not necessary with Oracle JRE/JDK, Ignite.NET
detects it automatically.

On Fri, Sep 29, 2017 at 6:39 PM, Patrick Brunmayr <
patrick.brunmayr@kpibench.com> wrote:

> JAVA_HOME points to my JDK folder!
>
> There was a problem first! There was no bin\server\jvm.dll there Dont know
> why so i copied the jvm.dl from the embedded jdk\jre\bin\server to
> jdk\bin\server
>
> the funny thing is! I was able to run my app about 10 times with no
> problems and suddenly it stopped working.
>
>
>
>
>
> Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29. Sep. 2017 um
> 17:34:
>
>> > Error occurred during initialization of VM
>> > Unable to load native library: Can't find dependent libraries
>>
>> What is your JAVA_HOME?
>> Looks like either JAVA_HOME is incorrect, or JRE/JDK install is
>> corrupted.
>>
>> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
>> patrick.brunmayr@kpibench.com> wrote:
>>
>>> I run my app now from a cmd and this is the output
>>>
>>> Error occurred during initialization of VM
>>> Unable to load native library: Can't find dependent libraries
>>>
>>>
>>>
>>> Patrick Brunmayr <pa...@kpibench.com> schrieb am Fr. 29.
>>> Sep. 2017 um 17:30:
>>>
>>>> There is no output from visual studio! When i set a break point to
>>>> Ignition.Start and try to step over it crashes imediately! No output!
>>>> The only output visual studio gives me is that the app exited with code
>>>> ox1
>>>>
>>>> The output i got was from running the Apache.Ignite.exe directly that
>>>> was copied to the bin\Debug folder!
>>>>
>>>>
>>>>
>>>> Alexey Kukushkin <ku...@gmail.com> schrieb am Fr. 29. Sep.
>>>> 2017 um 17:22:
>>>>
>>>>> Patrick,
>>>>>
>>>>> Is that output from Visual Studio console window? Ignite writes
>>>>> information to standard output and error and not to the Visual Studio
>>>>> console. Can you either run your app from cmd.exe or put a breakpoint on
>>>>> the last line and see output in the cmd.exe that Visual Studio opens?
>>>>>
>>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>
>>>>>> I use an embedded version of ignite! Does this help
>>>>>>
>>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>>
>>>>>> Error occurred during initialization of VM
>>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>>
>>>>>>
>>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>>
>>>>>> Where should ignite logs reside or how can i activate them ?
>>>>>>
>>>>>> Thx
>>>>>>
>>>>>>
>>>>>>
>>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>>> andrey.mashenkov@gmail.com>:
>>>>>>
>>>>>>> Hi Patrick,
>>>>>>>
>>>>>>> Would you please share ignite logs?
>>>>>>>
>>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>>
>>>>>>>> Hello
>>>>>>>>
>>>>>>>> I am using Visual Studio 2017 and have installed Apache Ignite via
>>>>>>>> NuGet. Also checked the VC++ Redis is installed.
>>>>>>>>
>>>>>>>> Tried to run this little code
>>>>>>>>
>>>>>>>> try
>>>>>>>> {
>>>>>>>> var ignite = Ignition.Start();
>>>>>>>> }
>>>>>>>> catch (Exception e)
>>>>>>>> {
>>>>>>>> Console.WriteLine(e);
>>>>>>>> }
>>>>>>>>
>>>>>>>> My app terminates with following output
>>>>>>>>
>>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>>
>>>>>>>> It just crashes without any information
>>>>>>>>
>>>>>>>> My setup
>>>>>>>>
>>>>>>>>
>>>>>>>>    - Windows 10 64 Bit
>>>>>>>>    - Visual Studio 2017
>>>>>>>>    - jdk1.8.0_144
>>>>>>>>    - Ignite 2.2
>>>>>>>>
>>>>>>>>
>>>>>>>> How can i know whats going on without any information. Any ideas ?
>>>>>>>>
>>>>>>>> Thx
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Best regards,
>>>>>>> Andrey V. Mashenkov
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best regards,
>>>>> Alexey
>>>>>
>>>>
>>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Patrick Brunmayr <pa...@kpibench.com>.
JAVA_HOME points to my JDK folder!

There was a problem first! There was no bin\server\jvm.dll there Dont know
why so i copied the jvm.dl from the embedded jdk\jre\bin\server to
jdk\bin\server

the funny thing is! I was able to run my app about 10 times with no
problems and suddenly it stopped working.





Pavel Tupitsyn <pt...@apache.org> schrieb am Fr. 29. Sep. 2017 um 17:34:

> > Error occurred during initialization of VM
> > Unable to load native library: Can't find dependent libraries
>
> What is your JAVA_HOME?
> Looks like either JAVA_HOME is incorrect, or JRE/JDK install is corrupted.
>
> On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
> patrick.brunmayr@kpibench.com> wrote:
>
>> I run my app now from a cmd and this is the output
>>
>> Error occurred during initialization of VM
>> Unable to load native library: Can't find dependent libraries
>>
>>
>>
>> Patrick Brunmayr <pa...@kpibench.com> schrieb am Fr. 29. Sep.
>> 2017 um 17:30:
>>
>>> There is no output from visual studio! When i set a break point to
>>> Ignition.Start and try to step over it crashes imediately! No output!
>>> The only output visual studio gives me is that the app exited with code
>>> ox1
>>>
>>> The output i got was from running the Apache.Ignite.exe directly that
>>> was copied to the bin\Debug folder!
>>>
>>>
>>>
>>> Alexey Kukushkin <ku...@gmail.com> schrieb am Fr. 29. Sep.
>>> 2017 um 17:22:
>>>
>>>> Patrick,
>>>>
>>>> Is that output from Visual Studio console window? Ignite writes
>>>> information to standard output and error and not to the Visual Studio
>>>> console. Can you either run your app from cmd.exe or put a breakpoint on
>>>> the last line and see output in the cmd.exe that Visual Studio opens?
>>>>
>>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>
>>>>> I use an embedded version of ignite! Does this help
>>>>>
>>>>> I got some more details. Launching Ignite.Exe gives me
>>>>>
>>>>> Error occurred during initialization of VM
>>>>>> Unable to load native library: Can't find dependent libraries
>>>>>
>>>>>
>>>>> My JAVA_HOME is properly set to my JDK path
>>>>>
>>>>> Where should ignite logs reside or how can i activate them ?
>>>>>
>>>>> Thx
>>>>>
>>>>>
>>>>>
>>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <
>>>>> andrey.mashenkov@gmail.com>:
>>>>>
>>>>>> Hi Patrick,
>>>>>>
>>>>>> Would you please share ignite logs?
>>>>>>
>>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>>
>>>>>>> Hello
>>>>>>>
>>>>>>> I am using Visual Studio 2017 and have installed Apache Ignite via
>>>>>>> NuGet. Also checked the VC++ Redis is installed.
>>>>>>>
>>>>>>> Tried to run this little code
>>>>>>>
>>>>>>> try
>>>>>>> {
>>>>>>> var ignite = Ignition.Start();
>>>>>>> }
>>>>>>> catch (Exception e)
>>>>>>> {
>>>>>>> Console.WriteLine(e);
>>>>>>> }
>>>>>>>
>>>>>>> My app terminates with following output
>>>>>>>
>>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>>
>>>>>>> It just crashes without any information
>>>>>>>
>>>>>>> My setup
>>>>>>>
>>>>>>>
>>>>>>>    - Windows 10 64 Bit
>>>>>>>    - Visual Studio 2017
>>>>>>>    - jdk1.8.0_144
>>>>>>>    - Ignite 2.2
>>>>>>>
>>>>>>>
>>>>>>> How can i know whats going on without any information. Any ideas ?
>>>>>>>
>>>>>>> Thx
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Best regards,
>>>>>> Andrey V. Mashenkov
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Best regards,
>>>> Alexey
>>>>
>>>
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Pavel Tupitsyn <pt...@apache.org>.
> Error occurred during initialization of VM
> Unable to load native library: Can't find dependent libraries

What is your JAVA_HOME?
Looks like either JAVA_HOME is incorrect, or JRE/JDK install is corrupted.

On Fri, Sep 29, 2017 at 6:33 PM, Patrick Brunmayr <
patrick.brunmayr@kpibench.com> wrote:

> I run my app now from a cmd and this is the output
>
> Error occurred during initialization of VM
> Unable to load native library: Can't find dependent libraries
>
>
>
> Patrick Brunmayr <pa...@kpibench.com> schrieb am Fr. 29. Sep.
> 2017 um 17:30:
>
>> There is no output from visual studio! When i set a break point to
>> Ignition.Start and try to step over it crashes imediately! No output!
>> The only output visual studio gives me is that the app exited with code
>> ox1
>>
>> The output i got was from running the Apache.Ignite.exe directly that was
>> copied to the bin\Debug folder!
>>
>>
>>
>> Alexey Kukushkin <ku...@gmail.com> schrieb am Fr. 29. Sep.
>> 2017 um 17:22:
>>
>>> Patrick,
>>>
>>> Is that output from Visual Studio console window? Ignite writes
>>> information to standard output and error and not to the Visual Studio
>>> console. Can you either run your app from cmd.exe or put a breakpoint on
>>> the last line and see output in the cmd.exe that Visual Studio opens?
>>>
>>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>>> patrick.brunmayr@kpibench.com> wrote:
>>>
>>>> I use an embedded version of ignite! Does this help
>>>>
>>>> I got some more details. Launching Ignite.Exe gives me
>>>>
>>>> Error occurred during initialization of VM
>>>>> Unable to load native library: Can't find dependent libraries
>>>>
>>>>
>>>> My JAVA_HOME is properly set to my JDK path
>>>>
>>>> Where should ignite logs reside or how can i activate them ?
>>>>
>>>> Thx
>>>>
>>>>
>>>>
>>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <andrey.mashenkov@gmail.com
>>>> >:
>>>>
>>>>> Hi Patrick,
>>>>>
>>>>> Would you please share ignite logs?
>>>>>
>>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>>
>>>>>> Hello
>>>>>>
>>>>>> I am using Visual Studio 2017 and have installed Apache Ignite via
>>>>>> NuGet. Also checked the VC++ Redis is installed.
>>>>>>
>>>>>> Tried to run this little code
>>>>>>
>>>>>> try
>>>>>> {
>>>>>> var ignite = Ignition.Start();
>>>>>> }
>>>>>> catch (Exception e)
>>>>>> {
>>>>>> Console.WriteLine(e);
>>>>>> }
>>>>>>
>>>>>> My app terminates with following output
>>>>>>
>>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>>
>>>>>> It just crashes without any information
>>>>>>
>>>>>> My setup
>>>>>>
>>>>>>
>>>>>>    - Windows 10 64 Bit
>>>>>>    - Visual Studio 2017
>>>>>>    - jdk1.8.0_144
>>>>>>    - Ignite 2.2
>>>>>>
>>>>>>
>>>>>> How can i know whats going on without any information. Any ideas ?
>>>>>>
>>>>>> Thx
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best regards,
>>>>> Andrey V. Mashenkov
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Alexey
>>>
>>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Patrick Brunmayr <pa...@kpibench.com>.
I run my app now from a cmd and this is the output

Error occurred during initialization of VM
Unable to load native library: Can't find dependent libraries



Patrick Brunmayr <pa...@kpibench.com> schrieb am Fr. 29. Sep.
2017 um 17:30:

> There is no output from visual studio! When i set a break point to
> Ignition.Start and try to step over it crashes imediately! No output!
> The only output visual studio gives me is that the app exited with code ox1
>
> The output i got was from running the Apache.Ignite.exe directly that was
> copied to the bin\Debug folder!
>
>
>
> Alexey Kukushkin <ku...@gmail.com> schrieb am Fr. 29. Sep. 2017
> um 17:22:
>
>> Patrick,
>>
>> Is that output from Visual Studio console window? Ignite writes
>> information to standard output and error and not to the Visual Studio
>> console. Can you either run your app from cmd.exe or put a breakpoint on
>> the last line and see output in the cmd.exe that Visual Studio opens?
>>
>> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
>> patrick.brunmayr@kpibench.com> wrote:
>>
>>> I use an embedded version of ignite! Does this help
>>>
>>> I got some more details. Launching Ignite.Exe gives me
>>>
>>> Error occurred during initialization of VM
>>>> Unable to load native library: Can't find dependent libraries
>>>
>>>
>>> My JAVA_HOME is properly set to my JDK path
>>>
>>> Where should ignite logs reside or how can i activate them ?
>>>
>>> Thx
>>>
>>>
>>>
>>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <an...@gmail.com>
>>> :
>>>
>>>> Hi Patrick,
>>>>
>>>> Would you please share ignite logs?
>>>>
>>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>>> patrick.brunmayr@kpibench.com> wrote:
>>>>
>>>>> Hello
>>>>>
>>>>> I am using Visual Studio 2017 and have installed Apache Ignite via
>>>>> NuGet. Also checked the VC++ Redis is installed.
>>>>>
>>>>> Tried to run this little code
>>>>>
>>>>> try
>>>>> {
>>>>> var ignite = Ignition.Start();
>>>>> }
>>>>> catch (Exception e)
>>>>> {
>>>>> Console.WriteLine(e);
>>>>> }
>>>>>
>>>>> My app terminates with following output
>>>>>
>>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>>
>>>>> It just crashes without any information
>>>>>
>>>>> My setup
>>>>>
>>>>>
>>>>>    - Windows 10 64 Bit
>>>>>    - Visual Studio 2017
>>>>>    - jdk1.8.0_144
>>>>>    - Ignite 2.2
>>>>>
>>>>>
>>>>> How can i know whats going on without any information. Any ideas ?
>>>>>
>>>>> Thx
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Best regards,
>>>> Andrey V. Mashenkov
>>>>
>>>
>>>
>>
>>
>> --
>> Best regards,
>> Alexey
>>
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Patrick Brunmayr <pa...@kpibench.com>.
There is no output from visual studio! When i set a break point to
Ignition.Start and try to step over it crashes imediately! No output!
The only output visual studio gives me is that the app exited with code ox1

The output i got was from running the Apache.Ignite.exe directly that was
copied to the bin\Debug folder!



Alexey Kukushkin <ku...@gmail.com> schrieb am Fr. 29. Sep. 2017
um 17:22:

> Patrick,
>
> Is that output from Visual Studio console window? Ignite writes
> information to standard output and error and not to the Visual Studio
> console. Can you either run your app from cmd.exe or put a breakpoint on
> the last line and see output in the cmd.exe that Visual Studio opens?
>
> On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
> patrick.brunmayr@kpibench.com> wrote:
>
>> I use an embedded version of ignite! Does this help
>>
>> I got some more details. Launching Ignite.Exe gives me
>>
>> Error occurred during initialization of VM
>>> Unable to load native library: Can't find dependent libraries
>>
>>
>> My JAVA_HOME is properly set to my JDK path
>>
>> Where should ignite logs reside or how can i activate them ?
>>
>> Thx
>>
>>
>>
>> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <an...@gmail.com>:
>>
>>> Hi Patrick,
>>>
>>> Would you please share ignite logs?
>>>
>>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>>> patrick.brunmayr@kpibench.com> wrote:
>>>
>>>> Hello
>>>>
>>>> I am using Visual Studio 2017 and have installed Apache Ignite via
>>>> NuGet. Also checked the VC++ Redis is installed.
>>>>
>>>> Tried to run this little code
>>>>
>>>> try
>>>> {
>>>> var ignite = Ignition.Start();
>>>> }
>>>> catch (Exception e)
>>>> {
>>>> Console.WriteLine(e);
>>>> }
>>>>
>>>> My app terminates with following output
>>>>
>>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>>
>>>> It just crashes without any information
>>>>
>>>> My setup
>>>>
>>>>
>>>>    - Windows 10 64 Bit
>>>>    - Visual Studio 2017
>>>>    - jdk1.8.0_144
>>>>    - Ignite 2.2
>>>>
>>>>
>>>> How can i know whats going on without any information. Any ideas ?
>>>>
>>>> Thx
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Andrey V. Mashenkov
>>>
>>
>>
>
>
> --
> Best regards,
> Alexey
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Alexey Kukushkin <ku...@gmail.com>.
Patrick,

Is that output from Visual Studio console window? Ignite writes information
to standard output and error and not to the Visual Studio console. Can you
either run your app from cmd.exe or put a breakpoint on the last line and
see output in the cmd.exe that Visual Studio opens?

On Fri, Sep 29, 2017 at 6:13 PM, Patrick Brunmayr <
patrick.brunmayr@kpibench.com> wrote:

> I use an embedded version of ignite! Does this help
>
> I got some more details. Launching Ignite.Exe gives me
>
> Error occurred during initialization of VM
>> Unable to load native library: Can't find dependent libraries
>
>
> My JAVA_HOME is properly set to my JDK path
>
> Where should ignite logs reside or how can i activate them ?
>
> Thx
>
>
>
> 2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <an...@gmail.com>:
>
>> Hi Patrick,
>>
>> Would you please share ignite logs?
>>
>> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
>> patrick.brunmayr@kpibench.com> wrote:
>>
>>> Hello
>>>
>>> I am using Visual Studio 2017 and have installed Apache Ignite via
>>> NuGet. Also checked the VC++ Redis is installed.
>>>
>>> Tried to run this little code
>>>
>>> try
>>> {
>>> var ignite = Ignition.Start();
>>> }
>>> catch (Exception e)
>>> {
>>> Console.WriteLine(e);
>>> }
>>>
>>> My app terminates with following output
>>>
>>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>>
>>> It just crashes without any information
>>>
>>> My setup
>>>
>>>
>>>    - Windows 10 64 Bit
>>>    - Visual Studio 2017
>>>    - jdk1.8.0_144
>>>    - Ignite 2.2
>>>
>>>
>>> How can i know whats going on without any information. Any ideas ?
>>>
>>> Thx
>>>
>>>
>>>
>>
>>
>> --
>> Best regards,
>> Andrey V. Mashenkov
>>
>
>


-- 
Best regards,
Alexey

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Patrick Brunmayr <pa...@kpibench.com>.
I use an embedded version of ignite! Does this help

I got some more details. Launching Ignite.Exe gives me

Error occurred during initialization of VM
> Unable to load native library: Can't find dependent libraries


My JAVA_HOME is properly set to my JDK path

Where should ignite logs reside or how can i activate them ?

Thx



2017-09-29 17:09 GMT+02:00 Andrey Mashenkov <an...@gmail.com>:

> Hi Patrick,
>
> Would you please share ignite logs?
>
> On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
> patrick.brunmayr@kpibench.com> wrote:
>
>> Hello
>>
>> I am using Visual Studio 2017 and have installed Apache Ignite via NuGet.
>> Also checked the VC++ Redis is installed.
>>
>> Tried to run this little code
>>
>> try
>> {
>> var ignite = Ignition.Start();
>> }
>> catch (Exception e)
>> {
>> Console.WriteLine(e);
>> }
>>
>> My app terminates with following output
>>
>>  ConsoleApp1.exe' has exited with code 1 (0x1)
>>
>> It just crashes without any information
>>
>> My setup
>>
>>
>>    - Windows 10 64 Bit
>>    - Visual Studio 2017
>>    - jdk1.8.0_144
>>    - Ignite 2.2
>>
>>
>> How can i know whats going on without any information. Any ideas ?
>>
>> Thx
>>
>>
>>
>
>
> --
> Best regards,
> Andrey V. Mashenkov
>

Re: Ignite.NET 2.2 crashes on startup without any information

Posted by Andrey Mashenkov <an...@gmail.com>.
Hi Patrick,

Would you please share ignite logs?

On Fri, Sep 29, 2017 at 5:51 PM, Patrick Brunmayr <
patrick.brunmayr@kpibench.com> wrote:

> Hello
>
> I am using Visual Studio 2017 and have installed Apache Ignite via NuGet.
> Also checked the VC++ Redis is installed.
>
> Tried to run this little code
>
> try
> {
> var ignite = Ignition.Start();
> }
> catch (Exception e)
> {
> Console.WriteLine(e);
> }
>
> My app terminates with following output
>
>  ConsoleApp1.exe' has exited with code 1 (0x1)
>
> It just crashes without any information
>
> My setup
>
>
>    - Windows 10 64 Bit
>    - Visual Studio 2017
>    - jdk1.8.0_144
>    - Ignite 2.2
>
>
> How can i know whats going on without any information. Any ideas ?
>
> Thx
>
>
>


-- 
Best regards,
Andrey V. Mashenkov