Details
Assignee
Michael OffnerMichael OffnerReporter
Pothys - MitrahSoftPothys - MitrahSoftPriority
MinorLabels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
Affects versions
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Pothys - MitrahSoft
Pothys - MitrahSoftPriority
Labels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
Affects versions
Created 14 June 2023 at 06:37
Updated 12 November 2024 at 10:51
Mailing list : https://dev.lucee.org/t/java-nullpointerexception-with-mssql-queries/12692
I recently upgraded my app from an old version of Lucee (lucee-5.2.7.63 to lucee-5.3.10.120) and this now longer works
works fine with a standard dsn definition
<cfscript> dsn = StructNew(); dsn.database = "luceetestdb"; dsn.host = "localhost"; dsn.port = 1433; dsn.type = "MSSQL"; dsn.dbType = "sqlserver"; dsn.username = "username"; dsn.password = "password" dsn.class = "com.microsoft.sqlserver.jdbc.SQLServerDriver" query = new Query(datasource=dsn); sql = "SELECT @@version"; query.setSQL(sql); writedump(query.execute().getResult()); </cfscript>