WARNING: package com.sun.java.swing.plaf.windows not in java.desktop

I’m trying to upgrade commandbox and lucee, and I’m hitting an error I can’t get around. I’m running Ubuntu 22.04.5 LTS. I removed everything java-ish (How to completely uninstall Java? - Ask Ubuntu) and anything that looked like commandbox, installed commandbox according to Installation | CommandBox : CLI, Package Manager, REPL & More. box works as expected, from there update --system seems to make itself happy, but I can’t actually start my server.

I ran sudo apt install libappindicator-dev

I’ve tried a couple versions of sudo apt install openjdk-11-jdk with no apparent difference.

box server start --verbose --console
 √ | Starting Server
   |------------------------------
   | Looking for server JSON file by convention: /usr/local/webroot//server.json
   | webroot pulled from server's JSON: /usr/local/webroot/
   | Site name - webroot
   | Webroot - /usr/local/webroot/
   | Site config file - /usr/local/webroot//server.json
   | WAR/zip archive already installed.
   | Server start command: 
   |     /usr/lib/jvm/java-11-openjdk-amd64/bin/java 
   |     -Xmx6g 
   |     -Xms1025k 
   |     -cp /home/xxx/.CommandBox/lib/runwar-5.0.0.jar runwar.Start /usr/local/log//serverInfo.json
   | The server for /usr/local/webroot/ is starting on http://xxxx:8888 ...
   |------------------------------
   | √ | Setting site [webroot] Profile to [production]
   |   |-------------------------------------------------------------
   |   | Profile set from secure by default
   |   | Block CF Admin disabled
   |   | Block Sensitive Paths enabled
   |   | Block Flash Remoting enabled
   |   | Allowed Extensions: [tgz,txt]
   |   | Directory Browsing disabled
   |   | File Caching enabled
   |   |-------------------------------------------------------------
   | √ | Loading CFConfig into server
   |   |-------------------------------------------

WARNING: package com.sun.java.swing.plaf.windows not in java.desktop
Exception in thread "main" java.lang.NumberFormatException: For input string: "default"
    at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.base/java.lang.Integer.parseInt(Integer.java:652)
    at java.base/java.lang.Integer.parseInt(Integer.java:770)
    at runwar.options.SiteOptions.errorPages(SiteOptions.java:419)
    at runwar.options.ConfigParser.parseOptions(ConfigParser.java:476)
    at runwar.options.ConfigParser.<init>(ConfigParser.java:34)
    at runwar.Start.main(Start.java:37)

Server's output stream closed. It's been stopped elsewhere.

Stopping server...



ERROR (6.0.0+00787)

Server process returned failing exit code [1]

Help?

That’s a bug that was fixed in CommandBox 6.1, which is currently in release candidate status. If you install 6.1.0-rc, everything should work again.

1 Like

Thanks! That got everything going again.

1 Like