I seem to be having far to much trouble with all the different ways to query: This is the error I am receiving.
Lucee 5.4.1.8 Error (expression)
Message can’t cast [i] string to a number value
Stacktrace The Error Occurred in C:\inetpub\wwwroot\Citidel5\coldbox\system\web\context\ExceptionBean.cfc: line 567
i did not have any constraints, I made everything as simple as I could to try to find what the issue was. I was setting these two values:
oConcern.setUserID( auth().getUserId() );
oConcern.setbusinessID( createUUID() );
in the handler. When I removed them and set them in the concernServices model the error went away. It’s now back in my update object so I have no idea???
Additionally, I can’t seem to use auth().getUserId() in the concernServices model, even with the paramater set for auth at the top it says it has no function auth. I am confident if I can figure this coldbox system out it will be so much better than the old school way I came up with. I was using coldfusion in 95 when it was basically a bunch of perl scripts!!! LOL Fusebox was the last style I used!
Lucee 5.4.1.8 Error (expression)
Message can’t cast [i] string to a number value
Stacktrace The Error Occurred in C:\inetpub\wwwroot\Citidel5\coldbox\system\web\context\ExceptionBean.cfc: line 567
565: commaposarr = reFindNoCase( “,”, string, 1, true );
566: if ( commaposarr.pos[ 1 ] != 0 ) { 567: commapos = “i” + commaposarr.pos[ arrayLen( commaposarr.pos ) ];
568: }
569: } called from C:\inetpub\wwwroot\Citidel5\coldbox\system\web\context\ExceptionBean.cfc: line 445 called from C:\inetpub\wwwroot\Citidel5\coldbox\system\exceptions\Whoops.cfm: line 352 called from C:\inetpub\wwwroot\Citidel5\coldbox\system\Bootstrap.cfc: line 682 called from C:\inetpub\wwwroot\Citidel5\coldbox\system\Bootstrap.cfc: line 422 called from C:\inetpub\wwwroot\Citidel5\coldbox\system\Bootstrap.cfc: line 506 called from C:\inetpub\wwwroot\Citidel5\Application.cfc: line 120
Java Stacktrace lucee.runtime.exp.CasterException: can’t cast [i] string to a number value
at lucee.runtime.op.Caster.toDoubleValueViaDate(Caster.java:531)
at lucee.runtime.op.Caster.toDoubleValue(Caster.java:503)
at lucee.runtime.op.Caster.toDoubleValue(Caster.java:402)
at lucee.runtime.op.Operator.plusRef(Operator.java:1037)
at system.web.context.exceptionbean_cfc$cf.udfCall3(/coldbox/system/web/context/ExceptionBean.cfc:567)
at system.web.context.exceptionbean_cfc$cf.udfCall(/coldbox/system/web/context/ExceptionBean.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:786)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1775)
at system.web.context.exceptionbean_cfc$cf.udfCall3(/coldbox/system/web/context/ExceptionBean.cfc:445)
at system.web.context.exceptionbean_cfc$cf.udfCall(/coldbox/system/web/context/ExceptionBean.cfc)