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

    elpete

    03/23/2023, 5:36 PM
    Likely a problem with the semantic release library
  • b

    bdw429s

    03/23/2023, 7:35 PM
    https://twitter.com/bdw429s/status/1638987316445446144
    ❤️ 2
  • b

    bdw429s

    03/23/2023, 8:01 PM
    https://twitter.com/bdw429s/status/1638994366260977664
  • r

    Ryan Albrecht

    03/23/2023, 8:45 PM
    Coldbox scheduler question. The docs state
    Modules can easily tie in to ColdBox's async scheduling engine by defining a config/Scheduler.cfc file.
    but calling
    getInstance("appScheduler@coldbox").getTasks()
    does not list an tasks defined in a module. Do i have to access the module's scheduler in some way to see what task each module has registered?
    b
    • 2
    • 9
  • n

    nolanerck

    03/24/2023, 12:47 AM
    Hoping somebody can spot where this is going sideways for me... All of our APIs are in a module, separate from the main web app. We have various API handlers that all extend our BaseRest.cfc, which in turn extends coldbox.system.RestHandler. Inside our BaseRest.cfc we have an aroundHandler() which does some security checks. Our API endpoints all contain code that looks about like so: event.getResponse() .setdata( rslt.data ) .setPagination( offset = rslt.pagination.offset, maxRows = 7, page = rslt.pagination.page, totalRecords = rslt.pagination.totalRecords, totalPages = rslt.pagination.totalPages ); If I comment out the aroundHandler(), it works fine -- I get the JSON back that I expect. If I un-comment aroundHandler() (even if the method itself is totally empty -- no running code, just the method signature), it stops returning JSON, and instead treats my API handler as a regular page in a ColdBox app -- it tries loading a layout, then a view, etc. With aroundHandler() turned on, I have to manually call event.renderData() in order to get the JSON back as expected. Clearly something is wrong. I think I need a fresh set of eyes -- any ideas, gang? Thanks for the help.
    j
    b
    • 3
    • 16
  • b

    Brandon Brown

    03/24/2023, 2:39 PM
    This has probably been answered before but I can't seem to find a solution. I have a parent and child component. Both should be able to be used independently. Each one has their own dependencies declared using the
    init
    method. I was hoping to be able to
    extend
    the child component from the parent and just call the methods directly but the dependencies in the child component don't seem to get injected. I know the simple workaround is to just inject the child component instead but is there any way to use inheritance instead?
    b
    r
    • 3
    • 19
  • b

    bdw429s

    03/24/2023, 4:02 PM
    https://twitter.com/bdw429s/status/1639295611110342656
    🤘 5
    🤘🏻 1
    🤘🏼 1
  • m

    Marco

    03/27/2023, 6:30 PM
    Having the CF server path I can successfully install CF2021 packages hard coding the .commandbox server name in the path ( i.e. cfpm.bat install sqlserver ). Q: how can I get the the server name dynamically? (or is there a better way to install CF2021 packages with commandbox?)
    b
    r
    • 3
    • 19
  • s

    Slackbot

    03/28/2023, 6:06 PM
    This message was deleted.
    s
    r
    e
    • 4
    • 15
  • g

    gsr

    04/01/2023, 9:02 PM
    for amazon s3, i am using the sdk by ortus, i am trying to figure which method replaces this one StoreSetACL (cf inbuild functionality, wants to give access of read_write to a single email address)
    j
    • 2
    • 12
  • m

    Mason B

    04/03/2023, 8:07 PM
    Hello, I am having some issues with getting CommandBox up and running, was hoping for some help. I followed the installation guide found here for the Linux Yum version, as I am running amazon-linux-2 on AWS Cloud-9. I have the
    /etc/yum.repos.d/commandbox.repo
    file, I did the yum update, and install. If I try to install again it confirms it is already installed. I also have java installed, JDK 17.0.6. If I try to start command box or run
    box version
    I get the error message:
    Unable to make public boolean java.util.Hashtable$Enumerator.hasMoreElements() accessible: module java.base does not "opens java.util" to unnamed module @4b45dcb8
    . I have even tried uninstalling/reinstalling commandbox, with no luck. Any ideas would be much appreciated. I can also post the full stack trace if necessary
    r
    b
    • 3
    • 4
  • g

    gsr

    04/03/2023, 9:22 PM
    another question about amazons3, i am using the function putObjectFile using the Amazonsdk by ortus, when i pass the acl='public-read', the api throws an error saying the acl not allowed, is there a change happened, if yes, how can i add rights to the file in there
    b
    • 2
    • 43
  • g

    gsr

    04/03/2023, 9:24 PM
    i even tried using setAccessPolicy and i get a Message, The bucket does not allow ACLs
  • g

    gsr

    04/03/2023, 9:38 PM
    any ide anyone?
  • j

    John Liljegren

    04/04/2023, 7:48 PM
    In server.json, I'm confused as to what app.libDirs is doing. If I use this.javaSettings, my jar works fine placed into a /jars folder in my project, but if I use app.libDirs then it complains about missing dependencies that are installed in ACF by default (like commons-logging.jar). Is that expected behavior?
    b
    • 2
    • 10
  • c

    Cavan Vannice

    04/05/2023, 2:25 PM
    I'm looking to run a ColdBox scheduled task 4 times a day on weekdays between 4:30pm and 7:00pm. I was hoping to the below code but it seems to only run at the last time. Any thoughts on what I should actually do?
    Copy code
    task( "Warehouse: Tracking Numbers" )
    					.call( ()=>getInstance( "tasks.warehouse_tasks" ).tracking_emails() )
    					.everyDayAt( "16:30" )
    					.everyDayAt( "17:00" )
    					.everyDayAt( "18:30" )
    					.everyDayAt( "19:00" )
    					.onEnvironment( [ "production" ] );
    d
    e
    • 3
    • 8
  • j

    Jamison Johnson

    04/05/2023, 5:24 PM
    @bdw429s Have a dev that is rebuilding his laptop and is getting errors when trying to install cfconfig... issue with github... is there currently a disruption of service? Thanks.
    b
    • 2
    • 8
  • j

    Jason Ryan

    04/05/2023, 8:46 PM
    Hey all. Been struggling for hours trying to get DI working via a cfc property with WireBox. Working in a legacy CFML application, non-coldbox. The CFC's I'd like to inject live in a
    modules
    folder (which for posterity is a mapped directory in
    .cfconfig
    for
    /modules
    , and lives in the same folder as
    Application.cfc
    ) Have the following WireBox initialization in
    Application.cfc
    Copy code
    function onApplicationStart() {
      application.wirebox = createObject("component","wirebox.system.ioc.Injector").init();
      application.wirebox.getBinder().mapDirectory("modules").noInit().asSingleton(); // Attempt 1
      application.wirebox.getBinder().scanLocations(["modules"]); // Attempt 2
    }
    Here's where the error comes in: I have a
    UserService.cfc
    component in which I am trying to inject
    UserData.cfc
    Copy code
    component accessors="true" singleton {
     
      property name="UserData" inject="UserData";
     
      function init(){
        return this;
      }
     
       function getUser(userID) {
        return UserData.getUserByID(userID)
      }
    }
    But I get
    variable UserData does not exist
    . Seems the injection isn't happening. I was under the impression that
    mapDirectory
    or
    scanLocations
    would automatically initialize all the CFC's for WIreBox to do it's thang. Am I missing some configuration item here?
    b
    • 2
    • 16
  • g

    gsr

    04/06/2023, 8:30 PM
    what is the best way to use the created bucket in amazon s3 in oner location to be avaliable in another region, will i have to delet it and create a new one in different one or just using setAmSRegion will do, i am using amazon SDK
  • g

    gsr

    04/06/2023, 8:30 PM
    from ortus
    j
    • 2
    • 3
  • c

    chapmandu

    04/07/2023, 1:17 AM
    Hey all.. I have set my system's java default to 17.. now understandably some box extensions (mainly cfformat) are not working.. What is the best way to configure my system's commandbox installation to always use Java 11?
    r
    • 2
    • 2
  • r

    ryan

    04/07/2023, 5:09 AM
    I'm attempting to configure commandbox on a Jenkins server that is shared by many different clients. Therefore, I cannot have commandbox placed in a common area and must keep commandbox executables specific to each client for versioning reasons. This also means that I cannot have box.exe as an environment variable to be called by Jenkins as a Windows Batch script. I have the box.exe placed in a client folder and I am pointing to it in the Jenkins Windows Batch script and trying to figure out how to also have commandbox understand where the box.json file is located in order to exucute the
    update --force
    script within Jenkins Windows Batch. I will show an example of the issue in this thread to save public real estate.
    b
    • 2
    • 10
  • r

    ryan

    04/07/2023, 8:11 PM
    Using ColdBox, I'm needing to use remote functions that exist in the models directory for the moment until I get them all converted into using handlers. On my local machine, all of this works. However, I'm setting up a staging server using IIS and using the ColdBox IIS web.config template given from Ortus. I have ajax calls on remote cfc functions within the models directory that are not found on the Staging server as a 404 error, when in fact, they are definitely in the right place. I added an IIS rule in the web.config to allow for cfc files, but it didn't help at all. Any ideas?
    b
    • 2
    • 3
  • r

    raymondcamden

    04/11/2023, 5:50 PM
    what's the easiest way to tell a box server to switch from lucee to acf? ie, i did a 'box server start' in a directory and it worked fine, but i need to test something in acf now
    r
    b
    • 3
    • 5
  • r

    Ryan Albrecht

    04/11/2023, 9:07 PM
    using the commandbox docker image can I specifiy the JVM memory size in my docker-compose file?
    b
    s
    j
    • 4
    • 47
  • p

    pegarm

    04/12/2023, 6:09 PM
    Has anyone encountered a "Element MIXERUTIL is undefined in a Java object of type class coldfusion.runtime.VariableScope." error when setting up a new ColdBox application? My google-fu is failing me.
    Screen Recording 2023-04-12 at 11.02.20 AM.mov
    r
    d
    b
    • 4
    • 15
  • r

    ryan

    04/12/2023, 9:30 PM
    Is commandbox capable of handling the Solr Server in CFAdmin?
    b
    • 2
    • 29
  • d

    David Rogers

    04/13/2023, 12:20 PM
    hey is there a direct path to hooking getInstance?
    s
    b
    • 3
    • 58
  • r

    Ryan Albrecht

    04/13/2023, 3:43 PM
    @bdw429s im getting this error when running commandbox
  • r

    Ryan Albrecht

    04/13/2023, 3:43 PM
    image.png
    b
    r
    • 3
    • 97
1...252627...30Latest