ajay

Greenhorn
+ Follow
since Dec 15, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by ajay

Thanks avi,But all the conditions are satisfied. The where clause is right and i have the matching parameters in the DB. Still it fails consistently.

This is a serious issue for us, since it is affecting the performance of our code badly.

Anyone out there who has faced such an issue before ?
In one of our application code, we are performing executeUpdate on a prepared statement object. This is done in a loop on a large number of records, say 20000.
On some occasions, the update fails to update the table with relevant information and returns without throwing any errors.

We need to know the reason why it is not updating the table even though the query is right?

Also, under what conditions does the update return zero rows ?

Steps taken :

1. Create and populate the preapred statement with values.

2. Lock the particular row for update.

3. executeUpdate on this prepared statement object.

4. release the lock.
Hi,

I have a situation wherein i need to support foriegn languages, e.g file names in french, that need to be passed to a native function (C) using jni, where i will be doing all kinds of operations on these files, e.g stat, ioctl, open etc.
I tried out the jni function GetStringUTFChars to get the file names in UTF format but this doesnt work for all files.
Is there a jni function that will do a conversion of all the known characters in UNICODE to the underlying platform (e.g linux) so that basic file system operations can be done on these converted files?

Thanks in advance,
austraind.
20 years ago
Hi,

I checked out the bug id page of sun. But i think the problem is still existing.

I am using JDK1.4.2_04 and the operating system is Red Hat Linux 7.3 2.96-110.

Any other solutions?
20 years ago
Hi,

Anyone else would like to throw some light on this issue? I am searching for an explanation for this inconsistent behaviour of exitValue method.

Thanks,
Ajay
20 years ago
Hi,
I am invoking a executable c file which accepts a single integer parameter through Runtime.exec method. The C code returns the same value back to Java.
When i try to capture this return value by printing the return code of exitValue() method, i am getting inconsistent values.

Return.java :

The C code : /tmp/test.c


When i iterate the call through a count, i am getting the following inconsistent values :

The return value of the child process is : 13
The return value of the waitFor method is : 13
Given value is : /tmp/test_return 14
The return value of the child process is : 14
The return value of the waitFor method is : 14
Given value is : /tmp/test_return 15
The return value of the child process is : 15
The return value of the waitFor method is : 15
Given value is : /tmp/test_return 16
The return value of the child process is : 0
The return value of the waitFor method is : 0
Given value is : /tmp/test_return 17
The return value of the child process is : 0
The return value of the waitFor method is : 0
Given value is : /tmp/test_return 18
The return value of the child process is : 18
The return value of the waitFor method is : 18
Given value is : /tmp/test_return 19
The return value of the child process is : 19
The return value of the waitFor method is : 19
Given value is : /tmp/test_return 20
The return value of the child process is : 20
The return value of the waitFor method is : 20


I tried out with a delay of 1 second before calling the exitValue() method, but still facing the same problem.
Yes i am working on a linux platform. Why is that this method behaves differently on this platform?

ajay
[ December 15, 2004: Message edited by: austraind austraind ]
20 years ago