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 SUSE
macros.jpackage
MACROS.JPACKAGE(7) RPM Java packaging MACROS.JPACKAGE(7)
NAME
macros.jpackage - RPM macros for Java packagers and developers. Written for the JPackage Project <http://www.jpackage.org/>:
SYNOPSIS
%_jvmdir
Root directory where all Java VMs/SDK/JREs are installed.
%_jvmjardir
Root directory where all Java VMs/SDK/JREs expose their jars
%_jvmprivdir
Root directory for all Java VM/SDK/JRE's private things.
%_jvmlibdir
Root directory for all architecture dependent parts of Java VM/SDK/JRE's
%_jvmdatadir
Root directory for all architecture independent parts of Java VM/SDK/JRE's
%_jvmsysconfdir
Root directory for all configurations parts of Java VM/SDK/JRE's
%_jvmcommonlibdir
Root directory for all common architecture dependent parts of Java VM/SDK/JRE's
%_jvmcommondatadir
Root directory for all common architecture independent parts of Java VM/SDK/JRE's
%_jvmcommonsysconfdir
Root directory for all common configurations parts of Java VM/SDK/JRE's
%_javadir
Directory where arch and version independent jars are installed.
%{_javadir}-ext
Directory where version dependent jars are installed.
%_{javadir}
Directory where arch and version independent jars are installed.
%{_javadir}-x.y.z
Directory where jars for Java standard x.y.z (usually symlinks to %{_javadir}-ext) are installed.
%{_javadir}-utils
Directory where Java-related scripts are installed.
%_jnidir
Directory where arch-specific (JNI) version-independent jars are installed.
%_{jnidir}-ext
Directory where arch-specific (JNI) version-dependent jars are installed.
%_{jnidir}-x.y.z
Directory where arch-specific (JNI) jars for Java standard x.y.z (usually symlinks to %{_jnidir}-ext) are installed.
%_javadocdir
Root directory where all javadoc is installed.
%_mavendepmapdir
Directory for maven depmaps.
%_mavendepmapfragdir
Directory for maven depmaps.
%java_home
Current default JVM home. Calls a set_jvm() from java-functions(7).
%ant Default ant command.
%jar Default jar command.
%java
Default java command. Calls a set_jvm() from java-functions(7).
%javac
Default javac command.
%javadoc
Default javadoc command.
%add_jvm_extension
add_jvm_extension should be used in %install by extension packages to declare what extension jars they provide.
%add_to_maven_depmap()
add_to_depmap adds an entry to the depmap. The arguments are: %1 the original groupid
%2 the original artifact id
%3 the version
%4 the new groupid
%5 the new artifactid
%update_maven_depmap()
update_maven_depmap updates the main maven depmap
%jpackage_script()
A standard script fot running jpackage positive applications. %1 main class
%2 flags
%3 options
%4 jars (separated by ':')
%5 the name of script you wish to create
DESCRIPTION
This is a library of generic rpm macros which should be used on jpackage.org compatible distributions.
FILES
/etc/rpm/macros.jpackage
Definitions of macros. For additional informations look at this file.
/use/share/java-utils/java-functions
shell script functions library for Java applications
/etc/java/java.conf
system-wide Java configuration file
~/.java/java.conf
user's Java configuration
SEE ALSO
Regular Manual Pages
java.conf(5)
java-functions(7)
jpackage-utils(7)
AUTHORS
David Walluck <david@jpackage.org>
Ville Skytta <scop at jpackage.org>
Nicolas Mailhot <Nicolas.Mailhot at laPoste.net>
REPORTING BUGS
Report bugs using JPackage Bugzilla (http://www.jpackage.org/bugzilla/)
jpackage-utils 1.7.5 February 2009 MACROS.JPACKAGE(7)