Logbox - DBAppender - Potential Issues with use of ServiceFactory

Just ran into an issue with the LogBox DBAppender, in this line of code:

Line 145:
var datasources = CreateObject(“java”, “coldfusion.server.ServiceFactory”).datasourceservice.getDatasources();

This will break on every shared server that has “” switched on, which most of them do from CF8+.

I’m not sure why you need to verify that the datasource exists, if it’s not there, I will get a pretty decent message from CF.

Any reasons, I’m missing?

I recommend that this code be removed.


You are absolutely right Mark, I guess I was being overprotective, but at the end of the day, CF will throw the exception that is pretty and straightforward. Thanks!! I just updated it and I think we might have a new 1.4 LogBox release. Anyways, any more fixes or enhancements for 1.4 say now so I can squeeze it in:


Luis F. Majano
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com