my dog learned polymorphism*
The moose likes Performance and the fly likes An embedded element management system. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "An embedded element management system." Watch "An embedded element management system." New topic

An embedded element management system.

Qunfeng Wang
Ranch Hand

Joined: Jan 28, 2005
Posts: 426
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.

[ June 07, 2007: Message edited by: Louis Wang ]

To be or not to be. It's a question.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12682
If this was my problem I would figure out a way to encapsulate all of the data involved with a command to the device in a java object which could be recorded and "played back." Probably all device state information that the server can see should also be recorded.

Recording all HTTP messages would also be a good idea.

You need to be able to pinpoint the exact sequence of commands that crashes the device before speculating about where the problem originates.


Java Resources at
I agree. Here's the link:
subject: An embedded element management system.
Similar Threads
How to refer a java variable in javascript code.
Help extracting text out of a response
really need some help here concerning treeNode data types and the like. (data type issues really)
Listening for connections
Long running request returns no HTTP response