Program: 28254
Project: 28254
Buggy source:
protected void createMonitoringRegistry(){
  String appName=null;
  String modName=null;
  String ejbName=null;
  try {
    appName=(ejbDescriptor.getApplication().isVirtual()) ? null : ejbDescriptor.getApplication().getRegistrationName();
    if (appName == null) {
      modName=ejbDescriptor.getApplication().getRegistrationName();
    }
 else {
      String archiveuri=ejbDescriptor.getEjbBundleDescriptor().getModuleDescriptor().getArchiveUri();
      modName=com.sun.enterprise.util.io.FileUtils.makeFriendlyFilename(archiveuri);
    }
    ejbName=ejbDescriptor.getName();
    containerInfo=new ContainerInfo(appName,modName,ejbName);
    ejbProbeListener=getMonitoringStatsProvider(appName,modName,ejbName);
    ejbProbeListener.addMethods(getContainerId(),appName,modName,ejbName,getMonitoringMethodsArray());
    ejbProbeListener.register();
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str" + EjbMonitoringUtils.getDetailedLoggingName(appName,modName,ejbName));
    }
  }
 catch (  Exception ex) {
    _logger.log(Level.SEVERE,"String_Node_Str" + EjbMonitoringUtils.getDetailedLoggingName(appName,modName,ejbName),ex);
  }
  try {
    ProbeProviderFactory probeFactory=ejbContainerUtilImpl.getProbeProviderFactory();
    String invokerId=EjbMonitoringUtils.getInvokerId(appName,modName,ejbName);
    ejbProbeNotifier=probeFactory.getProbeProvider(EjbMonitoringProbeProvider.class,invokerId);
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str" + ejbProbeNotifier.getClass().getName());
    }
  }
 catch (  Exception ex) {
    ejbProbeNotifier=new EjbMonitoringProbeProvider();
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str");
    }
  }
}

Fixed version (ground truth):
protected void createMonitoringRegistry(){
  String appName=null;
  String modName=null;
  String ejbName=null;
  try {
    appName=(ejbDescriptor.getApplication().isVirtual()) ? null : ejbDescriptor.getApplication().getRegistrationName();
    if (appName == null) {
      modName=ejbDescriptor.getApplication().getRegistrationName();
    }
 else {
      String archiveuri=ejbDescriptor.getEjbBundleDescriptor().getModuleDescriptor().getArchiveUri();
      modName=com.sun.enterprise.util.io.FileUtils.makeFriendlyFilename(archiveuri);
    }
    ejbName=ejbDescriptor.getName();
    containerInfo=new ContainerInfo(appName,modName,ejbName);
    ejbProbeListener=getMonitoringStatsProvider(appName,modName,ejbName);
    ejbProbeListener.addMethods(getContainerId(),appName,modName,ejbName,getMonitoringMethodsArray());
    ejbProbeListener.register();
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str" + EjbMonitoringUtils.getDetailedLoggingName(appName,modName,ejbName));
    }
  }
 catch (  Exception ex) {
    _logger.log(Level.SEVERE,COULD_NOT_CREATE_MONITORREGISTRYMEDIATOR,new Object[]{EjbMonitoringUtils.getDetailedLoggingName(appName,modName,ejbName),ex});
  }
  try {
    ProbeProviderFactory probeFactory=ejbContainerUtilImpl.getProbeProviderFactory();
    String invokerId=EjbMonitoringUtils.getInvokerId(appName,modName,ejbName);
    ejbProbeNotifier=probeFactory.getProbeProvider(EjbMonitoringProbeProvider.class,invokerId);
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str" + ejbProbeNotifier.getClass().getName());
    }
  }
 catch (  Exception ex) {
    ejbProbeNotifier=new EjbMonitoringProbeProvider();
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str");
    }
  }
}