GitHub user luogankun opened a pull request:
https://github.com/apache/spark/pull/4033
[SPARK-5239][CORE]JdbcRDD throws "java.lang.AbstractMethodError:
oracle.jdbc.driver.xxxxxx.isClosed()Z"
`rs.isClosed()` will throws:
```
Exception in thread "main" java.lang.AbstractMethodError:
oracle.jdbc.driver.OracleResultSetImpl.isClosed()Z
```
Similarly,`stmt.isClosed()` will throws
```
Exception in thread "main" java.lang.AbstractMethodError:
oracle.jdbc.driver.T4CPreparedStatement.isClosed()Z
```
Above exception is throwing because "isClosed()" is not implemented in the
"OracleResultSetImpl" class which implements the ResultSet Interface in
Ojdbc14.jar, I think use below condition to check whether resultset is null or
not is enough
```
if (null != rs) {
rs.close()
}
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/luogankun/spark SPARK-5239
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/4033.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #4033
----
commit d8c61d648208cd7b8f7b37d3b615d895e7857771
Author: luogankun <[email protected]>
Date: 2015-01-14T06:13:40Z
[SPARK-5239][CORE]JdbcRDD throws 'java.lang.AbstractMethodError:
oracle.jdbc.driver.xxxxxx.isClosed()Z'
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]