Error when doing an upgrade to CommandBox 3.1.0

First I upgraded CommandBox from 3.0 to 3.1.I did this in Git Bash did not work. Tried again in DOS running as admin and it worked. Then ran the command to download adobe cf 11. Got a strange error.
The server for D:\projects\newtestdir is starting on 127.0.0.1:49785… type ‘se
rver status’ to see result
CommandBox:newtestdir> lucee.commons.cli.CommandException: Exception in thread "
main" java.lang.NullPointerException
at runwar.AgentInitialization.findLocalJarOrZipFileFromLocationOfCurrentClassFil
e(AgentInitialization.java:108)
at runwar.AgentInitialization.getPathToJarFileContainingThisClass(AgentInitializ
ation.java:96)
at runwar.AgentInitialization.discoverPathToJarFile(AgentInitialization.java:57)

at runwar.AgentInitialization.loadAgentFromLocalJarFile(AgentInitialization.java
:35)
at runwar.Server.startServer(Server.java:204)

at lucee.commons.cli.Command.execute(Command.java:69)
at lucee.runtime.tag._Execute._run(_Execute.java:81)
at lucee.runtime.tag._Execute.run(_Execute.java:72)

Next I tried deleting the .CommandBox folder in my user home and that broke as well. Same error. I do have a space in my user name directory. Not sure if that is causing issues.

The server for D:\projects\newtestdir is starting on 127.0.0.1:51669… type ‘se
rver status’ to see result
CommandBox:newtestdir> lucee.commons.cli.CommandException: Exception in thread "
main" java.lang.NullPointerException
at runwar.AgentInitialization.findLocalJarOrZipFileFromLocationOfCurrentClassFil
e(AgentInitialization.java:108)
at runwar.AgentInitialization.getPathToJarFileContainingThisClass(AgentInitializ
ation.java:96)
at runwar.AgentInitialization.discoverPathToJarFile(AgentInitialization.java:57)

at runwar.AgentInitialization.loadAgentFromLocalJarFile(AgentInitialization.java
:35)
at runwar.Server.startServer(Server.java:204)

at lucee.commons.cli.Command.execute(Command.java:69)
at lucee.runtime.tag._Execute._run(_Execute.java:81)
at lucee.runtime.tag._Execute.run(_Execute.java:72)
The server for D:\projects\newtestdir is starting on 127.0.0.1:49785… type 'se

I do have a space in my user name directory. Not sure if that is causing issues.

That actually seems like a promising culprit. Is the box.exe in a subfolder of your user name directory? In other words, does the full path to box.exe contain a space?

If so, try placing the box.exe somewhere else and running it from there.

Here’s the line of code that’s erroring:
https://github.com/cfmlprojects/runwar/blob/master/src/runwar/AgentInitialization.java#L108

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com