This is odd

Does this error msg look familiar?

-> 215 File(s) Installed
-> 0 File(s) ignored
BOOM GOES THE DYNAMITE!!
We’re truly sorry, but something horrible has gone wrong when starting up Comman
dBox.
Here’s what we know:.

Message:
Access is denied

Tag Context:
/commandbox/system/services/PackageService.cfc: line 679
called from /commandbox/system/services/PackageService.cfc: line 545
called from /commandbox/system/services/PackageService.cfc: line 330
called from /commandbox/commands/forgebox/install.cfc: line 94
called from /commandbox/system/services/CommandService.cfc: line 222
called from /commandbox/system/Shell.cfc: line 381
called from /Users/byron/.CommandBox/cfml/system/Bootstrap.cfm: line 42

Access is denied
at java.io.WinNTFileSystem.createFileExclusively(Native Method):-2
at java.io.File.createNewFile(Unknown Source):-1
at railo.commons.io.res.type.file.FileResource.getOutputStream(FileResou
rce.java:194):194
at railo.runtime.functions.file.FileStreamWrapperWrite._getOS(FileStream
WrapperWrite.java:121):121
at railo.runtime.functions.file.FileStreamWrapperWrite.write(FileStreamW
rapperWrite.java:52):52
at railo.runtime.functions.file.FileWrite.call(FileWrite.java:34):34
at railo.runtime.functions.file.FileWrite.call(FileWrite.java:15):15
at system.services.packageservice_cfc$cf.udfCall2(/commandbox/system/ser
vices/PackageService.cfc:679):679
at system.services.packageservice_cfc$cf.udfCall(/commandbox/system/serv
ices/PackageService.cfc):-1
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:92):92
at railo.runtime.type.UDFImpl._call(UDFImpl.java:306):306
at railo.runtime.type.UDFImpl.call(UDFImpl.java:207):207
at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:748):7
48
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(Va
riableUtilImpl.java:724):724
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1554):
1554
at system.services.packageservice_cfc$cf.udfCall1(/commandbox/system/ser
vices/PackageService.cfc:545):545
at system.services.packageservice_cfc$cf.udfCall(/commandbox/system/serv
ices/PackageService.cfc):-1
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:92):92
at railo.runtime.type.UDFImpl._call(UDFImpl.java:306):306
at railo.runtime.type.UDFImpl.call(UDFImpl.java:207):207
at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:748):7
48
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(Va
riableUtilImpl.java:724):724
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1554):
1554
at system.services.packageservice_cfc$cf.udfCall1(/commandbox/system/ser
vices/PackageService.cfc:330):330
at system.services.packageservice_cfc$cf.udfCall(/commandbox/system/serv
ices/PackageService.cfc):-1
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:92):92
at railo.runtime.type.UDFImpl._call(UDFImpl.java:306):306
at railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:194):194
at railo.runtime.ComponentImpl._call(ComponentImpl.java:624):624
at railo.runtime.ComponentImpl._call(ComponentImpl.java:506):506
at railo.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:17
55):1755
at railo.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(Varia
bleUtilImpl.java:755):755
at railo.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextI
mpl.java:1564):1564
at commands.forgebox.install_cfc$cf.udfCall(/commandbox/commands/forgebo
x/install.cfc:94):94
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:92):92
at railo.runtime.type.UDFImpl._call(UDFImpl.java:306):306
at railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:194):194
at railo.runtime.ComponentImpl._call(ComponentImpl.java:624):624
at railo.runtime.ComponentImpl._call(ComponentImpl.java:506):506
at railo.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:17
55):1755
at railo.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(Varia
bleUtilImpl.java:755):755
at railo.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextI
mpl.java:1564):1564
at system.services.commandservice_cfc$cf.udfCall1(/commandbox/system/ser
vices/CommandService.cfc:222):222
at system.services.commandservice_cfc$cf.udfCall(/commandbox/system/serv
ices/CommandService.cfc):-1
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:92):92
at railo.runtime.type.UDFImpl._call(UDFImpl.java:306):306
at railo.runtime.type.UDFImpl.call(UDFImpl.java:207):207
at railo.runtime.ComponentImpl._call(ComponentImpl.java:623):623
at railo.runtime.ComponentImpl._call(ComponentImpl.java:506):506
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1738):1738
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(Va
riableUtilImpl.java:724):724
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1554):
1554
at system.shell_cfc$cf.udfCall2(/commandbox/system/Shell.cfc:381):381
at system.shell_cfc$cf.udfCall(/commandbox/system/Shell.cfc):-1
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:92):92
at railo.runtime.type.UDFImpl._call(UDFImpl.java:306):306
at railo.runtime.type.UDFImpl.call(UDFImpl.java:207):207
at railo.runtime.ComponentImpl._call(ComponentImpl.java:623):623
at railo.runtime.ComponentImpl._call(ComponentImpl.java:506):506
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1738):1738
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(Va
riableUtilImpl.java:724):724
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1554):
1554
at users.byron._commandbox46.cfml.system.bootstrap_cfm$cf.call(/Users/by
ron/.CommandBox/cfml/system/Bootstrap.cfm:42):42
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:913):913

at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:865):865

at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener
.java:206):206
at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.ja
va:18):18
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2218):2218

at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2185):2185

at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:3
32):332
at railo.runtime.engine.CFMLEngineImpl.cli(CFMLEngineImpl.java:625):625
at railo.loader.engine.CFMLEngineWrapper.cli(CFMLEngineWrapper.java:249)
:249
at railocli.CLIMain.run(CLIMain.java:75):75
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method):-2
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source):-1
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source):-1
at java.lang.reflect.Method.invoke(Unknown Source):-1
at cliloader.LoaderCLIMain.main(LoaderCLIMain.java:210):210

C:>

i looks as though you were installing something, but access was denied when CommandBox tried to add a the dependency to the box.json file.

Since the installation appears that it wrote 215 files successfully, I’m not sure if it is actually a permissions issue. Sometimes Java can report “access denied” when the real issue is something else.

What’s the full command were you running?
What directory was the install happening in?
What operating system are you running this on?
Was there a box.json file already in that directory?
If you put a bit of debugging code before line 679 of PackageService, can you confirm the full path of the box.json file being written so see if it’s malformed?

You can output debugging info via
consoleLogger.info( “My debug message” );

Also, check the CommandBox log file for more info located in /.CommandBox/logs

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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