http://coldfusion.com logo
Join Slack
Powered by
# box-products
  • j

    James Hull

    02/23/2023, 8:48 AM
    Hi folks have just installed commandbox via homebrew on a Mac; had previously been on Windows. start loads a new simple server ok but opening my long-established coldbox app in this environment fails - logs show a Java issue:
    Unable to resolve com.sun.jna [15](R 15.0): missing requirement [com.sun.jna [15](R 15.0)] osgi.native;
    Looks like maybe a JAVA_HOME issue, any suggestions?
    p
    b
    • 3
    • 32
  • r

    richard.herbert

    02/24/2023, 5:59 PM
    In a RESTful ColdBox app, how can I override the
    event.getResponse().setData()
    to allow me to drop the pagination element and possibly other parts?
    b
    • 2
    • 42
  • r

    romanstr

    02/25/2023, 8:56 AM
    I try to use commandbox + adobe cf + REST services, but all requests to "/rest/" return "Not found". Is it possible to set up CF REST services under commandbox?
    b
    • 2
    • 2
  • b

    Brandon Brown

    02/27/2023, 4:36 PM
    We have been trying to track down a strange bug for a while and I believe it is Coldbox that is causing it. We are using Coldbox with a Legacy application based on this example repo: https://github.com/bdw429s/coldbox-legacy-app-demo It has been in place for years but occasionally we get errors where session variables that are supposed to exist don't, it seems like any session variables we set ourselves get wiped out. I created a repo that seems to reproduce the error we are having. https://github.com/Yamaha32088/ColdboxSessionError You will need a Redis instance for this to work. The steps to reproduce after booting up the server would be to make requests to the
    test.cfm
    page and you will notice that every once in a while the variable
    trackingId
    disappears, it seems to be random. Sometimes it will exists for several sequential requests and then it will disappear. If however you comment out line 59 inside of
    Application.cfc
    the variables seem to be kept every request.
    d
    • 2
    • 14
  • b

    Brandon Brown

    02/27/2023, 4:37 PM
    One thing to note though is that you need to request it without having cookies set
  • b

    Brandon Brown

    02/27/2023, 4:39 PM
    So in Postman under the request settings I disable the cookie jar. Which forces Lucee to create a new session every time. You can also do this by using any HTTP client that has cookies disabled.
  • b

    Brandon Brown

    02/27/2023, 4:51 PM
    Still happens in the latest stable of Coldbox as well
  • b

    bdw429s

    02/27/2023, 10:25 PM
    https://twitter.com/bdw429s/status/1630332656658395137
    πŸ‘ 2
  • c

    chris_hopkins

    03/01/2023, 11:30 AM
    Is there or has anyone already created something to bring the magic of coldbox/cachebox event caching annotations into your own service layer?
    b
    • 2
    • 3
  • n

    Narges Navidi

    03/01/2023, 8:39 PM
    Hey guys! Do you know why I'm getting this error?
    b
    • 2
    • 17
  • h

    hemi345

    03/01/2023, 11:35 PM
    I'm just getting started with ColdBox. I'm wanting to rewrite a small legacy application that has a bunch of different forms to learn ColdBox. There are common sections shared amongst all the forms. For example, at the top of each form, it asks for common information such as first name, last name, phone number, etc. In the legacy version of the app, a cfinclude is used for this section of the form. Is there a recommended ColdBox approach to do this?
    d
    b
    • 3
    • 4
  • n

    Narges Navidi

    03/02/2023, 1:24 AM
    Hello guys it's me again, I installed my first app and it's up and running now but for the second app, got this error, does anyone know how to fix this issue?
    b
    • 2
    • 11
  • r

    Robert Zehnder

    03/02/2023, 11:26 PM
    Is there a way to set the branch when running
    coldbox create app skeleton=xxx
    d
    b
    • 3
    • 32
  • c

    cfsimplicity

    03/03/2023, 10:58 AM
    @bdw429s Trying to publish a new release of spreadsheet-cfml to Forgebox (from commandbox) but getting a timeout:
    POST <https://www.forgebox.io/api/v1/publish> 504 Gateway Timeout
    g
    • 2
    • 3
  • b

    bdw429s

    03/03/2023, 4:17 PM
    I'm looking to release CommandBox 5.8.0 today. Please download and give it a test today https://downloads.ortussolutions.com/#/ortussolutions/commandbox/5.8.0-alpha/ I'm working on the release notes, but here is a JIRA search that shows the tickets https://ortussolutions.atlassian.net/issues/?jql=project%20%3D%20COMMANDBOX%20AND%20fixVersion%20%3D%205.8.0%20order%20by%20created%20DESC I'm particularly interested in any servers using
    app.libDirs
    to laod custom jars as I've tweaked the classloading a bit. Also note, the latest CommandBox will auto install the cfconfig, dotenv, and update check module.
    πŸ‘πŸ» 3
    πŸ‘ 3
    πŸ‘πŸΎ 1
    r
    • 2
    • 1
  • b

    bdw429s

    03/04/2023, 11:21 PM
    https://twitter.com/bdw429s/status/1632158984642740224
    πŸ™ŒπŸ» 1
    πŸ‘ 2
    πŸ‘πŸΌ 1
    πŸ™Œ 5
    j
    r
    • 3
    • 5
  • r

    ryan

    03/07/2023, 4:11 PM
    After installing ColdBox into an exisiting app, a "Not Found" error is received when attempting to bring up CFAdmin at CFIDE/administrator. Has anyone experienced this issue? Before the ColdBox install, I had never had a problem access CFAdmin.
    p
    • 2
    • 5
  • g

    gpickin

    03/07/2023, 5:54 PM
    CFML News Podcast - going live in 5 mins https://youtube.com/live/6BZn9dCSHEs?feature=share
  • 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
    • 2
    • 16
  • 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
    • 3
    • 30
  • 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
    • 5
    • 21
  • 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
    • 2
  • t

    Travis

    03/09/2023, 10:01 PM
    on
    box server start
    getting the error:
    Copy code
    Loading CFConfig into server
       |   | > key [MULTICONTEXT] doesn't exist
    Maybe I need to revert to an older version of commandbox-cfconfig?
    b
    • 2
    • 11
  • 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
    • 2
    • 80
  • 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
    b
    • 4
    • 8
  • 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
    • 2
    • 16
  • 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
    • 3
    • 6
  • 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
    • 2
    • 5
  • n

    neokoenig

    03/11/2023, 11:29 AM
    I'm trying to get the Ortus PDF Lucee Extension working, but I'm getting:
    Copy code
    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
    Copy code
    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
    • 3
    • 5
  • 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:
    Copy code
    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
    • 2
    • 21
1...232425...30Latest