Quantcast
Channel: Adobe Community : Popular Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 14291

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

$
0
0

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>


Viewing all articles
Browse latest Browse all 14291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>