5 Replies Latest reply on Apr 23, 2010 4:39 AM by leosbitto

    Testing 2.1.0 Beta2

    dfisher

      I pulled the 2.1.0 beta2 jars from the jboss maven repository for some testing in JBoss 5.1.0 and I get the following error:

       

      java.lang.NoSuchMethodError: java.util.concurrent.atomic.AtomicReferenceFieldUpdater.lazySet(Ljava/lang/Object;Ljava/lang/Object;)V
          at org.hornetq.utils.concurrent.HornetQConcurrentLinkedQueue$Node.lazySetItem(HornetQConcurrentLinkedQueue.java:187)
          at org.hornetq.utils.concurrent.HornetQConcurrentLinkedQueue$Node.<init>(HornetQConcurrentLinkedQueue.java:167)
          at org.hornetq.utils.concurrent.HornetQConcurrentLinkedQueue.<init>(HornetQConcurrentLinkedQueue.java:219)

       

      Not to be deterred, I pull the source from svn and running `ant distro` produces four compile errors, one of which is:

       

      HornetQ_2_1_0_Beta2/src/main/org/hornetq/utils/concurrent/HornetQConcurrentLinkedQueue.java:187: cannot find symbol
          [javac] symbol  : method lazySet(org.hornetq.utils.concurrent.HornetQConcurrentLinkedQueue.Node<E>,E)
          [javac] location: class java.util.concurrent.atomic.AtomicReferenceFieldUpdater<org.hornetq.utils.concurrent.HornetQConcurrentLinkedQueue.Node,org.hornetq.utils.concurrent.HornetQConcurrentLinkedQueue.Node>
          [javac]          itemFieldUpdater.lazySet(this, val);

       

      Am I missing some jars or were the maven beta2 jars produced with a different classpath than what is provided by the ant build?

      Thanks.