[
https://issues.apache.org/jira/browse/ARIES-1542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15266573#comment-15266573
]
ASF GitHub Bot commented on ARIES-1542:
---------------------------------------
GitHub user johnpoth opened a pull request:
https://github.com/apache/aries/pull/46
[ARIES-1542] Fix reflection problem in org.apache.aries.transaction.j…
…dbc.internal.ValidatingGenericConnectionManager
https://issues.apache.org/jira/browse/ARIES-1542
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/johnpoth/aries ARIES-1542
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/aries/pull/46.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 #46
----
commit 50bb9829b154e4d60c21a122282379aa07c2e7f4
Author: jpoth <[email protected]>
Date: 2016-05-02T13:11:01Z
[ARIES-1542] Fix reflection problem in
org.apache.aries.transaction.jdbc.internal.ValidatingGenericConnectionManager
----
> Aries transaction manager fails with background connection validation
> ---------------------------------------------------------------------
>
> Key: ARIES-1542
> URL: https://issues.apache.org/jira/browse/ARIES-1542
> Project: Aries
> Issue Type: Bug
> Components: Transaction
> Reporter: John Poth
>
> This seems to be a defect in
> org.apache.aries.transaction.jdbc.internal.ValidatingGenericConnectionManager,
> reflection should be called on the "current" field, not stack. This can
> cause the following exception:
> {quote}
> Caused by: java.lang.RuntimeException: java.lang.NoSuchFieldException: pool
> at
> org.apache.aries.transaction.jdbc.internal.Reflections.get(Reflections.java:56)
> at
> org.apache.aries.transaction.jdbc.internal.ValidatingGenericConnectionManager.<init>(ValidatingGenericConnectionManager.java:89)
> at
> org.apache.aries.transaction.jdbc.internal.ConnectionManagerFactory.init(ConnectionManagerFactory.java:152)
> at
> org.apache.aries.transaction.jdbc.RecoverableDataSource.start(RecoverableDataSource.java:235)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)