Uploaded image for project: 'Hot Rod Native client'
  1. Hot Rod Native client
  2. HRCPP-165

CrossLanguageHotRodTest.testCppLifespanAndMaxIdle is failing on Win 7 64 bit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.CR2
    • 7.0.0.Alpha1
    • Test suite
    • 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.

              rhn-support-afield Alan Field
              rhn-support-afield Alan Field
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: