Please help me to resolve this null pointer exception.
I am executing this script from "Script Runner" console in JIRA.
--------------------------------------------------------------------------------------------------------------------------
this.class.classLoader.rootLoader.addURL(new URL("file:///C:/TEMP/sqljdbc4.jar"))
import groovy.sql.Sql
import java.sql.Driver
def sql = Sql.newInstance("jdbc:sqlserver://servername:1433/Valid_DB_Name", "Valid user", "valid password", "com.microsoft.sqlserver.jdbc.SQLServerDriver")
--------------------------------------------------------------------------------------------------------------------------