My error template is throwing an error itself and its coming from the Java object. See below error message, can some one please tell me what is going on here. Does the application have to have permission to access? Here is the error message
Value must be initialized before use Its possible that a method called on a Java object created by CreateObject returned null. | |
The error occurred in errorHandler.cfm: line 15 | |
13 : } |
This is the code
<cfscript>
// init the factory
factory = CreateObject("java", "coldfusion.server.ServiceFactory");
// get debugging status
debugState = factory.DebuggingService.getShowdebug();
if(debugState eq false){
factory.DebuggingService.setShowdebug(1);
}
//produce the event list
events = factory.DebuggingService.getDebugger().getData();
//restore debugging status
if(debugState eq false){
factory.DebuggingService.setShowdebug(0);
}
</cfscript>