Re: [jboss-user] [Javassist Development] - CtClass getNestedClasses() returns the same class when applied to an anonymous class
by Dam Dam
Dam Dam [http://community.jboss.org/people/damdamdam] replied to the discussion
"CtClass getNestedClasses() returns the same class when applied to an anonymous class"
To view the discussion, visit: http://community.jboss.org/message/543621#543621
--------------------------------------------------------------
Another issue about this method :
I have my anonymous class "com.bla.MyClass$1", which contains another anonymous class, which gives "com.bla.MyClass$1$1".
When I try the getNestedClasses on the first class, it returns the second class (normal I guess, because it is nested), and the first one itself (first bug explained before).
But when I try the getNestedClass on the second class "com.bla.MyClass$1$1", it returns the class itself (the same bug), BUT it returns the declaring class "com.bla.MyClass$1". Gets me in an infinite loop !
I am trying to search where the problem comes from to fix it. If it's not possible, i would like to know if a class is an anonymous : would be great to have an isAnonymous() method on a CtClass.
Can anybody confirm me he gets the same thing ? And if it is a bug (if not, that's really weird) ?
Anyway, thanks a lot for the brilliant work, javassist helps me a lot in my everyday work !
Dam.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/543621#543621]
Start a new discussion in Javassist Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 4 months
[jBPM] - Unable to load JBPM 4.3 in spring web application context
by Jaber C. Mourad
Jaber C. Mourad [http://community.jboss.org/people/newbeewan] created the discussion
"Unable to load JBPM 4.3 in spring web application context"
To view the discussion, visit: http://community.jboss.org/message/543614#543614
--------------------------------------------------------------
Hi,
I have a trouble to deploy my application in web context on tomcat, I get a classcast exception :
2010-05-18 15:25:19,285 [ERROR] org.springframework.web.context.ContextLoader - Context initialization failed
java.lang.ClassCastException: org.jbpm.jpdl.internal.model.JpdlProcessDefinition cannot be cast to org.jbpm.pvm.internal.model.ProcessDefinitionImpl
at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.execute(ProcessDefinitionQueryImpl.java:72)
at org.jbpm.pvm.internal.query.AbstractQuery.untypedList(AbstractQuery.java:71)
at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.list(ProcessDefinitionQueryImpl.java:141)
at org.jbpm.pvm.internal.repository.ProcessDeployer.checkKey(ProcessDeployer.java:134)
at org.jbpm.pvm.internal.repository.ProcessDeployer.deploy(ProcessDeployer.java:93)
at org.jbpm.pvm.internal.repository.DeployerManager.deploy(DeployerManager.java:46)
at org.jbpm.pvm.internal.repository.RepositorySessionImpl.deploy(RepositorySessionImpl.java:61)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:47)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:33)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.SpringCommandCallback.doInTransaction(SpringCommandCallback.java:45)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:55)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.repository.DeploymentImpl.deploy(DeploymentImpl.java:91)
...
It's very strange, because in unit test I have never get that !
Have you got any idea ?
Regards
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/543614#543614]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 4 months