[jboss-user] [JBoss AOP Users] - frozen class creating JMS Session

hosier.david do-not-reply at jboss.com
Mon Nov 9 00:17:19 EST 2009

I'm having the same issue posted in this older thread: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=157162.  

We too are getting an Exception indicating a frozen class when attempting to create a JMS Session in a NetBeans RCP application.  This is against a JBoss 5.1 server.  And to answer the question posed in the other thread, it is on the client side that we are seeing the errors.  Or at least that's how I'm reading the stack trace.  I posted this question in the JBoss Messaging forum, and they sent me over here.  I'm hoping someone can offer even the slightest hint here...we've been banging our head over this for about 4 days now.  This issue only occurs in our NetBeans app.  The same exact code works fine elsewhere, and we have other code in several places that opens JMS Sessions just fine.

     [exec] Caused by: java.lang.RuntimeException: org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handleRedeliver_2030193044: frozen class (cannot edit)
  |      [exec] 	at javassist.ClassPool.checkNotFrozen(ClassPool.java:568)
  |      [exec] 	at javassist.ClassPool.makeClass(ClassPool.java:746)
  |      [exec] 	at javassist.ClassPool.makeClass(ClassPool.java:731)
  |      [exec] 	at org.jboss.aop.instrument.TransformerCommon.makeClass(TransformerCommon.java:239)
  |      [exec] 	at org.jboss.aop.advice.PerVmAdvice.generateInterceptor(PerVmAdvice.java:145)
  |      [exec] 	at org.jboss.aop.advice.PerVmAdvice.generateOptimized(PerVmAdvice.java:56)
  |      [exec] 	at org.jboss.aop.advice.AdviceFactory.create(AdviceFactory.java:106)
  |      [exec] 	at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:1323)
  |      [exec] 	at org.jboss.aop.Advisor.pointcutResolved(Advisor.java:1937)
  |      [exec] 	at org.jboss.aop.MethodMatchInfo.applyBinding(MethodMatchInfo.java:152)
  |      [exec] 	at org.jboss.aop.MethodMatchInfo.simplePopulateBindings(MethodMatchInfo.java:113)
  |      [exec] 	at org.jboss.aop.MethodMatchInfo.populateBindings(MethodMatchInfo.java:96)
  |      [exec] 	at org.jboss.aop.Advisor.finalizeMethodChain(Advisor.java:1548)
  |      [exec] 	at org.jboss.aop.ClassAdvisor.finalizeChains(ClassAdvisor.java:741)
  |      [exec] 	at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:609)
  |      [exec] 	at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:306)
  |      [exec] 	at java.security.AccessController.doPrivileged(Native Method)
  |      [exec] 	at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:276)
  |      [exec] 	at org.jboss.aop.AspectManager.initialiseClassAdvisor(AspectManager.java:748)
  |      [exec] 	at org.jboss.aop.AspectManager.getAdvisor(AspectManager.java:729)
  |      [exec] 	at org.jboss.jms.client.delegate.ClientSessionDelegate.<clinit>(ClientSessionDelegate.java)
  |      [exec] 	... 55 more

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264494#4264494

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264494

More information about the jboss-user mailing list