• Bug
  • Status: Closed
  • 3 Minor
  • Resolution: Duplicate
  • interfaces
  • Reporter: pwujek
  • May 07, 2009
  • 0
  • Watchers: 1
  • December 16, 2011
  • June 03, 2009

Description

A class which extends java.lang.Thread encountered an assertion error when trying to access an instance of LinkedBlockingQueue.

The error message “com.tc.util.TCAssertionError: object was not null” is no help in determining the source of the error.

The work-around for the problem is to not extend Thread, but instead to implement Runnable, please see the discussion thread:

http://forums.terracotta.org/forums/posts/list/2116.page

Comments

Fiona OShea 2009-05-11

a nicer error message would be helpful. See forum thread for details

Chris Dennis 2009-05-11

This is a clone of CDV-1262 with a different proposed action. Once CDV-1262 is fixed this should not be a problem when overriding the thread class.

Chris Dennis 2009-06-03

Walter has fixed this in CDV-1262, and has also filed DOC-614 for the documentation issue regarding the results of overriding the getId method of Thread.