Hi,

what if i'm writing a cfx tag in java, and calling different functions that
raise different exceptions?
For example:

public void processRequest(Request request, Response response) 
throws Exception {

        ... some code ...
        
        try {
                myvar = x.myfunc(s);
        } catch (UnknownHostException e) {
                response.write("<b>" + e.toString() + " : Custom error message</b>");
                // System.exit(1); // not sure about this, into a cfx context
        }
        
        
}

public int myfunc() throws UnknownHostException {
        ... code ...
}


If the exception occurs, the code doesn't work. 
The java code it is working in a debug context (calling a main function from
the command line). With a browser, it reacts in a weird manner (Netscape: the
infamous "document contains no data", Konqueror: errno 111. Make sure the 
server it's up and running. It is!). It seems to me that these are
the classic browser error messages of the "dont-know-what--happened" kind.

The documentation it's quite poor regarding the measures we have to take when
using java in cfx contexts. Does anyone have any hint or useful url?

thanks,

-- 
Rd

"Un esperto e' una persona che evitando tutti
 i piccoli errori punta dritto alla catastrofe."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to