AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only

Problems with JNI and currentTimeMillis function

  • 1.  Problems with JNI and currentTimeMillis function

    Posted Wed May 30, 2012 11:00 AM

    Originally posted by: steph311


    Hello, I have a technical problem: I work on AIX 7.1 with Java 1.7 (32 and 64 bit) and I make an application that intercepts certain functions related to time. In this application there is a Java JNI agent with whom I can intercept the Java "getLastModifiedTime" no problem but I am unable to intercept the "currentTimeMillis".
    When the agent is loaded, I use the event JVMTI_EVENT_NATIVE_METHOD_BIND, then I realize my function redirections through the function "getMethodName".

    I tried to see where the problem could arise, it seems that it is a phase problem (error 112 returned)

    Thank you in advance

    (sorry for my english, I'm French + google translate) ..
    #AIX-Forum