Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce
Reporter/Name(from Bugbase): Bradley Wood / Bradley Wood ()
Created: 03/15/2018
Components: Language
Versions: 11.0
Failure Type: Crash
Found In Build/Fixed In Build: CF11 update 13 /
Priority/Frequency: Normal / Unknown
Locale/System: ALL / Platforms All
Vote Count: 0
Problem Description:
The following code is erroring when being run from inside an event gateway.
expandPath( appMapping )
The value of the appMapping variable is "cbroot". When I debug getAPplicationMetadata().mappings.keyList() it shows there is a mapping called "/cbroot" in existence.
The error is:
An exception occurred while invoking an event handler method from Application.cfc. The method name is: onApplicationStart."
coldfusion.runtime.EventHandlerException: Event handler exception.
at coldfusion.runtime.AppEventInvoker.onApplicationStart(AppEventInvoker.java:239)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:336)
at coldfusion.filter.EventRequestMonitorFilter.invoke(EventRequestMonitorFilter.java:47)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.eventgateway.EventProxy.invokeComponent(EventProxy.java:66)
at coldfusion.eventgateway.EventProxy.invokeComponent(EventProxy.java:47)
at coldfusion.eventgateway.EventRequestHandler.invokeCFC(EventRequestHandler.java:185)
at coldfusion.eventgateway.EventRequestHandler.processRequest(EventRequestHandler.java:111)
at coldfusion.eventgateway.EventRequestDispatcher$Task.run(EventRequestDispatcher.java:130)
at coldfusion.util.SimpleWorkerThread.run(SimpleThreadPool.java:214)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at coldfusion.util.Utils.expandPath(Utils.java:494)
at coldfusion.runtime.CFPage.ExpandPath(CFPage.java:3940)
at cfApplicationLoader2ecfc1888534889$funcLOADCONFIGURATION.runFunction(D:\wwwroot\coldbox\system\web\config\ApplicationLoader.cfc:103)
Attachments:
Comments: