Quantcast

[jira] [Updated] (GERONIMO-6562) Geronimo: RecoverTask is throwing an XAException in the jboss fuse when using transactionManager

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Updated] (GERONIMO-6562) Geronimo: RecoverTask is throwing an XAException in the jboss fuse when using transactionManager

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/GERONIMO-6562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajesh updated GERONIMO-6562:
-----------------------------
    Attachment: msql-xasample.zip

Getting the below error while deploying the attached one. my datasource is not even wrapped by the aries while the service is getting registered

2017-05-04 17:26:40,698 | ERROR | RetryTimer       | RecoveryController               |  -  -  | Recovery error: Failed to create ConnectionAndWrapperNamedXAResource, java.lang.NoClassDefFoundError: javax/net/ssl/SSLException
2017-05-04 17:26:41,752 | ERROR | RetryTimer       | Recovery                         |  -  -  | Failed to create ConnectionAndWrapperNamedXAResource, java.lang.NoClassDefFoundError: javax/net/ssl/SSLException
javax.transaction.SystemException: Failed to create ConnectionAndWrapperNamedXAResource, java.lang.NoClassDefFoundError: javax/net/ssl/SSLException
        at org.apache.aries.transaction.jdbc.internal.Recovery$1.getNamedXAResource(Recovery.java:60)[570:org.apache.aries.transaction.jdbc:2.1.1]
        at org.apache.geronimo.transaction.manager.RecoverTask.run(RecoverTask.java:49)[450:org.apache.aries.transaction.manager:1.3.0]
        at org.apache.geronimo.transaction.manager.ExponentialtIntervalRetryScheduler$TaskWrapper.run(ExponentialtIntervalRetryScheduler.java:50)[450:org.apache.aries.transaction.manager:1.3.0]
        at java.util.TimerThread.mainLoop(Timer.java:555)[:1.7.0_25]
        at java.util.TimerThread.run(Timer.java:505)[:1.7.0_25]
Caused by: java.sql.SQLException: java.lang.NoClassDefFoundError: javax/net/ssl/SSLException
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:959)[411:com.mysql.jdbc:5.1.37]
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)[411:com.mysql.jdbc:5.1.37]
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)[411:com.mysql.jdbc:5.1.37]
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:862)[411:com.mysql.jdbc:5.1.37]
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:879)[411:com.mysql.jdbc:5.1.37]
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:875)[411:com.mysql.jdbc:5.1.37]
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:422)[411:com.mysql.jdbc:5.1.37]
        at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:983)[411:com.mysql.jdbc:5.1.37]
        at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:339)[411:com.mysql.jdbc:5.1.37]
        at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2252)[411:com.mysql.jdbc:5.1.37]
        at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2285)[411:com.mysql.jdbc:5.1.37]
        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2084)[411:com.mysql.jdbc:5.1.37]
        at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:795)[411:com.mysql.jdbc:5.1.37]
        at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44)[411:com.mysql.jdbc:5.1.37]
        at sun.reflect.GeneratedConstructorAccessor51.newInstance(Unknown Source)[:1.7.0_25]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.7.0_25]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)[:1.7.0_25]
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)[411:com.mysql.jdbc:5.1.37]
        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:400)[411:com.mysql.jdbc:5.1.37]
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:327)[411:com.mysql.jdbc:5.1.37]
        at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:422)[411:com.mysql.jdbc:5.1.37]
        at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:134)[411:com.mysql.jdbc:5.1.37]
        at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:105)[411:com.mysql.jdbc:5.1.37]
        at com.mysql.jdbc.jdbc2.optional.MysqlXADataSource.getXAConnection(MysqlXADataSource.java:46)[411:com.mysql.jdbc:5.1.37]
        at org.apache.aries.transaction.jdbc.internal.Recovery$1.getNamedXAResource(Recovery.java:55)[570:org.apache.aries.transaction.jdbc:2.1.1]
        ... 4 more
Caused by: java.lang.NoClassDefFoundError: javax/net/ssl/SSLException
        at com.mysql.jdbc.SQLError.createLinkFailureMessageBasedOnHeuristics(SQLError.java:1103)
        at com.mysql.jdbc.exceptions.jdbc4.CommunicationsException.<init>(CommunicationsException.java:45)
        at sun.reflect.GeneratedConstructorAccessor54.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.7.0_25]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)[:1.7.0_25]
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)

> Geronimo: RecoverTask is throwing an XAException in the jboss fuse when using transactionManager
> ------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-6562
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6562
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues)
>          Components: Aries
>         Environment: ALL
>            Reporter: Rajesh
>         Attachments: msql-xasample.zip, XA-Aries-transactions-Mysql-6.3.zip
>
>
> I am getting the below error keep printing in the log when application uses TransactionManager that comes with the jboss fuse server
> 2017-02-28 22:07:15,475 | ERROR | RetryTimer       | RecoveryController               | 11623 - org.apache.aries.transaction.manager - 1.3.0 | Recovery error: null
> my application uses blueprint and camel. And i have printed the datasource confuguration in the blueprint below
> <bean id="oracleXaDataSource" class="oracle.jdbc.xa.client.OracleXADataSource" destroy-method="close">
>    <property name="user" value="${datasource.user}" />
>    <property name="password" value="${datasource.password}" />
>    <property name="URL" value="${datasource.url}" />
> </bean>
>
>
> <service interface="javax.sql.XADataSource" ref="oracleXaDataSource">
> <service-properties>
> <entry key="osgi.jndi.service.name" value="jdbc/oracleDB" />
> <entry key="datasource.name" value="oracleDB" />
> <entry key="aries.xa.name" value="oracleDB" />
> <entry key="aries.xa.username" value="${datasource.user}" />
> <entry key="aries.xa.password" value="${datasource.password}" />
> <entry key="aries.xa.pooling" value="true" />
> <entry key="aries.xa.poolMinSize" value="0" />
> <entry key="aries.xa.poolMaxSize" value="20" />
> <!-- <entry key="aries.xa.exceptionSorter" value="${aries.xa.exceptionSorter}" /> -->
> <entry key="aries.xa.transaction" value="none" />
> </service-properties>
> </service>



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
Loading...