[jboss-jira] [JBoss JIRA] (WFLY-3297) Hibernate with enabled enhancer throws error at deployment
Markus D (JIRA)
issues at jboss.org
Mon Apr 28 07:30:33 EDT 2014
[ https://issues.jboss.org/browse/WFLY-3297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Markus D updated WFLY-3297:
---------------------------
Description:
When I enable the enhancer in the persistence.xml then I receive an error from javassist at deployment.
https://community.jboss.org/message/871056#871056
public class TornadoStrikeSkill extends SelfTargetSkill {
private static final long serialVersionUID = 1123460060768124078L;
public TornadoStrikeSkill() { }
@Override
protected void executeSkill() {
.....
GameObjectService gameObjectService = BeanLocator.lookup(GameObjectService.class);
// getting the characters from an EJB
for(GameCharacter victim : gameObjectService.calculateVictims()) {
}
}
public class GameCharacter extends GameObject {
@OneToMany(mappedBy = "caster")
private List<Skill> skills = new ArrayList<Skill>();
When I remove the for loop the error is gone. When I deploy the same application on JBoss 7.1 it works. So I guess the classloading has changed.
Maybe the cyclic dependency messes with the javassist?
was:
When I enable the enhancer in the persistence.xml then I receive an error from javassist at deployment.
https://community.jboss.org/message/871056#871056
> Hibernate with enabled enhancer throws error at deployment
> ----------------------------------------------------------
>
> Key: WFLY-3297
> URL: https://issues.jboss.org/browse/WFLY-3297
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Class Loading
> Affects Versions: 8.1.0.CR1
> Reporter: Markus D
> Assignee: David Lloyd
> Labels: hibernate
> Attachments: verbose_log.txt
>
>
> When I enable the enhancer in the persistence.xml then I receive an error from javassist at deployment.
> https://community.jboss.org/message/871056#871056
> public class TornadoStrikeSkill extends SelfTargetSkill {
> private static final long serialVersionUID = 1123460060768124078L;
> public TornadoStrikeSkill() { }
> @Override
> protected void executeSkill() {
> .....
> GameObjectService gameObjectService = BeanLocator.lookup(GameObjectService.class);
> // getting the characters from an EJB
> for(GameCharacter victim : gameObjectService.calculateVictims()) {
>
> }
> }
> public class GameCharacter extends GameObject {
> @OneToMany(mappedBy = "caster")
> private List<Skill> skills = new ArrayList<Skill>();
> When I remove the for loop the error is gone. When I deploy the same application on JBoss 7.1 it works. So I guess the classloading has changed.
> Maybe the cyclic dependency messes with the javassist?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list