Bug 1180565 - [GSS](6.4.z) method-params containing an array not correctly processed for EJB2.1 with CMT
Summary: [GSS](6.4.z) method-params containing an array not correctly processed for EJ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: EJB
Version: 6.3.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: CR1
: EAP 6.4.12
Assignee: Radovan Netuka
QA Contact: Jan Martiska
Scott Mumford
URL:
Whiteboard: eap6412-proposed
Depends On:
Blocks: 1180571 eap6412-payload
TreeView+ depends on / blocked
 
Reported: 2015-01-09 13:12 UTC by Ricardo Martinelli de Oliveira
Modified: 2019-04-16 14:30 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
When defining trans-attribute for an EJB2.1 method when the method has the same name and one takes a paramter and the other takes an array of the same parameter, the trans-attribute specified gets applied to both methods when it should only be applied to one method. This fix resolves the issue so that the trans-attribute is applied only to the method that it was specified upon.
Clone Of:
: 1180571 (view as bug list)
Environment:
Last Closed: 2017-01-17 13:12:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker AS7-6724 0 Major Resolved method-params containing an array not correctly processed for EJB2.1 with CMT 2017-10-24 01:15:21 UTC
Red Hat Issue Tracker WFLY-67 0 Major Resolved method-params containing an array not correctly processed for EJB2.1 with CMT 2017-10-24 01:15:21 UTC

Description Ricardo Martinelli de Oliveira 2015-01-09 13:12:53 UTC
It seems that the method-params for container transactions are not matched correctly if the contain arrays.
I've got an EJB "First" that calls another EJB "Second". Both have the same interface containing a method void test(String[]);
If I define the transaction attribute NEVER including method-params for "First" and without params for "Second" the test fails with 
JBAS014163: Transaction present on server in Never call (EJB3 13.6.2.6)
I define the container transaction like this:
<container-transaction>
<method>
<ejb-name>FirstWithParams</ejb-name>
<method-intf>Local</method-intf>
<method-name>test</method-name>
<method-params>
<method-param>java.lang.String[]</method-param>
</method-params>
</method>
<method>
<ejb-name>FirstWithParams</ejb-name>
<method-intf>Local</method-intf>
<method-name>test</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</method>
<method>
<ejb-name>FirstWithParams</ejb-name>
<method-intf>Local</method-intf>
<method-name>test</method-name>
<method-params>
<method-param>int</method-param>
</method-params>
</method>
<method>
<ejb-name>Second</ejb-name>
<method-intf>Local</method-intf>
<method-name>test</method-name>
</method>
<trans-attribute>Never</trans-attribute>
</container-transaction>
I will attach a test case that fails at the call to test(String[]) but successfully call test(String) and test(int).

Comment 11 Jiří Bílek 2016-11-04 14:10:48 UTC
Verified with EAP 6.4.12.CP.CR1

Comment 12 Petr Penicka 2017-01-17 13:12:35 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.


Note You need to log in before you can comment on or make changes to this bug.