Update getServerIP() so it avoids looking at the cgi scope as it can cause issues on ACF
Description
Activity
Leonardo FloresMarch 22, 2022 at 8:09 PM
Btw this was detected on ColdFusion 2018 with update 13.
Leonardo FloresMarch 22, 2022 at 7:00 PM
Here is an abstract version of the exception:
"Error","Thread-13","03/22/22","00:02:59","","Error invoking CFC for gateway EmailRuleActionQueue_EventGateway: Event handler exception. {GATEWAYTYPE={CFMLGateway},CFCMETHOD={sendToActionQueue},DATA={{site_id={304},fromEmail={devsfcatering@boudinbakery.com},CLIENTID={0},EMAILSENDNOW={true},altSystemLanguage={},message={EmailRule Gateway Send To Action Queue called @ {ts '2022-03-22 00:02:59'}},ORDERID={1493237},emailRuleIdList={10},systemLanguage={en},datasource={304_dev},method={sendToActionQueue},enableAltSystemLanguage={false},server_name={localhost},timeout={3000},noEmail={noemail@boudinbakery.com}}},GATEWAYID={EmailRuleActionQueue_EventGateway},CFCTIMEOUT={3000},ORIGINATORID={CFMLGateway}}. 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:246)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:418)
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.UnsupportedOperationException
at coldfusion.cfc.DummyHttpServletRequest.getLocalAddr(DummyHttpServletRequest.java:155)
at coldfusion.runtime.CgiScope.resolve(CgiScope.java:171)
at coldfusion.runtime.CgiScope.resolveName(CgiScope.java:360)
at coldfusion.runtime.Scope.get(Scope.java:60)
at coldfusion.runtime.DotResolver.resolve(DotResolver.java:51)
at coldfusion.runtime.DotResolver.resolve(DotResolver.java:87)
at coldfusion.runtime.NeoPageContext.SymTab_resolveSplitName(NeoPageContext.java:1234)
at coldfusion.runtime.NeoPageContext.SymTab_resolveSplitName(NeoPageContext.java:1222)
at coldfusion.runtime.NeoPageContext.SymTab_resolveDottedName(NeoPageContext.java:1202)
at coldfusion.runtime.NeoPageContext.findAttribute(NeoPageContext.java:712)
at coldfusion.runtime.CfJspPage._isNull(CfJspPage.java:4827)
at cfUtil2ecfc669916289$funcGETSERVERIP.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\core\util\Util.cfc:91)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:830)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:613)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:438)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3627)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3604)
at cfScheduledTask2ecfc44158086$funcINIT.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\async\tasks\ScheduledTask.cfc:197)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:485)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:609)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:835)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:641)
at coldfusion.runtime.CFPage.___createObjectInternal(CFPage.java:14543)
at coldfusion.runtime.CFPage._createObject(CFPage.java:14518)
at cfScheduledExecutor2ecfc1336294329$funcNEWTASK.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\async\executors\ScheduledExecutor.cfc:175)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:485)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:609)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:835)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:641)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3549)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3524)
at cfScheduledExecutor2ecfc1336294329$funcNEWSCHEDULE.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\async\executors\ScheduledExecutor.cfc:159)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:485)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:830)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:613)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:438)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3627)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3604)
at cfCacheBoxProvider2ecfc957734190$funcCONFIGURE.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\cache\providers\CacheBoxProvider.cfc:140)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:830)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:613)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:438)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3627)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3604)
at cfCacheFactory2ecfc38684605$funcREGISTERCACHE.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\cache\CacheFactory.cfc:728)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:485)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4175)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4155)
at cfCacheFactory2ecfc38684605$funcCREATECACHE.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\cache\CacheFactory.cfc:679)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:609)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4116)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4097)
at cfCacheFactory2ecfc38684605$funcCONFIGURE.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\cache\CacheFactory.cfc:239)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4175)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4155)
at cfCacheFactory2ecfc38684605$funcINIT.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\cache\CacheFactory.cfc:180)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:830)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:613)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:438)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3627)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3604)
at cfLoaderService2ecfc284293036$funcCREATECACHEBOX.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\web\services\LoaderService.cfc:227)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:485)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4175)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4155)
at cfLoaderService2ecfc284293036$funcLOADAPPLICATION.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\web\services\LoaderService.cfc:66)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:485)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:830)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:613)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:438)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3627)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3604)
at cfBootstrap2ecfc2049049488$funcLOADCOLDBOX.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\Bootstrap.cfc:110)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:830)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:613)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:438)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3627)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3604)
at cfApplicationFramework2ecfc826516965$funcONAPPLICATIONSTART.runFunction(C:\inetpub\wwwroot\development\repository\framework\ApplicationFramework.cfc:81)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:485)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:830)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:613)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:438)
at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:115)
at coldfusion.runtime.AppEventInvoker.onApplicationStart(AppEventInvoker.java:238)
... 12 more
"Error","scheduler-1","03/22/22","00:03:12","","com.sun.mail.util.MailConnectException: Couldn't connect to host, port: 127.0.0.1, 25; timeout 60000; nested exception is: java.net.ConnectException: Connection refused: connect"
com.sun.mail.util.MailConnectException: Couldn't connect to host, port: 127.0.0.1, 25; timeout 60000;
nested exception is:
java.net.ConnectException: Connection refused: connect
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2209)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
at javax.mail.Service.connect(Service.java:366)
at coldfusion.mail.MailSpooler.getConnection(MailSpooler.java:1614)
at coldfusion.mail.MailSpooler.deliver(MailSpooler.java:1333)
at coldfusion.mail.MailSpooler.sendMail(MailSpooler.java:1251)
at coldfusion.mail.MailSpooler.deliverStandard(MailSpooler.java:1690)
at coldfusion.mail.MailSpooler.run(MailSpooler.java:1655)
at coldfusion.scheduling.ThreadPool.run(ThreadPool.java:260)
at coldfusion.scheduling.WorkerThread.run(WorkerThread.java:71)
Caused by: java.net.ConnectException: Connection refused: connect
at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method)
at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
at java.base/java.net.Socket.connect(Socket.java:591)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:357)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:238)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2175)
... 9 more
"Error","Thread-13","03/22/22","07:09:52","","Error invoking CFC for gateway EmailRuleActionQueue_EventGateway: Event handler exception. {GATEWAYTYPE={CFMLGateway},CFCMETHOD={sendToActionQueue},DATA={{site_id={304},fromEmail={devsfcatering@boudinbakery.com},CLIENTID={0},EMAILSENDNOW={true},altSystemLanguage={},message={EmailRule Gateway Send To Action Queue called @ {ts '2022-03-22 07:09:50'}},ORDERID={1493237},emailRuleIdList={10},systemLanguage={en},datasource={304_dev},method={sendToActionQueue},enableAltSystemLanguage={false},server_name={localhost},timeout={3000},noEmail={noemail@boudinbakery.com}}},GATEWAYID={EmailRuleActionQueue_EventGateway},CFCTIMEOUT={3000},ORIGINATORID={CFMLGateway}}. 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:246)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:418)
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.UnsupportedOperationException
at coldfusion.cfc.DummyHttpServletRequest.getLocalAddr(DummyHttpServletRequest.java:155)
at coldfusion.runtime.CgiScope.resolve(CgiScope.java:171)
at coldfusion.runtime.CgiScope.resolveName(CgiScope.java:360)
at coldfusion.runtime.Scope.get(Scope.java:60)
at coldfusion.runtime.DotResolver.resolve(DotResolver.java:51)
at coldfusion.runtime.DotResolver.resolve(DotResolver.java:87)
at coldfusion.runtime.NeoPageContext.SymTab_resolveSplitName(NeoPageContext.java:1234)
at coldfusion.runtime.NeoPageContext.SymTab_resolveSplitName(NeoPageContext.java:1222)
at coldfusion.runtime.NeoPageContext.SymTab_resolveDottedName(NeoPageContext.java:1202)
at coldfusion.runtime.NeoPageContext.findAttribute(NeoPageContext.java:712)
at coldfusion.runtime.CfJspPage._isNull(CfJspPage.java:4827)
at cfUtil2ecfc669916289$funcGETSERVERIP.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\core\util\Util.cfc:91)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:830)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:613)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:438)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3627)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3604)
at cfScheduledTask2ecfc44158086$funcINIT.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\async\tasks\ScheduledTask.cfc:197)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:485)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:609)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:835)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:641)
at coldfusion.runtime.CFPage.___createObjectInternal(CFPage.java:14543)
at coldfusion.runtime.CFPage._createObject(CFPage.java:14518)
at cfScheduledExecutor2ecfc1336294329$funcNEWTASK.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\async\executors\ScheduledExecutor.cfc:175)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:485)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:609)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:835)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:641)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3549)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3524)
at cfScheduledExecutor2ecfc1336294329$funcNEWSCHEDULE.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\async\executors\ScheduledExecutor.cfc:159)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:485)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:830)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:613)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:438)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3627)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3604)
at cfCacheBoxProvider2ecfc957734190$funcCONFIGURE.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\cache\providers\CacheBoxProvider.cfc:140)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:830)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:613)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:438)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3627)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3604)
at cfCacheFactory2ecfc38684605$funcREGISTERCACHE.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\cache\CacheFactory.cfc:728)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:485)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4175)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4155)
at cfCacheFactory2ecfc38684605$funcCREATECACHE.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\cache\CacheFactory.cfc:679)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:609)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4116)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4097)
at cfCacheFactory2ecfc38684605$funcCONFIGURE.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\cache\CacheFactory.cfc:239)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4175)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4155)
at cfCacheFactory2ecfc38684605$funcINIT.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\cache\CacheFactory.cfc:180)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:830)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:613)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:438)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3627)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3604)
at cfLoaderService2ecfc284293036$funcCREATECACHEBOX.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\web\services\LoaderService.cfc:227)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:485)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4175)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4155)
at cfLoaderService2ecfc284293036$funcLOADAPPLICATION.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\web\services\LoaderService.cfc:66)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:485)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:830)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:613)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:438)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3627)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3604)
at cfBootstrap2ecfc2049049488$funcLOADCOLDBOX.runFunction(C:\inetpub\wwwroot\development\repository\wwwroot\coldbox\system\Bootstrap.cfc:110)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:830)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:613)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:438)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3627)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3604)
at cfApplicationFramework2ecfc826516965$funcONAPPLICATIONSTART.runFunction(C:\inetpub\wwwroot\development\repository\framework\ApplicationFramework.cfc:81)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:485)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:830)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:613)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:438)
at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:115)
at coldfusion.runtime.AppEventInvoker.onApplicationStart(AppEventInvoker.java:238)
... 12 more
"Error","scheduler-2","03/22/22","07:10:01","","com.sun.mail.util.MailConnectException: Couldn't connect to host, port: 127.0.0.1, 25; timeout 60000; nested exception is: java.net.ConnectException: Connection refused: connect"
com.sun.mail.util.MailConnectException: Couldn't connect to host, port: 127.0.0.1, 25; timeout 60000;
nested exception is:
java.net.ConnectException: Connection refused: connect
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2209)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
at javax.mail.Service.connect(Service.java:366)
at coldfusion.mail.MailSpooler.getConnection(MailSpooler.java:1614)
at coldfusion.mail.MailSpooler.deliver(MailSpooler.java:1333)
at coldfusion.mail.MailSpooler.sendMail(MailSpooler.java:1251)
at coldfusion.mail.MailSpooler.deliverStandard(MailSpooler.java:1690)
at coldfusion.mail.MailSpooler.run(MailSpooler.java:1655)
at coldfusion.scheduling.ThreadPool.run(ThreadPool.java:260)
at coldfusion.scheduling.WorkerThread.run(WorkerThread.java:71)
Caused by: java.net.ConnectException: Connection refused: connect
at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method)
at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
at java.base/java.net.Socket.connect(Socket.java:591)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:357)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:238)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2175)
... 9 more
I started a discussion on the Coldbox Slack channel and Brad ask me to log you a ticket.
We have started to observe many exceptions coming from the ColdFusion Event gateways after upgrade to coldbox 6.6.1+2. IT complains about wrong invocation and refers back to func GETSERVERIP (C:\inetpub\wwwroot\dev\repository\wwwroot\coldbox\system\core\util\Util.cfc); but I can call directly that function without any problem.
From the discussion Brad indicated that the problem was here:
Caused by: java.lang.UnsupportedOperationException at coldfusion.cfc.DummyHttpServletRequest.getLocalAddr(DummyHttpServletRequest.java:155)
The thread used to run your gateway thread is using a dummy HTTP servlet requyest which throws an error when you try and get the IP address
is just this code return ( isNull( cgi.local_addr ) ? "0.0.0.0" : cgi.local_addr );
It's just hitting the CGI scope (which delegates internally to the servlet request)
I would consider this a bug in ColdFusion itself
They really need to just be returning a default or empty value
IMO they shouldn't be completely blowing up with an error when you try and access CGI components inside a gateway thread
Brad proposed for the time being to wrap this access in a try/catch. Can we do that so we do not break? Thanks