Skip to main content
Participating Frequently
June 27, 2025
Question

CF 2025 Error message: 'sqlserver package is not installed' (but it is installed)

  • June 27, 2025
  • 1 reply
  • 8080 views

Hello - Developer edition of CF 2025 running locally on a Mac (OS = Sequoia 15.5). DMG installer. A CFQuery to an MS SQL Server datasource produces this error message: 'Error Executing Database Query. The sqlserver package is not installed. You can install the package through the CLI package manager (/Applications/ColdFusion2025/cfusion/bin/cfpm.sh) by running the command : install sqlserver.'

The Packages section of the CF Administrator shows that the sqlserver package already is installed. Same if I attempt an install via the CLI package manager. I've also uninstalled and re-installed the package. Any thoughts?

(The query runs without error on CF 2016 or 2018. The datasource verifies in the Administrator (i.e., the 'OK' message.)


    1 reply

    Community Expert
    June 27, 2025

    I vaguely recall hearing about occasionally needing to delete the contents of felix-cache and restarting CF to use newly-added packages.

     

    Dave Watts, Eidolon LLC
    Charlie Arehart
    Community Expert
    Community Expert
    June 27, 2025

    Yep, Dave. It's a recommended step in most of the cf update technotes (not every one).

     

    Tom, you don't indicate if you've done any cf updates. Have you? In any case, stop cf, delete the felix-cache folder within cfusion/bin, then start cf and try again. Tell us how it goes. 

    /Charlie (troubleshooter, carehart. org)
    tom_4655Author
    Participating Frequently
    June 27, 2025

    Thanks, Dave and Charlie. No luck, I'm afraid. I stopped CF, deleted the felix-cache folder, also cleared any cache in my web browser, then restarted CF. Same error message (sqlserver package not installed).

    For good measure I then uninstalled the sqlserver package via the CF Administrator, stopped CF, deleted the felix-cache folder, restarted CF, reinstalled thesqlserver package (again via the Administrator), stop/start CF again. Same result (the sqlserver package not installed message).

    Looking in coldfusion-out.log I see this line:

    Jun 27, 2025 14:17:59 PM Error [pool-16-thread-1] - Unable to install sqlserver package: java.lang.NullPointerException: Cannot invoke "org.osgi.framework.BundleContext.getBundle(long)" because "context" is null
    There's a similar log entry for all the packages, in fact.