Copy link to clipboard
Copied
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>
On your line
//produce the event list
events = factory.DebuggingService.getDebugger().getData();
This method is only available when you turn on the debugger from the Coldfusion Administrator,
Debugging & Logging > Debug Output Settings , check the "Enable Request Debugging Output".
Cheers,
Copy link to clipboard
Copied
On your line
//produce the event list
events = factory.DebuggingService.getDebugger().getData();
This method is only available when you turn on the debugger from the Coldfusion Administrator,
Debugging & Logging > Debug Output Settings , check the "Enable Request Debugging Output".
Cheers,