[jboss-user] [jBPM] - OnAllSubTasksEndParentEndStrategy java.lang.VerifyError: Cannot inherit from final class
Julien Serdaru
do-not-reply at jboss.com
Wed May 15 11:15:09 EDT 2013
Julien Serdaru [https://community.jboss.org/people/jserdaru] created the discussion
"OnAllSubTasksEndParentEndStrategy java.lang.VerifyError: Cannot inherit from final class"
To view the discussion, visit: https://community.jboss.org/message/817868#817868
--------------------------------------------------------------
Hi there, I am trying to set up a local task service using JPA persistence and hibernate. Environment: Java 6, Hibernate 4.1.7, jBPM 5.4.0.Final When creating the entity manager factory I get the following exception when hibernate tries to instantiate the class OnAllSubTasksEndParentEndStrategy. {code} Caused by: java.lang.VerifyError: Cannot inherit from final class at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.hibernate.internal.util.ReflectHelper.classForName(ReflectHelper.java:170) at org.hibernate.ejb.Ejb3Configuration.classForName(Ejb3Configuration.java:1318) {code} Looking at that class, I see that it inherits the enum SubTasksStrategy. I thought extending an enum was prohibited in Java. Am I missing something here? Thanks for the help! My persistence.xml {code} jdbc/jbpm-ds org.jbpm.task.Attachment org.jbpm.task.BooleanExpression org.jbpm.task.Comment org.jbpm.task.Content org.jbpm.task.Deadline org.jbpm.task.Delegation org.jbpm.task.EmailNotification org.jbpm.task.EmailNotificationHeader org.jbpm.task.Escalation org.jbpm.task.Group org.jbpm.task.I18NText org.jbpm.task.Notification org.jbpm.task.OnAllSubTasksEndParentEndStrategy org.jbpm.task.OnParentAbortAllSubTasksEndStrategy org.jbpm.task.PeopleAssignments org.jbpm.task.Reassignment org.jbpm.task.Status org.jbpm.task.SubTasksStrategy org.jbpm.task.Task org.jbpm.task.TaskData org.jbpm.task.User
{code}
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/817868#817868]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130515/e173c37f/attachment.html
More information about the jboss-user
mailing list