Has there been recent issues with Commandbox? I u...
# box-products
j
Has there been recent issues with Commandbox? I use it for quick spinups for client dev instances. Not had a problem like this previously. Created a new directory, changed over and ran box. Config to adobe@10 (client) Set port and host, turned the tray off (Linux) and tried to start it up. Failed to start. I can get a lucee instance up with server start dfengine=lucee. Tried that with adobe@10 and no co. Run with -console and see a JavaullPointer right after starting Flex. Jot sure if it is a coincidence. Runwar: Added websocket context [INFO ] 02/02 173117 INFO License Service: Flex 1.5 CF Edition enabled [INFO ] 02/02 173117 INFO Starting Flex 1.5 CF Edition [INFO ] 02/02 173117 INFO Macromedia Flex Build: 87315.134646 [ERROR] java.lang.NullPointerException [ERROR] at coldfusion.CfmServlet.init(CfmServlet.java:97) [ERROR] at coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121) [ERROR] at coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59) [ERROR] at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117) [ERROR] at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:309) Complete output in the message thread.
b
Are you getting an error? @Jeff Jones
j
edge (stopped) http://edge.local:8088 CF Engine: adobe 10.0.23+302580 Webroot: /home/jeff/CFWT/Sites/edge/ Last Started: 02-Feb-2022 172752 CommandBox> server start --debug --console √ | Starting Server |------------------------------ | start server in - /home/jeff/CFWT/Sites/edge/ | server name - edge | server config file - /home/jeff/CFWT/Sites/edge//server.json | Contacting ForgeBox to determine the latest & greatest version of [adobe 10]... Use an exact 'cfengine' version to skip this check. | OK, [adobe 10.0.23+302580] it is! | WAR/zip archive already installed. | Server start command: | /usr/lib/jvm/java-11-openjdk-amd64/bin/java | -jar /home/jeff/commandbox/lib/runwar-4.5.2.jar | --background=false | --host edge.local | --stop-port 37831 | --processname edge [adobe 10.0.23+302580] | --log-dir /home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/logs | --server-name edge | --tray-enable false | --dock-enable true | --directoryindex true | --timeout 240 | --proxy-peeraddress true | --cookie-secure false | --cookie-httponly false | --pid-file /home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/.pid.txt | --debug true | --gzip-enable true | --cfengine-name adobe | -war /home/jeff/CFWT/Sites/edge/ | --web-xml-path /home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/WEB-INF/web.xml | --http-enable true | --ssl-enable false | --ajp-enable false | --http2-enable true | --open-browser true | --open-url http://edge.local:8088 | --port 8088 | --urlrewrite-enable false | --predicate-file /home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/.predicateFile.txt | The server for /home/jeff/CFWT/Sites/edge/ is starting on http://edge.local:8088 ... |------------------------------ | √ | Setting Server Profile to [development] | |------------------------------------------------------ | | Profile set from server bound to localhost | | Block CF Admin disabled | | Block Sensitive Paths enabled | | Block Flash Remoting enabled | | Directory Browsing enabled | |------------------------------------------------------ [INFO ] Runwar: Enabling URL rewrite log level: DEBUG [DEBUG] Runwar: Server Mode: war [INFO ] Runwar: Starting RunWAR 4.5.2 [DEBUG] Runwar: Starting Server: edge.local [DEBUG] Runwar: HOST to be bound:edge.local [DEBUG] Runwar: Requisitioning ports edge.local:8088 (http) edge.local:37831 (stop) [DEBUG] Runwar: SERVER BUILDER:true [DEBUG] Runwar: Server Builder - PORT:8088 HOST:edge.local [INFO ] Runwar: HTTP2 Enabled:true [INFO ] Runwar: HTTP sslEnable:false [INFO ] Runwar: HTTP ajpEnable:false [INFO ] Runwar: HTTP warFile exists:true [INFO ] Runwar: HTTP warFile isDirectory:true [INFO ] Runwar: HTTP background:false [INFO ] Runwar: Adding additional lib dir of: /home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/WEB-INF/lib [DEBUG] Runwar: Initializing classloader with 17 libraries [DEBUG] Runwar: Server Mode: war [INFO ] Runwar: ****************************************************************************** [INFO ] Runwar: Starting - port:8088 stop-port:37831 warpathfile/home/jeff/CFWT/Sites/edge/ [INFO ] Runwar: context: / - version: 4.5.2 [INFO ] Runwar: web-dirs: ["\/home\/jeff\/CFWT\/Sites\/edge"] [DEBUG] Runwar: no aliases configured [INFO ] Runwar: Log Directory: /home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/logs [INFO ] Runwar: ****************************************************************************** [DEBUG] Runwar: Added shutdown hook [DEBUG] Runwar: Transfer Min Size: 100 [INFO ] Runwar: XNIO-Option TCP_NODELAY:true [INFO ] Runwar: XNIO-Option CONNECTION_HIGH_WATER:1000000 [INFO ] Runwar: XNIO-Option WORKER_TASK_MAX_THREADS:30 [INFO ] Runwar: XNIO-Option WORKER_IO_THREADS:8 [INFO ] Runwar: XNIO-Option WORKER_TASK_CORE_THREADS:30 [INFO ] Runwar: XNIO-Option CORK:true [INFO ] Runwar: XNIO-Option CONNECTION_LOW_WATER:1000000 [DEBUG] Runwar: Setting coldfusion.home: '/home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/WEB-INF/cfusion' [DEBUG] Runwar: Setting coldfusion.classpath: '/home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/WEB-INF/cfusion/lib/updates,/home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/WEB-INF/cfusion/lib/,/home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/WEB-INF/cfusion/lib/axis2,/home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/WEB-INF/cfusion/gateway/lib/,/home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/WEB-INF/cfusion/../cfform/jars,/home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/WEB-INF/cfusion/../flex/jars,/home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/WEB-INF/cfusion/lib/oosdk/lib,/home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/WEB-INF/cfusion/lib/oosdk/classes' [DEBUG] Runwar: Setting flex.dir (cfform): '/home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/WEB-INF/cfform' [DEBUG] Runwar: found WEB-INF: '/home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/WEB-INF' [INFO ] Runwar: Parsing '/home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/WEB-INF/web.xml' [DEBUG] Runwar: Setting coldfusion.compiler.outputDir: '/home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/WEB-INF/cfclasses' [DEBUG] Runwar: {cfx.registry.nativelibrary=cfregistry, coldfusion.compiler.outputDir=/home/jeff/commandbox/server/C12ED1B9C228538224B169AD7E7711BE-edge/adobe-10.0.23.302580/WEB-INF/cfclasses, cfx.report.nativelibrary=cfreport, cf.lib.path=./WEB-INF/cfusion/lib, cftags=/WEB-INF/cftags, cf.class.path=./WEB-INF/cfusion/lib/updates,./WEB-INF/cfusion/lib,./WEB-INF/cfusion/gateway/lib,./WEB-INF/flex/jars,./WEB-INF/cfform/jars,./WEB-INF/cfusion/lib/axis2} [DEBUG] Runwar: URL rewriting is disabled [DEBUG] Runwar: enabling path_info filter [DEBUG] Runwar: File cache is disabled [INFO ] Runwar: Extensions allowed by the default servlet for static files: 3gp,3gpp,7z,ai,aif,aiff,asf,asx,atom,au,avi,bin,bmp,btm,cco,crt,css,csv,deb,der,dmg,doc,docx,eot,eps,flv,font,gif,hqx,htc,htm,html,ico,img,ini,iso,jad,jng,jnlp,jpeg,jpg,js,json,kar,kml,kmz,m3u8,m4a,m4v,map,mid,midi,mml,mng,mov,mp3,mp4,mpeg,mpeg4,mpg,msi,msm,msp,ogg,otf,pdb,pdf,pem,pl,pm,png,ppt,pptx,prc,ps,psd,ra,rar,rpm,rss,rtf,run,sea,shtml,sit,svg,svgz,swf,tar,tcl,tif,tiff,tk,ts,ttf,txt,wav,wbmp,webm,webp,wmf,wml,wmlc,wmv,woff,woff2,xhtml,xls,xlsx,xml,xpi,xspf,zip,aifc,aac,apk,bak,bk,bz2,cdr,cmx,dat,dtd,eml,fla,gz,gzip,ipa,ia,indd,hey,lz,maf,markdown,md,mkv,mp1,mp2,mpe,odt,ott,odg,odf,ots,pps,pot,pmd,pub,raw,sdd,tsv,xcf,yml,yaml [INFO ] Runwar: welcome pages in deployment manager: [index.cfm, index.html, index.htm] [DEBUG] Runwar: Added websocket context [INFO ] 02/02 173117 INFO License Service: Flex 1.5 CF Edition enabled [INFO ] 02/02 173117 INFO Starting Flex 1.5 CF Edition [INFO ] 02/02 173117 INFO Macromedia Flex Build: 87315.134646 [ERROR] java.lang.NullPointerException [ERROR] at coldfusion.CfmServlet.init(CfmServlet.java:97) [ERROR] at coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121) [ERROR] at coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59) [ERROR] at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117) [ERROR] at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:309) [ERROR] at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:145) [ERROR] at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:588) [ERROR] at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:559) [ERROR] at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) [ERROR] at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) [ERROR] at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:601) [ERROR] at runwar.Server.startServer(Server.java:522) [ERROR] at runwar.Start.main(Start.java:123) [ERROR] javax.servlet.ServletException: java.lang.NullPointerException [ERROR] at coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:129) [ERROR] at coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59) [ERROR] at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117) [ERROR] at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:309) [ERROR] at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:145) [ERROR] at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:588) [ERROR] at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:559) [ERROR] at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) [ERROR] at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) [ERROR] at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:601) [ERROR] at runwar.Server.startServer(Server.java:522) [ERROR] at runwar.Start.main(Start.java:123) [ERROR] Caused by: java.lang.NullPointerException [ERROR] at coldfusion.CfmServlet.init(CfmServlet.java:97) [ERROR] at coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121) [ERROR] ... 11 more [DEBUG] Runwar: Running shutdown hook [DEBUG] Runwar: shutdown hook:stopServer() [INFO ] Runwar: ****************************************************************************** [INFO ] Runwar: * stopping server 'edge' (socket 37831) [INFO ] Runwar:
****************************************************************************** [ERROR] java.lang.NullPointerException [ERROR] at coldfusion.server.j2ee.CFStartUpServlet.destroy(CFStartUpServlet.java:92) [ERROR] at coldfusion.bootstrap.BootstrapServlet.destroy(BootstrapServlet.java:107) [ERROR] at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:115) [ERROR] at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.invokeDestroy(ManagedServlet.java:332) [ERROR] at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.stop(ManagedServlet.java:324) [ERROR] at io.undertow.servlet.core.ManagedServlet.stop(ManagedServlet.java:158) [ERROR] at io.undertow.servlet.core.DeploymentManagerImpl$3.call(DeploymentManagerImpl.java:617) [ERROR] at io.undertow.servlet.core.DeploymentManagerImpl$3.call(DeploymentManagerImpl.java:612) [ERROR] at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) [ERROR] at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) [ERROR] at io.undertow.servlet.core.DeploymentManagerImpl.stop(DeploymentManagerImpl.java:626) [ERROR] at runwar.Server.stopServer(Server.java:839) [ERROR] at runwar.Server$3.run(Server.java:788) [ERROR] io.undertow.servlet: UT015019: Failed to destroy ServletInfo{mappings=[], servletClass=class coldfusion.bootstrap.BootstrapServlet, name='ColdFusionStartUpServlet'} java.lang.RuntimeException at coldfusion.bootstrap.BootstrapServlet.destroy(BootstrapServlet.java:111) at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:115) at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.invokeDestroy(ManagedServlet.java:332) at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.stop(ManagedServlet.java:324) at io.undertow.servlet.core.ManagedServlet.stop(ManagedServlet.java:158) at io.undertow.servlet.core.DeploymentManagerImpl$3.call(DeploymentManagerImpl.java:617) at io.undertow.servlet.core.DeploymentManagerImpl$3.call(DeploymentManagerImpl.java:612) at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) at io.undertow.servlet.core.DeploymentManagerImpl.stop(DeploymentManagerImpl.java:626) at runwar.Server.stopServer(Server.java:839) at runwar.Server$3.run(Server.java:788) [DEBUG] Runwar: All deployments undeployed and underlying Undertow servers stopped [DEBUG] Runwar: Stopped server [DEBUG] Runwar: shutdown hook joining main thread [DEBUG] Runwar: Shutdown hook finished Server's output stream closed. It's been stopped elsewhere. Stopping server... ERROR (5.4.2+00453) Server process returned failing exit code [1]
That is what gets displayed in the console.
Havehad several other servers on here.
I uninstalled, removed my commandbox directory, no luck.
b
You're using the wrong version of java
CF 10 won't run on java 11
Copy code
/usr/lib/jvm/java-11-openjdk-amd64/bin/java
if you look at all your other servers, you probably have set something like
Copy code
server set jvm.javaVersion=openjdk8
into their
server.json
You can set that as the default version of java for ALL servers you start
Copy code
server java setDefault openjdk8
Then you don't need to set it into each new server you start
@Jeff Jones
j
Thanks
That last line will take care of all of them?
b
Unless they have a server.json that overrides it to something different, yet
That last line just sets a default for all servers
You can view all your server default settings with
Copy code
config show server.defaults
👍 1