[Advanced-java] Malformed response message

Adrian Soetanto adrian at peter.petra.ac.id
Tue Aug 5 08:39:02 2003


Hi milisers,

I have a problem in determining what this error message means:
"malformed response message" thrown by Throwable while running method
"public void run()" to run a thread.

Here is the code:

public void run() {
        try {
            boolean found = Finder.find();
            if (searchThread == Thread.currentThread()) {
                if (found && Finder.field != null) {
                ...
                }
            }
        }
        catch (Throwable ex) {
            if (searchThread == Thread.currentThread()) {
                Alert alert = new Alert("Search Failed", null,null, 
AlertType.ERROR);
                alert.setTimeout(Alert.FOREVER);
                alert.setString("Search failed:\n" + ex.getMessage());
                display.setCurrent(alert, aForm);
            }
        }
}

And here is the error message:

Search failed: malformed response message.
            
The error message just appears occasionally, that really confuses me.
Does anyone know what the problem is?
FYI, the method Finder.find() does an HTTP Connection to my localhost and
returns true if the page is found and vice versa.
             
--
Thank You,
 Adrian