-
Bug
-
Resolution: Done
-
Major
-
7.0.0.Alpha1
-
None
When running the JniTest class on Windows 7 64-bit, the following test is failing:
8: FAILED: testCppLifespanAndMaxIdle
8: java.lang.NullPointerException
8: at org.infinispan.client.jni.hotrod.CrossLanguageHotRodTest.testCppLifespanAndMaxIdle(CrossLanguageHotRodTest.java:680)
8: at org.infinispan.client.jni.hotrod.JniTest.main(JniTest.java:58)
8: ... Removed 25 stack frames
This is the code in question:
Object metadata = javaGetWithMetadataMethod.invoke(javaCacheObject, key);
long created = (Long) javaGetCreatedMethod.invoke(metadata);
For some reason, the metadata object is null. Removing the local variable fixes the issue.