I'm not that experienced with
JDBC, so I can't offer a Java-native solution. However, we can do a little
test.
Try to execute the following SQL statement before you call the stored procedure:
Try it both with Java and SqlPlus and tell me whether the records come in the same order after this.