Problems with JNI and currentTimeMillis function


 
Thread Tools Search this Thread
Top Forums Programming Problems with JNI and currentTimeMillis function
# 1  
Old 07-06-2012
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)

Thank you in advance
# 2  
Old 07-06-2012
If this is more Java related than AIX, we can move it to the programming area, if you like.
# 3  
Old 07-06-2012
Yes, but I post on this forum because this problem appears only on AIX (on HPUX, Solaris, Linux or Windows the Java Agent works fine). If you think I can have more answer on Java forum you can move it Smilie!
# 4  
Old 07-06-2012
I am not sure - but if you don't get an answer til monday, send me a PM so I move it to the programming area.
# 5  
Old 07-09-2012
Post moved to the programming area.
# 6  
Old 07-10-2012
I cross posted my question here :
javaprogramminforums.com

Last edited by zaxxon; 07-11-2012 at 03:20 AM.. Reason: made a link from the url
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Long.MAX_VALUE - System.currentTimeMillis()

How can i get Long.MAX_VALUE - System.currentTimeMillis() ( in Java ) In Unix. date %s is not the timpstamp in millis. Also is it possible if we can System.currentTimeMillis() equivalent of yesterday's 23:59:59 in millis ? (6 Replies)
Discussion started by: mohapatra
6 Replies

2. UNIX for Dummies Questions & Answers

Problems with "exit" called from function in bourne script

Hi everyone. #!/sbin/sh EXITING() { umount /FOLDER rm -Rf /FOLDER echo "EXIT" exit 0 } EXITING echo "OK" (8 Replies)
Discussion started by: vacadepollo
8 Replies

3. Shell Programming and Scripting

"help me!!" if and function problems

I am trying to allow the user to be notified that the id has already taken from the file "record" and that the user has to contain a numerical figure as well. however when i run it, it will only stay at the please enter a number section and does not change. do u know where is the problem? ... (2 Replies)
Discussion started by: bassmasta1
2 Replies

4. Programming

Please help! accept function problems in Socket programming

Hi, I have a client-server socket program. It has been working fine for over a year, but recently it started to show strange behavior.:confused: After the server program runs for a while, it will show in the top command saying it is using lots of CPU, MEM. I assume it means the server code is... (1 Reply)
Discussion started by: natxie
1 Replies

5. AIX

JNI program work with jdk 5 but not jdk6 on aix 5.3

My JNI program work with jdk 5 but not jdk6 on aix 5.3. i.e. I compiled & tested my program with jdk 5 and it worked. Then with the same files & directory, I run jdk6 (I installed both jdk5 & 6) and it failed. Why? jdk5 is ok: $ /usr/java5_64/jre/bin/java -d64 -jar... (0 Replies)
Discussion started by: TsanChung
0 Replies

6. Programming

Setting environment variable using JNI call

I have function declaration in Java and same function definition written in C programming language.. A JNI call from Java is made to a fuction...Function would set the environment variable { putenv(cEnvString1);} using C-built -in function ..and later return the encrypted string... putenv is... (6 Replies)
Discussion started by: shafi2all
6 Replies

7. Shell Programming and Scripting

Counter function problems...

Ok, here is the issue I have.. I wrote a script that builds disk groups using vxvm, and it works really good. I added a feature that would tell you the max size you could build your your lvol to. I do this by getting the size of the disks I am using in KB, I subtract 5104 from it, and then... (1 Reply)
Discussion started by: LinuxRacr
1 Replies

8. Solaris

JNI 1560 in different speed PCI slots

I've got lots of scsi transport errors on the E2900 - the HBA was replaced once out of curiosity but the problem still exists. Feb 15 07:03:11 ivsdbch2 scsi: WARNING: /ssm@0,0/pci@18 ,600000/SUNW,jfca@1,1/fp@0,0/ssd@w5005076300c889cb,4 (ssd21): Feb 15 07:03:11 ivsdbch2 SCSI transport... (1 Reply)
Discussion started by: kiem
1 Replies

9. HP-UX

JNI and -AA

Hi, I have a Hello World program using JNI taken from this site. HP Unix - Java - Using Java 2 JNI on HP-UX It builds fine and runs fine. But if I add -AA to my compile line, I get this error. error: java.lang.UnsatisfiedLinkError: libaCCImpl.sl: Unresolved external Here are my build... (2 Replies)
Discussion started by: cactuar
2 Replies

10. HP-UX

create thread C with JNI function with JAVA

Hello, J create a thread C with a JNI function via JAVA. J have the following message (but not in each time): Someone has an idea ? Thank. Unexpected Signal : 4 occurred at PC=0x78C103E0 Function= Library=(N/A) NOTE: We are unable to locate the function name... (0 Replies)
Discussion started by: AUBERT
0 Replies
Login or Register to Ask a Question