• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • Byte Code Transform
  • hsingh
  • Reporter: cdennis
  • April 01, 2010
  • 3
  • Watchers: 5
  • February 12, 2013
  • April 20, 2010

Description

In 1.6.0_19 Sun/Oracle patched LinkedBlockingQueue to fix a number of different issues (e.g. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6805775). The changes included the renaming of an private method inside LinkedBlockingQueue (insert -> enqueue) (http://hg.openjdk.java.net/jdk7/tl/jdk/rev/49573ab3096a). The TC merge class used to instrument LinkedBlockingQueue (LinkedBlockingQueueTC) tries to directly call the removed method and hence users see the following exception:

java.lang.NoSuchMethodError: java.util.concurrent.LinkedBlockingQueue.insert(Ljava/lang/Object;)V at java.util.concurrent.LinkedBlockingQueue.offer(LinkedBlockingQueue.java) at java.util.AbstractQueue.add(AbstractQueue.java:68) at com.tc.management.remote.protocol.terracotta.TunnelingMessageConnection.incomingNetworkMessage(TunnelingMessageConnection.java:86) at com.tc.management.remote.protocol.terracotta.TunnelingEventHandler.handleEvent(TunnelingEventHandler.java:87) at com.tc.async.impl.StageImpl$WorkerThread.run(StageImpl.java:127)

(See for an example http://forums.terracotta.org/forums/posts/list/3403.page#19090)

Note that I strongly suspect 1.6.0_19 still suffers from the same class export issue that 1.6.0_18 suffers from, so there is little point in fixing this before we fix that issue).

Comments

Chris Dennis 2010-04-01

Sorry, typed 1.6.0_18 instead of 1.6.0_19

Chris Dennis 2010-04-01

Attaching DEV-3488 since it also affects 1.6.0_19 and there is little point in fixing this issue until DEV-3488 is fixed (in my opinion).

Sonny Hansen 2010-04-13

Hi, we are currently using 2.7.0 and are having this issue. We understand this will not be fixed for 2.7.0 but when can we expect this issue to be resolve for the lastest Terracotta version

thanks Sonny

Fiona OShea 2010-04-13

We want to do this in Esperance and a patch for 3.2.1 Also fix DEV-3488 in 3.2.1 patch

3.2.1-ee-patch-3 to be released at the same time as Dubbo..so after dubbo work do this. thanks

Himadri Singh 2010-05-13

Ran cachetest with 3.2.1 & 1.6.0_20 to reproduce the error. With Patch 3 3.2.1 it works fine.

{quote} 2010-05-13 04:56:43,601 INFO - Terracotta Enterprise 3.2.1, as of 20100511-180515 (Revision 6940-15117 by [email protected] from 3.2.1_2) 2010-05-13 04:56:43,602 INFO - Patch Level 3, as of 20100503-170550 (Revision 7151-15116 by [email protected] from patched_3.2.1) {quote}

Fiona OShea 2010-05-26

fix also in 3.2.2