title: Exception while extracting XMLType value from Oracle in Java
body: <p>I am trying to extract XML datatype from Oracle table and facing this exception:</p>
  
  <pre><code>java.lang.NullPointerException: null
  at oracle.jdbc.driver.NamedTypeAccessor.getOracleObject(NamedTypeAccessor.java:302) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
  at oracle.jdbc.driver.NamedTypeAccessor.getSQLXML(NamedTypeAccessor.java:413) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
  at oracle.jdbc.driver.OracleResultSetImpl.getSQLXML(OracleResultSetImpl.java:1251) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
  at oracle.jdbc.driver.OracleResultSet.getSQLXML(OracleResultSet.java:488) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
  </code></pre>
  
  <p>Code snippet:</p>
  
  <pre><code>SQLXML sqlxml = resultSet.getSQLXML(1);
  </code></pre>
  
  <p>I have double checked the query which is fetching resultset and it is working as expected. Also I am facing this issue only for XMLType column.</p>