http://coldfusion.com logo
Join Slack
Powered by
# lucee
  • t

    turtmcfly

    05/18/2025, 6:45 PM
    Wrt this from way back https://dev.lucee.org/t/changing-isdebugmode-adding-isdebugoutputenabled/10691 Lucee 6.2.0.321 just seems to require debugging to be enabled i.e. it is working as per the above proposal. With e.g. Lucee 6.0.3.1, isDebugMode() returns true only if debugging is enabled and I have a template defined (with an IP range matching my current IP!!) If this has been a recent(ish) change, did an equivalent of the proposed isDebugOutputEnabled() ever get built? If not, is there another way I can work out if Lucee debug being shown on screen for the current request, which takes into account IP addresses?
  • b

    brettpr

    05/19/2025, 6:35 AM
    So... I was forced into a manual/fresh upgrade of Lucee from 5.4 to 6.2 last night. It was a truly painful experience trying to remember and recreate all the configuration items like datasources and mappings as Lucee 5.2 had become enitely crippled and unresponsive. Mostly my own fault, if I had run the upgrade last week I'm sure it would have been much less of an issue. That's just background, not a slight on Lucee whatsoever. What I really want to comment on is the apparent and dramatic improvement on memory management with 6.2. The server in question is an out-of-date Windoze box which in the past, like yesterday before the upgrade (and for years prior), would usually show memory usage at around 90% - everything that was allocated to Java appeared to be in use. Today it is at 10%. I'm not a server expert and know just enough to be dangerous sometimes but this really got my attention. And yes, everything seems to be running faster too. Disclaimer: apart from the Windoze task manager I don't have metrics for the memory usage and I only have my personal impression of the speed improvement and of course ymmv... But a big thanks and thumbs up to @zackster and the entire Lucee crew. 🙏 👍
    👍 8
    🎉 1
    c
    b
    z
    • 4
    • 7
  • p

    philcruz

    05/19/2025, 5:46 PM
    Any tips on how to debug this error?
    lucee.runtime.exp.ApplicationException: No entity (persistent component) with name [Activation] found, available entities are []
    I get this when I try to
    EntityLoadByPK()
    I'm not seeing anything in the logs. The odd things is this app has been running for years and mostly runs fine, but every now and then will start to throw this error. A re-start will clear it up eventually. In my local environment, I can get past this error at all. Full stack trace
    Copy code
    lucee.runtime.exp.ApplicationException: No entity (persistent component) with name [Activation] found, available entities are []
     at lucee.runtime.op.ExceptonImpl.createApplicationException(ExceptonImpl.java:93)
     at lucee.runtime.orm.ORMExceptionUtil.createException(ORMExceptionUtil.java:45)
     at lucee.runtime.util.ORMUtilImpl.createException(ORMUtilImpl.java:109)
     at ortus.extension.orm.util.ExceptionUtil.createException(ExceptionUtil.java:94)
     at ortus.extension.orm.util.ExceptionUtil.createException(ExceptionUtil.java:76)
     at ortus.extension.orm.HibernateORMEngine.create(HibernateORMEngine.java:391)
     at ortus.extension.orm.HibernateORMSession.create(HibernateORMSession.java:492)
     at ortus.extension.orm.functions.EntityNew.call(EntityNew.java:55)
     at ortus.extension.orm.functions.EntityNew.call(EntityNew.java:49)
     at ortus.extension.orm.functions.EntityNew.invoke(EntityNew.java:106)
     at lucee.runtime.functions.FunctionHandlerPool.invoke(FunctionHandlerPool.java:40)
     at debug.index_cfm$cf$mr.call(/debug/index.cfm:20)
     at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1112)
     at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1006)
     at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:213)
     at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:41)
     at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2810)
     at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2797)
     at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2768)
     at lucee.runtime.engine.Request.exe(Request.java:45)
     at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1109)
     at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1066)
     at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:97)
     at lucee.loader.servlet.jakarta.CFMLServlet.service(CFMLServlet.java:52)
     at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:710)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:130)
     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:109)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:79)
     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:116)
     at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:666)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
     at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:718)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
     at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:396)
     at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
     at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:903)
     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1744)
     at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
     at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
     at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:59)
     at java.base/java.lang.Thread.run(Unknown Source)
    g
    p
    q
    • 4
    • 6
  • b

    brettpr

    05/20/2025, 11:50 AM
    Anybody else already at the Atomis hotel getting ready for CFCamp?
    m
    b
    • 3
    • 3
  • j

    jfrobishow

    05/20/2025, 6:19 PM
    Wrapping up our upgrade to 6.2.1.122 and I did encounter https://luceeserver.atlassian.net/browse/LDEV-4772 again. I raised it in the ticket itself, but seeing as it's currently deployed I wanted to make sure it wasn't missed perhaps. I can test more, but I definitely had to apply the workaround for all of our instances that used the extension from Leftbower.
    • 1
    • 2
  • g

    gavinbaumanis

    05/21/2025, 12:59 AM
    Hi there, Any chance of this issue getting some attention? https://luceeserver.atlassian.net/browse/LDEV-4153
    z
    • 2
    • 3
  • d

    David Johnson

    05/21/2025, 2:29 PM
    TIA for patience, I hope I explain this right. Our production servers are behind a load balancer, and our staging server is behind the same load balancer. The load balancer is "cloaking" a 500 response from the server by showing a 404. I am unable to find the location of the 500 error being logged in either Fusion Reactor or the lucee logs for application, exception and out. The load balancer is unable to show me what it received in the 500 and will only show the 404 of the cloak. Where would you look to get the actual response from the server? Please, if you feel you need to speak very simply, I understand! This feels very basic and I'm surprised I can't find the 500 anywhere!
    e
    p
    +2
    • 5
    • 15
  • r

    rodyon

    05/21/2025, 6:33 PM
    I have IIS connected with BonCode to Lucee windows installation. Mod_CFML was installed during Lucee windows installer run, but it has its redirection problems, so I just commented out the valve. How can I remove mod_cfml from Tomcat? or from IIS? Just want IIS/Lucee pair be configured manually, don't want mod_cfml to intervene.
    z
    e
    b
    • 4
    • 7
  • z

    zackster

    05/22/2025, 9:08 AM
    Now available, Lucee 6.2.2.43-RC and 7.0.0.243-RC, greetings from CFCAMP 2025
    👍 9
    • 1
    • 1
  • l

    lmajano

    05/23/2025, 7:40 AM
    @zackster I am getting random errors on Lucee6 in all of our repos, see thread
    z
    • 2
    • 25
  • n

    Nikhil Lucid

    05/23/2025, 9:00 AM
    Hi Everyone, can anyone help me to fix my issue. For one of my project I am using MongoDB version 7 with Lucee 6.2.1.122. I am using cbmongoDB module. Below is the code I am using
    Copy code
    //module injection
    
    property name="MongoClient" inject="MongoClient@cbmongodb";
    property name="MongoUtil"   inject="MongoUtil@cbmongodb";
    property name="MongoIndexer" inject="MongoIndexer@cbmongodb";
    
    //mycode
    var MyDB = MongoClient.getDBCollection('myCollection');	
    var criteriaQry = [
    {
    	   '$match':{
    		'$and': [
    			{ 'dealerId': { '$eq': Int(arguments.dealerId) } },
    			 {'isDeleted': false},
                 {'isDraft': false}
    		]
    	   }
    },
    {
    	'$count': 'count'
    }
    
    ];
    
    var rrx = MyDB.aggregation(criteriaQry).asArray();
    the 'MyDB.aggregation(criteriaQry).asArray();' results in error: class coldfusion.runtime.java.JavaProxy cannot be cast to class org.bson.conversions.Bson (coldfusion.runtime.java.JavaProxy is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @2f218355; org.bson.conversions.Bson is in unnamed module of loader com.compoundtheory.classloader.NetworkClassLoader @70f1198a)class coldfusion.runtime.java.JavaProxy cannot be cast to class org.bson.conversions.Bson (coldfusion.runtime.java.JavaProxy is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @2f218355; org.bson.conversions.Bson is in unnamed module of loader com.compoundtheory.classloader.NetworkClassLoader @70f1198a) Also I changed my code to use the JAVA liberaries directly
    Copy code
    //module injection
    
    property name="jLoader" inject="id:loader@cbjavaloader";
    
    //mycode
    var mongoClientClass = jLoader.create("com.mongodb.client.MongoClients");
    mongo = mongoClientClass.create("mongoDBConnectionString");
    db = mongo.getDatabase("dataBaseName");
    collection = db.getCollection("DbCollection");
    
    dealerId = javacast("int", 32); // or hardcode for test
    pipeline = createObject("java", "java.util.ArrayList");
    
    
    var matchStage = jLoader.create('org.bson.Document');
    matchStage.append("\$match", {
    	dealerId: dealerId,
    	isDeleted: false,
    	isDraft: false
    });
    
    var countStage = jLoader.create('org.bson.Document');
    countStage.append("\$count", "count");
    
    pipeline.add(matchStage);
    pipeline.add(countStage);
    
    result = collection.aggregate(pipeline);
    
    // Read result
    resultList = [];
    iterator = result.iterator();
    while (iterator.hasNext()) {
    	doc = iterator.next();
    	arrayAppend(resultList, doc.toJson());
    }
    
    writeDump(resultList); abort;
    I am getting the below error for the 'result.iterator();' class coldfusion.runtime.java.JavaProxy cannot be cast to class org.bson.conversions.Bson (coldfusion.runtime.java.JavaProxy is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @30cd734b; org.bson.conversions.Bson is in unnamed module of loader com.compoundtheory.classloader.NetworkClassLoader @5fba4e7d)
    z
    • 2
    • 1
  • z

    zackster

    05/25/2025, 7:28 AM
    The showbag for CFCAMP included a radxa-zero3e SBC, now that we have have debian aarch64 installers, it was really easy to install Lucee 7 RC1 on it... Only gotcha was downloading the latest balena etcher rather than the one linked in the documentation, and i needed to retry the the flashing to get it working, plus something was already bound to port 8888, so I used 9888
    ❤️ 1
    a
    • 2
    • 7
  • z

    zackster

    05/26/2025, 10:35 AM
    just wrote up the breaking changes document for Lucee 6.0 https://docs.lucee.org/recipes/breaking-changes-6-0.html (from the epic) anyone who has gone thru the upgrade, have I missed anything?
    👍 3
    c
    • 2
    • 3
  • z

    zackster

    05/26/2025, 10:48 AM
    https://dev.lucee.org/t/lucee-6-upgrade-from-5-4-to-6-0-breaking-changes-guide/15154
  • m

    megger

    05/26/2025, 2:36 PM
    linux noob question: what i have to do if i want to start lucee automatically when my server (ubuntu 24) starts? i missed this config option durign the installer
    z
    b
    • 3
    • 3
  • z

    zackster

    05/27/2025, 8:26 AM
    @cfsimplicity with this tika-app downloading all the dependencies problem, are you only using a subset of the functionality?
    c
    • 2
    • 5
  • l

    leftbower

    05/28/2025, 12:05 AM
    @zackster there's a thread in the Ortus Commandbox channel about new snaphots of Lucee not pushing to Forgebox, therefore not available to Commandbox. It seems a GitHub action may have stopped firing? https://boxteam.slack.com/archives/C0536GAE3/p1748118398984339
    b
    z
    • 3
    • 3
  • r

    rawk

    05/28/2025, 5:12 PM
    has anyone come across issues when using a postgres database that has connection pooling on the database side? ever since we made that change to our database to use connection pooling, our lucee application sometimes gets stuck performing INSERT or UPDATE statements. we've been able to trace this to the application not finalizing the transaction and the database is waiting for it. we're using lucee 5.4.7.3 with postgreSQL extension 42.7.5
    z
    m
    • 3
    • 12
  • z

    zackster

    06/02/2025, 11:17 AM
    https://dev.lucee.org/t/lucee-5-4-cfcookie-expires-being-stripped-by-cloudflare/15176/3
    👍🏼 1
  • a

    alholden

    06/02/2025, 8:59 PM
    Anyone get Lucee to work with AWS mountpoint? Just for listing the files in a bucket (assumes ls == cfdirectory)?
    g
    z
    • 3
    • 7
  • b

    bdw429s

    06/11/2025, 5:45 PM
    Turns out this is actually documented, but who knew Lucee supports this?
    Copy code
    try {
     } catch( e ) {
       dump( cfcatch ) // wrong variable name, but it works
     }
    d
    s
    q
    • 4
    • 11
  • d

    David Rogers

    06/12/2025, 9:34 PM
    queryExecute bughunt
    b
    j
    d
    • 4
    • 13
  • t

    Tim Badolato

    06/17/2025, 2:19 AM
    I'm building a modern API using Lucee and want to maintain session state without relying on cookies or URL parameters. Specifically, I’d like to pass
    CFID
    and
    CFTOKEN
    as custom HTTP headers (e.g.,
    Authorization: CFID xxxxx
    ) with each request, and have Lucee bind to the appropriate session. However: • Passing session cookies cross-site triggers CORS restrictions. • Including session IDs in URLs is insecure and messy. Is there any supported way in Lucee to restore or bind a session using
    CFID
    and
    CFTOKEN
    from headers rather than cookies or query params?
    If not natively supported, is there a way to hook into restore a session in onRequestStart using the CFID/CFTOKEN? I did figure out how to retrieve the session data from Redis but if I loop over the values and add it to the current session, I'm basically duplicating the data to a new session on every load. Any help is appreciated. Thanks
    b
    r
    +3
    • 6
    • 16
  • z

    zackster

    06/17/2025, 11:34 AM
    https://dev.lucee.org/t/lucee-5-4-8-2-stable-lts-release/15206
  • z

    zackster

    06/17/2025, 11:34 AM
    https://dev.lucee.org/t/lucee-6-2-2-54-rc-final-release-candidate/15205
  • z

    zackster

    06/17/2025, 11:37 AM
    https://dev.lucee.org/t/full-lucee-docs-for-vscode-cfmleditor/15046/15
  • j

    jc

    06/18/2025, 9:56 PM
    Where can I find messages that are attempted to be sent via cfmail on a Lucee instance?
    a
    • 2
    • 1
  • a

    alagarsamy

    06/24/2025, 1:08 PM
    Hi everyone, I need some help regarding SocketBox setup with Lucee and Apache. I want to enable WebSocket support using SocketBox for my Lucee application, but I am a bit confused about the correct setup. ✅ My current stack: Lucee 6.x (running on Apache Tomcat) Apache HTTPD 2.4 in front (reverse proxy setup) Goal is to use SocketBox for WebSocket features with Lucee I’ve learned that SocketBox is designed to run with CommandBox, which uses the Undertow server. But in my environment, I’m using Lucee deployed on Tomcat, with Apache as the frontend. Questions: 1️⃣ Is it possible to run SocketBox with Lucee + Apache, without using CommandBox? 2️⃣ If not, is the recommended approach to run Lucee via CommandBox, use Apache as a reverse proxy, and enable SocketBox that way? 3️⃣ Can SocketBox be configured to work purely with Lucee on Tomcat? I’d appreciate any clarity on this setup or suggestions from others who have implemented SocketBox with Lucee and Apache.
    g
    c
    +2
    • 5
    • 24
  • d

    David Johnson

    06/25/2025, 1:26 PM
    I am using Lucee 6.2.1.122 in a dev environment and would like to lower any buffer that may exist for writing to the logs. Is there a setting or something to edit to make the log buffer smaller?
    • 1
    • 1
  • d

    dswitzer

    06/25/2025, 5:22 PM
    I've run into an issue with safe operators and exceptions that seems to affect Lucee versions 5 - 7: https://dev.lucee.org/t/safe-operators-and-exception-handling/15217 In a nutshell, the use of the safe operator is swallowing exceptions which is different from ACF. Is this a bug or intended behavior?
    b
    • 2
    • 23