-
Bug
-
Resolution: Done
-
Major
-
EAP_EWP 5.1.2
-
None
-
Release Notes
-
-
Documented as Resolved Issue
-
NEW
When JDBC API statement.getConnection() is called from an application (in this case a standalone app), the following stack trace is encountered:
Caused by: java.lang.IllegalAccessException: Method=public abstract java.sql.Connection java.sql.Statement.getConnection() throws java.sql.SQLException does not return Serializable
at org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService.doStatementMethod(WrapperDataSourceService.java:422)
at org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService.invoke(WrapperDataSourceService.java:227)
at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Looking at org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService code in method "doStatementMethod", it does not return a proxied connection. A proxied connection should be returned like the following:
if( value instanceof Connection )
{
value = createConnectionProxy(value);
}