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

    David Johnson

    04/25/2025, 8:34 PM
    I've clicked Stop Server in my windows bin for my lucee server and my CMD says Runwar: Stopping Server 'Servername' but it's just sitting there. What's the next step to shut the server or services down when that doesn't work?
    p
    b
    • 3
    • 9
  • z

    zackster

    04/26/2025, 8:23 AM
    Lucee docs finally has camel cased args and attributes, much more readable https://dev.lucee.org/t/full-lucee-docs-for-vscode-cfmleditor/15046/2
    🤘 1
    🎉 1
  • q

    quetwo

    04/27/2025, 1:55 AM
    Are there any tutorials or docs other than https://docs.lucee.org/guides/lucee-5/extensions.html to build your own Lucee Extensions? Specifically, I'm having some issues trying to create a server virtual mapping on install to point to a set of code that lives within the {server-context}/ I'm having a hard time figuring out what mappings directive would look like.
    z
    • 2
    • 1
  • z

    zackster

    04/27/2025, 12:43 PM
    https://dev.lucee.org/t/code-block-rendering-fixed-on-lucee-docs/15054
    👍 2
    👍🏼 1
  • z

    zackster

    04/28/2025, 4:33 PM
    6.2.1.122 stable is out https://dev.lucee.org/t/lucee-6-2-1-122-stable-released/15059
    🎉 9
  • b

    Bill Nourse

    04/29/2025, 3:22 PM
    Are there any advantages of using the Async Gateway over schedule tasks. For example, when sending the same request at intervals? They both ultimately can do the same thing, but is the gateway more efficient? Thanks!
    r
    z
    • 3
    • 5
  • z

    zackster

    04/29/2025, 6:26 PM
    https://dev.lucee.org/t/poll-should-errors-on-lucee-start-up-deployment-be-fatal/15064
  • p

    paul

    04/30/2025, 4:58 AM
    In Lucee, I can see how to load extentions dynamically, example by enviroment variable. However if I open a .lex file there are the jars and there is a file that looks to be the definition of the functions/tag that are part of that extention. What I want to know is how I can "pre-load" that in to the lucee lite jar file. I am using Fuseless on lambda so do not have the ability to download extentions via admin. Enviroment variables works fine but slows down startup time.
    b
    z
    • 3
    • 33
  • d

    dswitzer

    04/30/2025, 2:34 PM
    I'm probably looking in the wrong spots, but are there any guides on getting Lucee 6.2.1.122+ manually up and running using Tomcat 11? I see that Lucee 6 installer has recently switched to installing Tomcat 11 for new versions, so I'm using that as a blue print, but not being familiar with all of the installer following the source is slow for me. Is cfml_mod still required? It looks like it, but it looks like you need v2, which I do not see an official release for on https://viviotech.github.io/mod_cfml/download.html.
    z
    • 2
    • 55
  • d

    dswitzer

    05/01/2025, 2:23 PM
    Is there a way to importing multiple .CFConfig.json files at once to configure Lucee 6.2+? I'm working on updating our provisioning from Lucee 5 to 6. We are currently using a tool that we forked from something else which allows us to pass in JSON files to configure Lucee using a designated endpoint. We split our configs into multiple files, because we have like a "base" config and then configs that are specific to different environments. I'd like to migrate this over to .CFConfig.json. I know I can copy a .CFConfig.json to the deploy folder to have it picked up, but I'd hate having to copy each one over, wait for it to be applied, copy the next, etc. Is there a way we can either drop a bunch of files into a .CFConfig folder or possible having it pick up any file starting with .CFConfig?
    b
    z
    • 3
    • 5
  • r

    redtopia

    05/01/2025, 9:05 PM
    Can someone help me with Docker? I can't figure out how to copy my .CFConfig.json and .jar files over to the the container I'm building using the official Lucee Docker image (lucee/lucee:6.2.1.122-nginx)
    b
    d
    z
    • 4
    • 61
  • z

    zackster

    05/02/2025, 10:00 AM
    Why are they comparing against Lucee 5? 🤔
    e
    b
    d
    • 4
    • 14
  • d

    David Johnson

    05/02/2025, 1:48 PM
    I've been happily using cflog for a couple weeks now to debug. However, this morning I am receiving this error when I try to log something: XNIO-1 task-1 ERROR Log4j API could not find a logging provider. Is there an application I should enable?
    z
    e
    • 3
    • 9
  • m

    Monte Chan

    05/02/2025, 4:37 PM
    I came across this couple days ago. Basically, Electron includes Chromium and Node.js which allows you to develop cross-platform desktop apps with JavaScript, HTML, and CSS https://www.electronjs.org/ With CF, it is probably impossible due to the licensing issue. But I wonder if you can include, somehow, a Lucee server in the build, and if you can, you may be able to build desktop apps using Lucee??? For those who may not know, VS Code, Discord, Microsoft Teams, Slack, Postman, ...etc. are all developed using Electron
    b
    a
    +3
    • 6
    • 15
  • d

    dswitzer

    05/02/2025, 7:13 PM
    I discovered a bug with Lucee 6+ parsing of string dates: https://luceeserver.atlassian.net/browse/LDEV-5566 In a nutshell, when parsing a timestamp with trailing zeros in the milliseconds, the zeros are being dropped, so a string like
    2016-04-11 18:30:06.083
    gets converted to
    2016-04-11 18:30:06.830
    . I suspect this could be affecting a lot of code that's deserializing JSON:
    Copy code
    ds = deserializeJSON('["2016-04-11 18:30:06.083"]');
    
    writeDump(dateTimeFormat(ds[1], "yyyy-mm-dd HH:nn:ss.lll"));
    This will produce
    2016-04-11 18:30:06.830
    instead of
    2016-04-11 18:30:06.083
    .
    • 1
    • 1
  • d

    dswitzer

    05/02/2025, 9:07 PM
    I've release a new lightweight filter for Jakarta-based versions of Tomcat to support "path info" type URIs in your CFML-based application: https://github.com/dswitzer/PathInfoParserFilter This is basically a replacement for the old RegexPathInfoFilter, but will work in Tomcat 11+.
    b
    • 2
    • 4
  • t

    tgmweb

    05/03/2025, 12:59 PM
    I'm having some issues using sslCertificateInstallI() on lucee6. I'm trying to add a self-signed cert from another server. This works locally when using commandbox, but on our staging server I still get the following error doing cfhttp to the remote hostL
    Copy code
    Unknown host: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    However, when I do
    SSLCertificateList()
    the certificate is there?? Anyone any idea what the issue might be?
    c
    b
    • 3
    • 3
  • h

    hpeter16

    05/05/2025, 2:54 PM
    Any easy alternate of isSafeHTML function in Lucee?
    m
    b
    +2
    • 5
    • 8
  • z

    zackster

    05/06/2025, 12:18 PM
    remember how i was always the member functions are slower person? now they are much faster
    🎉 3
    🔥 1
  • z

    zackster

    05/06/2025, 1:20 PM
    deploying an update to the extension provider which filters out newer extensions which aren't supported by your current lucee version (hides Lucee 7 only extensions from 6.2) https://luceeserver.atlassian.net/browse/LDEV-5489?focusedCommentId=60848
  • z

    zackster

    05/06/2025, 1:23 PM
    @dswitzer re https://luceeserver.atlassian.net/browse/LDEV-5513 can you explain the problem?
    d
    • 2
    • 12
  • j

    Jim Priest

    05/06/2025, 3:40 PM
    Is this expected? This code works in CF - if the file isn't there it sets an empty struct. In Lucee it bombs with 'file not found'. I can rewrite it with a FileExists() check but seems like the try/catch should handle that?
    Copy code
    try {
    		application.stats = FileRead("/etc/stats.json");
    	} catch (Any e) {
    		application.stats = StructNew();
    	}
    z
    d
    • 3
    • 11
  • z

    zackster

    05/06/2025, 4:08 PM
    CFINSERT and CFUPDATE have been flagged as deprecated in Lucee 7
    🎯 1
  • l

    lmajano

    05/07/2025, 1:21 PM
    I have more regressions @zackster. Michael will be submitting tickets for them
    z
    • 2
    • 1
  • l

    lmajano

    05/07/2025, 1:22 PM
    We really can't figure it out
  • z

    zackster

    05/07/2025, 1:27 PM
    please post them to the dev forum first then for triage
  • z

    zackster

    05/07/2025, 7:24 PM
    I've finally managed to repo the problem with single mode and cfc's being loaded from different sites, which was the hard part https://github.com/zspitzer/lucee-single-mode-test/actions/runs/14891158819
  • z

    zackster

    05/07/2025, 8:42 PM
    ^^^ as they say, once we have a repo, we can solved it, latest snapshots for 6 and 7 should solve this problem https://dev.lucee.org/t/lucee-6-createobject-returns-instance-from-another-project/15007/13
  • z

    zackster

    05/08/2025, 10:07 AM
    https://dev.lucee.org/t/errors-installing-extensions-via-lucee-extensions/15102 h/t @Gareth
  • p

    philcruz

    05/08/2025, 10:36 PM
    I'm trying to debug an issue related to ORM. It seems similar to this ORM cannot cast issue. As a starting point, I created directory with those files and using CommandBox to run it on Lucee 6.2.1.122, but I'm getting this error
    Copy code
    lucee.runtime.exp.NativeException: org.h2.jdbc.JdbcSQLNonTransientException: Error while creating file "/temp" [90062-214]
     at lucee.runtime.db.DatasourceConnectionFactory.create(DatasourceConnectionFactory.java:61)
     at lucee.runtime.db.DatasourceConnectionFactory.create(DatasourceConnectionFactory.java:21)
     at org.apache.commons.pool2.BasePooledObjectFactory.makeObject(BasePooledObjectFactory.java:58)
     at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:918)
     at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:431)
     at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:356)
     at lucee.runtime.config.DatasourceConnPool.borrowObject(DatasourceConnPool.java:31)
     at lucee.runtime.config.MockPool.getDatasourceConnection(MockPool.java:11)
     at lucee.runtime.util.DBUtilImpl.getDatasourceConnection(DBUtilImpl.java:175)
     at lucee.runtime.util.DBUtilImpl._getDatasourceConnection(DBUtilImpl.java:170)
     at lucee.runtime.util.DBUtilImpl.getDatasourceConnection(DBUtilImpl.java:157)
     at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
     at java.base/java.lang.reflect.Method.invoke(Method.java:580)
     at ortus.extension.orm.util.CommonUtil.getDatasourceConnection(CommonUtil.java:720)
     at ortus.extension.orm.HibernateORMEngine.createMapping(HibernateORMEngine.java:309)
     at ortus.extension.orm.HibernateORMEngine.buildSessionFactoryData(HibernateORMEngine.java:199)
     at ortus.extension.orm.HibernateORMEngine.getOrBuildSessionFactoryData(HibernateORMEngine.java:123)
     at ortus.extension.orm.HibernateORMEngine.init(HibernateORMEngine.java:65)
     at lucee.runtime.config.ConfigImpl.getORMEngine(ConfigImpl.java:3067)
     at lucee.runtime.config.ConfigImpl.resetORMEngine(ConfigImpl.java:3051)
     at lucee.runtime.config.SingleContextConfigWeb.resetORMEngine(SingleContextConfigWeb.java:1028)
     at lucee.runtime.config.ConfigWebImpl.resetORMEngine(ConfigWebImpl.java:664)
     at lucee.runtime.orm.ORMUtil.resetEngine(ORMUtil.java:75)
     at lucee.runtime.listener.ModernAppListener.initApplicationContext(ModernAppListener.java:507)
     at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:112)
     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.CFMLServlet.service(CFMLServlet.java:42)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
     at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
     at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
     at org.cfmlprojects.regexpathinfofilter.RegexPathInfoFilter.doFilter(RegexPathInfoFilter.java:54)
     at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:67)
     at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
     at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
     at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
     at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
     at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
     at runwar.undertow.SSLCertHeaderHandler.handleRequest(SSLCertHeaderHandler.java:161)
     at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
     at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:117)
     at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
     at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
     at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
     at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
     at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
     at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
     at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
     at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
     at io.undertow.servlet.handlers.SendErrorPageHandler.handleRequest(SendErrorPageHandler.java:52)
     at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
     at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:275)
     at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:79)
     at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:134)
     at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:131)
     at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
     at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
     at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:255)
     at io.undertow.servlet.handlers.ServletInitialHandler.handleRequest(ServletInitialHandler.java:175)
     at io.undertow.server.handlers.HttpContinueReadHandler.handleRequest(HttpContinueReadHandler.java:69)
     at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
     at runwar.undertow.WelcomeFileHandler.handleRequest(WelcomeFileHandler.java:49)
     at io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:104)
     at runwar.undertow.SiteDeployment$1.handleRequest(SiteDeployment.java:169)
     at io.undertow.predicate.PredicatesHandler.handleRequest(PredicatesHandler.java:141)
     at io.undertow.server.handlers.DisallowedMethodsHandler.handleRequest(DisallowedMethodsHandler.java:62)
     at io.undertow.predicate.PredicatesHandler.handleRequest(PredicatesHandler.java:113)
     at io.undertow.server.handlers.encoding.EncodingHandler.handleRequest(EncodingHandler.java:72)
     at runwar.undertow.LifecyleHandler.handleRequest(LifecyleHandler.java:143)
     at runwar.undertow.SiteDeployment$4.handleRequest(SiteDeployment.java:360)
     at io.undertow.server.Connectors.executeRootHandler(Connectors.java:395)
     at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:854)
     at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
     at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2019)
     at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1558)
     at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1423)
     at org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1282)
     at java.base/java.lang.Thread.run(Thread.java:1575)
    Caused by: java.io.IOException: org.h2.jdbc.JdbcSQLNonTransientException: Error while creating file "/temp" [90062-214]
     ... 84 more
    Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Error while creating file "/temp" [90062-214]
     at org.h2.message.DbException.getJdbcSQLException(DbException.java:554)
     at org.h2.message.DbException.getJdbcSQLException(DbException.java:477)
     at org.h2.message.DbException.get(DbException.java:212)
     at org.h2.store.fs.disk.FilePathDisk.createDirectory(FilePathDisk.java:356)
     at org.h2.store.fs.FileUtils.createDirectory(FileUtils.java:85)
     at org.h2.store.fs.FileUtils.createDirectories(FileUtils.java:382)
     at org.h2.mvstore.db.Store.<init>(Store.java:109)
     at org.h2.engine.Database.<init>(Database.java:324)
     at org.h2.engine.Engine.openSession(Engine.java:92)
     at org.h2.engine.Engine.openSession(Engine.java:222)
     at org.h2.engine.Engine.createSession(Engine.java:201)
     at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:338)
     at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:122)
     at org.h2.Driver.connect(Driver.java:59)
     at lucee.runtime.db.DataSourceSupport._getConnection(DataSourceSupport.java:146)
     at lucee.runtime.db.DataSourceSupport.getConnection(DataSourceSupport.java:111)
     at lucee.runtime.db.DatasourceConnectionFactory.create(DatasourceConnectionFactory.java:58)
     ... 83 more
    Caused by: java.nio.file.FileSystemException: /temp: Read-only file system
     at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
     at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
     at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
     at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:463)
     at java.base/java.nio.file.Files.createDirectory(Files.java:700)
     at org.h2.store.fs.disk.FilePathDisk.createDirectory(FilePathDisk.java:347)
     ... 96 more
    What could be the issue? (I'm running on an Intel Mac).
    b
    • 2
    • 3