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
10 More Discussions You Might Find Interesting
1. HP-UX
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
2. HP-UX
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
3. Solaris
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
4. Shell Programming and Scripting
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
5. Programming
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
6. AIX
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
7. 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
8. Shell Programming and Scripting
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
9. UNIX for Dummies Questions & Answers
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
10. Shell Programming and Scripting
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
LEARN ABOUT DEBIAN
dacs.java
DACS.JAVA(7) DACS Miscellaneous Information DACS.JAVA(7)
NAME
dacs.java - DACS Java support
DESCRIPTION
This document describes support for Java provided by DACS.
To enable Java support, DACS must be configured using the --enable-java flag. It may also be necessary to specify the location of the Java
commands and include files. See dacs.install(7)[1].
Note
Java support is currently very limited and should be considered experimental. It is currently only possible to call dacsauth(1)[2] and
dacscheck(1)[3] using the Java Native Interface (JNI) provided. The command line arguments to both of these commands are exactly as
documented in their manual pages. Each argument is passed as a String.
The code is not thread-safe and is probably not suitable for being called many times within a particular process due to assumptions it
makes about dynamic memory allocation.
There are no immediate plans to improve or extend Java support. Using the existing capability to build the JNI layer, however, it
should not be difficult for an experienced Java programmer to build upon the example Java code provided.
With Java support enabled, building DACS will copy the JNI shared library and a .jar file to the library directory (default:
/usr/local/dacs/lib), and the JNI include files to the include directory (default: /usr/local/dacs/include).
The tools/java/jni distribution directory contains a simple script called javarun that demonstrates how to run dacsauth or dacscheck as a
Java application. For example, to validate the Unix password for user somebody, run (as root):
./javarun dacsauth -m unix suff -user somebody -prompt
DIAGNOSTICS
The return codes are as documented in the command's manual page.
AUTHOR
Distributed Systems Software (www.dss.ca[4])
COPYING
Copyright2003-2012 Distributed Systems Software. See the LICENSE[5] file that accompanies the distribution for licensing information.
NOTES
1. dacs.install(7)
http://dacs.dss.ca/man/dacs.install.7.html
2. dacsauth(1)
http://dacs.dss.ca/man/dacsauth.1.html
3. dacscheck(1)
http://dacs.dss.ca/man/dacscheck.1.html
4. www.dss.ca
http://www.dss.ca
5. LICENSE
http://dacs.dss.ca/man/../misc/LICENSE
DACS 1.4.27b 10/22/2012 DACS.JAVA(7)