http://coldfusion.com logo
Docs
Join the conversationJoin Slack
Channels
adobe
advent-of-code
auwcl
aws
books
bot-dev
box-products
cfeclipse
cfkrauts
cflint
cfml-beginners
cfml-general
cfml-tuning
cfsummit2022
cfwheels
ci
community_courses
css
devops-general
docker
docker-commandbox
documentation
events
friday-puzzle
fusion-reactor
fw1
ide
java-and-jvm
javascript
jobs
jobs-non-us
linen-dev
lucee
masacms
meta
migrations
mura
music
nosql
object-oriented
orm
perf-monitor
prog-general
slack-help
sql
taffy
testing
version-control
vuejs
water-cooler
Powered by Linen
box-products
  • s

    satauros

    03/08/2023, 1:22 PM
    I'm using
    hyper
    (in a stand-alone environment, without coldbox), version 5.0.1, and even the simplest request (
    hyper.get("<https://www.google.com>")
    ) fails with a 504 Gateway Timeout. Any idea's on how this is possible?
    s
    16 replies · 2 participants
  • j

    John Liljegren

    03/08/2023, 2:03 PM
    I am having terrible slowness running a commandbox container on podman in a RHEL 9 host. Once the container is up and the servers are running, things seem to run fine, but any box command is painfully slow. In fact running box in the container just hangs and eventually causes the container to restart. I've tried just putting box on the host and it takes 10+ minutes to open the shell - it gets stuck on "Getting stable versioning information..." it seems. When the container is running, it doesn't look like anything else is taking up a lot of CPU or memory or anything. I'm pretty stumped. Has anyone seen something like this before?
    d
    b
    12 replies · 3 participants
  • g

    Gabriel Rodrigues

    03/08/2023, 6:35 PM
    Hello guys, I'm using Testbox to run unit/integration tests on my applications and I've integrated on a GitLab Pipeline and now I want to take a step further and run Test Coverage on my pipeline. To run a coverage test Ortus recommends the use of FusionReactor, the problem is that my company already pays for a similar service and is very unlikely to pay for another one. Is there a way to run test coverages on Testbox with another solution than FusionReactor? Preferably an open source solution, but I'm open to other paid ones. Thanks in advance, sorry by my bad english.
    p
    b
    +2
    21 replies · 5 participants
  • j

    Jason Ryan

    03/09/2023, 3:52 PM
    Hi there, I've been building out Unit Tests with TestBox. I like it so far, but having trouble with debugging. I am mainly relying on the CLI output for viewing test status, checking error messages, etc. There are instances where I need to see what a certain variable looks like, but I can't get any of the Output Utilities to show me anything. Here's an example test where I'm trying several output strategies. I don't see these output anywhere in the commandbox server logs or the testbox CLI output (where I was hoping to see them right next to the error). Am I missing something?
    a
    2 replies · 2 participants
  • t

    Travis

    03/09/2023, 10:01 PM
    on
    box server start
    getting the error:
    Loading CFConfig into server
       |   | > key [MULTICONTEXT] doesn't exist
    Maybe I need to revert to an older version of commandbox-cfconfig?
    b
    11 replies · 2 participants
  • j

    Jason Ryan

    03/09/2023, 10:35 PM
    Anybody know how to properly expose a commandbox server running inside a docker container? Hoping to hit it from a web browser outside the container but I'm getting ERR_EMPTY_RESPONSE, whereas inside the container I can curl it just fine. More specifically, I am running a Lucee container for my main app and using commandbox at this time for testbox. I have the port mapped correctly (42518:42518). My (8080:80) port mapping for the main application works fine. I tried setting host of the commandbox server to 0.0.0.0, which of course DOES expose it outside the container (via localhost:42518) but all I see is "Forbidden" on the page.
    b
    80 replies · 2 participants
  • h

    hemi345

    03/10/2023, 3:46 PM
    Good morning, I'm wondering what is the recommended Coldbox approach for storing temporary settings/filters? For example, I have a tabular list of purchase orders and at the top of the page there are options to filter the list down by department, order number, date submitted, etc. The previous way I would accomplish this was to store the filter(s) in the user's session, like session.POfilters.department = dept_id This would allow the user to filter the list, open a purchase order to work on, then upon returning to the list the filter(s) would still be in place until they cleared them or logged out.
    r
    p
    +1
    8 replies · 4 participants
  • j

    John Liljegren

    03/10/2023, 7:22 PM
    What determines the user.dir variable when using CommandBox? For me, it is set to the location of server.json, but for a colleague he is saying it's set to his installation of CommandBox.
    b
    16 replies · 2 participants
  • r

    Ryan Albrecht

    03/10/2023, 7:36 PM
    Question regarding the Quick orm library. Is there any easy way to clone an entity instance and have it set as not loaded?
    b
    e
    5 replies · 3 participants
  • p

    Peter Hoopes

    03/10/2023, 11:03 PM
    @bdw429s Trying to install CommandBox on my new M1 Pro MacBook Pro. An error on first run,
    Unable to make public boolean java.util.Collections$EmptyEnumeration.hasMoreElements() accessible: module java.base does not "opens java.util" to unnamed module @43b6123e
    . I normally prefer to use Java downloaded onto machine (as opposed to included with CB download). But is there a Java incompatibility? I think this question was answered here in Slack, but we can't look back past 90 days. Something simple?
    b
    5 replies · 2 participants
  • n

    neokoenig

    03/11/2023, 11:29 AM
    I'm trying to get the Ortus PDF Lucee Extension working, but I'm getting:
    Bad type on operand stack
    Exception Details:
    Location:
    org/apache/pdfbox/pdmodel/PDDocument.<init>(Lorg/apache/pdfbox/io/MemoryUsageSetting;)V @224: invokevirtual
    Reason:
    Type 'org/apache/pdfbox/cos/COSInteger' (current frame, stack[2]) is not assignable to 'org/apache/pdfbox/cos/COSBase'
    Current Frame:
    bci: @224
    flags: { }
    locals: { 'org/apache/pdfbox/pdmodel/PDDocument', 'org/apache/pdfbox/io/MemoryUsageSetting', 'org/apache/pdfbox/io/ScratchFile', 'org/apache/pdfbox/cos/COSDictionary', 'org/apache/pdfbox/cos/COSDictionary', 'org/apache/pdfbox/cos/COSDictionary', 'org/apache/pdfbox/cos/COSArray' }
    stack: { 'org/apache/pdfbox/cos/COSDictionary', 'org/apache/pdfbox/cos/COSName', 'org/apache/pdfbox/cos/COSInteger' }
    Bytecode:
    0000000: 2ab7 [...snip]
    Exception Handler Table:
    bci [28, 37] => handler: 40
    bci [76, 87] => handler: 90
    Stackmap Table:
    full_frame(@40,{Object[#286],Object[#287],Object[#288]},{Object[#289]})
    full_frame(@90,{Object[#286],Object[#287],Object[#288],Object[#289]},{Object[#289]})
    chop_frame(@92,1)
    
    The Error Occurred in
    /cfc/OrtusPDF.cfc: line 193
    called from /cfc/OrtusPDF.cfc: line 125
    called from /cfc/OrtusPDF.cfc: line 99
    called from /cfc/OrtusPDF.cfc: line 70
    called from /pdfform.cfm: line 55
    This is using the commandbox:latest docker image with
    javaruntime: OpenJDK Runtime Environment
    javaversion: 11.0.18
    servername: Lucee 5.3.10.120
    Is it that this extension is using an older version of PDFBox?
    b
    l
    5 replies · 3 participants
  • j

    John Liljegren

    03/11/2023, 9:39 PM
    So ACF2021 in Commandbox w/JRE is throwing this error when using cfinvoke to call an access="remote" CFC using wsdl:
    coldfusion.jsp.JavaCompiler$UnknownCompiler: Unable to run the internal Java compiler: java.lang.ClassNotFoundException: com.sun.tools.javac.Main.
    Do I need a different JRE? Or am I missing something with configuration?
    b
    21 replies · 2 participants
  • j

    Jeff Stevens

    03/13/2023, 1:26 PM
    Hello! I'm using box-ngrok and I've gotten to a point where things have started up okay, but ngrok is saying that I need to set my auth token to continue using it. Where would I be able to do this with box-ngrok? I didn't see any commands in the readme for this and I can't find an ngrok.yaml file in my project to set my auth token there.
    ✅ 1
    j
    g
    9 replies · 3 participants
  • p

    Patrick

    03/13/2023, 6:22 PM
    When trying to install the
    oauth2-providers
    module I get an error; not sure if this is an issue for the module side or my side. Thoughts
    ✅ 1
    b
    39 replies · 2 participants
  • c

    cubortea

    03/14/2023, 2:59 AM
    Hi Everyone, I just upgrade my docker-commandbox image uisng jdk11-3.7.0 with commandbox version 5.8.0 in my dockerFile I have a script > RUN ls -l ${BOX_SERVER_APP_SERVERHOMEDIRECTORY}/WEB-INF/lucee-server/context/context/ortus/redis/ with this lates commandbos I always get error : ls: cannot access '/root/serverHome/WEB-INF/lucee-server/context/context/ortus/redis/': Operation not permitted with docker-commandbox image uisng jdk11-3.6.0 commandbox version 5.6.1 is fine, the ls script still can be run. any idea what this problem ?
    b
    j
    12 replies · 3 participants
  • r

    ryan

    03/14/2023, 5:47 PM
    Is there a way to re-route from a handler method?
    d
    3 replies · 2 participants
  • j

    Jeff Stevens

    03/14/2023, 7:15 PM
    Hello! I'm working on a .cfc file on my coldbox server that is not stored in the models or handlers folder of my server. Is it still possible to instantiate objects from modules there, like logbox, for example? I'm used to just performing injections like
    property name="logger"      inject="logbox:root"
    However, I don't believe I have access to injection syntax like this outside of my models or handlers folders.
    p
    b
    20 replies · 3 participants
  • t

    teaman

    03/15/2023, 3:58 PM
    @jclausen Hi Jon, I heard you might be adding ACF 2018.0.16 to forgebox? Any idea when that will be available?
  • j

    jclausen

    03/15/2023, 4:03 PM
    Should be available later today: https://cfml.slack.com/archives/C06T99N9G/p1678896187144419?thread_ts=1678895399.237099&amp;cid=C06T99N9G
  • t

    teaman

    03/15/2023, 4:40 PM
    Terrific! Thanks, Jon!
  • j

    jclausen

    03/15/2023, 5:23 PM
    Forgebox Adobe engines have been updated to the latest hotfixes. Packages on Forgebox are:
    adobe@2021.0.06+330132
    adobe@2018.0.16+330130
    cc/ @teaman
    ⭐ 4
    👍 5
    👍🏻 1
  • s

    Scott Bennett

    03/17/2023, 8:08 PM
    is there any documentation at all that details the functionality included in: https://www.forgebox.io/view/cbcommerce or at least some sort of screenshots/demo site somewhere that people can look at it? or is it something that I would need to install it and play around with it on a local dev site to evaluate it in any way?..... the "documentation" site its a bit.... sparse... on details https://cbcommerce.ortusbooks.com/
    e
    j
    6 replies · 3 participants
  • r

    ryan

    03/18/2023, 2:26 PM
    What is the best way to debug routes and handlers? I tried to use route-visualizer but it does not show up when I add
    /route-visualizer
    to the URL after installing it with Commandbox CLI. Basically, would something like this work in Router.cfc?
    route(':action?').toHandler('admin')
    .withCondition(function(event, rc, prc) {
    	return isUserInRole('admin');
    });
    
    Essentially, I am attempting to simplify the URL from `/admin/action` to `/action` only.  Then, in the route, check if the user's role is 'admin' to accept the route and pass it to the Admin handler.  I've never used withCondition and the limited example is not quite correct in the coldbox docs, either, but I get the gist of it.
    <https://coldbox.ortusbooks.com/the-basics/routing/routing-dsl/routing-methods#routing-conditions>
  • r

    romanstr

    03/20/2023, 7:15 PM
    is there any way to update adobe coldfusion under commandbox automatically? I tried use "Automatic updates" in CF Admin, change cfengine to certain version in server.json. But it doesn't work
    b
    10 replies · 2 participants
  • l

    lmajano

    03/20/2023, 8:23 PM
    Just a reminder that we still have seats available for the ColdFusion MVC training using ColdBox & BDD on April 4th before CFSummit East in Washington DC. Here's a nice discount for ya! www.eventbrite.com/e/549438735047/?discount=social See you soon!
    ➕ 1
    p
    1 reply · 2 participants
  • s

    salted

    03/21/2023, 2:44 PM
    get this error trying to install cbplaywright in a proj:
    b
    4 replies · 2 participants
  • s

    salted

    03/21/2023, 2:44 PM
    × | Playwright driver not found.  Please wait for a moment while the correct driver for your platform is downloaded.   |---------------------------------------------------------------------------   | Downloading driver from [<https://search.maven.org/remotecontent?filepath=com/microsoft/playwright/driver-bundle/1.31.0/driver-bundle-1.31.0.jar>]   | Unable to download the driver:
       | Connection failure <https://repo1.maven.org/maven2/com/microsoft/playwright/driver-bundle/1.31.0/driver-bundle-1.31.0.jar>
       | PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  • s

    salted

    03/21/2023, 2:44 PM
    anyone had that before?
  • s

    salted

    03/21/2023, 2:45 PM
    sounds like some sort of cert problem but no idea why it is a problem
  • g

    Grant Shepert

    03/21/2023, 5:24 PM
    Having a strange issue with Commandbox Docker image. For some reason, it is caching .js, .txt, similar files. Switched to the lucee image and problem went away.
    b
    j
    13 replies · 3 participants
Powered by Linen
Title
g

Grant Shepert

03/21/2023, 5:24 PM
Having a strange issue with Commandbox Docker image. For some reason, it is caching .js, .txt, similar files. Switched to the lucee image and problem went away.
b

bdw429s

03/21/2023, 5:27 PM
@Grant Shepert I assume you're in production profile
Enable the file system watcher to have the cache automatically invalidated on file change
Or disable the cache
The cache is disabled by default for non-production profiles
server set web.fileCache.enable=false
g

Grant Shepert

03/21/2023, 5:29 PM
cool, tks, will try that. haven’t changed anything in … what, 3 years, so bit of a mystery why it’s suddenly happening.
b

bdw429s

03/21/2023, 5:30 PM
Or if you like the cache and just want it to update automatically,
server set runwar.args='--resource-manager-file-system-watcher=true'
The cache is an undertow feature that was activated a few versions ago in CommandBox
It caches small files in memory for super fast serving
I had the file watcher enabled by default, but it caused issues when people had like 50k+ files in their web root
So now the file system watcher is off by default so the cache won't clear automatically any longer
g

Grant Shepert

03/21/2023, 5:31 PM
Got it, thanks for the insights.
j

jclausen

03/21/2023, 10:34 PM
@Grant Shepert What I typically do, so that the directory watcher doesn’t have to do anything, is set the following. Disabling
sendfile
does effectively the same thing with big static assets. I run this in development and never have an issue with the files being cached
BOX_SERVER_RUNWAR_ARGS=--sendfile-enable false --resource-manager-file-system-watcher false
Or you can place the above in your
server.json
Disabling
sendfile
means the file is always read from the disk and not the buffer/cache
View count: 1