Strange module/wirebox issue on Railo

I’ve got an odd issue, where as soon as a drop a module into my application, the entire thing breaks. Funnily enough, if I rename the module it seems to be ok – which is a little strange. It’s also incredibly hard to debug, as the error is pretty generic.

My app starts up, loads the first of 5 modules, but stops at the third (I see this in my log):

“DEBUG”,“files”,“11/20/2012”,“16:13:56”,“coldbox.system.web.services.ModuleService”,“Module bugs registered successfully.”

“DEBUG”,“files”,“11/20/2012”,“16:13:56”,“coldbox.system.web.services.ModuleService”,“Module bv registered successfully.”

“DEBUG”,“files”,“11/20/2012”,“16:13:56”,“coldbox.system.web.services.ModuleService”,“Module events registered successfully.”

So it’s basically happening trying to register the fourth module….

Here’s a full stack trace – if anyone has any suggestions or has seen anything like this before I’d welcome any help in getting to the bottom of it.

String index out of range: -1

java.lang.StringIndexOutOfBoundsException

The Error Occurred in

/fs/sites/ebiz/resources/com/coldbox/system/logging/LogBox.cfc: line 132

130:

131: // is category object?

132: if( isObject(arguments.category) ){ arguments.category = getMetadata(arguments.category).name; }

133:

134: //trim cat, just in case

String index out of range: -1

at java.lang.String.substring(String.java:1952):1952

at java.lang.String.substring(String.java:1925):1925

at railo.runtime.PageSourceImpl.createComponentName(PageSourceImpl.java:576):576

at railo.runtime.PageSourceImpl.getComponentName(PageSourceImpl.java:525):525

at railo.runtime.ComponentImpl.getMetaData(ComponentImpl.java:1430):1430

at railo.runtime.ComponentImpl.getMetaData(ComponentImpl.java:1367):1367

at railo.runtime.functions.other.GetMetaData.getMetaData(GetMetaData.java:76):76

at railo.runtime.functions.other.GetMetaData.call(GetMetaData.java:50):50

at railo.runtime.functions.other.GetMetaData.call(GetMetaData.java:36):36

at system.logging.logbox_cfc$cf._1(/fs/sites/ebiz/resources/com/coldbox/system/logging/LogBox.cfc:132):132

at system.logging.logbox_cfc$cf.udfCall(/fs/sites/ebiz/resources/com/coldbox/system/logging/LogBox.cfc):-1

at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:102):102

at railo.runtime.type.UDFImpl._call(UDFImpl.java:370):370

at railo.runtime.type.UDFImpl.call(UDFImpl.java:283):283

at railo.runtime.ComponentImpl._call(ComponentImpl.java:606):606

at railo.runtime.ComponentImpl._call(ComponentImpl.java:489):489

at railo.runtime.ComponentImpl.call(ComponentImpl.java:1779):1779

at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:723):723

at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1506):1506

at system.web.services.moduleservice_cfc$cf._2(/fs/sites/ebiz/resources/com/coldbox/system/web/services/ModuleService.cfc:461):461

at system.web.services.moduleservice_cfc$cf.udfCall(/fs/sites/ebiz/resources/com/coldbox/system/web/services/ModuleService.cfc):-1

at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:102):102

at railo.runtime.type.UDFImpl._call(UDFImpl.java:370):370

at railo.runtime.type.UDFImpl.call(UDFImpl.java:283):283

at railo.runtime.type.util.StructSupport.call(StructSupport.java:240):240

at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:723):723

at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1506):1506

at system.web.services.moduleservice_cfc$cf._1(/fs/sites/ebiz/resources/com/coldbox/system/web/services/ModuleService.cfc:216):216

at system.web.services.moduleservice_cfc$cf.udfCall(/fs/sites/ebiz/resources/com/coldbox/system/web/services/ModuleService.cfc):-1

at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:102):102

at railo.runtime.type.UDFImpl._call(UDFImpl.java:370):370

at railo.runtime.type.UDFImpl.call(UDFImpl.java:283):283

at railo.runtime.type.util.StructSupport.call(StructSupport.java:240):240

at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:723):723

at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1506):1506

at system.web.services.moduleservice_cfc$cf._1(/fs/sites/ebiz/resources/com/coldbox/system/web/services/ModuleService.cfc:106):106

at system.web.services.moduleservice_cfc$cf.udfCall(/fs/sites/ebiz/resources/com/coldbox/system/web/services/ModuleService.cfc):-1

at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:102):102

at railo.runtime.type.UDFImpl._call(UDFImpl.java:370):370

at railo.runtime.type.UDFImpl.call(UDFImpl.java:283):283

at railo.runtime.type.util.StructSupport.call(StructSupport.java:240):240

at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:723):723

at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1506):1506

at system.web.services.moduleservice_cfc$cf._1(/fs/sites/ebiz/resources/com/coldbox/system/web/services/ModuleService.cfc:40):40

at system.web.services.moduleservice_cfc$cf.udfCall(/fs/sites/ebiz/resources/com/coldbox/system/web/services/ModuleService.cfc):-1

at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:102):102

at railo.runtime.type.UDFImpl._call(UDFImpl.java:370):370

at railo.runtime.type.UDFImpl.call(UDFImpl.java:283):283

at railo.runtime.ComponentImpl._call(ComponentImpl.java:606):606

at railo.runtime.ComponentImpl._call(ComponentImpl.java:489):489

at railo.runtime.ComponentImpl.call(ComponentImpl.java:1779):1779

at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:723):723

at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1506):1506

at system.web.services.loaderservice_cfc$cf.udfCall(/fs/sites/ebiz/resources/com/coldbox/system/web/services/LoaderService.cfc:76):76

at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:102):102

at railo.runtime.type.UDFImpl._call(UDFImpl.java:370):370

at railo.runtime.type.UDFImpl.call(UDFImpl.java:283):283

at railo.runtime.ComponentImpl._call(ComponentImpl.java:606):606

at railo.runtime.ComponentImpl._call(ComponentImpl.java:489):489

at railo.runtime.ComponentImpl.call(ComponentImpl.java:1779):1779

at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:723):723

at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1506):1506

at system.coldbox_cfc$cf._1(/fs/sites/ebiz/resources/com/coldbox/system/Coldbox.cfc:71):71

at system.coldbox_cfc$cf.udfCall(/fs/sites/ebiz/resources/com/coldbox/system/Coldbox.cfc):-1

at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:102):102

at railo.runtime.type.UDFImpl._call(UDFImpl.java:370):370

at railo.runtime.type.UDFImpl.call(UDFImpl.java:283):283

at railo.runtime.type.util.StructSupport.call(StructSupport.java:240):240

at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:723):723

at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1506):1506

at system.coldbox_cfc$cf._1(/fs/sites/ebiz/resources/com/coldbox/system/Coldbox.cfc:102):102

at system.coldbox_cfc$cf.udfCall(/fs/sites/ebiz/resources/com/coldbox/system/Coldbox.cfc):-1

at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:102):102

at railo.runtime.type.UDFImpl._call(UDFImpl.java:370):370

at railo.runtime.type.UDFImpl.call(UDFImpl.java:283):283

at railo.runtime.ComponentImpl._call(ComponentImpl.java:606):606

at railo.runtime.ComponentImpl._call(ComponentImpl.java:489):489

at railo.runtime.ComponentImpl.call(ComponentImpl.java:1779):1779

at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:723):723

at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1506):1506

at egroup.application_cfc$cf.udfCall(/fs/sites/ebiz/resources/eGroup/v1.4.5/Application.cfc:60):60

at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:102):102

at railo.runtime.type.UDFImpl._call(UDFImpl.java:370):370

at railo.runtime.type.UDFImpl.call(UDFImpl.java:283):283

at railo.runtime.ComponentImpl._call(ComponentImpl.java:606):606

at railo.runtime.ComponentImpl._call(ComponentImpl.java:489):489

at railo.runtime.ComponentImpl.call(ComponentImpl.java:1779):1779

at railo.runtime.listener.ModernAppListener.call(ModernAppListener.java:350):350

at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:111):111

at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:18):18

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

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

at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:312):312

at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29):29

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803):803

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290):290

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206):206

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233):233

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175):175

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128):128

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102):102

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109):109

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286):286

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844):844

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583):583

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447):447

at java.lang.Thread.run(Thread.java:722):722