Skip to main content
Inspiring
July 23, 2009
Answered

factory.DebuggingService.getDebugger().getData() Error

  • July 23, 2009
  • 1 reply
  • 1321 views

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 :                }
14 :                //produce the event list
15 :                events = factory.DebuggingService.getDebugger().getData();
16 :                //restore debugging status
17 :                if(debugState eq false){

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>

    This topic has been closed for replies.
    Correct answer IndraPrastha

    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,

    1 reply

    IndraPrastha
    IndraPrasthaCorrect answer
    Participant
    August 21, 2014

    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,