We have an RMI server that uses JNI classes. The JNI classes prints some messages to cout. The code was running completely fine under Java 1.5 but under Java 1.6 it hangs in JNI call. I tested with increased number of messages and noted that it hangs earlier. Looks like the out buffer is filling up. I will appreciate any help I can get with this issue.