Javassist Enhancement fails when JPA Entity has an attribute named "handler"

Description

I have an Entity called HandlerError, refering to another Entity called Handler

The getter getHandler() causes following problem when I deploy the application to JBoss 6 AS M4

The same code works well in JBoss 6 AS M3.

JBoss 6 Release

Javassist dependency

M3

javassist-3.11.0.GA.jar

M4

javassist-3.12.1.GA.jar

M5

javassist-3.12.1.GA.jar

20101112

javassist-3.12.1.GA.jar

In between M3 and M4, following issue has been 'fixed': JASSIST-97
Not sure if it's related, but it looks close given the patch

Environment

Hibernate 3.5.5 (I observed the problem in JBoss AS 6 M4 and M5)
(Database MySQL)

Activity

Show:
DavidD
May 23, 2011, 2:03 AM

Try latest Javassist jar (3.14.0-GA). It doesn't fix this problem. Back to cglib for me as I'm not changing my application code for this.

Steve Ebersole
August 19, 2011, 9:34 PM

Not sure what we can do here other than bring this to the attention of the Javassist developers and get them to fix this, then upgrade once that fix is released.

Steve Ebersole
August 22, 2011, 9:58 PM
Steve Ebersole
June 6, 2012, 3:42 PM

The Javassist team think this is resolved as of 3.16.0-GA. Could someone give that a try? Personally I do not see how their solution addresses the problem, but would be great to get confirmation one way or another...

hezh
April 3, 2013, 2:10 PM

Well, if it is of any use for someone ... i had the exact same problem with a getHandler method and upgrading to javassist-3.17.1-GA fixed the issue for me. Thx Steve for commenting the solution here.

Rejected

Assignee

Unassigned

Reporter

Jan Van Bulck

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure