restarting luce via the admin fails to load datasource

Description

When I restart lucee (Lucee 5.2.5.20) via the administrator my sites throw the following error after restart:

This driver is not configured for integrated authentication. ClientConnectionId:0cf3b7da-4583-4559-96b8-a1b2045839b9

My datasource is as follows:

onApplicationStart
THIS.datasources["sitedata"] = {
class: "com.microsoft.sqlserver.jdbc.SQLServerDriver",
connectionString: "jdbc:sqlserver://#LOCAL.config.DBaddress#:1433;MultiSubnetFailover=True;integratedSecurity=true;selectMethod=direct;databaseName= sitedata;"
,blob: true
};

works fine if I restart tomcat.

StackTrace:

lucee.runtime.exp.DatabaseException: This driver is not configured for integrated authentication. ClientConnectionId:0cf3b7da-4583-4559-96b8-a1b2045839b9 at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:2435) at com.microsoft.sqlserver.jdbc.AuthenticationJNI.<init>(AuthenticationJNI.java:75) at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(SQLServerConnection.java:3129) at com.microsoft.sqlserver.jdbc.SQLServerConnection.access$100(SQLServerConnection.java:82) at com.microsoft.sqlserver.jdbc.SQLServerConnection$LogonCommand.doExecute(SQLServerConnection.java:3121) at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7151) at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:2478) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:2026) at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:1687) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:1528) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:866) at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:569) at lucee.runtime.db.DataSourceSupport._getConnection(DataSourceSupport.java:107) at lucee.runtime.db.DataSourceSupport.getConnection(DataSourceSupport.java:89) at lucee.runtime.db.DatasourceConnectionPool.loadDatasourceConnection(DatasourceConnectionPool.java:141) at lucee.runtime.db.DatasourceConnectionPool.getDatasourceConnection(DatasourceConnectionPool.java:105) at lucee.runtime.db.DatasourceManagerImpl.getConnection(DatasourceManagerImpl.java:75) at lucee.runtime.db.DatasourceManagerImpl.getConnection(DatasourceManagerImpl.java:69) at lucee.runtime.tag.StoredProc.doEndTag(StoredProc.java:521) at breakdownservices.dao.configdao_cfc$cf.udfCall(/com/breakdownservices/dao/configDAO.cfc:47) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:366) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:226) at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:771) at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:756) at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1698) at breakdownservices.dao.configdao_cfc$cf.udfCall(/com/breakdownservices/dao/configDAO.cfc:9) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:366) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:226) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:704) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:587) at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1964) at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:756) at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1698) at appinit_cfc$cf.udfCall(/Appinit.cfc:18) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:366) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:226) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:704) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:587) at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1964) at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:756) at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1698) at application_cfc$cf.udfCall(/Application.cfc:51) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:366) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:226) at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:771) at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:756) at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1698) at application_cfc$cf.udfCall(/Application.cfc:34) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:366) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:226) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:704) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:587) at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1964) at lucee.runtime.listener.ModernAppListener.call(ModernAppListener.java:419) at lucee.runtime.listener.ModernAppListener.onApplicationStart(ModernAppListener.java:298) at lucee.runtime.PageContextImpl.initApplicationContext(PageContextImpl.java:3041) at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:118) at lucee.runtime.listener.ModernAppListener.onRequest(ModernAppListener.java:103) at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2405) at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2395) at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2363) at lucee.runtime.engine.Request.exe(Request.java:44) at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1091) at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1039) at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:102) at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349) at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:478) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:798) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1434) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745)

Environment

Lucee 5.2.5.20
Windows Server 2012 R2 (6.3) 64bit
Apache Tomcat/8.5.11
1.8.0_121 (Oracle Corporation) 64bit

Status

Assignee

Michael Offner

Reporter

Marc Archenault

Labels

None

Priority

Major