i do have an scheduled task thats its using QB:
var qb = getWireBox().getInstance( "QueryBuilder@qb" );
var borrados = qb
.from( "LogExcepciones" )
.delete();
This throws this and prevents the following code to be executed:
{
"Extended_Info": "",
"Message": "key [QBQUERIES] doesn't exist",
"Detail": "",
"additional": {
"Function": "delete",
"Component": "qb.models.Query.QueryBuilder"
},
"TagContext": [
{
"Raw_Trace": "cbdebugger.interceptors.qbcollector_cfc$cf.udfCall(/modules/cbdebugger/interceptors/QBCollector.cfc: 38)",
"codePrintPlain": "36: \t\t // Collect baby!\n37: \t\targuments.interceptData.timestamp = now();\n38: \t\tif ( !structKeyExists( requestTracker.qbQueries.grouped, sqlHash ) ) {\n39: \t\t\trequestTracker.qbQueries.grouped[ sqlHash ] = {\n40: \t\t\t\t\"sql\" : arguments.interceptData.sql,\n",
"column": 0,
"line": 38,
"template": "C:\\Users\\Rodrigo\\CosasGit\\ProyectosGit\\ColdBox_PromecalNews\\lib\\modules\\cbdebugger\\interceptors\\QBCollector.cfc",
"id": "??",
"type": "cfml",
"codePrintHTML": "36: // Collect baby!<br>\n37: arguments.interceptData.timestamp = now();<br>\n<b>38: if ( !structKeyExists( requestTracker.qbQueries.grouped, sqlHash ) ) {</b><br>\n39: requestTracker.qbQueries.grouped[ sqlHash ] = {<br>\n40: "sql" : arguments.interceptData.sql,<br>\n"
},
{
"Raw_Trace": "system.web.context.interceptorstate_cfc$cf.udfCall2(/coldbox/system/web/context/InterceptorState.cfc:515)",
"codePrintPlain": "513: \t\t\targuments.interceptor( argumentCollection = args );\n514: \t\t} else {\n515: \t\t\tvar results = invoke( arguments.interceptor, getState(), args );\n516: \t\t}\n517: \n",
"column": 0,
"line": 515,
"template": "C:\\Users\\Rodrigo\\CosasGit\\ProyectosGit\\ColdBox_PromecalNews\\lib\\coldbox\\system\\web\\context\\InterceptorState.cfc",
"id": "??",
"type": "cfml",
"codePrintHTML": "513: arguments.interceptor( argumentCollection = args );<br>\n514: } else {<br>\n<b>515: var results = invoke( arguments.interceptor, getState(), args );</b><br>\n516: }<br>\n517: <br>\n"
},
{
"Raw_Trace": "system.web.context.interceptorstate_cfc$cf.udfCall1(/coldbox/system/web/context/InterceptorState.cfc:360)",
"codePrintPlain": "358: \t\t\t\t\t\tdata = arguments.data,\n359: \t\t\t\t\t\tinterceptorKey = key,\n360: \t\t\t\t\t\tbuffer = arguments.buffer\n361: \t\t\t\t\t)\n362: \t\t\t\t) {\n",
"column": 0,
"line": 360,
"template": "C:\\Users\\Rodrigo\\CosasGit\\ProyectosGit\\ColdBox_PromecalNews\\lib\\coldbox\\system\\web\\context\\InterceptorState.cfc",
"id": "??",
"type": "cfml",
"codePrintHTML": "358: data = arguments.data,<br>\n359: interceptorKey = key,<br>\n<b>360: buffer = arguments.buffer</b><br>\n361: )<br>\n362: ) {<br>\n"
},
{
"Raw_Trace": "system.web.context.interceptorstate_cfc$cf.udfCall1(/coldbox/system/web/context/InterceptorState.cfc:148)",
"codePrintPlain": "146: \t\t\t\tevent = arguments.event,\n147: \t\t\t\tdata = arguments.data,\n148: \t\t\t\tbuffer = arguments.buffer\n149: \t\t\t);\n150: \t\t}\n",
"column": 0,
"line": 148,
"template": "C:\\Users\\Rodrigo\\CosasGit\\ProyectosGit\\ColdBox_PromecalNews\\lib\\coldbox\\system\\web\\context\\InterceptorState.cfc",
"id": "??",
"type": "cfml",
"codePrintHTML": "146: event = arguments.event,<br>\n147: data = arguments.data,<br>\n<b>148: buffer = arguments.buffer</b><br>\n149: );<br>\n150: }<br>\n"
},
{
"Raw_Trace": "system.web.services.interceptorservice_cfc$cf.udfCall1(/coldbox/system/web/services/InterceptorService.cfc:206)",
"codePrintPlain": "204: \t\t\tvar results = variables.interceptionStates\n205: \t\t\t\t.find( arguments.state )\n206: \t\t\t\t.process( argumentCollection = arguments );\n207: \n208: \t\t\t// If buffer has a builder, then content was lazyly produced, output it\n",
"column": 0,
"line": 206,
"template": "C:\\Users\\Rodrigo\\CosasGit\\ProyectosGit\\ColdBox_PromecalNews\\lib\\coldbox\\system\\web\\services\\InterceptorService.cfc",
"id": "??",
"type": "cfml",
"codePrintHTML": "204: var results = variables.interceptionStates<br>\n205: .find( arguments.state )<br>\n<b>206: .process( argumentCollection = arguments );</b><br>\n207: <br>\n208: // If buffer has a builder, then content was lazyly produced, output it<br>\n"
},
{
"Raw_Trace": "models.grammars.basegrammar_cfc$cf.udfCall1(/qb/models/Grammars/BaseGrammar.cfc:162)",
"codePrintPlain": "160: param variables.useAnnounceMethodForInterceptorService = structKeyExists( variables.interceptorService, \"announce\" );\n161: if ( variables.useAnnounceMethodForInterceptorService ) {\n162: variables.interceptorService.announce( \"postQBExecute\", data );\n163: } else {\n164: variables.interceptorService.processState( \"postQBExecute\", data );\n",
"column": 0,
"line": 162,
"template": "C:\\Users\\Rodrigo\\CosasGit\\ProyectosGit\\ColdBox_PromecalNews\\lib\\modules\\quick\\modules\\qb\\models\\Grammars\\BaseGrammar.cfc",
"id": "??",
"type": "cfml",
"codePrintHTML": "160: param variables.useAnnounceMethodForInterceptorService = structKeyExists( variables.interceptorService, "announce" );<br>\n161: if ( variables.useAnnounceMethodForInterceptorService ) {<br>\n<b>162: variables.interceptorService.announce( "postQBExecute", data );</b><br>\n163: } else {<br>\n164: variables.interceptorService.processState( "postQBExecute", data );<br>\n"
},
{
"Raw_Trace": "models.grammars.basegrammar_cfc$cf.udfCall1(/qb/models/Grammars/BaseGrammar.cfc:133)",
"codePrintPlain": "131: data.result = local.result;\n132: }\n133: tryPostInterceptor( data );\n134: if ( !isNull( arguments.postProcessHook ) ) {\n135: arguments.postProcessHook( data );\n",
"column": 0,
"line": 133,
"template": "C:\\Users\\Rodrigo\\CosasGit\\ProyectosGit\\ColdBox_PromecalNews\\lib\\modules\\quick\\modules\\qb\\models\\Grammars\\BaseGrammar.cfc",
"id": "??",
"type": "cfml",
"codePrintHTML": "131: data.result = local.result;<br>\n132: }<br>\n<b>133: tryPostInterceptor( data );</b><br>\n134: if ( !isNull( arguments.postProcessHook ) ) {<br>\n135: arguments.postProcessHook( data );<br>\n"
},
{
"Raw_Trace": "models.grammars.autodiscover_cfc$cf.udfCall(/qb/models/Grammars/AutoDiscover.cfc:32)",
"codePrintPlain": "30: variables.grammar = autoDiscoverGrammar();\n31: }\n32: return invoke( variables.grammar, missingMethodName, missingMethodArguments );\n33: }\n34: \n",
"column": 0,
"line": 32,
"template": "C:\\Users\\Rodrigo\\CosasGit\\ProyectosGit\\ColdBox_PromecalNews\\lib\\modules\\quick\\modules\\qb\\models\\Grammars\\AutoDiscover.cfc",
"id": "??",
"type": "cfml",
"codePrintHTML": "30: variables.grammar = autoDiscoverGrammar();<br>\n31: }<br>\n<b>32: return invoke( variables.grammar, missingMethodName, missingMethodArguments );</b><br>\n33: }<br>\n34: <br>\n"
},
{
"Raw_Trace": "models.query.querybuilder_cfc$cf.udfCallo(/qb/models/Query/QueryBuilder.cfc:4337)",
"codePrintPlain": "4335: variables.queryLog.append( data );\n4336: }\n4337: }\n4338: );\n4339: \n",
"column": 0,
"line": 4337,
"template": "C:\\Users\\Rodrigo\\CosasGit\\ProyectosGit\\ColdBox_PromecalNews\\lib\\modules\\quick\\modules\\qb\\models\\Query\\QueryBuilder.cfc",
"id": "??",
"type": "cfml",
"codePrintHTML": "4335: variables.queryLog.append( data );<br>\n4336: }<br>\n<b>4337: }</b><br>\n4338: );<br>\n4339: <br>\n"
},
{
"Raw_Trace": "models.query.querybuilder_cfc$cf.udfCallk(/qb/models/Query/QueryBuilder.cfc:3614)",
"codePrintPlain": "3612: }\n3613: \n3614: return runQuery( sql, arguments.options, \"result\" );\n3615: }\n3616: \n",
"column": 0,
"line": 3614,
"template": "C:\\Users\\Rodrigo\\CosasGit\\ProyectosGit\\ColdBox_PromecalNews\\lib\\modules\\quick\\modules\\qb\\models\\Query\\QueryBuilder.cfc",
"id": "??",
"type": "cfml",
"codePrintHTML": "3612: }<br>\n3613: <br>\n<b>3614: return runQuery( sql, arguments.options, "result" );</b><br>\n3615: }<br>\n3616: <br>\n"
},
{
"Raw_Trace": "config.scheduler_cfc$cf$b.udfCall(/app/config/Scheduler.cfc:41)",
"codePrintPlain": "39: \t\t\t\t\t\t\t.info( \"Tarea 1-2\" );\n40: \t\t\t\tqb\n41: \t\t\t\t\t.from( \"LogExcepciones\" )\n42: \t\t\t\t\t.delete();\n43: \n",
"column": 0,
"line": 41,
"template": "C:\\Users\\Rodrigo\\CosasGit\\ProyectosGit\\ColdBox_PromecalNews\\app\\config\\Scheduler.cfc",
"id": "??",
"type": "cfml",
"codePrintHTML": "39: .info( "Tarea 1-2" );<br>\n40: qb<br>\n<b>41: .from( "LogExcepciones" )</b><br>\n42: .delete();<br>\n43: <br>\n"
},
{
"Raw_Trace": "system.async.tasks.scheduledtask_cfc$cf.udfCall3(/coldbox/system/async/tasks/ScheduledTask.cfc:707)",
"codePrintPlain": "705: \t\t\t// Target task call callable\n706: \t\t\tif ( isClosure( variables.task ) || isCustomFunction( variables.task ) ) {\n707: \t\t\t\tvariables.stats.lastResult = variables.stats.lastResult.ofNullable( variables.task() );\n708: \t\t\t} else {\n709: \t\t\t\tvariables.stats.lastResult = variables.stats.lastResult.ofNullable(\n",
"column": 0,
"line": 707,
"template": "C:\\Users\\Rodrigo\\CosasGit\\ProyectosGit\\ColdBox_PromecalNews\\lib\\coldbox\\system\\async\\tasks\\ScheduledTask.cfc",
"id": "??",
"type": "cfml",
"codePrintHTML": "705: // Target task call callable<br>\n706: if ( isClosure( variables.task ) || isCustomFunction( variables.task ) ) {<br>\n<b>707: variables.stats.lastResult = variables.stats.lastResult.ofNullable( variables.task() );</b><br>\n708: } else {<br>\n709: variables.stats.lastResult = variables.stats.lastResult.ofNullable(<br>\n"
},
{
"Raw_Trace": "system.async.cbproxies.models.runnable_cfc$cf.udfCall(/coldbox/system/async/cbproxies/models/Runnable.cfc:36)",
"codePrintPlain": "34: \t\t\t\t\tvariables.target();\n35: \t\t\t\t} else {\n36: \t\t\t\t\tinvoke( variables.target, variables.method );\n37: \t\t\t\t}\n38: \t\t\t},\n",
"column": 0,
"line": 36,
"template": "C:\\Users\\Rodrigo\\CosasGit\\ProyectosGit\\ColdBox_PromecalNews\\lib\\coldbox\\system\\async\\cbproxies\\models\\Runnable.cfc",
"id": "??",
"type": "cfml",
"codePrintHTML": "34: variables.target();<br>\n35: } else {<br>\n<b>36: invoke( variables.target, variables.method );</b><br>\n37: }<br>\n38: },<br>\n"
},
{
"Raw_Trace": "system.async.cbproxies.models.baseproxy_cfc$cf.udfCall1(/coldbox/system/async/cbproxies/models/BaseProxy.cfc:92)",
"codePrintPlain": "90: \t\tvar errorWrappedCallback = function(){\n91: \t\t\ttry {\n92: \t\t\t\treturn callback( args );\n93: \t\t\t} catch ( any e ) {\n94: \t\t\t\t// Log it, so it doesn't go to ether\n",
"column": 0,
"line": 92,
"template": "C:\\Users\\Rodrigo\\CosasGit\\ProyectosGit\\ColdBox_PromecalNews\\lib\\coldbox\\system\\async\\cbproxies\\models\\BaseProxy.cfc",
"id": "??",
"type": "cfml",
"codePrintHTML": "90: var errorWrappedCallback = function(){<br>\n91: try {<br>\n<b>92: return callback( args );</b><br>\n93: } catch ( any e ) {<br>\n94: // Log it, so it doesn't go to ether<br>\n"
},
{
"Raw_Trace": "system.async.cbproxies.models.baseproxy_cfc$cf.udfCall1(/coldbox/system/async/cbproxies/models/BaseProxy.cfc:106)",
"codePrintPlain": "104: \t\t\treturn executeAdobe( () => errorWrappedCallback() );\n105: \t\t} else if ( isLucee ) {\n106: \t\t\treturn executeLucee( () => errorWrappedCallback() );\n107: \t\t} else if ( isBoxLang ) {\n108: \t\t\treturn executeBoxLang( () => errorWrappedCallback() );\n",
"column": 0,
"line": 106,
"template": "C:\\Users\\Rodrigo\\CosasGit\\ProyectosGit\\ColdBox_PromecalNews\\lib\\coldbox\\system\\async\\cbproxies\\models\\BaseProxy.cfc",
"id": "??",
"type": "cfml",
"codePrintHTML": "104: return executeAdobe( () => errorWrappedCallback() );<br>\n105: } else if ( isLucee ) {<br>\n<b>106: return executeLucee( () => errorWrappedCallback() );</b><br>\n107: } else if ( isBoxLang ) {<br>\n108: return executeBoxLang( () => errorWrappedCallback() );<br>\n"
},
{
"Raw_Trace": "system.async.cbproxies.models.baseproxy_cfc$cf.udfCall1(/coldbox/system/async/cbproxies/models/BaseProxy.cfc:120)",
"codePrintPlain": "118: \t\t\t// There were initially issues with thread safety in cloning the page context. We should revisit that.\n119: \t\t}\n120: \t\treturn callback();\n121: \t\t// Lucee has no \"unload\" logic\n122: \t}\n",
"column": 0,
"line": 120,
"template": "C:\\Users\\Rodrigo\\CosasGit\\ProyectosGit\\ColdBox_PromecalNews\\lib\\coldbox\\system\\async\\cbproxies\\models\\BaseProxy.cfc",
"id": "??",
"type": "cfml",
"codePrintHTML": "118: // There were initially issues with thread safety in cloning the page context. We should revisit that.<br>\n119: }<br>\n<b>120: return callback();</b><br>\n121: // Lucee has no "unload" logic<br>\n122: }<br>\n"
},
{
"Raw_Trace": "system.async.cbproxies.models.baseproxy_cfc$cf.udfCall1(/coldbox/system/async/cbproxies/models/BaseProxy.cfc:106)",
"codePrintPlain": "104: \t\t\treturn executeAdobe( () => errorWrappedCallback() );\n105: \t\t} else if ( isLucee ) {\n106: \t\t\treturn executeLucee( () => errorWrappedCallback() );\n107: \t\t} else if ( isBoxLang ) {\n108: \t\t\treturn executeBoxLang( () => errorWrappedCallback() );\n",
"column": 0,
"line": 106,
"template": "C:\\Users\\Rodrigo\\CosasGit\\ProyectosGit\\ColdBox_PromecalNews\\lib\\coldbox\\system\\async\\cbproxies\\models\\BaseProxy.cfc",
"id": "??",
"type": "cfml",
"codePrintHTML": "104: return executeAdobe( () => errorWrappedCallback() );<br>\n105: } else if ( isLucee ) {<br>\n<b>106: return executeLucee( () => errorWrappedCallback() );</b><br>\n107: } else if ( isBoxLang ) {<br>\n108: return executeBoxLang( () => errorWrappedCallback() );<br>\n"
},
{
"Raw_Trace": "system.async.cbproxies.models.runnable_cfc$cf.udfCall(/coldbox/system/async/cbproxies/models/Runnable.cfc:41)",
"codePrintPlain": "39: \t\t\t\"Runnable\",\n40: \t\t\targuments\n41: \t\t);\n42: \t}\n43: \n",
"column": 0,
"line": 41,
"template": "C:\\Users\\Rodrigo\\CosasGit\\ProyectosGit\\ColdBox_PromecalNews\\lib\\coldbox\\system\\async\\cbproxies\\models\\Runnable.cfc",
"id": "??",
"type": "cfml",
"codePrintHTML": "39: "Runnable",<br>\n40: arguments<br>\n<b>41: );</b><br>\n42: }<br>\n43: <br>\n"
}
],
"ErrorCode": "0",
"ErrNumber": 0,
"type": "expression",
"ExtendedInfo": ""
}
Also, i try to make an issue in Jira, but it sucks (or directly wont work, login, hangs…)! Why not using github like in other modules?
UPDATE: I finally can open an issue on jira!!! : [CBDEBUGGER-31] CBDebugger whit quick breaks scheduled task - Welcome