title: Mule generic database connection.DefaultDbConnection:99 (null)
body: <p>flow:</p>
  
  <pre><code>&lt;db:generic-config name="MS_SQL_DB" url="jdbc:jtds:sqlserver://host:1433/myCRM_0813;instance=MYINST;username=sa;password=sa" driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver" doc:name="Generic Database Configuration"/&gt;    
  &lt;flow name="msconnFlow1" doc:name="msconnFlow1"&gt;
       &lt;http:inbound-endpoint exchange-pattern="request-response" host="${hostname}" port="${sfdcport}" path="msconnect" doc:name="HTTP"/&gt;
       &lt;logger message="test---------" level="INFO" doc:name="Logger"/&gt;
       &lt;db:select config-ref="MS_SQL_DB" doc:name="Database"&gt;
           &lt;db:parameterized-query&gt;&lt;![CDATA[select * from Account]]&gt;&lt;/db:parameterized-query&gt;
       &lt;/db:select&gt;
       &lt;logger message="==done===" level="INFO" doc:name="Logger"/&gt;
  &lt;/flow&gt;
  </code></pre>
  
  <p>exception:</p>
  
  <pre><code>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  + Started app 'test'                                       +
  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  INFO  2015-06-03 11:59:31,664 [[test].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: test---------
  ERROR 2015-06-03 11:59:31,728 [[test].connector.http.mule.default.receiver.02] org.mule.exception.DefaultMessagingExceptionStrategy: 
  ********************************************************************************
  Message               : null (java.lang.NullPointerException). Message payload is of type: String
  Code                  : MULE_ERROR--2
  --------------------------------------------------------------------------------
  Exception stack is:
  1. null (java.lang.NullPointerException)
    org.mule.module.db.internal.domain.connection.DefaultDbConnection:99 (null)
  2. null (java.lang.NullPointerException). Message payload is of type: String (org.mule.api.MessagingException)
    org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor:32 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html)
  --------------------------------------------------------------------------------
  Root Exception stack trace:
  java.lang.NullPointerException
      at org.mule.module.db.internal.domain.connection.DefaultDbConnection.isClosed(DefaultDbConnection.java:99)
      at org.mule.module.db.internal.domain.connection.TransactionalDbConnectionFactory.releaseConnection(TransactionalDbConnectionFactory.java:150)
      at org.mule.module.db.internal.processor.AbstractDbMessageProcessor.process(AbstractDbMessageProcessor.java:87)
      + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
  ********************************************************************************
  </code></pre>
  
  <p>Note: I am able to run same query with jdbc, and my test connection through studio shows connection success.</p>