Results 1 to 7 of 7
  1. #1
    steph311 is offline Member
    Join Date
    Jul 2012
    Posts
    4
    Rep Power
    0

    Default Problems with JNI and currentTimeMillis function

    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)

    PS: I tried version 1.5 and 1.6 of Java but also it is the same. This problem is only on AIX (on HPUX, Solaris, Linux, Windows agent works fine)

    Thank you in advance

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

  3. #3
    steph311 is offline Member
    Join Date
    Jul 2012
    Posts
    4
    Rep Power
    0

    Default Re: Problems with JNI and currentTimeMillis function

    and? on many forums this is the only answer you can give, it's not very useful ...

  4. #4
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default Re: Problems with JNI and currentTimeMillis function

    Quote Originally Posted by steph311 View Post
    and? on many forums this is the only answer you can give, it's not very useful ...
    If you read the links provided to you on the other forums, you would understand why indicating where else you have posted is useful. How are we to know of other important discussions/facts brought up on other forums, or at worst that your question has already been answered or problem fixed? May not be directly useful to you, but I assure you it is useful to both you, to the unpaid volunteers trying to help you, and to everyone else asking questions on this (and other) forums.

  5. #5
    steph311 is offline Member
    Join Date
    Jul 2012
    Posts
    4
    Rep Power
    0

    Default Re: Problems with JNI and currentTimeMillis function

    Ok but by posting on one forum, you will admit that I have not much chance of getting an answer right? I did that because I'm really stuck and I do not know what to do ...

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,945
    Rep Power
    19

    Default Re: Problems with JNI and currentTimeMillis function

    Quote Originally Posted by steph311 View Post
    Ok but by posting on one forum, you will admit that I have not much chance of getting an answer right? I did that because I'm really stuck and I do not know what to do ...
    It's not about posting on multiple forums.
    That's fine.
    It's informing the different forums that you have posted at X, Y and Z, so that people can then see whether the question has already been answered.
    It's rather frustrating to answer a question on forum X only to read forum Y and discover that someone had already provided the exact same answer the previous day.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  7. #7
    steph311 is offline Member
    Join Date
    Jul 2012
    Posts
    4
    Rep Power
    0

    Default Re: Problems with JNI and currentTimeMillis function

    Okay, I rarely use the forums that's why... I will say on other forums I have cross posted !

Similar Threads

  1. Recursive function to iteractive function
    By mikeZet in forum New To Java
    Replies: 0
    Last Post: 03-13-2012, 01:42 AM
  2. System.currenttimemillis()
    By FiniteRed in forum CLDC and MIDP
    Replies: 0
    Last Post: 08-19-2011, 01:46 PM
  3. about System: currentTimeMillis()
    By kgcan2000 in forum Threads and Synchronization
    Replies: 4
    Last Post: 04-02-2011, 07:58 PM
  4. Calling function in Javascript- from other function
    By jdigger in forum New To Java
    Replies: 1
    Last Post: 02-27-2011, 09:00 PM
  5. Replies: 3
    Last Post: 12-04-2009, 03:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •