Query regarding using JNI in linux
Hi
I have a query regarding JNI.We have a situation in which
we have some c programmes and we want to call that c programme method in my java code. The problem is that in JNI the native code signature should match the signature of the method of the header file generated by javah. We donot want to change the signature of the native code since it is hard to debug.So please suggest me a way out that i can call the native method without changing the signature of the native code.Please if u could give me some few simple example
Thanking u
So please suggest me a way out that i can call the native method without changing the signature of the native code.You write a wrapper. Your java JNI class has methods. Those methods are written in C by you. Those methods are new code. Those methods call your existing C methods.
Please if u could give me some few simple example.http://java.sun.com/docs/books/tutorial/native1.1/index.html
Similar Messages
-
Hi SAP guru
I have one query regarding useful life of asset,
If i purchased a asset in rs 200000 , wdv rate is 20% and put the useful life 4 year, in last year i want to depreciate the asset upto 1 Rs.
Capitalisation date is 01.04.2008.
Ex - Acquisition value Ordinary depreciation net book value
2008 200,000.00 40,000.00- 160,000.00
2009 200,000.00 32,000.00- 128,000.00
2010 200,000.00 25,600.00- 102,400.00
2011 200,000.00 20,480.00- 81,920.00
2012 200,000.00 81,920.00
Client requirement is in year 2011 asset should depreciate upto Rs 1.
Appreciate your reply.
Regards
AnjanIf you want to your asset depreciation based on useful life that is 4 years, please select check box Rem.life in multi level method of that dep. key.and enter the useful life as 4 years in the assets master.
when come to restricting value to 1Re. specify the memo value for that asset class.
AA>Valuation>Amt.specification>Specify memo value. -
How to Use JNI for linux based C programs
Hi all,
I am doing my project in JAVA for my Institute. There is a Central server. All the API's have written in C. The C APIs are Linux based.
The problem is getting records from the database through API.
I tried the Java Native Methods. I am able to do that in console with out problem. Since my project is web based I want to fetch the records through the C APIs in JSP. Is it possible? How to do that?
Please Help me.
-PrathapWhy can't you use JDBC?
I tried the Java Native Methods. I am able to do that in console with out problem. Since my project is web based I want to fetch the records through the C APIs in JSP. Is it possible? How to do that?JSP runs in a server. Which is just a big console application. Same as any other.
Basic process.
1. Write the JNI
2. Insure the JNI is in the servers shared library path. This can depend on the user that the server runs under (unlikely to be you.)
3. Add the java code into the server. -
Query regarding using multiple physical sources
Hi All,
Facing an issue in fetching data from multiple physical sources in OBIEE,
We have 2 facts tables on different databases, having same columns.
How can we get results from both the tables in the presentation layer.
I created one Logical Fact table, added both sources to it, but results are displayed only from logical source which i added first.
OBIEE version:
10.1.3
OS Windows
Thanks,
NikHi Nikhil,
If you have identical columns in both the sources, obiee will always choose only one LTS .To understand how to force multiple LTSs in query, check this thread:
2 table sources in LTS but only 1 in query?
Regards,
Dpka -
A query regarding synchronised functions, using shared object
Hi all.
I have this little query, regarding the functions that are synchronised, based on accessing the lock to the object, which is being used for synchronizing.
Ok, I will clear myself with the following example :
class First
int a;
static int b;
public void func_one()
synchronized((Integer) a)
{ // function logic
} // End of func_one
public void func_two()
synchronized((Integer) b)
{ / function logic
} // End of func_two
public static void func_three()
synchronized((Integer) a)
{ // function logic
} // End of func_three, WHICH IS ACTUALLY NOT ALLOWED,
// just written here for completeness.
public static void func_four()
synchronized((Integer) b)
{ / function logic
} // End of func_four
First obj1 = new First();
First obj2 = new First();
Note that the four functions are different on the following criteria :
a) Whether the function is static or non-static.
b) Whether the object on which synchronization is based is a static, or a non-static member of the class.
Now, first my-thoughts; kindly correct me if I am wrong :
a) In case 1, we have a non-static function, synchronized on a non-static object. Thus, effectively, there is no-synchronisation, since in case obj1 and obj2 happen to call the func_one at the same time, obj1 will obtain lock for obj1.a; and obj2 will obtain lock to obj2.a; and both can go inside the supposed-to-be-synchronized-function-but-actually-is-not merrily.
Kindly correct me I am wrong anywhere in the above.
b) In case 2, we have a non-static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a. However, since obj1.a and obj2.a are the same, thus we will indeed obtain sychronisation.
Kindly correct me I am wrong anywhere in the above.
c) In case 3, we have a static function , synchronized on a non-static object. However, Java does not allow functions of this type, so we may safely move forward.
d) In case 4, we have a static function, synchronized on a static object.
Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a. However, since obj1.a and obj2.a are the same, thus we will indeed obtain sychronisation. But we are only partly done for this case.
First, Kindly correct me I am wrong anywhere in the above.
Now, I have a query : what happens if the call is made in a classically static manner, i.e. using the statement "First.func_four;".
Another query : so far we have been assuming that the only objects contending for the synchronized function are obj1, and obj2, in a single thread. Now, consider this, suppose we have the same reference obj1, in two threads, and the call "obj1.func_four;" happens to occur at the same time from each of these threads. Thus, we have obj1 rying to obtain lock for obj1.a; and again obj1 trying to obtain lock for obj1.a, which are the same locks. So, if obj1.a of the first thread obtains the lock, then it will enter the function no-doubt, but the call from the second thread will also succeed. Thus, effectively, our synchronisation is broken.
Or am I being dumb ?
Looking forward to replies..
Ashutosha) In case 1, we have a non-static function, synchronized on a non-static object. Thus, effectively, there is no-synchronisationThere is no synchronization between distinct First objects, but that's what you specified. Apart from the coding bug noted below, there would be synchronization between different threads using the same instance of First.
b) In case 2, we have a non-static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a.obj1/2 don't call methods or try to obtain locks. The two different threads do that. And you mean First.b, not obj1.b and obj2.b, but see also below.
d) In case 4, we have a static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a.Again, obj1/2 don't call methods or try to obtain locks. The two different threads do that. And again, you mean First.b. obj1.b and obj2.b are the same as First.b. Does that make it clearer?
Now, I have a query : what happens if the call is made in a classically static manner, i.e. using the statement "First.func_four;".That's what happens in any case whether you write obj1.func_four(), obj2.func)four(), or First.func_four(). All these are identical when func_four(0 is static.
Now, consider this, suppose we have the same reference obj1, in two threads, and the call "obj1.func_four;" happens to occur at the same time from each of these threads. Thus, we have obj1 rying to obtain lock for obj1.aNo we don't, we have a thread trying to obtain the lock on First.b.
and again obj1 trying to obtain lock for obj1.aYou mean obj2 and First.b, but obj2 doesn't obtain the lock, the thread does.
which are the same locks. So, if obj1.a of the first thread obtains the lock, then it will enter the function no-doubt, but the call from the second thread will also succeed.Of course it won't. Your reasoning here makes zero sense..Once First.b is locked it is locked. End of story.
Thus, effectively, our synchronisation is broken.No it isn't. The second thread will wait on the same First.b object that the first thread has locked.
However in any case you have a much bigger problem here. You're autoboxing your local 'int' variable to a possibly brand-new Integer object every call, so there may be no synchronization at all.
You need:
Object a = new Object();
static Object b = new Object(); -
Query regarding database access segregation using os authentication in windows environment
Hi ,
I have a query regarding database access segragation using os authentication (like sqlplus "/ as sysdba") in windows environment.Let me briefly explain my requirement:-
Suppose you have two DBA`s viz DBA1 and DBA2 and 4 databases resideds in a windows server say A,B,C & D.Now I want to set up such a way if DBA1 logs into the server then he can login to database A and B only using OS authentication and DBA2 can login to database C and D only using OS authentication.
Please let me know how to do setup for this requirement.
Database version is 11.2.0.31494629, I am not a Windows person but if there is any way to do this I suspect some additional information is necessary:
Are the DBA users members of the Administrators Group ?
Do all 4 database share the same $ORACLE_HOME ?
I suspect if either answer above is yes then this is not possible, but like I said I am not a Windows person. I would just ask for two servers and the associated licensing to be acquired. The requirement to spend money to do something management wants usually elimanates the request in my world.
HTH -- Mark D Powell -- -
Regarding ABAP query when using the LDB
Hi Experts,
Iam preparing one ABAP query by using LDB.
And i added two more table VBPA and KNA1.
When i add the VBPA table the system will automatically generate
the sql query and we need to pass the where condition to thet query.
system generated like this..
SELECT SINGLE * FROM VBPA
WHERE VBELN =
AND POSNR =
AND PARVW =
but in the above query i need to pass the values to PARVW as 'AG' or 'SP'.
how can i pass the two values to that query?
rgds,
Sruthi.HI,
It is system generated....just we need to pass the values to where condition.
in normal ABAP we can do like this...
SELECT SINGLE * FROM VBPA
WHERE VBELN = EKPO-ZZVBELN
AND POSNR = EKPO-ZZPOSNR
AND PARVW in ( 'AG' , 'SP').
or
SELECT SINGLE * FROM VBPA
WHERE VBELN = EKPO-ZZVBELN
AND POSNR = EKPO-ZZPOSNR
AND ( PARVW = 'AG' or PARVW = 'SP' ).
Rgds,
Sruthi. -
Segmentation fault when using jni application
Hi I have a segmentation fault whe i use jni with a c++ program, i don't know how to read hs_err_pid....log, can someone help me to analyse this file
# An unexpected error has been detected by HotSpot Virtual Machine:
# SIGSEGV (0xb) at pc=0x9704e824, pid=15092, tid=2983283632
# Java VM: Java HotSpot(TM) Client VM (1.5.0_15-b04 mixed mode, sharing)
# Problematic frame:
# C 0x9704e824
--------------- T H R E A D ---------------
Current thread (0x08379000): JavaThread "Xxxxxxxx main loop #1 (machine)" [_thread_in_native, id=15101]
siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x9704e824
Registers:
EAX=0xb1f9c030, EBX=0xb1edafa0, ECX=0x48411fc8, EDX=0x08377218
ESP=0xb1d13bfc, EBP=0xb1d13c18, ESI=0xb1f1020a, EDI=0xb1edc5a8
EIP=0x9704e824, CR2=0x9704e824, EFLAGS=0x00010286
Top of Stack: (sp=0xb1d13bfc)
0xb1d13bfc: b1e78eb5 b1f9c030 48411fc8 b1e78e2b
0xb1d13c0c: b1f9b494 b1d13c50 b0786e50 b1d13c78
0xb1d13c1c: b1f6a332 b0786e50 48411fc8 b1d13c48
0xb1d13c2c: b7bca34c 083790c0 b1d13c40 08410e58
0xb1d13c3c: 00a0b574 b1f9c030 0838b2e0 b074ed18
0xb1d13c4c: b1fca214 b1f9c360 0838b2e0 b072e2d8
0xb1d13c5c: b1fb761c 08373ce8 b1d13c94 b1f6a16f
0xb1d13c6c: b1f9b494 08373c08 00000001 b1d13cc8
Instructions: (pc=0x9704e824)
0x9704e814:
[error occurred during error reporting, step 100, id 0xb]
Stack: [0xb1c94000,0xb1d15000), sp=0xb1d13bfc, free space=510k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x9704e824
C [libxxxxxxxxxx.so.1.6+0x7d332] _ZN10MyApplication12Route4tickEj+0x1ce
C [libxxxxxxxxxx.so.1.6+0x34248] _ZN10MyApplication4Core8workEj+0x34
C [libyyyyyy.so+0x15457] ZN5CCore8mainLoopEP7JNIEnv+0x17f
C [libyyyyyy.so+0x1f299] Java_com_xx_xxxxxxxx_xxxxxxxximpl_jni_JCore_run+0x35
j com.xx.xxxxxxxx.xxxxxxxximpl.jni.JCore.run()V+0
v ~StubRoutines::call_stub
V [libjvm.so+0x17b2bc]
V [libjvm.so+0x28fed8]
V [libjvm.so+0x17ab15]
V [libjvm.so+0x17abae]
V [libjvm.so+0x1f2b15]
V [libjvm.so+0x2f9933]
V [libjvm.so+0x290ae8]
C [libpthread.so.0+0x5371]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.xx.xxxxxxxx.xxxxxxxximpl.jni.JCore.run()V+0
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
=>0x08379000 JavaThread "Xxxxxxxx main loop #1 (machine)" [_thread_in_native, id=15101]
0x083634d8 JavaThread "Thread-0" [_thread_in_native, id=15100]
0x080a5c60 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=15098]
0x080a47a8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=15097]
0x080a3850 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=15096]
0x0809dbe8 JavaThread "Finalizer" daemon [_thread_blocked, id=15095]
0x0809bdb8 JavaThread "Reference Handler" daemon [_thread_blocked, id=15094]
0x0805caa0 JavaThread "main" [_thread_in_native, id=15092]
Other Threads:
0x0809a940 VMThread [id=15093]
0x080a71d0 WatcherThread [id=15099]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 576K, used 515K [0x88bc0000, 0x88c60000, 0x890a0000)
eden space 512K, 95% used [0x88bc0000, 0x88c3a560, 0x88c40000)
from space 64K, 40% used [0x88c40000, 0x88c46888, 0x88c50000)
to space 64K, 0% used [0x88c50000, 0x88c50000, 0x88c60000)
tenured generation total 1408K, used 918K [0x890a0000, 0x89200000, 0x8cbc0000)
the space 1408K, 65% used [0x890a0000, 0x89185850, 0x89185a00, 0x89200000)
compacting perm gen total 8192K, used 500K [0x8cbc0000, 0x8d3c0000, 0x90bc0000)
the space 8192K, 6% used [0x8cbc0000, 0x8cc3d110, 0x8cc3d200, 0x8d3c0000)
ro space 8192K, 68% used [0x90bc0000, 0x91142e10, 0x91143000, 0x913c0000)
rw space 12288K, 48% used [0x913c0000, 0x91991640, 0x91991800, 0x91fc0000)
Dynamic libraries:
00113000-00121000 r-xp 00000000 03:01 6292457 /lib/tls/libpthread-2.3.4.so
00121000-00123000 rwxp 0000d000 03:01 6292457 /lib/tls/libpthread-2.3.4.so
00123000-00125000 rwxp 00123000 00:00 0
0022c000-0023b000 r-xp 00000000 03:01 6292459 /lib/libresolv-2.3.4.so
0023b000-0023d000 rwxp 0000f000 03:01 6292459 /lib/libresolv-2.3.4.so
0023d000-0023f000 rwxp 0023d000 00:00 0
002be000-002c5000 r-xp 00000000 03:01 6292458 /lib/libgcc_s-3.4.6-20060404.so.1
002c5000-002c6000 rwxp 00007000 03:01 6292458 /lib/libgcc_s-3.4.6-20060404.so.1
002e8000-003a8000 r-xp 00000000 03:01 10722848 /usr/lib/libstdc++.so.6.0.3
003a8000-003ad000 rwxp 000bf000 03:01 10722848 /usr/lib/libstdc++.so.6.0.3
003ad000-003b3000 rwxp 003ad000 00:00 0
0087d000-0088f000 r-xp 00000000 03:01 6292465 /lib/libnsl-2.3.4.so
0088f000-00891000 rwxp 00011000 03:01 6292465 /lib/libnsl-2.3.4.so
00891000-00893000 rwxp 00891000 00:00 0
00b99000-00bae000 r-xp 00000000 03:01 6292453 /lib/ld-2.3.4.so
00bae000-00baf000 r-xp 00015000 03:01 6292453 /lib/ld-2.3.4.so
00baf000-00bb0000 rwxp 00016000 03:01 6292453 /lib/ld-2.3.4.so
00bb7000-00cdc000 r-xp 00000000 03:01 6292454 /lib/tls/libc-2.3.4.so
00cdc000-00cdd000 r-xp 00124000 03:01 6292454 /lib/tls/libc-2.3.4.so
00cdd000-00ce0000 rwxp 00125000 03:01 6292454 /lib/tls/libc-2.3.4.so
00ce0000-00ce2000 rwxp 00ce0000 00:00 0
00ce4000-00d05000 r-xp 00000000 03:01 6292455 /lib/tls/libm-2.3.4.so
00d05000-00d07000 rwxp 00020000 03:01 6292455 /lib/tls/libm-2.3.4.so
00d09000-00d0b000 r-xp 00000000 03:01 6292456 /lib/libdl-2.3.4.so
00d0b000-00d0d000 rwxp 00001000 03:01 6292456 /lib/libdl-2.3.4.so
08048000-08057000 r-xp 00000000 03:01 11715142 /usr/java/jdk1.5.0_15/bin/java
08057000-08059000 rwxp 0000e000 03:01 11715142 /usr/java/jdk1.5.0_15/bin/java
08059000-086b9000 rwxp 08059000 00:00 0
88bc0000-88c60000 rwxp 88bc0000 00:00 0
88c60000-890a0000 rwxp 88c60000 00:00 0
890a0000-89200000 rwxp 890a0000 00:00 0
89200000-8cbc0000 rwxp 89200000 00:00 0
8cbc0000-8d3c0000 rwxp 8cbc0000 00:00 0
8d3c0000-90bc0000 rwxp 8d3c0000 00:00 0
90bc0000-91143000 r-xs 00001000 03:01 11698348 /usr/java/jdk1.5.0_15/jre/lib/i386/client/classes.jsa
91143000-913c0000 rwxp 91143000 00:00 0
913c0000-91992000 rwxp 00584000 03:01 11698348 /usr/java/jdk1.5.0_15/jre/lib/i386/client/classes.jsa
91992000-91fc0000 rwxp 91992000 00:00 0
91fc0000-92090000 rwxp 00b56000 03:01 11698348 /usr/java/jdk1.5.0_15/jre/lib/i386/client/classes.jsa
92090000-923c0000 rwxp 92090000 00:00 0
923c0000-923c4000 r-xs 00c26000 03:01 11698348 /usr/java/jdk1.5.0_15/jre/lib/i386/client/classes.jsa
923c4000-927c0000 rwxp 923c4000 00:00 0
b0500000-b0521000 rwxp b0500000 00:00 0
b0521000-b0600000 --xp b0521000 00:00 0
b0600000-b0636000 rwxp b0600000 00:00 0
b0636000-b0700000 --xp b0636000 00:00 0
b0700000-b0800000 rwxp b0700000 00:00 0
b0873000-b0874000 --xp b0873000 00:00 0
b0874000-b1c74000 rwxp b0874000 00:00 0
b1c74000-b1c78000 r-xp 00000000 03:01 6291503 /lib/libnss_dns-2.3.4.so
b1c78000-b1c7a000 rwxp 00003000 03:01 6291503 /lib/libnss_dns-2.3.4.so
b1c94000-b1c97000 --xp b1c94000 00:00 0
b1c97000-b1d15000 rwxp b1c97000 00:00 0
b1d15000-b1d1b000 r-xs 00000000 03:01 10748120 /usr/lib/gconv/gconv-modules.cache
b1fcb000-b1fdd000 r-xp 00000000 03:01 11603256 /usr/java/jdk1.5.0_15/jre/lib/i386/libnet.so
b1fdd000-b1fde000 rwxp 00011000 03:01 11603256 /usr/java/jdk1.5.0_15/jre/lib/i386/libnet.so
b1fde000-b1fe1000 --xp b1fde000 00:00 0
b1fe1000-b205f000 rwxp b1fe1000 00:00 0
b2089000-b214f000 r-xs 00000000 03:01 11698359 /usr/java/jdk1.5.0_15/jre/lib/ext/localedata.jar
b214f000-b2152000 r-xs 00000000 03:01 11698358 /usr/java/jdk1.5.0_15/jre/lib/ext/dnsns.jar
b2152000-b217d000 r-xs 00000000 03:01 11698357 /usr/java/jdk1.5.0_15/jre/lib/ext/sunpkcs11.jar
b217d000-b21a4000 r-xs 00000000 03:01 11698356 /usr/java/jdk1.5.0_15/jre/lib/ext/sunjce_provider.jar
b21a4000-b21a5000 --xp b21a4000 00:00 0
b21a5000-b2225000 rwxp b21a5000 00:00 0
b2225000-b2228000 --xp b2225000 00:00 0
b2228000-b22a6000 rwxp b2228000 00:00 0
b22a6000-b22a9000 --xp b22a6000 00:00 0
b22a9000-b2327000 rwxp b22a9000 00:00 0
b2327000-b232a000 --xp b2327000 00:00 0
b232a000-b23a8000 rwxp b232a000 00:00 0
b23a8000-b25a8000 r-xp 00000000 03:01 10717357 /usr/lib/locale/locale-archive
b25a8000-b25ab000 --xp b25a8000 00:00 0
b25ab000-b2629000 rwxp b25ab000 00:00 0
b2629000-b262c000 --xp b2629000 00:00 0
b262c000-b26aa000 rwxp b262c000 00:00 0
b26aa000-b26ab000 --xp b26aa000 00:00 0
b26ab000-b273c000 rwxp b26ab000 00:00 0
b273c000-b2758000 rwxp b273c000 00:00 0
b2758000-b2759000 rwxp b2758000 00:00 0
b2759000-b2776000 rwxp b2759000 00:00 0
b2776000-b2777000 rwxp b2776000 00:00 0
b2777000-b2778000 rwxp b2777000 00:00 0
b2778000-b277a000 rwxp b2778000 00:00 0
b277a000-b2796000 rwxp b277a000 00:00 0
b2796000-b279a000 rwxp b2796000 00:00 0
b279a000-b27b6000 rwxp b279a000 00:00 0
b27b6000-b27c5000 rwxp b27b6000 00:00 0
b27c5000-b2841000 rwxp b27c5000 00:00 0
b2841000-b2941000 rwxp b2841000 00:00 0
b2941000-b4841000 rwxp b2941000 00:00 0
b4841000-b50b0000 r-xs 00000000 03:01 11603318 /usr/java/jdk1.5.0_15/jre/lib/charsets.jar
b50b0000-b50c5000 r-xs 00000000 03:01 11603283 /usr/java/jdk1.5.0_15/jre/lib/jce.jar
b50c5000-b514a000 r-xs 00000000 03:01 11603316 /usr/java/jdk1.5.0_15/jre/lib/jsse.jar
b514a000-b51b3000 rwxp b514a000 00:00 0
b51b3000-b77db000 r-xs 00000000 03:01 11603320 /usr/java/jdk1.5.0_15/jre/lib/rt.jar
b77db000-b77ea000 r-xp 00000000 03:01 11603253 /usr/java/jdk1.5.0_15/jre/lib/i386/libzip.so
b77ea000-b77ec000 rwxp 0000e000 03:01 11603253 /usr/java/jdk1.5.0_15/jre/lib/i386/libzip.so
b77ec000-b780d000 r-xp 00000000 03:01 11603251 /usr/java/jdk1.5.0_15/jre/lib/i386/libjava.so
b780d000-b780f000 rwxp 00020000 03:01 11603251 /usr/java/jdk1.5.0_15/jre/lib/i386/libjava.so
b780f000-b7818000 r-xp 00000000 03:01 6291506 /lib/libnss_files-2.3.4.so
b7818000-b781a000 rwxp 00008000 03:01 6291506 /lib/libnss_files-2.3.4.so
b7820000-b782b000 r-xp 00000000 03:01 11603250 /usr/java/jdk1.5.0_15/jre/lib/i386/libverify.so
b782b000-b782c000 rwxp 0000b000 03:01 11603250 /usr/java/jdk1.5.0_15/jre/lib/i386/libverify.so
b782c000-b7834000 rwxs 00000000 03:01 6619137 /tmp/hsperfdata_myname/15092
b7834000-b783a000 r-xp 00000000 03:01 11603246 /usr/java/jdk1.5.0_15/jre/lib/i386/native_threads/libhpi.so
b783a000-b783b000 rwxp 00006000 03:01 11603246 /usr/java/jdk1.5.0_15/jre/lib/i386/native_threads/libhpi.so
b783b000-b783c000 rwxp b783b000 00:00 0
b783c000-b783d000 r-xp b783c000 00:00 0
b783d000-b7baf000 r-xp 00000000 03:01 11698345 /usr/java/jdk1.5.0_15/jre/lib/i386/client/libjvm.so
b7baf000-b7bcd000 rwxp 00372000 03:01 11698345 /usr/java/jdk1.5.0_15/jre/lib/i386/client/libjvm.so
b7bcd000-b7fe6000 rwxp b7bcd000 00:00 0
bfe00000-bfe03000 --xp bfe00000 00:00 0
bfe03000-c0000000 rwxp bfe03000 00:00 0
ffffe000-fffff000 ---p 00000000 00:00 0
VM Arguments:
jvm_args: -Xcheck:jni -XX:+PrintCompilation
java_command: myapplication
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=/home/myname/XXXXXXXX_PERF/bin:/usr/java/jdk1.5.0_15/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/myname/bin
LD_LIBRARY_PATH=/usr/java/jdk1.5.0_15/jre/lib/i386/client:/usr/java/jdk1.5.0_15/jre/lib/i386:/usr/java/jdk1.5.0_15/jre/../lib/i386:/home/myname/XXXXXXXX/lib
SHELL=/bin/bash
DISPLAY=XXX.XXX.X.XXX:0.0
Signal Handlers:
SIGSEGV: [libjvm.so+0x32b740], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGBUS: [libjvm.so+0x32b740], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGFPE: [libjvm.so+0x28ef10], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGPIPE: [libjvm.so+0x28ef10], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGILL: [libjvm.so+0x28ef10], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x291360], sa_mask[0]=0x00000000, sa_flags=0x14000004
SIGHUP: [libjvm.so+0x290d90], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGINT: [libjvm.so+0x290d90], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGQUIT: [libjvm.so+0x290d90], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGTERM: [libjvm.so+0x290d90], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
--------------- S Y S T E M ---------------
OS:Red Hat Enterprise Linux WS release 4 (Nahant Update 4)
uname:Linux 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686
libc:glibc 2.3.4 NPTL 2.3.4
rlimit: STACK 20480k, CORE 0k, NPROC 16375, NOFILE 1024, AS infinity
load average:3.46 1.36 0.50
CPU:total 2 (cores per cpu 1, threads per core 2) family 15 model 4 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
Memory: 4k page, physical 1034096k(389000k free), swap 0k(0k free)
vm_info: Java HotSpot(TM) Client VM (1.5.0_15-b04) for linux-x86, built on Feb 9 2008 01:37:00 by java_re with gcc 3.2.1-7a (J2SE release)
Regards
Fr�d�ricSimple - something is wrong with your C/C++ code.
You have a pointer/memory bug. -
Query regarding the Node manager configuration(WLS and OAM Managed server)
Query regarding the Node manager configuration(WLS and OAM Managed server):
1) In the nodemanager.properties I have added the ListenAddress:myMachineName and ListenPort: 5556
My setup : One physical Linux machine(myMachineName) has : WLS admin server, managed server(OAM 11G) and nodemanager.No clustered environment.
2) nodemanager.log has the following exception when I start the oam_server1 using EM(Enterprise Manager11g):
Mar 23 2012 1:39:55 AM> <SEVERE> <Fatal error in node manager server>
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:336)
at java.net.ServerSocket.bind(ServerSocket.java:336)
at javax.net.ssl.impl.SSLServerSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.<init>(ServerSocket.java:202)
at javax.net.ssl.SSLServerSocket.<init>(SSLServerSocket.java:125)
at javax.net.ssl.impl.SSLServerSocketImpl.<init>(Unknown Source)
at javax.net.ssl.impl.SSLServerSocketFactoryImpl.createServerSocket(Unknown Source)
Default port on which node manager listen for requests is localhost:5556.I have changed it to point to my machine. The port should be of WLS admin server or it should be the managed server port?
3) I have started the NodeManager using the startNodeManager.sh script.
4) The admin server port is 7001 and the oam managed server port is 14100.
Any inputs on what might be wrong in the setup will be helpful.Thanks !By using netstat -anp|grep 5556 you can check which process on your machine is using the 5556 port.
-
Advice needed... should I write it using JNI?
Hi all - I'm experienced with both Java & c++. I've got a set of libraries written in c++, and I need to write a test harness. It's been suggested that I write it using JNI. I've no experience with JNI, only gone through the tutorials.
The library & test harness will be used on a multitude of platforms (Windows, Sun, Linux, Netware, AIX, oh many more...).
Based on my very limited understanding of JNI, I'd basically have to write a harness in c++ (I can't touch the libraries themselves) using JNI-friendly methods and then access it with a pure Java app. Various reasons as to why this might be a good idea have been suggested, but I'd like some more experienced input.
Is this a worthy use of JNI? I'm quite happy to learn it & do it, but is this the type of situation where I'd want to? And am I totally off on what I'd have to do?
Thanks in advance,
SuzanneHi,
I had been working on JNI as well. It was a nice experience trying to communicate from java through c and finally to fortran libraries built long ago. Since rewriting the code was tedious Job we came out with this idea of JNI. During my reserach on JNI I came across with javah -stubs option. To my understanding if you could generate the stubs based header files. You can talk to c programs with minimum changes in interface. If this is just a test program then you can also communicate through sockets and built a interface between these two high level languages, where all the returned output will be redirected to ports where in finally you extract it from Java side and vice versa. I haven't tried the second idea but would be interesting to try though. Do let me know what u finally decide to do on forum.
Thanks,
Regards,
RaviKiran. -
Progblems Running a C program with JNI on Linux
Hi
We are having a problem running a C program which uses JNI to start a virtual machine.
We can compile it up ok and it finds all the correct libraries and everything is fine as far as we are aware but when we try to run the program the error we get is "command not found". Now when the same programm is compiled with out JNI stuff, so basically no java at all it compiles and runs ok.
I was wondering if anyone else has had similar problems we are using sun jdk 1.3.1 and RedHat Linux 7.2.
Thanks
IainHi
We are having a problem running a C program which uses
JNI to start a virtual machine.
We can compile it up ok and it finds all the correct
libraries and everything is fine as far as we are
aware but when we try to run the program the error we
get is "command not found". Now when the same
programm is compiled with out JNI stuff, so basically
no java at all it compiles and runs ok.
I was wondering if anyone else has had similar
problems we are using sun jdk 1.3.1 and RedHat Linux
7.2.
Thanks
IainHi !
I think I had the same problem. But fortunately I found the solution.
I tried to compile and run the standard sun example of invocation interface. My C file is main.c.
Compilation:
cc -I/usr/java/jdk1.3.1/include/linux -L/usr/java/jdk1.3.1/jre/lib/i386/classic/ -L/usr/java/jdk1.3.1/jre/lib/i386/native_threads/ -lpthread -lhpi -ljvm main.c
after then You must create the environment variable LD_LIBRARY_PATH and point out Your JNI libraries location. That works with mine.
LD_LIBRARY_PATH=/usr/java/jdk1.3.1/jre/lib/i386:/usr/java/jdk1.3.1/jre/lib/i386/native_threads:/usr/java/jdk1.3.1/jre/lib/i386/classic;export LD_LIBRARY_PATH
Now it should work. -
How to find out Query last used by whom
Dear All,
Can any one tell me that "How to find out the Query last used by whom. I have already searched in SDN but no luck. In my system BW Stats are not installed and I have already checked the below tables.
RSZELTDIR - Directory of the reporting component elements
RSZELTTXT - Texts of reporting component elements
RSZELTXREF - Directory of query element references
RSRREPDIR - Directory of all reports (Query GENUNIID)
RSZCOMPDIR - Directory of reporting components
RSZRANGE - Selection specification for an element
RSZSELECT - Selection properties of an element
RSZELTDIR - Directory of the reporting component elements
RSZCOMPIC - Assignment reuseable component <-> InfoCube
RSZELTPRIO - Priorities with element collisions
RSZELTPROP - Element properties (settings)
RSZELTATTR - Attribute selection per dimension element
RSZCALC - Definition of a formula element
RSZCEL - Query Designer: Directory of Cells
RSZGLOBV - Global Variables in Reporting
RSZCHANGES Change history of reporting components
I am able to find out the Date and time but not the user name. So could you please help on this.
Regards
Sankari think u have missed it.
RSZCOMPDIR IS THE ONLY TABLE WHICH PROVIDES THE DATA.
ENTER TECHNICAL QUERY Name in RSZCOMPDIR-COMPID.
RSZCOMPDIR-TSTNAM gives you the user id of sap bw user who made the change.
RSZCOMPDIR-TSTPDAT gives you date on which change was made .
RSZCOMPDIR-TSTPTIM gives you timestamp on which change was made .
all users details can be obtained from TCODE SU01 where you need to enter sap user id.
You can also get user name( description) by using tcode SE09 and entering above sap user id. -
Needs help to retrive the last row in a select query without using rownum
Hi ,
i need to retrive the last row from the select sub query without using rownum.
is there any other way to retrive the last row other than the below query.
is that the ROWNUM=1 will always retrive the 1 row of the select query ?
select from*
*(select ename from employee where dept_id=5 order by desc) where rownum=1;*
Please advise.
thanks for your help advance,
regards,
Senthur957595 wrote:
Actually my problem is ithat while selecting the parents hiearchy of the child data using
CONNECT BY PRIOIR query
I need the immediate parent of my child data.
For example my connect BY query returns
AAA --- ROOT
BBB --PARENT -2
CCC --PARENT-1
DDD IS my input child to the connect by query
Immediate parent of my child data "DDD" ---> CCC(parent -1)
i want the data "CCC" from the select query,for that i am taking the last row of the query with rownum.
I got to hear that using ROWNUM to retrive the data will leads to some problem.It is a like a magic number.I am not sure what the problem will be.
So confusing with using this rownum in my query.
Please advice!!!It's not quite clear what you're wanting, but perhaps this may help?
you can select the PRIOR values to get the parent details if you want...
SQL> ed
Wrote file afiedt.buf
1 select empno, lpad(' ',(level-1)*2,' ')||ename as ename, prior empno as mgr
2 from emp
3 connect by mgr = prior empno
4* start with mgr is null
SQL> /
EMPNO ENAME MGR
7839 KING
7566 JONES 7839
7788 SCOTT 7566
7876 ADAMS 7788
7902 FORD 7566
7369 SMITH 7902
7698 BLAKE 7839
7499 ALLEN 7698
7521 WARD 7698
7654 MARTIN 7698
7844 TURNER 7698
7900 JAMES 7698
7782 CLARK 7839
7934 MILLER 7782
14 rows selected.(ok, not the best of examples as the mgr is already known for a row, but it demonstrates you can select prior data) -
Hi guys,
I'm trying to logical database MSM to report on material master but for some reason the following message appears:
The query specifications cannot be used to generate a list,
i.e. the query will probably not return the list you desire.
If you still want to execute the query, please use the
"Generate" function.
Errors are like this :
Fields from parallel tables within a line
Line: 01
Field: Post to Inspection Stock
(MARCV-INSMK, table MARCV)
Field: Item category group from material master
(MVKE-MTPOS, table MVKE)
Any idea what is the reason why this happens?
Thanks and regards
Stefan
Edited by: Stefan Tzandev on Sep 15, 2008 1:44 PMHey Stefan,
I know this is a long shot, but were you able to figure it out. I am having the same problem as we speak. I tried rearanging the fields according to the heirchy, it now works, but has a really bad output. Hope to hear from you.
Best Regards,
Matthew Ong -
Query rule using query variables
Hi All,
I am working on a query rule in SharePoint 2013. I am trying to build a query text using query variables to provide profile based results to the users. The query text which I am using in the query builder is of the following format:
{SearchBoxQuery} CombinedLanguage:{User.PreferredContentLanguage}
but its not taking the user.preferredcontentlanguage value. Has any one worked on similar type of query rules using query variables? Please share your suggestions.
Thanks !!Hi,
As I understand, you cannot get the user.preferredcontentlanguage value.
1. Make sure you have set the value of query variable {user.preferredcontentlanguage}, it will return -1 if not set.
2. Make sure you search in the right result source.
3. Please check the crawled property mapped to the managed property CombinedLanguage and make sure that there is at least one value indexed by the crawled property equal to the {user.preferredcontentlanguage}.
The article below is about the query variables.
https://technet.microsoft.com/en-us/library/jj683123.aspx
The article below is about the different query variables return different result examples.
http://techmikael.blogspot.in/2014/05/s15e03-query-variables-constant-trouble.html
Best regards
Sara Fan
TechNet Community Support
Maybe you are looking for
-
I have an HP pavilion slimline, model s5120y, with Windows 7 (64-bit). I just got my power supply replaced and when I brought it home and plugged everything in, I couldn't get any sound. It told me no audio devices were plugged in, but my monitor wit
-
Hi, I try to connect my new Mac Mini 2014 to a Dell U2711. It is working fine via HDMI but how can I connect the mini to get a 2560x1600 resolution? Thanks in advance, Mike
-
Sync Issues with iPhone 4/4S? I think I've found the problem.
Hello all! I and quite a few others here have had syncing issues with our iPhone 4, and I think I've found a solution. I use an application called iToner 2 to create my ringtones, and after deleting all my iToner 2 created ringtones, I have no more s
-
How can I lock people out of my computer without signing off User?
I'd like to keep an application open 24/7, but also keep people off computer when not here, if I log off my user (the logical way to keep people put of my stuff) the app closes. thoughts? roger
-
MacBook Pro (Early 2011) battery issues?
So I updated to Lion the day it came out, and everything was great, until today, when I clicked on my battery indicator on my status bar, it said Service Battery. Which is weird, considering yesterday I checked and that little row that tells you your