UNPKG

summer-mvc

Version:

Structured, Light, Spring-like Web Application Development Framework

455 lines 88.6 kB
[DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.347Z] LINE : // exports.control = function( req, res ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.349Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.350Z] LINE : // return new Promise( function(resolve, reject){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.351Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.352Z] LINE : // var model = {}; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.353Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.353Z] LINE : // [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.354Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.354Z] LINE : // try{ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.355Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.355Z] LINE : // model.ajaxResult = "Called with [" + req.query111[ "text" ] + "]"; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.356Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.357Z] LINE : // resolve( model ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.358Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.358Z] LINE : // } catch( err ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.359Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.360Z] LINE : // reject( err ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.361Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.362Z] LINE : // } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.362Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.363Z] LINE : // } ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.364Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.365Z] LINE : // } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.366Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.367Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.367Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.368Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.369Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.370Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.371Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.371Z] LINE : exports.control = function( req, res ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.372Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.373Z] LINE : var model = {}; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.374Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.375Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.376Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.377Z] LINE : // try{ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.377Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.378Z] LINE : model.ajaxResult = "Called with [" + req.query[ "text" ] + "]"; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.380Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.380Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.381Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.382Z] LINE : return model; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.384Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.386Z] LINE : // } catch( err ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.386Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.387Z] LINE : // throw( err ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.387Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.388Z] LINE : // } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.389Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.389Z] LINE : } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.390Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.392Z] LINE : /** [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.392Z] /* [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.393Z] LINE : * [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.394Z] /* [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.395Z] LINE : * @Controller [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.396Z] /* [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.397Z] LINE : * @requestMapping / [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.397Z] /* [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.398Z] LINE : * @requestMapping /index [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.399Z] /* [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.399Z] LINE : * @params id : inodient [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.400Z] /* [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.401Z] LINE : * @params password : iloveyou [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.401Z] /* [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.403Z] LINE : */ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.404Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.405Z] LINE : exports.control = function( req, res, next ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.406Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.407Z] LINE : return new Promise( function(resolve, reject){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.407Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.408Z] LINE : setModel( req, res, next ) [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.409Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.410Z] LINE : .then( function(model){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.411Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.412Z] LINE : resolve( model ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.413Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.414Z] LINE : } ) [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.415Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.416Z] LINE : .catch( function(err){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.417Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.418Z] LINE : reject( err ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.420Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.421Z] LINE : } ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.422Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.423Z] LINE : } ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.423Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.424Z] LINE : } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.425Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.426Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.426Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.427Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.427Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.428Z] LINE : // @controller [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.428Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.428Z] LINE : // @RequestMapping '/' [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.429Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.429Z] LINE : function setModel( req, res, next ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.430Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.431Z] LINE : return new Promise( function(resolve, reject){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.431Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.432Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.432Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.433Z] LINE : var model = {}; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.433Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.434Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.435Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.435Z] LINE : try{ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.436Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.436Z] LINE : model.method = req.method; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.437Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.437Z] LINE : model.path = req._parsedUrl.pathname;; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.437Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.438Z] LINE : model.postMessage = ""; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.438Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.439Z] LINE : model.queryString = JSON.stringify( req.query, null, 4 ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.439Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.440Z] LINE : model.params = JSON.stringify( req.params, null, 4 ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.440Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.441Z] LINE : model.controllerName = require( "path" ).basename( __filename ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.441Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.442Z] LINE : // model.controllerName = require( "path" ).basename( asdfasdfasdf ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.443Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.443Z] LINE : model.controlFunction = "control"; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.444Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.445Z] LINE : model.dbRes = "-"; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.445Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.446Z] LINE : model.ajaxResult = "-"; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.447Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.447Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.451Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.451Z] LINE : resolve( model ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.452Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.453Z] LINE : } catch( err ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.453Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.454Z] LINE : console.log( "controller_basic.js error" ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.454Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.455Z] LINE : reject( err ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.455Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.456Z] LINE : } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.457Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.457Z] LINE : } ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.458Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.459Z] LINE : } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.459Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.460Z] LINE : exports.control = function( req, res ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.461Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.461Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.462Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.463Z] LINE : if( req.query.cookieKey && req.query.cookieValue ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.463Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.464Z] LINE : connectionHandler.setCookie( req, res, req.query.cookieKey, req.query.cookieValue ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.464Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.465Z] LINE : } else if( req.query.sessionKey && req.query.sessionValue ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.465Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.466Z] LINE : connectionHandler.setSession( req, res, req.query.sessionKey, req.query.sessionValue ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.467Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.467Z] LINE : } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.468Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.468Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.469Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.469Z] LINE : return setModel( req, res, null, null ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.470Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.471Z] LINE : } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.471Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.472Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.472Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.473Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.473Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.474Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.475Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.475Z] LINE : function setModel( req, res, results, fields ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.476Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.476Z] LINE : var model = {}; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.477Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.477Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.478Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.479Z] LINE : model.method = req.method; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.480Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.480Z] LINE : model.path = req._parsedUrl.pathname; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.481Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.482Z] LINE : model.postMessage = ""; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.483Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.484Z] LINE : model.queryString = JSON.stringify( req.query, null, 4 ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.484Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.485Z] LINE : model.params = JSON.stringify( req.params, null, 4 ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.485Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.486Z] LINE : model.controllerName = require( "path" ).basename( __filename ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.487Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.487Z] LINE : model.controlFunction = "control"; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.488Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.488Z] LINE : model.dbRes = "-"; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.489Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.489Z] LINE : model.ajaxResult = "-"; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.490Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.491Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.491Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.492Z] LINE : return model; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.493Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.493Z] LINE : } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.494Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.495Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.495Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.496Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.496Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.497Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.497Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.498Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.498Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.499Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.499Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.500Z] LINE : // exports.control = function( req, res, callback ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.500Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.501Z] LINE : // [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.501Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.502Z] LINE : // connection = new connectionHandler( req, res ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.502Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.503Z] LINE : // [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.503Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.504Z] LINE : // if( req.query.cookieKey && req.query.cookieValue ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.504Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.505Z] LINE : // connection.setCookie( req.query.cookieKey, req.query.cookieValue ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.505Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.506Z] LINE : // } else if( req.query.sessionKey && req.query.sessionValue ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.507Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.507Z] LINE : // connection.setSession( req.query.sessionKey, req.query.sessionValue ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.508Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.509Z] LINE : // } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.510Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.510Z] LINE : // [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.511Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.512Z] LINE : // if( callback ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.513Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.513Z] LINE : // setModel( req, res, null, null, callback ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.514Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.515Z] LINE : // } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.515Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.516Z] LINE : // [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.516Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.517Z] LINE : // this.connection = null; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.518Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.519Z] LINE : // } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.519Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.520Z] LINE : // [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.521Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.522Z] LINE : // [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.522Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.523Z] LINE : // [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.524Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.525Z] LINE : // function setModel( req, res, results, fields, callback ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.527Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.528Z] LINE : // var model = {}; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.529Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.530Z] LINE : // [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.530Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.531Z] LINE : // model.method = req.method; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.532Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.533Z] LINE : // model.path = req._parsedUrl.pathname; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.533Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.534Z] LINE : // model.postMessage = ""; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.534Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.535Z] LINE : // model.queryString = JSON.stringify( req.query, null, 4 ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.536Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.537Z] LINE : // model.params = JSON.stringify( req.params, null, 4 ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.538Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.539Z] LINE : // model.controllerName = require( "path" ).basename( __filename ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.540Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.541Z] LINE : // model.controlFunction = "control"; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.542Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.543Z] LINE : // model.dbRes = "-"; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.543Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.544Z] LINE : // model.ajaxResult = "-"; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.545Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.546Z] LINE : // [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.546Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.547Z] LINE : // callback( null, model ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.547Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.548Z] LINE : // } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.548Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.549Z] LINE : const pool = mysql.createPool( require( require("path").join(process.cwd(), "properties", "db.json") ) ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.550Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.550Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.551Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.551Z] LINE : exports.control = function( req, res ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.552Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.552Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.553Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.553Z] LINE : console.log( require("os").cpus().length ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.554Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.554Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.555Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.555Z] LINE : return new Promise( function(resolve, reject){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.556Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.556Z] LINE : getCurrentTime() [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.557Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.557Z] LINE : .then( getDBVersion ) [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.558Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.559Z] LINE : .then( function( results ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.559Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.560Z] LINE : resolve( setModel( req, res, results, null ) ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.561Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.561Z] LINE : } ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.562Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.562Z] LINE : } ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.563Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.563Z] LINE : } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.564Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.564Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.565Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.565Z] LINE : function getCurrentTime(){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.566Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.566Z] LINE : return new Promise( function(resolve, reject){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.567Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.567Z] LINE : pool.query( "select NOW(), CURDATE(), CURTIME()", function( err, results, fields ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.568Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.568Z] LINE : console.log( results ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.568Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.569Z] LINE : resolve( results ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.570Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.570Z] LINE : } ) [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.571Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.572Z] LINE : } ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.572Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.573Z] LINE : } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.573Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.574Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.574Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.575Z] LINE : function getDBVersion(){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.576Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.577Z] LINE : return new Promise( function(resolve, reject){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.577Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.578Z] LINE : pool.query( "select * from connectionInfo", function( err, results, fields ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.578Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.579Z] LINE : console.log( results ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.579Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.579Z] LINE : resolve( results ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.580Z] {,{,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.580Z] LINE : } ) [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.581Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.581Z] LINE : } ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.582Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.582Z] LINE : } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.582Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.583Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.583Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.584Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.584Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.587Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.590Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.593Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.596Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.597Z] LINE : // return new Prmoise Version [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.599Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.600Z] LINE : // [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.602Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.605Z] LINE : // exports.control = function( req, res ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.606Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.607Z] LINE : // let db = new dbHandler(); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.608Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.609Z] LINE : // [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.609Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.610Z] LINE : // const connectionInfo = require( require("path").join(process.cwd(), "properties", "db.json") ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.611Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.612Z] LINE : // const queries = require( require("path").join(process.cwd(), "queries", "query.json") ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.613Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.613Z] LINE : // [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.614Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.615Z] LINE : // const pool = mysql.createPool( connectionInfo ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.615Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.616Z] LINE : // [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.617Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.617Z] LINE : // return new Promise( function(resolve, reject){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.618Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.619Z] LINE : // let queryValues = []; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.620Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.620Z] LINE : // let callback = arguments[ arguments.length - 1 ]; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.621Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.622Z] LINE : // [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.622Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.623Z] LINE : // for( var i=1; i<arguments.length-1; i++ ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.624Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.625Z] LINE : // queryValues.push( arguments[i] ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.625Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.626Z] LINE : // } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.626Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.627Z] LINE : // [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.627Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.628Z] LINE : // // let queryString = this.getQueryString( arguments[0], queryValues ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.628Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.630Z] LINE : // [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.630Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.631Z] LINE : // queryString = "select Version()"; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.632Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.633Z] LINE : // [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.633Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.634Z] LINE : // pool.query( queryString, function (error, results, fields) { [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.634Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.635Z] LINE : // if (error) throw error; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.635Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.635Z] LINE : // // callback( error, results, fields ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.636Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.636Z] LINE : // console.log( results ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.637Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.637Z] LINE : // resolve( setModel( req, res, results, fields ) ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.638Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.638Z] LINE : // }); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.639Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.639Z] LINE : // } ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.640Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.640Z] LINE : // } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.641Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.642Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.643Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.644Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.645Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.646Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.647Z] [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.648Z] LINE : function setModel( req, res, results, fields ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.649Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.649Z] LINE : var model = {}; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.650Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.651Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.652Z] { [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.652Z] LINE : try{ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.653Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.654Z] LINE : model.method = req.method; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.655Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.655Z] LINE : model.path = req._parsedUrl.pathname;; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.656Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.657Z] LINE : model.postMessage = ""; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.657Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.658Z] LINE : model.queryString = JSON.stringify( req.query, null, 4 ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.659Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.660Z] LINE : model.params = JSON.stringify( req.params, null, 4 ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.660Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.661Z] LINE : model.controllerName = require( "path" ).basename( __filename ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.662Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.663Z] LINE : model.controlFunction = "control"; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.663Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.664Z] LINE : model.dbRes = JSON.stringify( results[0], null, 4 ); [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.665Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.665Z] LINE : model.ajaxResult = "-"; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.666Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.667Z] LINE : [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.668Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.668Z] LINE : return model; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.669Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.670Z] LINE : } catch( err ){ [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.670Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.671Z] LINE : throw err; [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.671Z] {,{ [DEBUG] - [\tools\common\annotationParser.js : 150 | analyzeLine - 2017-09-11T06:11:16.672Z] LINE : } [DEBUG] - [\tools\common\annotationParser.js : 151 | analyzeLine - 2017-09-11T06:11:16.673Z] { [DEBUG] - [\tools\commo