Program: 72523
Project: 72523
Buggy source:
/** 
 * Configure the different HLASubscribers (ie will make them suscribe to what they should)
 */
private void setUpHLASubscriber(RTIambassador rtia) throws NameNotFound, ObjectClassNotDefined, FederateNotExecutionMember, RTIinternalError, AttributeNotDefined, SaveInProgress, RestoreInProgress, ConcurrentAccessAttempted {
  CompositeEntity container=(CompositeEntity)getContainer();
  List<ComponentEntity> classes=container.classDefinitionList();
  for (  ComponentEntity currentClass : classes) {
    int classHandle=rtia.getObjectClassHandle(currentClass.getName());
    try {
      _idToClasses.put(classHandle,currentClass);
      AttributeHandleSet _attributesLocal=RtiFactoryFactory.getRtiFactory().createAttributeHandleSet();
      List<HlaSubscriber> subscribers=((CompositeActor)currentClass).entityList(HlaSubscriber.class);
      for (      HlaSubscriber sub : subscribers) {
        int attributeHandle=rtia.getAttributeHandle(sub.getParameterName(),classHandle);
        sub.attributeHandle=attributeHandle;
        sub.classHandle=classHandle;
        _attributesLocal.add(attributeHandle);
        if (_debugging) {
          _debug("String_Node_Str" + sub.getParameterName() + "String_Node_Str"+ currentClass.getName());
        }
      }
      rtia.subscribeObjectClassAttributes(classHandle,_attributesLocal);
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
    Class javaClass=currentClass.getClass();
    List objects=container.entityList(javaClass);
    LinkedList<ComponentEntity> freeActorForThatClass=new LinkedList<ComponentEntity>();
    _freeActors.put(classHandle,freeActorForThatClass);
    for (int i=0; i < objects.size(); i++) {
      CompositeActor currentActor=(CompositeActor)objects.get(i);
      freeActorForThatClass.add(currentActor);
      List<HlaSubscriber> subscribers=currentActor.entityList(HlaSubscriber.class);
      for (      HlaSubscriber sub : subscribers) {
        int attributeHandle=rtia.getAttributeHandle(sub.getParameterName(),classHandle);
        sub.attributeHandle=attributeHandle;
        sub.classHandle=classHandle;
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Configure the different HLASubscribers (ie will make them suscribe to what they should)
 */
private void setUpHLASubscriber(RTIambassador rtia) throws NameNotFound, ObjectClassNotDefined, FederateNotExecutionMember, RTIinternalError, AttributeNotDefined, SaveInProgress, RestoreInProgress, ConcurrentAccessAttempted {
  CompositeEntity container=(CompositeEntity)getContainer();
  List<ComponentEntity> classes=container.classDefinitionList();
  for (  ComponentEntity currentClass : classes) {
    int classHandle=rtia.getObjectClassHandle(currentClass.getName());
    try {
      _classIdToPtIIClasses.put(classHandle,currentClass);
      AttributeHandleSet _attributesLocal=RtiFactoryFactory.getRtiFactory().createAttributeHandleSet();
      List<HlaSubscriber> subscribers=((CompositeActor)currentClass).entityList(HlaSubscriber.class);
      for (      HlaSubscriber sub : subscribers) {
        int attributeHandle=rtia.getAttributeHandle(sub.getParameterName(),classHandle);
        sub.setAttributeHandle(attributeHandle);
        sub.setClassHandle(classHandle);
        _attributesLocal.add(attributeHandle);
        if (_debugging) {
          _debug("String_Node_Str" + sub.getParameterName() + "String_Node_Str"+ currentClass.getName());
        }
      }
      rtia.subscribeObjectClassAttributes(classHandle,_attributesLocal);
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
    Class javaClass=currentClass.getClass();
    List objects=container.entityList(javaClass);
    LinkedList<ComponentEntity> freeActorForThatClass=new LinkedList<ComponentEntity>();
    _freeActors.put(classHandle,freeActorForThatClass);
    for (int i=0; i < objects.size(); i++) {
      CompositeActor currentActor=(CompositeActor)objects.get(i);
      freeActorForThatClass.add(currentActor);
      List<HlaSubscriber> subscribers=currentActor.entityList(HlaSubscriber.class);
      for (      HlaSubscriber sub : subscribers) {
        int attributeHandle=rtia.getAttributeHandle(sub.getParameterName(),classHandle);
        sub.setAttributeHandle(attributeHandle);
        sub.setClassHandle(classHandle);
      }
    }
  }
}