I have an applet that is connecting to a device and gets its paramaters throgh SNMP protocol. it is working fine on JRE 6u20, but after updating JRE to 6u25 its not working well.
On 6u20 retrieving of device paramteres tooks a few seconds, but on 6u25 it tooks much more and finally most of paramters are not retrieved.
There is a SwingWorker for reading each paramater and I use this Java SNMP Package.
What is the diffrence between these versions of JRE? how to find out what makes the problem?
Finally I figured it out what was the problem. Java SNMP Package GetRequest is not thread-safe. on JRE 6u20 there was no problem because SwingWorker default thread pool in JRE 6u20 has only one worker thread but in JRE 6u25 the number of worker threads is 10
By adding “synchronized ” keyword to SNMP get request method the problem is solved.