First let me tell you what it is.
It's an application embeded into a telecom device. It loads
java applet in an embeded web server. So one users open their web browser, the applet can be downloaded and run in client side. It builds the information into XML format and transform it via HTTP. In the device, the web server parse the XML, and invoke the Device API to execute the command.
The problem is this application can make the device crash sometimes!
I don't think it's the applet. Although I've found there are
thread problems in the applet. But the applet is executed in the client side, it won't make the device crash. Could you help me to figure out where the problem is?
There are many threads in the client side. Every request is send to the server within a SwingWork thread. Also there is a thread polling the device every second. Do you think a thread pool is needed here?
I hope I describe the problem clearly. I'm still thinking where is the problem.
Thanks.
[ June 07, 2007: Message edited by: Louis Wang ]