2 Replies Latest reply on Oct 19, 2002 12:31 PM by dangreen

    ClassCircularityError

    jawwadhussain

      Hi,

      I am using JBoss-3.0.1RC1 on Solaris 2.6 with JDK1.3.1_01. Before moving to this version I was using JBoss-3.0.0 and I got "ClassCircularityError" when accessing my datasource. But then wihle searching the forum and the downloads I found out that the release 3.0.1RC1 has a fix for this problem. In the release notes of the 3.0.1RC1 it is stated that this problem is fixed. But I have to say that it is still there.

      I am not doing any stress testing.But eventually I have to do one. I have a simple session bean which talks to the database to retreive some info. But then when I run my client for the first time i get this error on the server. But the client goes through to get the result. Subsequent runs of the client dont throw this error on the server.

      One more thing this problem doesn't happen on my Windows NT machine. Same jboss version and same jdk version.

      Anybody has any clues on what is wrong.

      Here is the server.log
      ====

      12:19:21,036 INFO [MainDeployer] Deployed package: file:/opt/jboss-3.0.1RC1/server/all/conf/jboss-service.xml
      12:19:21,043 INFO [Server] JBoss (MX MicroKernel) [3.0.1RC1 Date:200206291622] Started in 0m:37s:748ms
      12:19:33,315 INFO [STDOUT] [BuyOrderTestBean] ejbPassivate() called
      12:19:33,333 INFO [STDOUT] [BuyOrderTestBean] ejbActivate() called
      12:19:33,468 ERROR [STDERR] java.lang.ClassCircularityError: java/sql/DriverManager
      12:19:33,469 ERROR [STDERR] at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.isDriverLoadedForURL(LocalManagedConnectionFactory.java:460)
      12:19:33,470 ERROR [STDERR] at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.checkDriver(LocalManagedConnectionFactory.java:420)
      12:19:33,470 ERROR [STDERR] at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:130)
      12:19:33,471 ERROR [STDERR] at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnection(InternalManagedConnectionPool.java:254)
      12:19:33,472 ERROR [STDERR] at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:101)
      12:19:33,472 ERROR [STDERR] at org.jboss.resource.connectionmanager.Internal
      ManagedConnectionPool.fillToMin(InternalManagedConnectionPool.java:220)
      12:19:33,473 ERROR [STDERR] at org.jboss.resource.connectionmanager.PoolFiller$1.run(PoolFiller.java:63)
      12:19:33,473 ERROR [STDERR] at java.lang.Thread.run(Thread.java:484)
      12:19:35,172 INFO [STDOUT] [BuyOrderTestBean] counter value is 1
      12:19:35,173 INFO [STDOUT] [BuyOrderTestBean] buy time - 1746
      12:19:35,174 INFO [STDOUT] [BuyOrderTestBean] ejbPassivate() called
      12:19:35,177 INFO [STDOUT] [BuyOrderTestBean] ejbActivate() called



      ====



      Thnks
      Jawwad.

        • 1. Re: ClassCircularityError
          jawwadhussain

          Sorry, I didnt mentioned that the JDK is from SUN.

          Thnks
          Jawwad.

          • 2. Re: ClassCircularityError
            dangreen

            I am also getting a java.lang.ClassCircularityError when first accessing my database connection pools. I only get the error when I first try to use the pool. Then I never see the error again. Is this something I need to be concerned with? Things seem to be running fine. What does this error actually mean? I read the error definition in the java docs but it didn't really say much.
            My environment is Jboss 3.0 with Tomcat 4.0. The database I am connecting to is Oracle 9i and my jdk is 1.3.1 all running on XP pro.

            Here is the full error: