Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Contributor ,
Jul 23, 2009 Jul 23, 2009

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>

1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Aug 20, 2014 Aug 20, 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,

Translate
Community Beginner ,
Aug 20, 2014 Aug 20, 2014
LATEST

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,

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources