Hello Guys,
I’ve got a use case for Criteria queries so this morning decided to upgrade ColdBox from 3.1 to the latest bleeding edge from development branch on GitHub.
However, during application init CF is kicking up a fuss about syntax errors in the Criteria Query restrictions CFC.
I’ve had a look at the source and it all appears fine to me, so my guess is perhaps the error is actually somewhere else? I don’t know, perhaps someone else can double check.
# Error creating validatorModel: security.securityservice Invalid CFML construct found on line 181 at column 17.ColdFusion was looking at the following text:
for
The CFML compiler was processing:
- A script statement beginning with for on line 181, column 17.
- A script statement beginning with any on line 179, column 9.
[{TEMPLATE={/Library/tomcat/webapps/sorryapp/coldbox/system/orm/hibernate/criterion/Restrictions.cfc},LINE={181},TYPE={SYNTAX},COLUMN={17}}, {RAW_TRACE={ at cfBaseORMService2ecfc697008640$funcINIT.runFunction(/Library/tomcat/webapps/sorryapp/coldbox/system/orm/hibernate/BaseORMService.cfc:85)},ID={CF_CFPAGE},TEMPLATE={/Library/tomcat/webapps/sorryapp/coldbox/system/orm/hibernate/BaseORMService.cfc},LINE={85},TYPE={CFML},COLUMN={0}}, {RAW_TRACE={ at cfVirtualEntityService2ecfc10248887$funcINIT.runFunction(/Library/tomcat/webapps/sorryapp/coldbox/system/orm/hibernate/VirtualEntityService.cfc:58)},ID={CF_SUPERSCOPE},TEMPLATE={/Library/tomcat/webapps/sorryapp/coldbox/system/orm/hibernate/VirtualEntityService.cfc},LINE={58},TYPE={CFML},COLUMN={0}}, {RAW_TRACE={ at cfColdBoxDSL2ecfc1962553179$funcGETENTITYSERVICEDSL.runFunction(/Library/tomcat/webapps/sorryapp/coldbox/system/ioc/dsl/ColdBoxDSL.cfc:98)},ID={CF_TEMPLATEPROXY},TEMPLATE={/Library/tomcat/webapps/sorryapp/coldbox/system/ioc/dsl/ColdBoxDSL.cfc},LINE={98},TYPE={CFML},COLUMN={0}}, {RAW_TRACE={ at cfColdBoxDSL2ecfc1962553179$funcPROCESS.runFunction(/Library/tomcat/webapps/sorryapp/coldbox/system/ioc/dsl/ColdBoxDSL.cfc:41)},ID={CF_UDFMETHOD},TEMPLATE={/Library/tomcat/webapps/sorryapp/coldbox/system/ioc/dsl/ColdBoxDSL.cfc},LINE={41},TYPE={CFML},COLUMN={0}}, {RAW_TRACE={ at cfBuilder2ecfc222927404$funcBUILDDSLDEPENDENCY.runFunction(/Library/tomcat/webapps/sorryapp/coldbox/system/ioc/Builder.cfc:320)},ID={CF_TEMPLATEPROXY},TEMPLATE={/Library/tomcat/webapps/sorryapp/coldbox/system/ioc/Builder.cfc},LINE={320},TYPE={CFML},COLUMN={0}}, {RAW_TRACE={ at cfInjector2ecfc1478837735$funcPROCESSINJECTION.runFunction(/Library/tomcat/webapps/sorryapp/coldbox/system/ioc/Injector.cfc:575)},ID={CF_TEMPLATEPROXY},TEMPLATE={/Library/tomcat/webapps/sorryapp/coldbox/system/ioc/Injector.cfc},LINE={575},TYPE={CFML},COLUMN={0}}, {RAW_TRACE={ at cfInjector2ecfc1478837735$funcAUTOWIRE.runFunction(/Library/tomcat/webapps/sorryapp/coldbox/system/ioc/Injector.cfc:462)},ID={CF_UDFMETHOD},TEMPLATE={/Library/tomcat/webapps/sorryapp/coldbox/system/ioc/Injector.cfc},LINE={462},TYPE={CFML},COLUMN={0}}, {RAW_TRACE={ at cfNoScope2ecfc967429963$funcGETFROMSCOPE.runFunction(/Library/tomcat/webapps/sorryapp/coldbox/system/ioc/scopes/NoScope.cfc:33)},ID={CF_TEMPLATEPROXY},TEMPLATE={/Library/tomcat/webapps/sorryapp/coldbox/system/ioc/scopes/NoScope.cfc},LINE={33},TYPE={CFML},COLUMN={0}}, {RAW_TRACE={ at cfInjector2ecfc1478837735$funcGETINSTANCE.runFunction(/Library/tomcat/webapps/sorryapp/coldbox/system/ioc/Injector.cfc:262)},ID={CF_TEMPLATEPROXY},TEMPLATE={/Library/tomcat/webapps/sorryapp/coldbox/system/ioc/Injector.cfc},LINE={262},TYPE={CFML},COLUMN={0}}, {RAW_TRACE={ at cfFrameworkSupertype2ecfc2064018217$funcGETMODEL.runFunction(/Library/tomcat/webapps/sorryapp/coldbox/system/FrameworkSupertype.cfc:116)},ID={CF_TEMPLATEPROXY},TEMPLATE={/Library/tomcat/webapps/sorryapp/coldbox/system/FrameworkSupertype.cfc},LINE={116},TYPE={CFML},COLUMN={0}}, {RAW_TRACE={ at cfSecurity2ecfc180597083$funcAFTERASPECTSLOAD.runFunction(/Library/tomcat/webapps/sorryapp/coldbox/system/interceptors/Security.cfc:121)},ID={CF_UDFMETHOD},TEMPLATE={/Library/tomcat/webapps/sorryapp/coldbox/system/interceptors/Security.cfc},LINE={121},TYPE={CFML},COLUMN={0}}, {RAW_TRACE={ at cfInterceptorState2ecfc1849089670$funcINVOKER.runFunction(/Library/tomcat/webapps/sorryapp/coldbox/system/web/context/InterceptorState.cfc:139)},ID={CFINVOKE},TEMPLATE={/Library/tomcat/webapps/sorryapp/coldbox/system/web/context/InterceptorState.cfc},LINE={139},TYPE={CFML},COLUMN={0}}, {RAW_TRACE={ at cfInterceptorState2ecfc1849089670$funcPROCESS.runFunction(/Library/tomcat/webapps/sorryapp/coldbox/system/web/context/InterceptorState.cfc:86)},ID={CF_UDFMETHOD},TEMPLATE={/Library/tomcat/webapps/sorryapp/coldbox/system/web/context/InterceptorState.cfc},LINE={86},TYPE={CFML},COLUMN={0}}, {RAW_TRACE={ at cfInterceptorService2ecfc1295910068$funcPROCESSSTATE.runFunction(/Library/tomcat/webapps/sorryapp/coldbox/system/web/services/InterceptorService.cfc:132)},ID={CF_TEMPLATEPROXY},TEMPLATE={/Library/tomcat/webapps/sorryapp/coldbox/system/web/services/InterceptorService.cfc},LINE={132},TYPE={CFML},COLUMN={0}}, {RAW_TRACE={ at cfLoaderService2ecfc2006722157$funcLOADAPPLICATION.runFunction(/Library/tomcat/webapps/sorryapp/coldbox/system/web/services/LoaderService.cfc:93)},ID={CF_TEMPLATEPROXY},TEMPLATE={/Library/tomcat/webapps/sorryapp/coldbox/system/web/services/LoaderService.cfc},LINE={93},TYPE={CFML},COLUMN={0}}, {RAW_TRACE={ at cfColdbox2ecfc940849930$funcLOADCOLDBOX.runFunction(/Library/tomcat/webapps/sorryapp/coldbox/system/Coldbox.cfc:71)},ID={CF_TEMPLATEPROXY},TEMPLATE={/Library/tomcat/webapps/sorryapp/coldbox/system/Coldbox.cfc},LINE={71},TYPE={CFML},COLUMN={0}}, {RAW_TRACE={ at cfApplication2ecfc111743193$funcONAPPLICATIONSTART.runFunction(/Library/tomcat/webapps/sorryapp/Application.cfc:25)},ID={CF_UDFMETHOD},TEMPLATE={/Library/tomcat/webapps/sorryapp/Application.cfc},LINE={25},TYPE={CFML},COLUMN={0}}]
Inside my validator model, I inject a virtual entity service using the following DSL:
property name=“MemberService” inject=“entityService:member”;
It would seem that during the init of that virtual service we’re getring the eror.
Any suggestions?
Thanks.
Robert