2 Replies Latest reply on Aug 6, 2006 10:18 PM by Ben Wang

    java.lang.NoSuchFieldError: log

    Ice Man Newbie

      Hey guys, Im new to JBoss Cache, im simply trying to configure and kick start a cache instance and it keeps giving me a java.lang.NoSuchFieldError and I'm not quite sure why.

      Here is the full exception:

      Exception in thread "main" java.lang.NoSuchFieldError: log
      at org.jboss.cache.aop.PojoCache.parseConfig(PojoCache.java:107)
      at org.jboss.cache.aop.PojoCache.startService(PojoCache.java:95)
      at com.tite.medicalworks.gui.DatasourceGUIProxy.init(DatasourceGUIProxy.java:256)
      at com.tite.medicalworks.gui.DatasourceGUIProxy.<init>(DatasourceGUIProxy.java:170)
      at com.tite.medicalworks.gui.DatasourceGUIProxy.getInstance(DatasourceGUIProxy.java:275)
      at com.tite.medicalworks.MedicalWorks$2.run(MedicalWorks.java:66)
      at com.tite.medicalworks.gui.MyProgressBar.showDialog(MyProgressBar.java:166)
      at com.tite.medicalworks.MedicalWorks.createAndShowSplashScreen(MedicalWorks.java:122)
      at com.tite.medicalworks.MedicalWorks.main(MedicalWorks.java:107)



      Here is my code to start the Cache:

      "Code" wrote:
      try
      {
      // Create Cache
      m_cache = new PojoCache();
      PropertyConfigurator config = new PropertyConfigurator();

      // configure the cache through injection
      config.configure(m_cache, "META-INF/cache-service2.xml");
      m_cache.setClusterName("My-Cluster");
      // kick start the cache
      m_cache.startService();
      }
      catch(Exception ex)
      {
      // Unable to start Cache
      s_theLogger.log(Level.SEVERE, "Unable to start cache", ex);
      m_cache = null;
      }


      I'm not sure exactly what it could be, if anyone could give me some pointers i'd appreciate it.

        • 1. Re: java.lang.NoSuchFieldError: log
          Ice Man Newbie

           

          "iudoka" wrote:
          Hey guys, Im new to JBoss Cache, im simply trying to configure and kick start a cache instance and it keeps giving me a java.lang.NoSuchFieldError and I'm not quite sure why.

          Here is the full exception:

          Exception in thread "main" java.lang.NoSuchFieldError: log
          at org.jboss.cache.aop.PojoCache.parseConfig(PojoCache.java:107)
          at org.jboss.cache.aop.PojoCache.startService(PojoCache.java:95)
          at com.tite.test.gui.DatasourceGUIProxy.init(DatasourceGUIProxy.java:256)
          at com.tite.test.gui.DatasourceGUIProxy.<init>(DatasourceGUIProxy.java:170)
          at com.tite.test.gui.DatasourceGUIProxy.getInstance(DatasourceGUIProxy.java:275)
          at com.tite.test.test$2.run(test.java:66)
          at com.tite.test.gui.MyProgressBar.showDialog(MyProgressBar.java:166)
          at com.tite.test.test.createAndShowSplashScreen(test.java:122)
          at com.tite.test.test.main(test.java:107)



          Here is my code to start the Cache:

          "Code" wrote:
          try
          {
          // Create Cache
          m_cache = new PojoCache();
          PropertyConfigurator config = new PropertyConfigurator();

          // configure the cache through injection
          config.configure(m_cache, "META-INF/cache-service2.xml");
          m_cache.setClusterName("My-Cluster");
          // kick start the cache
          m_cache.startService();
          }
          catch(Exception ex)
          {
          // Unable to start Cache
          s_theLogger.log(Level.SEVERE, "Unable to start cache", ex);
          m_cache = null;
          }


          I'm not sure exactly what it could be, if anyone could give me some pointers i'd appreciate it.


          • 2. Re: java.lang.NoSuchFieldError: log
            Ben Wang Master

            Can you try to use TreeCache (instead of PojoCache) to see if that error also show up?

            And can you post the more detailed trace to see which field is missing?