Posted By:
Fredrik_Duprez
Posted On:
Wednesday, July 4, 2001 06:23 AM
Hi, We have the following setup: Oracle 8.1.7, Windows and Linux clients running JRE 1.2.2_008, RMI server running on Linux or Windows NT with JRE 1.2.2_008. The RMI server uses thin JDBC to communicate with the DB. The RMI server creates a new impl-object for each client request. When several clients execute the same remote method concurrently, sometimes one or more of them gets an EmptyStackException. We've tried to synchronize the method with no apparent change in behaviour. One method where we seem to succeed is one where the database call can be executed once, storing the result in a static variable. Question one: Which stack is empty???
More>>
Hi,
We have the following setup:
Oracle 8.1.7, Windows and Linux clients running JRE 1.2.2_008, RMI server running on Linux or Windows NT with JRE 1.2.2_008.
The RMI server uses thin JDBC to communicate with the DB. The RMI server creates a new impl-object for each client request.
When several clients execute the same remote method concurrently, sometimes one or more of them gets an EmptyStackException. We've tried to synchronize the method with no apparent change in behaviour.
One method where we seem to succeed is one where the database call can be executed once, storing the result in a static variable.
Question one: Which stack is empty???
Question two: How can we solve the problem?
Question three: When we changed the JRE on the server to 1.3.1 we haven't been able to reproduce the error. Is there a significant difference between 1.2.2 and 1.3.1 in this case?
Thanks,
Fredrik
<<Less