RESOLVED: Invalid Identifier, the following character cannot be part of an identifier [#];

I am getting this error in my exception log but have no way of knowing where it is coming from. Is there anyway to trace it down to a file?

lucee.runtime.exp.TemplateException: Invalid Identifier, the following character cannot be part of an identifier [#]
at lucee.transformer.cfml.tag.CFMLTransformer.identifier(CFMLTransformer.java:1272)
at lucee.transformer.cfml.tag.CFMLTransformer.attributeName(CFMLTransformer.java:1152)
at lucee.transformer.cfml.tag.CFMLTransformer.attribute(CFMLTransformer.java:1094)
at lucee.transformer.cfml.tag.CFMLTransformer.attributes(CFMLTransformer.java:975)
at lucee.transformer.cfml.tag.CFMLTransformer.tag(CFMLTransformer.java:689)
at lucee.transformer.cfml.tag.CFMLTransformer.body(CFMLTransformer.java:390)
at lucee.transformer.cfml.tag.CFMLTransformer.body(CFMLTransformer.java:398)
at lucee.transformer.cfml.tag.CFMLTransformer.tag(CFMLTransformer.java:783)
at lucee.transformer.cfml.tag.CFMLTransformer.body(CFMLTransformer.java:390)
at lucee.transformer.cfml.tag.CFMLTransformer.transform(CFMLTransformer.java:328)
at lucee.transformer.cfml.tag.CFMLTransformer.transform(CFMLTransformer.java:320)
at lucee.transformer.cfml.tag.CFMLTransformer.transform(CFMLTransformer.java:176)
at lucee.runtime.compiler.CFMLCompilerImpl._compile(CFMLCompilerImpl.java:125)
at lucee.runtime.compiler.CFMLCompilerImpl.compile(CFMLCompilerImpl.java:76)
at lucee.runtime.PageSourceImpl._compile(PageSourceImpl.java:440)
at lucee.runtime.PageSourceImpl.compile(PageSourceImpl.java:407)
at lucee.runtime.PageSourceImpl.loadPhysical(PageSourceImpl.java:329)
at lucee.runtime.PageSourceImpl.loadPageThrowTemplateException(PageSourceImpl.java:237)
at lucee.runtime.PageSourceImpl.loadPage(PageSourceImpl.java:1018)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:940)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:837)
at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:216)
at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:42)
at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2416)
at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2406)
at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2381)
at lucee.runtime.engine.Request.exe(Request.java:43)
at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1170)
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1116)
at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:97)
at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:432)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:834)

Lucee can have crap error messages sometimes when compiling. I had some legacy code with two periods like variables..foo the other day and Lucee’s message was terrible.

Your error seems to have to do with an errant pound sign. First thing-- is there a tag context with the error? That should contain the tag stack with a line number to the error. (Not the same as the Java stacktrace)

I was thinking same thing, that I should get a compile error(that has actually found this issue before), so i checked the commit logs for some uncompiled background tasks we do and there was a double quote typo. Issue resolved. Another hint was that it was happening exactly every hour.

Thanks.

1 Like