AnsweredAssumed Answered

JNI causes JVM crash

Question asked by cmeng on Apr 29, 2015
Latest reply on Apr 29, 2015 by cmeng
hi, I am facing a JVM crash problem: 

I want to use mapr in a rcp application through reflection, and load the jars through ClassLoader, all things works well, but when I invoking FileSystem.listStatus, will pop up a window shows: 

  

Microsoft Visual C++ Runtime Library 

Assertion failed! 

Program: C:\Program Files\Java\jdk1.7.0_75\bin\javaw.exe 

File: fs\client\fileclient\cc\client.cc 

Line:1044 

Expression: thrdMem != NULL 

  

and then crashed no matter which button I click ; 

I once tried this method in a simple java probject, it work well, I don't know why it can't work in a rcp application? 

Do I miss something? 

  

My Env: 

OS: Windows 7 x64 

VM: VirtualBox4.3.26 + MapR-Sanbox-4.0.2 

MaprClient Version: 4.0.1 (no matter 4.0.1 or 4.0.2, the error is same) 

Outcomes