Resending due to my messed up sendmail config... ---------- Forwarded Message ----------
Subject: Re: [JBoss-dev] HEAD & ClassCircularityError Date: Wed, 15 May 2002 00:24:22 +0000 From: Jason Dillon <[EMAIL PROTECTED]> To: "Sacha Labourey" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> And now these, after I recompiled everything from scratch: <snip> 2002-05-14 17:22:52,321 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackException, causedBy: java.lang.ClassCircularityError: sun/reflect/MethodAccessorImpl at sun.misc.Unsafe.defineClass(Native Method) at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45) at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381) at java.security.AccessController.doPrivileged(Native Method) at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377 ) at sun.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.ja va:59) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:28) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrive nContainer.java:394) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cache dConnectionInterceptor.java:147) at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenIn stanceInterceptor.java:88) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor. java:87) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.j ava:165) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:51) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129 ) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinder Interceptor.java:145) at org.jboss.ejb.MessageDrivenContainer.invoke(MessageDrivenContainer.java:311) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java :640) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(J MSContainerInvoker.java:988) at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:234) at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsu mer.java:560) at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:377) at org.jboss.mq.SpySession.run(SpySession.java:220) at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:173) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.jav a:655) at java.lang.Thread.run(Thread.java:536) </snip> On Thursday 09 May 2002 08:45 am, Sacha Labourey wrote: > Hello Jason, > > This seems to happen only with Sun JVM on Linux (or some combination of > os/jvm/hotspot). I've tried to reproduce this on my jdk 1.3.1, 1.4 on > windows 2000 and have been unable to do so. > > I've searched sun.com, google, ... and one of the possibilities is that a > JAR that is loaded by JBoss contains some class definitions that are not > compatible by the one used by javagroups. Maybe this is even worst with our > own classloader where mixes of definitions can happen more easily. > > Jason, can you try to remove almost everything from deploy and > jboss-services.xml and only deploy the clustering service to see what > happen? > > Cheers, > > > Sacha > > > -----Message d'origine----- > > De : [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]De la part de > > Jason Dillon > > Envoyé : jeudi, 9 mai 2002 10:29 > > À : [EMAIL PROTECTED]; [EMAIL PROTECTED] > > Cc : [EMAIL PROTECTED] > > Objet : [JBoss-dev] HEAD & ClassCircularityError > > > > > > From the VM spec 5.3.5 Deriving a Class from a class File Representation: > > ... > > * Otherwise, if any of the superclasses of C is C itself, loading throws > > a ClassCircularityError. > > ... > > * Otherwise, if any of the superinterfaces of C is C itself, > > loading throws a > > ClassCircularityError. > > > > Here is a link to the page I looked at: > > http://java.sun.com/docs/books/vmspec/2nd-edition/html/ConstantPoo > > l.doc.html > > > > From the Language Spec, here 13.4.4 Superclasses and Superinterfaces: > > > > A ClassCircularityError is thrown at load time if a class would > > be a superclass > > of itself. Changes to the class hierarchy that could result in such a > > circularity when newly compiled binaries are loaded with > > pre-existing binaries > > are not recommended for widely distributed classes. > > > > Taken from: > > http://java.sun.com/docs/books/jls/first_edition/html/13.doc.html > > > > From 12.2.1: > > > > # ClassCircularityError: A class or interface could not be loaded > > because it > > would be its own superclass or superinterface > > > > Why they didn't just put this in the javadocs I have no clue. > > > > * * * > > > > I am still getting these very reliably when attempting to deploy > > cluster-service.xml. I am running this on Linux under 1.4 and I > > also see it > > under 1.3.1_03. Here is the first (of many + evil printStackTrace's): > > > > <snip> > > ChannelException: JChannel(): java.lang.ClassCircularityError: > > org/javagroups/log/Trace > > at org.javagroups.JChannel.<init>(JChannel.java:144) > > at > > org.jboss.ha.framework.server.ClusterPartition.createService(Clust > > erPartition.java:154) > > at > > org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:170) > > at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc > > cessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at > > org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedM > > BeanDispatcher.java:284) > > at > > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) > > at > > org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceCont > > roller.java:867) > > at $Proxy0.create(Unknown Source) > > at > > org.jboss.system.ServiceController.create(ServiceController.java:271) > > at > > org.jboss.system.ServiceController.create(ServiceController.java:211) > > at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc > > cessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at > > org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedM > > BeanDispatcher.java:284) > > at > > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) > > at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174) > > at $Proxy3.create(Unknown Source) > > at org.jboss.deployment.SARDeployer.create(SARDeployer.java:277) > > at org.jboss.deployment.MainDeployer.create(MainDeployer.java:651) > > at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:526) > > at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490) > > at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc > > cessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at > > org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedM > > BeanDispatcher.java:284) > > at > > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) > > at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174) > > at $Proxy4.deploy(Unknown Source) > > at > > org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploy > > mentScanner.java:405) > > at > > org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(UR > > LDeploymentScanner.java:586) > > at > > org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeployme > > ntScanner.java:465) > > at > > org.jboss.deployment.scanner.AbstractDeploymentScanner.startServic > > e(AbstractDeploymentScanner.java:237) > > at > > org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:198) > > at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc > > cessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at > > org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedM > > BeanDispatcher.java:284) > > at > > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) > > at > > org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceCont > > roller.java:867) > > at $Proxy0.start(Unknown Source) > > at > > org.jboss.system.ServiceController.start(ServiceController.java:339) > > at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc > > cessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at > > org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedM > > BeanDispatcher.java:284) > > at > > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) > > at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174) > > at $Proxy3.start(Unknown Source) > > at org.jboss.deployment.SARDeployer.start(SARDeployer.java:342) > > at org.jboss.deployment.MainDeployer.start(MainDeployer.java:692) > > at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:527) > > at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490) > > at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:472) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm > > pl.java:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc > > cessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at > > org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedM > > BeanDispatcher.java:284) > > at > > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) > > at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:318) > > at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216) > > at org.jboss.Main.boot(Main.java:148) > > at org.jboss.Main$1.run(Main.java:381) > > at java.lang.Thread.run(Thread.java:536) > > </snip> > > > > > > Is this problem unique to my environment or does anyone else see > > this with HEAD? > > > > --jason > > > > ------------------------------------------------- > > This mail sent through IMP: http://horde.org/imp/ > > > > _______________________________________________________________ > > > > Have big pipes? SourceForge.net is looking for download mirrors. We > > supply the hardware. You get the recognition. Email Us: > > [EMAIL PROTECTED] _______________________________________________ > > Jboss-development mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-development ------------------------------------------------------- _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development