Commandbox - install coldbox - error but installs anyways

CommandBox:www.netxn.com> install coldbox
java.lang.ClassFormatError: Truncated class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
at railo.commons.lang.PCLBlock.loadClass(PCLBlock.java:175)
at railo.commons.lang.PCLBlock.findClass(PCLBlock.java:155)
at railo.commons.lang.PCLBlock.loadClass(PCLBlock.java:87)
at railo.commons.lang.PCLBlock.loadClass(PCLBlock.java:48)
at railo.commons.lang.PCLCollection.getClass(PCLCollection.java:132)
at railo.runtime.PageSourceImpl.loadPhysical(PageSourceImpl.java:248)
at railo.runtime.PageSourceImpl.loadPage(PageSourceImpl.java:166)
at railo.runtime.PageSourceImpl.loadPage(PageSourceImpl.java:856)
at railo.runtime.component.ComponentLoader.load(ComponentLoader.java:235)
at railo.runtime.component.ComponentLoader.loadComponent(ComponentLoader.java:41)
at railo.runtime.PageContextImpl.loadComponent(PageContextImpl.java:2890)
at railo.runtime.functions.other.CreateObject.doComponent(CreateObject.java:210)
at railo.runtime.functions.other.CreateObject.call(CreateObject.java:61)
at railo.runtime.functions.other.CreateObject.call(CreateObject.java:41)
at system.logging.logger_cfc$cf.udfCall3(/Users/gavinpickin/.CommandBox/cfml/system/wirebox/system/logging/Logger.cfc:313)
at system.logging.logger_cfc$cf.udfCall(/Users/gavinpickin/.CommandBox/cfml/system/wirebox/system/logging/Logger.cfc)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:93)
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307)
at railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:195)
at railo.runtime.type.scope.UndefinedImpl.callWithNamedValues(UndefinedImpl.java:757)
at railo.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:755)
at railo.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1557)
at system.logging.logger_cfc$cf.udfCall2(/Users/gavinpickin/.CommandBox/cfml/system/wirebox/system/logging/Logger.cfc:243)
at system.logging.logger_cfc$cf.udfCall(/Users/gavinpickin/.CommandBox/cfml/system/wirebox/system/logging/Logger.cfc)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:93)
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307)
at railo.runtime.type.UDFImpl.call(UDFImpl.java:208)
at railo.runtime.ComponentImpl._call(ComponentImpl.java:623)
at railo.runtime.ComponentImpl._call(ComponentImpl.java:506)
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1738)
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:724)
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1547)
at system.services.packageservice_cfc$cf.udfCall1(/Users/gavinpickin/.CommandBox/cfml/system/services/PackageService.cfc:87)
at system.services.packageservice_cfc$cf.udfCall(/Users/gavinpickin/.CommandBox/cfml/system/services/PackageService.cfc)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:93)
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307)
at railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:195)
at railo.runtime.ComponentImpl._call(ComponentImpl.java:624)
at railo.runtime.ComponentImpl._call(ComponentImpl.java:506)
at railo.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1755)
at railo.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:755)
at railo.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1557)
at commands.forgebox.install_cfc$cf.udfCall(/Users/gavinpickin/.CommandBox/cfml/commands/forgebox/install.cfc:101)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:93)
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307)
at railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:195)
at railo.runtime.ComponentImpl._call(ComponentImpl.java:624)
at railo.runtime.ComponentImpl._call(ComponentImpl.java:506)
at railo.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1755)
at railo.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:755)
at railo.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1557)
at system.services.commandservice_cfc$cf.udfCall1(/Users/gavinpickin/.CommandBox/cfml/system/services/CommandService.cfc:222)
at system.services.commandservice_cfc$cf.udfCall(/Users/gavinpickin/.CommandBox/cfml/system/services/CommandService.cfc)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:93)
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307)
at railo.runtime.type.UDFImpl.call(UDFImpl.java:208)
at railo.runtime.ComponentImpl._call(ComponentImpl.java:623)
at railo.runtime.ComponentImpl._call(ComponentImpl.java:506)
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1738)
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:724)
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1547)
at system.shell_cfc$cf.udfCall2(/Users/gavinpickin/.CommandBox/cfml/system/Shell.cfc:396)
at system.shell_cfc$cf.udfCall(/Users/gavinpickin/.CommandBox/cfml/system/Shell.cfc)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:93)
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307)
at railo.runtime.type.UDFImpl.call(UDFImpl.java:208)
at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:748)
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:724)
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1547)
at system.shell_cfc$cf.udfCall2(/Users/gavinpickin/.CommandBox/cfml/system/Shell.cfc:370)
at system.shell_cfc$cf.udfCall(/Users/gavinpickin/.CommandBox/cfml/system/Shell.cfc)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:93)
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307)
at railo.runtime.type.UDFImpl.call(UDFImpl.java:208)
at railo.runtime.ComponentImpl._call(ComponentImpl.java:623)
at railo.runtime.ComponentImpl._call(ComponentImpl.java:506)
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1738)
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:724)
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1547)
at users.gavinpickin._commandbox46.cfml.system.bootstrap_cfm$cf.call(/Users/gavinpickin/.CommandBox/cfml/system/Bootstrap.cfm:52)
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:909)
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:861)
at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:206)
at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:18)
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2212)
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2179)
at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:331)
at railo.runtime.engine.CFMLEngineImpl.cli(CFMLEngineImpl.java:632)
at railo.loader.engine.CFMLEngineWrapper.cli(CFMLEngineWrapper.java:249)
at railocli.CLIMain.run(CLIMain.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:293)
at cliloader.LoaderCLIMain.main(LoaderCLIMain.java:231)

Installing package: coldbox
Verifying package ‘coldbox’ in ForgeBox, please wait…
Verified entry in ForgeBox: ‘coldbox’
Starting download of: ‘coldbox’…
Redirecting to: ‘http://www.coldbox.org/download/coldbox/standalone/true’…
Redirecting to: ‘http://downloads.ortussolutions.com/ortussolutions/coldbox/4.0.0/coldbox-standalone-4.0.0.zip’…
100% [=====================================>] 362KB / 362KB ( 717KBps)
Done.
Uncompressing…
/www/www.netxn.com/box.json updated with dependency.
Installing to: /www/www.netxn.com/coldbox
→ 209 File(s) Installed
→ 0 File(s) ignored
Eureka, ‘coldbox’ has been installed!

I removed everything and reintalled, and it worked

But before I reinstalled, and after, when i start the server, and run it… I get this.

Railo 4.2.1.008 Error (expression)
Message invalid component definition, can’t find component [coldbox.system.Coldbox]
Stacktrace The Error Occurred in
/www/www.netxn.com/Application.cfc: line 31

29: // application start
30: public boolean function onApplicationStart(){
31: application.cbBootstrap = new coldbox.system.Coldbox( COLDBOX_CONFIG_FILE, COLDBOX_APP_ROOT_PATH, COLDBOX_APP_KEY, COLDBOX_APP_MAPPING );
32: application.cbBootstrap.loadColdbox();
33: return true;

Java Stacktrace invalid component definition, can’t find component [coldbox.system.Coldbox]
at railo.runtime.component.ComponentLoader.load(ComponentLoader.java:296):296
at railo.runtime.component.ComponentLoader.loadComponent(ComponentLoader.java:41):41
at railo.runtime.PageContextImpl.loadComponent(PageContextImpl.java:2890):2890
at railo.runtime.functions.other.CreateObject.doComponent(CreateObject.java:210):210
at railo.runtime.functions.other._CreateComponent.call(_CreateComponent.java:21):21
at application_cfc$cf.udfCall(/www/www.netxn.com/Application.cfc:31):31
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:93):93
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
at railo.runtime.type.UDFImpl.call(UDFImpl.java:208):208
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.listener.ModernAppListener.call(ModernAppListener.java:388):388
at railo.runtime.listener.ModernAppListener.onApplicationStart(ModernAppListener.java:266):266
at railo.runtime.PageContextImpl.initApplicationContext(PageContextImpl.java:2789):2789
at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:101):101
at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:18):18
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2212):2212
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2179):2179
at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:331):331
at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29):29
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790):790
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85):85
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61):61
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36):36
at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131):131
at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56):56
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43):43
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45):45
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63):63
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58):58
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70):70
at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76):76
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43):43
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43):43
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261):261
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247):247
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76):76
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166):166
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197):197
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759):759
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145):1145
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615):615
at java.lang.Thread.run(Thread.java:745):745

Timestamp 1/24/15 4:28:41 PM PST

Ls inside of the coldbox/system dir, this is what I see

Dir 0 Jan 24,2015 16:01:33 aop
Dir 0 Jan 24,2015 16:01:33 cache
Dir 0 Jan 24,2015 16:01:33 core
Dir 0 Jan 24,2015 16:01:33 includes
Dir 0 Jan 24,2015 16:01:33 interceptors
Dir 0 Jan 24,2015 16:01:33 ioc
Dir 0 Jan 24,2015 16:01:33 logging
Dir 0 Jan 24,2015 16:01:33 modules
Dir 0 Jan 24,2015 16:01:33 remote
Dir 0 Jan 24,2015 16:01:33 testing
Dir 0 Jan 24,2015 16:01:33 web
File 539 Jan 24,2015 16:01:33 Application.cfm
File 20692 Jan 24,2015 16:01:33 Bootstrap.cfc
File 2578 Jan 24,2015 16:01:33 EventHandler.cfc
File 18241 Jan 24,2015 16:01:33 FrameworkSupertype.cfc
File 4088 Jan 24,2015 16:01:33 Interceptor.cfc

Looking at this set of files… it should be coldbox.system.Bootstrap
I updated COmmandBox… and i got it from the latest and great… maybe a last minute update gone wrong with either the COLDBOX module or with the create app code.

You tell me :slight_smile:

I unzipped SimpleBE.zip from the Github and it has Bootstrap not Coldbox… so maybe the command box I pulled down was from before the update, a day ago.
So my bad probably… but would that be something that the update could handle?

That’s certainly a new one I’ve never seen before. Googling seems to imply that error is thrown when a jar/class file is damaged or corrupted. Is this a fresh install?

Also, please include the exact command you used. Were you in the interactive shell, or the native OS shell? Was this the first command you had ever run (that involved unpacking the jars) or had you run successful commands before this one?

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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

The problem is that you are trying to run a ColdBox 3.x template on ColdBox 4.0 and the bootstrap CFC has been renamed per our compatibility docs:

http://wiki.coldbox.org/wiki/Compatibility:4.0.0.cfm#Application.cfc_Bootstrap_changed

There are two ways to get the “coldbox create app” command to install a 4.0 skelton right now:

coldbox create app myApp skeleton=advancedScriptBE
coldbox create app myApp --installColdBoxBE

The BE stands for bleeding edge. Run “coldbox create app help” for more information.

When CommandBox releases next week, we will have it updated to install 4.0 templates by default so the BE bit won’t be necessary.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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