Results 1 to 7 of 7
- 07-09-2012, 10:48 AM #1
Member
- Join Date
- Jul 2012
- Posts
- 4
- Rep Power
- 0
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
- 07-09-2012, 04:34 PM #2
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,605
- Rep Power
- 5
Re: Problems with JNI and currentTimeMillis function
- 07-09-2012, 10:27 PM #3
Member
- Join Date
- Jul 2012
- Posts
- 4
- Rep Power
- 0
Re: Problems with JNI and currentTimeMillis function
and? on many forums this is the only answer you can give, it's not very useful ...
- 07-09-2012, 10:47 PM #4
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,605
- Rep Power
- 5
Re: Problems with JNI and currentTimeMillis function
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.
- 07-10-2012, 08:03 AM #5
Member
- Join Date
- Jul 2012
- Posts
- 4
- Rep Power
- 0
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 ...
- 07-10-2012, 10:21 AM #6
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Re: Problems with JNI and currentTimeMillis function
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.
- 07-10-2012, 10:32 AM #7
Member
- Join Date
- Jul 2012
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
Recursive function to iteractive function
By mikeZet in forum New To JavaReplies: 0Last Post: 03-13-2012, 01:42 AM -
System.currenttimemillis()
By FiniteRed in forum CLDC and MIDPReplies: 0Last Post: 08-19-2011, 01:46 PM -
about System: currentTimeMillis()
By kgcan2000 in forum Threads and SynchronizationReplies: 4Last Post: 04-02-2011, 07:58 PM -
Calling function in Javascript- from other function
By jdigger in forum New To JavaReplies: 1Last Post: 02-27-2011, 09:00 PM -
Possible? Callback function passed as arguments to another function
By TreyAU21 in forum Advanced JavaReplies: 3Last Post: 12-04-2009, 03:08 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks