[JBoss JIRA] (JBTM-1715) NPE when using CompensationManager within an in-flowed WS-BA transaction
by Paul Robinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-1715?page=com.atlassian.jira.plugin.... ]
Paul Robinson updated JBTM-1715:
--------------------------------
Reporter: Paul Robinson (was: Gytis Trikleris)
> NPE when using CompensationManager within an in-flowed WS-BA transaction
> ------------------------------------------------------------------------
>
> Key: JBTM-1715
> URL: https://issues.jboss.org/browse/JBTM-1715
> Project: JBoss Transaction Manager
> Issue Type: Bug
> Components: TXFramework
> Reporter: Paul Robinson
> Assignee: Gytis Trikleris
> Priority: Minor
> Fix For: 6.0.0
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> The following error occurs if an injected CompensationManager is invoked within the scope of a compensation-based transaction that was in-flowed via a WS-BA transaction.
> {quote}
> 16:17:09,879 ERROR [org.jboss.as.ejb3.invocation] (default task-18) JBAS014134: EJB Invocation failed on component TestServiceService for method public void org.jboss.narayana.compensations.functiona[617/9100]
> ted.TestServiceService.saveDataCancelOnFailure(java.lang.Boolean): javax.ejb.EJBException: java.lang.NullPointerException
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:166) [wildfly-ejb3-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:251) [wildfly-ejb3-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:316) [wildfly-ejb3-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:215) [wildfly-ejb3-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:289)
> at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [wildfly-ejb3-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPS
> HOT]
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (JBTM-1507) Review the TXBridge tests usage of Arquillian
by Paul Robinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-1507?page=com.atlassian.jira.plugin.... ]
Paul Robinson updated JBTM-1507:
--------------------------------
Reporter: Paul Robinson (was: Gytis Trikleris)
> Review the TXBridge tests usage of Arquillian
> ---------------------------------------------
>
> Key: JBTM-1507
> URL: https://issues.jboss.org/browse/JBTM-1507
> Project: JBoss Transaction Manager
> Issue Type: Enhancement
> Components: Testing, TxBridge
> Reporter: Paul Robinson
> Assignee: Gytis Trikleris
> Priority: Minor
> Fix For: 6.0.0
>
> Original Estimate: 2 days
> Remaining Estimate: 2 days
>
> The TXBridge tests don;t seem to be using Arquillian correctly. There is a servlet that is invoked to do things inside the container. As the tests (should) now run in the container, this should not be needed.
> The tests also seem to have added complexity due to the recovery tests. As the recovery tests need to be able to kill the container, it mandates manual container lifecycle management for *all* tests. We may want to pull out the recovery tests into a separate module.
> We also may want to pull out the DisabledContextPropagationTest into a separate module as they use a modified AS configuration.
> We should also take a general look at how the tests are structured and using Arq.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (JBTM-1859) Remove classname Strings from XTS subsystem
by Paul Robinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-1859?page=com.atlassian.jira.plugin.... ]
Paul Robinson updated JBTM-1859:
--------------------------------
Reporter: Paul Robinson (was: Gytis Trikleris)
> Remove classname Strings from XTS subsystem
> -------------------------------------------
>
> Key: JBTM-1859
> URL: https://issues.jboss.org/browse/JBTM-1859
> Project: JBoss Transaction Manager
> Issue Type: Task
> Components: Application Server Integration, XTS
> Reporter: Paul Robinson
> Assignee: Gytis Trikleris
> Priority: Minor
> Fix For: 6.0.0
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> THe XTS SubSystem has many classnames passed to Jandex as raw Strings. It would be better to use Class#getName as it is type-safe.
> When this code was written, this was not possible, due to the nature of the order in which class-loading was done and the fact that the code in question was executed very early in the server boot. I don't remember the specific details.
> However, something seems to have changed in WildFly, such that we can now use Class#getName on the classes we require. This issue it to replace all the classname Strings with Class#getName() and to also simplify the code under org.jboss.as.xts.jandex, as a lot of that verbose code was added to to cope with the limitation of not being able to use Class#getName().
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (JBTM-1680) Allow 2PC participants to enlist in a compensation-based transaction
by Paul Robinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-1680?page=com.atlassian.jira.plugin.... ]
Paul Robinson updated JBTM-1680:
--------------------------------
Reporter: Paul Robinson (was: Gytis Trikleris)
> Allow 2PC participants to enlist in a compensation-based transaction
> --------------------------------------------------------------------
>
> Key: JBTM-1680
> URL: https://issues.jboss.org/browse/JBTM-1680
> Project: JBoss Transaction Manager
> Issue Type: Feature Request
> Components: TXFramework, XTS
> Reporter: Paul Robinson
> Assignee: Gytis Trikleris
> Priority: Minor
> Fix For: 6.0.0
>
> Original Estimate: 1 week
> Remaining Estimate: 1 week
>
> In some situations a developer may need to coordinate multiple resources, where some are 2PC and some are not. Here it could be possible to use enlist the 2PC participants in a compensation-based transaction. The xa.prepare happens in the complete phase, the xa.commit during close and xa.rollback during compensate.
> This could provide an alternative to LRCO, where the last resource is compensation-based and the other resources remain 2PC. The benefit of this approach is that the failure window associated with LRCO does not exist. The negative of this approach is that the isolation of the compensation-based participant is reduced.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (JBTM-2214) Remove deprecation warnings for com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
by Paul Robinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-2214?page=com.atlassian.jira.plugin.... ]
Paul Robinson updated JBTM-2214:
--------------------------------
Reporter: Tom Jenkinson (was: Gytis Trikleris)
> Remove deprecation warnings for com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
> ----------------------------------------------------------------------------------------------------
>
> Key: JBTM-2214
> URL: https://issues.jboss.org/browse/JBTM-2214
> Project: JBoss Transaction Manager
> Issue Type: Task
> Components: XTS
> Affects Versions: 5.0.2
> Reporter: Tom Jenkinson
> Assignee: Gytis Trikleris
>
> If you run:
> ./build.sh clean install -DskipTests | grep "com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated"
> You will see:
> [WARNING] /home/tom/projects/jbosstm/narayana/XTS/WS-T/dev/src/com/arjuna/wst11/stub/BusinessAgreementWithParticipantCompletionStub.java:[173,17] unknown() in com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/XTS/WS-T/dev/src/com/arjuna/wst11/stub/SubordinateCoordinatorCompletionParticipantStub.java:[260,17] unknown() in com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/XTS/WS-T/dev/src/com/arjuna/wst11/stub/BusinessAgreementWithCoordinatorCompletionStub.java:[207,17] unknown() in com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/XTS/localjunit/unit/src/test/java/com/arjuna/wst/tests/common/TestFaultedExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java:[64,17] unknown() in com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/XTS/localjunit/unit/src/test/java/com/arjuna/wst/tests/common/TestNoExceptionBusinessAgreementWithParticipantCompletionParticipant.java:[59,17] unknown() in com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/XTS/localjunit/unit/src/test/java/com/arjuna/wst/tests/common/TestNoExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java:[62,17] unknown() in com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/XTS/localjunit/unit/src/test/java/com/arjuna/wst/tests/common/TestFaultedExceptionBusinessAgreementWithParticipantCompletionParticipant.java:[60,17] unknown() in com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/XTS/localjunit/unit/src/test/java/com/arjuna/wstx/tests/common/FailureBusinessParticipant.java:[106,17] unknown() in com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/XTS/localjunit/unit/src/test/java/com/arjuna/wstx/tests/common/DemoBusinessParticipant.java:[100,17] unknown() in com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/XTS/localjunit/unit/src/test/java/com/arjuna/wst/tests/common/TestSystemExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java:[67,17] unknown() in com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/XTS/localjunit/unit/src/test/java/com/arjuna/wst/tests/common/TestWrongStateExceptionBusinessAgreementWithParticipantCompletionParticipant.java:[63,17] unknown() in com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/XTS/localjunit/unit/src/test/java/com/arjuna/wst/tests/common/TestSystemExceptionBusinessAgreementWithParticipantCompletionParticipant.java:[63,17] unknown() in com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/XTS/localjunit/unit/src/test/java/com/arjuna/wst/tests/common/TestWrongStateExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java:[67,17] unknown() in com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/XTS/localjunit/WSTX11-interop/src/main/java/com/jboss/transaction/txinterop/webservices/bainterop/participant/ParticipantCompletionParticipantAdapter.java:[56,17] unknown() in com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/XTS/localjunit/xtstest/src/org/jboss/jbossts/xts/servicetests/service/participant/ParticipantCompletionTestParticipant.java:[99,17] unknown() in com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/main/java/org/jboss/narayana/compensations/impl/ParticipantImpl.java:[144,17] unknown() in com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/main/java/org/jboss/narayana/compensations/impl/remote/RemoteParticipant.java:[81,17] unknown() in com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/impl/handlers/wsba/WSBACoordinatorCompletionParticipantTest.java:[113,21] unknown() in com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/impl/handlers/wsba/WSBAParticipantCompletionParticipantTest.java:[116,21] unknown() in com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant has been deprecated
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (JBTM-2213) Remove deprecation warnings for org.jboss.narayana.txframework.api.annotation.lifecycle.ba
by Paul Robinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-2213?page=com.atlassian.jira.plugin.... ]
Paul Robinson updated JBTM-2213:
--------------------------------
Reporter: Tom Jenkinson (was: Gytis Trikleris)
> Remove deprecation warnings for org.jboss.narayana.txframework.api.annotation.lifecycle.ba
> ------------------------------------------------------------------------------------------
>
> Key: JBTM-2213
> URL: https://issues.jboss.org/browse/JBTM-2213
> Project: JBoss Transaction Manager
> Issue Type: Task
> Components: TXFramework
> Affects Versions: 5.0.2
> Reporter: Tom Jenkinson
> Assignee: Gytis Trikleris
>
> If you run:
> ./build.sh clean install -DskipTests | grep "org.jboss.narayana.txframework.api.annotation.lifecycle.ba"
> You will see:
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/main/java/org/jboss/narayana/txframework/impl/handlers/wsba/WSBAParticipantCompletionParticipant.java:[45,130] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/functional/ws/ba/coordinatorCompletion/BACoordinatorCompletionService.java:[31,66] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/functional/ws/ba/participantCompletion/BAParticipantCompletionService.java:[31,66] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/impl/handlers/wsba/WSBACoordinatorCompletionParticipantTest.java:[112,10] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/functional/ws/ba/coordinatorCompletion/BACoordinatorCompletionService.java:[154,6] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/impl/handlers/wsba/WSBAParticipantCompletionParticipantTest.java:[115,10] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/functional/ws/ba/participantCompletion/BAParticipantCompletionService.java:[162,6] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/impl/handlers/wsba/WSBACoordinatorCompletionParticipantTest.java:[57,146] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/impl/handlers/wsba/WSBACoordinatorCompletionParticipantTest.java:[115,32] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/functional/ws/ba/coordinatorCompletion/BACoordinatorCompletionService.java:[158,18] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/impl/handlers/wsba/WSBAParticipantCompletionParticipantTest.java:[62,27] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/impl/handlers/wsba/WSBAParticipantCompletionParticipantTest.java:[65,130] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/impl/handlers/wsba/WSBAParticipantCompletionParticipantTest.java:[118,32] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/functional/ws/ba/participantCompletion/BAParticipantCompletionService.java:[166,18] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months