nus-yam/ex-repair huggingface dataset:
Program: 28101
Project: 28101
Buggy source:
protected EJBContextImpl createEjbInstanceAndContext() throws Exception {
  JCDIService.JCDIInjectionContext<?> jcdiCtx=null;
  Object instance=null;
  EJBContextImpl ctx=_constructEJBContextImpl(null);
  EjbInvocation ejbInv=null;
  boolean success=false;
  try {
    ejbInv=createEjbInvocation(null,ctx);
    invocationManager.preInvoke(ejbInv);
    if (isJCDIEnabled()) {
      jcdiCtx=jcdiService.createEmptyJCDIInjectionContext();
      ctx.setJCDIInjectionContext(jcdiCtx);
    }
    createEjbInterceptors(ctx,jcdiCtx);
    if (isJCDIEnabled()) {
      _createJCDIInjectionContext(ctx,null,jcdiCtx);
      if (jcdiCtx != null) {
        instance=jcdiCtx.getInstance();
      }
    }
 else {
      injectEjbInstance(ctx);
      intercept(CallbackType.AROUND_CONSTRUCT,ctx);
      instance=ctx.getEJB();
    }
    success=true;
  }
 catch (  Throwable th) {
    try {
      if (jcdiCtx != null) {
        jcdiCtx.cleanup(true);
      }
    }
 catch (    Throwable ignore) {
    }
    throw new InvocationTargetException(th);
  }
 finally {
    try {
      if (ejbInv != null) {
        invocationManager.postInvoke(ejbInv);
      }
    }
 catch (    Throwable t) {
      if (success) {
        throw new InvocationTargetException(t);
      }
 else {
        _logger.log(Level.WARNING,"String_Node_Str",t);
      }
    }
  }
  ctx.setEJB(instance);
  return ctx;
}

Fixed version (ground truth):
protected EJBContextImpl createEjbInstanceAndContext() throws Exception {
  JCDIService.JCDIInjectionContext<?> jcdiCtx=null;
  Object instance=null;
  EJBContextImpl ctx=_constructEJBContextImpl(null);
  EjbInvocation ejbInv=null;
  boolean success=false;
  try {
    ejbInv=createEjbInvocation(null,ctx);
    invocationManager.preInvoke(ejbInv);
    createEmptyContextAndInterceptors(ctx);
    if (isJCDIEnabled()) {
      ctx.setJCDIInjectionContext(_createJCDIInjectionContext(ctx,null,jcdiCtx));
      jcdiCtx=ctx.getJCDIInjectionContext();
      if (jcdiCtx != null) {
        instance=jcdiCtx.getInstance();
      }
    }
 else {
      injectEjbInstance(ctx);
      intercept(CallbackType.AROUND_CONSTRUCT,ctx);
      instance=ctx.getEJB();
    }
    success=true;
  }
 catch (  Throwable th) {
    try {
      if (jcdiCtx != null) {
        jcdiCtx.cleanup(true);
      }
    }
 catch (    Throwable ignore) {
    }
    throw new InvocationTargetException(th);
  }
 finally {
    try {
      if (ejbInv != null) {
        invocationManager.postInvoke(ejbInv);
      }
    }
 catch (    Throwable t) {
      if (success) {
        throw new InvocationTargetException(t);
      }
 else {
        _logger.log(Level.WARNING,"String_Node_Str",t);
      }
    }
  }
  ctx.setEJB(instance);
  return ctx;
}
Program: 28102
Project: 28102
Buggy source:
public void createEjbInstanceForInterceptors(Object[] params,EJBContextImpl ctx) throws Exception {
  Object instance;
  EjbBundleDescriptorImpl ejbBundle=ejbDescriptor.getEjbBundleDescriptor();
  if ((jcdiService != null) && jcdiService.isJCDIEnabled(ejbBundle)) {
    instance=ctx.getJCDIInjectionContext().createEjbAfterAroundConstruct();
  }
 else {
    instance=_constructEJBInstance();
  }
  ctx.setEJB(instance);
}

Fixed version (ground truth):
public void createEjbInstanceForInterceptors(Object[] params,EJBContextImpl ctx) throws Exception {
  Object instance;
  if (isJCDIEnabled()) {
    instance=ctx.getJCDIInjectionContext().createEjbAfterAroundConstruct();
  }
 else {
    instance=_constructEJBInstance();
  }
  ctx.setEJB(instance);
}
Program: 28103
Project: 28103
Buggy source:
protected void injectEjbInstance(EJBContextImpl context) throws Exception {
  EjbBundleDescriptorImpl ejbBundle=ejbDescriptor.getEjbBundleDescriptor();
  if ((jcdiService != null) && jcdiService.isJCDIEnabled(ejbBundle)) {
    jcdiService.injectEJBInstance(context.getJCDIInjectionContext());
  }
 else {
    if (context.getEJB() != null) {
      injectionManager.injectInstance(context.getEJB(),ejbDescriptor,false);
    }
  }
}

Fixed version (ground truth):
protected void injectEjbInstance(EJBContextImpl context) throws Exception {
  if (isJCDIEnabled()) {
    jcdiService.injectEJBInstance(context.getJCDIInjectionContext());
  }
 else {
    if (context.getEJB() != null) {
      injectionManager.injectInstance(context.getEJB(),ejbDescriptor,false);
    }
  }
}
Program: 28104
Project: 28104
Buggy source:
@SuppressWarnings({"String_Node_Str","String_Node_Str"}) private void createEjbInterceptors(EJBContextImpl context,JCDIService.JCDIInjectionContext<?> ejbInterceptorsJCDIInjectionContext) throws Exception {
  Object[] interceptorInstances;
  if (isJCDIEnabled()) {
    jcdiService.injectEJBInstance(context.getJCDIInjectionContext());
    Class[] interceptorClasses=interceptorManager.getInterceptorClasses();
    interceptorInstances=new Object[interceptorClasses.length];
    for (int i=0; i < interceptorClasses.length; i++) {
      interceptorInstances[i]=jcdiService.createInterceptorInstance(interceptorClasses[i],ejbDescriptor,ejbInterceptorsJCDIInjectionContext,context.getContainer().getEjbDescriptor().getInterceptorClasses());
    }
    interceptorManager.initializeInterceptorInstances(interceptorInstances);
  }
 else {
    interceptorInstances=interceptorManager.createInterceptorInstances();
    for (    Object interceptorInstance : interceptorInstances) {
      injectionManager.injectInstance(interceptorInstance,ejbDescriptor,false);
    }
  }
  context.setInterceptorInstances(interceptorInstances);
}

Fixed version (ground truth):
@SuppressWarnings({"String_Node_Str","String_Node_Str"}) private void createEjbInterceptors(EJBContextImpl context,JCDIService.JCDIInjectionContext<?> ejbInterceptorsJCDIInjectionContext) throws Exception {
  Object[] interceptorInstances;
  if (isJCDIEnabled()) {
    Class[] interceptorClasses=interceptorManager.getInterceptorClasses();
    interceptorInstances=new Object[interceptorClasses.length];
    for (int i=0; i < interceptorClasses.length; i++) {
      interceptorInstances[i]=jcdiService.createInterceptorInstance(interceptorClasses[i],ejbDescriptor,ejbInterceptorsJCDIInjectionContext,context.getContainer().getEjbDescriptor().getInterceptorClasses());
    }
    interceptorManager.initializeInterceptorInstances(interceptorInstances);
  }
 else {
    interceptorInstances=interceptorManager.createInterceptorInstances();
    for (    Object interceptorInstance : interceptorInstances) {
      injectionManager.injectInstance(interceptorInstance,ejbDescriptor,false);
    }
  }
  context.setInterceptorInstances(interceptorInstances);
}
Program: 28105
Project: 28105
Buggy source:
private void registerCustomMetrics(@Observes AfterDeploymentValidation adv,BeanManager manager){
  MetricRegistry registry=getReference(manager,MetricRegistry.class);
  MetricsHelper helper=getReference(manager,MetricsHelper.class);
  for (  Map.Entry<Producer<?>,AnnotatedMember<?>> entry : metrics.entrySet()) {
    AnnotatedMember<?> annotatedMember=entry.getValue();
    Producer<?> prod=entry.getKey();
    if (hasInjectionPoints(annotatedMember)) {
      continue;
    }
    Metadata metadata=helper.metadataOf(annotatedMember);
    registry.register(metadata.getName(),(Metric)prod.produce(manager.createCreationalContext(null)),metadata);
  }
  metrics.clear();
}

Fixed version (ground truth):
private void registerCustomMetrics(@Observes AfterDeploymentValidation adv,BeanManager manager){
  MetricsService metricsService=Globals.getDefaultBaseServiceLocator().getService(MetricsService.class);
  MetricRegistry registry=metricsService.getOrAddRegistry(metricsService.getApplicationName());
  MetricsHelper helper=getReference(manager,MetricsHelper.class);
  for (  Map.Entry<Producer<?>,AnnotatedMember<?>> entry : metrics.entrySet()) {
    AnnotatedMember<?> annotatedMember=entry.getValue();
    Producer<?> prod=entry.getKey();
    if (hasInjectionPoints(annotatedMember)) {
      continue;
    }
    Metadata metadata=helper.metadataOf(annotatedMember);
    registry.register(metadata.getName(),(Metric)prod.produce(manager.createCreationalContext(null)),metadata);
  }
  metrics.clear();
}
Program: 28106
Project: 28106
Buggy source:
private void registerCustomMetrics(@Observes AfterDeploymentValidation adv,BeanManager manager){
  MetricRegistry registry=getReference(manager,MetricRegistry.class);
  MetricsHelper helper=getReference(manager,MetricsHelper.class);
  for (  Map.Entry<Producer<?>,AnnotatedMember<?>> entry : metrics.entrySet()) {
    AnnotatedMember<?> annotatedMember=entry.getValue();
    Producer<?> prod=entry.getKey();
    if (hasInjectionPoints(annotatedMember)) {
      continue;
    }
    Metadata metadata=helper.metadataOf(annotatedMember);
    registry.register(metadata.getName(),(Metric)prod.produce(manager.createCreationalContext(null)),metadata);
  }
  metrics.clear();
}

Fixed version (ground truth):
private void registerCustomMetrics(@Observes AfterDeploymentValidation adv,BeanManager manager){
  MetricsService metricsService=Globals.getDefaultBaseServiceLocator().getService(MetricsService.class);
  MetricRegistry registry=metricsService.getOrAddRegistry(metricsService.getApplicationName());
  MetricsHelper helper=getReference(manager,MetricsHelper.class);
  for (  Map.Entry<Producer<?>,AnnotatedMember<?>> entry : metrics.entrySet()) {
    AnnotatedMember<?> annotatedMember=entry.getValue();
    Producer<?> prod=entry.getKey();
    if (hasInjectionPoints(annotatedMember)) {
      continue;
    }
    Metadata metadata=helper.metadataOf(annotatedMember);
    registry.register(metadata.getName(),(Metric)prod.produce(manager.createCreationalContext(null)),metadata);
  }
  metrics.clear();
}
Program: 28110
Project: 28110
Buggy source:
/** 
 * Gets the web modules associated with an application as a list.
 * @param appInfo the application to search.
 * @return a list of web modules.
 */
private List<WebModule> getWebModules(ApplicationInfo appInfo){
  if (appInfo == null) {
    return null;
  }
  List<WebModule> webModules=new ArrayList<>();
  for (  ModuleInfo moduleInfo : appInfo.getModuleInfos()) {
    EngineRef engineRef=moduleInfo.getEngineRefForContainer(WebContainer.class);
    if (engineRef != null) {
      WebApplication webApplication=(WebApplication)engineRef.getApplicationContainer();
      for (      WebModule module : webApplication.getWebModules()) {
        webModules.add(module);
      }
    }
  }
  return webModules;
}

Fixed version (ground truth):
/** 
 * Gets the web modules associated with an application as a list.
 * @param appInfo the application to search.
 * @return a list of web modules.
 */
private List<WebModule> getWebModules(ApplicationInfo appInfo){
  if (appInfo == null) {
    return null;
  }
  List<WebModule> webModules=new ArrayList<>();
  for (  ModuleInfo moduleInfo : appInfo.getModuleInfos()) {
    EngineRef engineRef=moduleInfo.getEngineRefForContainer(WebContainer.class);
    if (engineRef != null) {
      WebApplication webApplication=(WebApplication)engineRef.getApplicationContainer();
      if (webApplication != null) {
        for (        WebModule module : webApplication.getWebModules()) {
          webModules.add(module);
        }
      }
    }
  }
  return webModules;
}
Program: 28111
Project: 28111
Buggy source:
@Override public void initialize(){
  if (ctxUtil.getApplicationName() == null) {
    ctxUtil=Globals.getDefaultHabitat().getService(JavaEEContextUtil.class);
  }
  if (managedExecutorService == null) {
    try {
      InitialContext ctx=new InitialContext();
      managedExecutorService=(ManagedExecutorService)ctx.lookup("String_Node_Str");
    }
 catch (    NamingException ex) {
      Logger.getLogger(ClusteredCDIEventBusImpl.class.getName()).log(Level.SEVERE,null,ex);
    }
  }
}

Fixed version (ground truth):
@Override public void initialize(){
  if (ctxUtil.getInvocationComponentId() == null) {
    ctxUtil.setInstanceContext();
  }
  if (managedExecutorService == null) {
    try {
      InitialContext ctx=new InitialContext();
      managedExecutorService=(ManagedExecutorService)ctx.lookup("String_Node_Str");
    }
 catch (    NamingException ex) {
      Logger.getLogger(ClusteredCDIEventBusImpl.class.getName()).log(Level.SEVERE,null,ex);
    }
  }
}
Program: 28113
Project: 28113
Buggy source:
/** 
 * pushes invocation context onto the stack Also creates Request scope
 * @return new context that was created
 */
@Override public RequestContext pushRequestContext(){
  Context rootCtx=pushContext();
  BoundRequestContext brc=CDI.current().select(BoundRequestContext.class).get();
  ContextImpl.RequestContext context=new ContextImpl.RequestContext(rootCtx,brc.isActive() ? null : brc,new HashMap<String,Object>());
  if (context.ctx != null) {
    context.ctx.associate(context.storage);
    context.ctx.activate();
  }
  return context;
}

Fixed version (ground truth):
/** 
 * pushes invocation context onto the stack Also creates Request scope
 * @return new context that was created
 */
@Override public Context pushRequestContext(){
  Context rootCtx=pushContext();
  BoundRequestContext brc=CDI.current().select(BoundRequestContext.class).get();
  ContextImpl.RequestContext context=new ContextImpl.RequestContext(rootCtx,brc.isActive() ? null : brc,new HashMap<String,Object>());
  if (context.ctx != null) {
    context.ctx.associate(context.storage);
    context.ctx.activate();
  }
  return context;
}
Program: 28114
Project: 28114
Buggy source:
@PostConstruct void init(){
  capturedInvocation=serverContext.getInvocationManager().getCurrentInvocation();
  if (capturedInvocation != null) {
    capturedInvocation=capturedInvocation.clone();
  }
}

Fixed version (ground truth):
@PostConstruct void init(){
  serverContext=Globals.getDefaultHabitat().getService(ServerContext.class);
  compEnvMgr=Globals.getDefaultHabitat().getService(ComponentEnvManager.class);
  doSetInstanceContext();
}
Program: 28115
Project: 28115
Buggy source:
/** 
 * pushes Java EE invocation context
 * @return old ClassLoader, or null if no invocation has been created
 */
@Override public Context pushContext(){
  ClassLoader oldClassLoader=Utility.getClassLoader();
  InvocationManager invMgr=serverContext.getInvocationManager();
  boolean invocationCreated=false;
  if (invMgr.getCurrentInvocation() == null && capturedInvocation != null) {
    ComponentInvocation newInvocation=capturedInvocation.clone();
    newInvocation.clearRegistry();
    invMgr.preInvoke(newInvocation);
    invocationCreated=true;
  }
  if (invocationCreated) {
    Utility.setContextClassLoader(getInvocationClassLoader());
  }
  return new ContextImpl.Context(oldClassLoader,invocationCreated ? invMgr.getCurrentInvocation() : null);
}

Fixed version (ground truth):
/** 
 * pushes Java EE invocation context
 * @return the new context
 */
@Override public Context pushContext(){
  ClassLoader oldClassLoader=Utility.getClassLoader();
  InvocationManager invMgr=serverContext.getInvocationManager();
  boolean invocationCreated=false;
  if (invMgr.getCurrentInvocation() == null && capturedInvocation != null) {
    ComponentInvocation newInvocation=capturedInvocation.clone();
    newInvocation.clearRegistry();
    invMgr.preInvoke(newInvocation);
    invocationCreated=true;
  }
  if (invocationCreated) {
    Utility.setContextClassLoader(getInvocationClassLoader());
  }
  return new ContextImpl.Context(oldClassLoader,invocationCreated ? invMgr.getCurrentInvocation() : null,invMgr);
}
Program: 28116
Project: 28116
Buggy source:
@Override public ClassLoader getInvocationClassLoader(){
  JndiNameEnvironment componentEnv=compEnvMgr.getCurrentJndiNameEnvironment();
  if (componentEnv instanceof BundleDescriptor) {
    BundleDescriptor bd=(BundleDescriptor)componentEnv;
    return bd.getClassLoader();
  }
 else   if (componentEnv instanceof EjbDescriptor) {
    EjbDescriptor ed=(EjbDescriptor)componentEnv;
    return ed.getEjbBundleDescriptor().getClassLoader();
  }
  return null;
}

Fixed version (ground truth):
@Override public ClassLoader getInvocationClassLoader(){
  JndiNameEnvironment componentEnv=compEnvMgr.getCurrentJndiNameEnvironment();
  return getClassLoaderForEnvironment(componentEnv);
}
Program: 28118
Project: 28118
Buggy source:
/** 
 * pushes invocation context onto the stack Also creates Request scope
 * @return new context that was created
 */
RequestContext pushRequestContext();

Fixed version (ground truth):
/** 
 * pushes invocation context onto the stack Also creates Request scope use Lombok @Cleanup or try-with-resources to pop the context
 * @return new context that was created
 */
Context pushRequestContext();
Program: 28119
Project: 28119
Buggy source:
/** 
 * pushes Java EE invocation context
 * @return old ClassLoader, or null if no invocation has been created
 */
Context pushContext();

Fixed version (ground truth):
/** 
 * pushes Java EE invocation context onto the invocation stack use Lombok @Cleanup or try-with-resources to pop the context
 * @return the new context that was created
 */
Context pushContext();
Program: 28120
Project: 28120
Buggy source:
/** 
 * @return none
 */
public void setHost(String host){
  this.host=host;
}

Fixed version (ground truth):
/** 
 * @param host the host
 */
public void setHost(String host){
  this.host=host;
}
Program: 28121
Project: 28121
Buggy source:
/** 
 * @return none
 */
public void setHttpsPort(int secure_port){
  this.httpsPort=secure_port;
}

Fixed version (ground truth):
/** 
 * @param httpsPort the port used for https
 */
public void setHttpsPort(int httpsPort){
  this.httpsPort=httpsPort;
}
Program: 28122
Project: 28122
Buggy source:
/** 
 * @return none
 */
public void setHttpPort(int httpPort){
  this.httpPort=httpPort;
}

Fixed version (ground truth):
/** 
 * @param httpPort the http port
 */
public void setHttpPort(int httpPort){
  this.httpPort=httpPort;
}
Program: 28123
Project: 28123
Buggy source:
/** 
 * @return none
 */
public void setServerName(String serverName){
  this.serverName=serverName;
}

Fixed version (ground truth):
/** 
 * @param serverName name of the server
 */
public void setServerName(String serverName){
  this.serverName=serverName;
}
Program: 28124
Project: 28124
Buggy source:
/** 
 * Do deploy an application defined by a multipart form's data to the target server or cluster of Payara
 * @param name - name of the application form - a form of MediaType.MULTIPART_FORM_DATA_TYPE
 * @return subComponents - a map of SubComponents of the application
 */
public HTTPContext doDeploy(String name,FormDataMultiPart form) throws DeploymentException ;

Fixed version (ground truth):
/** 
 * Do deploy an application defined by a multipart form's data to the target server or cluster of Payara
 * @param name - name of the application form - a form of MediaType.MULTIPART_FORM_DATA_TYPE
 * @param form - form containing data to be deployed
 * @throws DeploymentException if something goes wrong with the deployment
 * @return subComponents - a map of SubComponents of the application
 */
public HTTPContext doDeploy(String name,FormDataMultiPart form) throws DeploymentException ;
Program: 28125
Project: 28125
Buggy source:
/** 
 * Start-up the server <p> <ul> <li>   Get the node addresses list associated with the target <li>    Check the status of the target server instance <li>    In case of cluster tries to fund an instance which has RUNNING status </ul>
 */
public void startUp();

Fixed version (ground truth):
/** 
 * Start-up the server <ul> <li>   Get the node addresses list associated with the target <li>    Check the status of the target server instance <li>    In case of cluster tries to fund an instance which has RUNNING status </ul>
 */
public void startUp();
Program: 28126
Project: 28126
Buggy source:
/** 
 * Verify whether the Domain Administration Server is running.
 */
public boolean isDASRunning();

Fixed version (ground truth):
/** 
 * Verify whether the Domain Administration Server is running.
 * @return true if the DAS is running, false otherwise
 */
public boolean isDASRunning();
Program: 28127
Project: 28127
Buggy source:
/** 
 * Do undeploy the application
 * @param name - application name
 * @return responseMap
 */
public Map<String,Object> doUndeploy(String name,FormDataMultiPart form);

Fixed version (ground truth):
/** 
 * Do undeploy the application
 * @param name - application name
 * @param form - form
 * @return responseMap
 */
public Map<String,Object> doUndeploy(String name,FormDataMultiPart form);
Program: 28128
Project: 28128
Buggy source:
/** 
 * Get the list of server instances of the cluster
 * @param target
 * @return server instances map
 */
protected Map<String,String> getServerInstances(String target){
  return clientUtil.getChildResources(MEMBER_SERVERS_RESOURCE.replace("String_Node_Str",target));
}

Fixed version (ground truth):
/** 
 * Get the list of server instances of the cluster
 * @param target the target
 * @return server instances map
 */
protected Map<String,String> getServerInstances(String target){
  return clientUtil.getChildResources(MEMBER_SERVERS_RESOURCE.replace("String_Node_Str",target));
}
Program: 28129
Project: 28129
Buggy source:
/** 
 * Undeploy the component
 * @param name - application name form - form that include the target & operation fields
 * @return resultMap
 */
public Map<String,Object> doUndeploy(String name,FormDataMultiPart form){
  return getClientUtil().POSTMultiPartRequest(APPLICATION_RESOURCE.replace("String_Node_Str",name),form);
}

Fixed version (ground truth):
/** 
 * Undeploy the component
 * @param name - application name form - form that include the target and operation fields
 * @param form - form containing the data
 * @return resultMap
 */
public Map<String,Object> doUndeploy(String name,FormDataMultiPart form){
  return getClientUtil().POSTMultiPartRequest(APPLICATION_RESOURCE.replace("String_Node_Str",name),form);
}
Program: 28130
Project: 28130
Buggy source:
/** 
 * Get the clusterAttributes map of a cluster
 * @param name of the cluster
 * @return serverAttributes mapconfigRef:      - reference to the cluster's configuration object ...
 */
protected Map<String,String> getClusterAttributes(String cluster){
  return clientUtil.getAttributes(CLUSTER_RESOURCE.replace("String_Node_Str",cluster));
}

Fixed version (ground truth):
/** 
 * Get the clusterAttributes map of a cluster
 * @param cluster of the cluster
 * @return serverAttributes mapconfigRef:      - reference to the cluster's configuration object ...
 */
protected Map<String,String> getClusterAttributes(String cluster){
  return clientUtil.getAttributes(CLUSTER_RESOURCE.replace("String_Node_Str",cluster));
}
Program: 28131
Project: 28131
Buggy source:
/** 
 * Start-up the server <p> - Get the node addresses list associated with the target - Pull the server instances status form mgm API - In case of cluster tries to fund an instance which has RUNNING status
 * @return none
 */
public void startUp() throws PayaraClientException {
  Map<String,String> standaloneServers=new HashMap<>();
  Map<String,String> clusters=new HashMap<>();
  try {
    standaloneServers=getServersList();
  }
 catch (  ProcessingException ch) {
    throw new PayaraClientException("String_Node_Str" + getDASUrl() + "String_Node_Str"+ ch.getCause().getMessage());
  }
  if (ADMINSERVER.equals(getTarget())) {
    serverInstance=new AdminServer();
  }
 else   if (standaloneServers.containsKey(getTarget())) {
    serverInstance=new StandaloneServer();
  }
 else {
    clusters=getClustersList();
    if (clusters != null && clusters.containsKey(getTarget())) {
      serverInstance=new ClusterServer();
    }
 else {
      throw new PayaraClientException("String_Node_Str" + getTarget() + "String_Node_Str");
    }
  }
  List<NodeAddress> nodeAddressList=serverInstance.getNodeAddressList();
  if (ADMINSERVER.equals(configuration.getTarget())) {
    nodeAddress=nodeAddressList.get(0);
  }
 else {
    nodeAddress=runningInstanceFilter(nodeAddressList);
  }
}

Fixed version (ground truth):
/** 
 * Start-up the server <p> - Get the node addresses list associated with the target - Pull the server instances status form mgm API - In case of cluster tries to fund an instance which has RUNNING status
 */
public void startUp() throws PayaraClientException {
  Map<String,String> standaloneServers=new HashMap<>();
  Map<String,String> clusters=new HashMap<>();
  try {
    standaloneServers=getServersList();
  }
 catch (  ProcessingException ch) {
    throw new PayaraClientException("String_Node_Str" + getDASUrl() + "String_Node_Str"+ ch.getCause().getMessage());
  }
  if (ADMINSERVER.equals(getTarget())) {
    serverInstance=new AdminServer();
  }
 else   if (standaloneServers.containsKey(getTarget())) {
    serverInstance=new StandaloneServer();
  }
 else {
    clusters=getClustersList();
    if (clusters != null && clusters.containsKey(getTarget())) {
      serverInstance=new ClusterServer();
    }
 else {
      throw new PayaraClientException("String_Node_Str" + getTarget() + "String_Node_Str");
    }
  }
  List<NodeAddress> nodeAddressList=serverInstance.getNodeAddressList();
  if (ADMINSERVER.equals(configuration.getTarget())) {
    nodeAddress=nodeAddressList.get(0);
  }
 else {
    nodeAddress=runningInstanceFilter(nodeAddressList);
  }
}
Program: 28132
Project: 28132
Buggy source:
/** 
 * Get the serverAttributes map of a server
 * @param name of the server
 * @return serverAttributes mapnodeRef:		- reference to the node object configRef:		- reference to the server's configuration object ...
 */
protected Map<String,String> getServerAttributes(String server){
  return clientUtil.getAttributes(SERVER_RESOURCE.replace("String_Node_Str",server));
}

Fixed version (ground truth):
/** 
 * Get the serverAttributes map of a server
 * @param server of the server
 * @return serverAttributes mapnodeRef:		- reference to the node object configRef:		- reference to the server's configuration object ...
 */
protected Map<String,String> getServerAttributes(String server){
  return clientUtil.getAttributes(SERVER_RESOURCE.replace("String_Node_Str",server));
}
Program: 28133
Project: 28133
Buggy source:
/** 
 * Get the http/https port number of the server instance <p> The attribute is optional, It is generated by the Glassfish server if we have more then one server instance on the same node.
 * @param server namesecure: false - http port number, true - https port number
 * @return http/https port number. If the attribute is not defined, gives back the default port
 */
protected int getServerInstanceHttpPort(String server,int default_port,boolean secure){
  String httpListener=(!secure) ? "String_Node_Str" : "String_Node_Str";
  String value=getClientUtil().getAttributes(HTTP_LISTENER_INS.replace("String_Node_Str",server).replace("String_Node_Str",httpListener)).get("String_Node_Str");
  return value != null ? Integer.parseInt(value) : default_port;
}

Fixed version (ground truth):
/** 
 * Get the http/https port number of the server instance <p> The attribute is optional, It is generated by the Glassfish server if we have more then one server instance on the same node.
 * @param server name
 * @param defaultPort port used as no port found
 * @param secure false - http port number, true - https port number
 * @return http/https port number. If the attribute is not defined, gives back the default port
 */
protected int getServerInstanceHttpPort(String server,int defaultPort,boolean secure){
  String httpListener=(!secure) ? "String_Node_Str" : "String_Node_Str";
  String value=getClientUtil().getAttributes(HTTP_LISTENER_INS.replace("String_Node_Str",server).replace("String_Node_Str",httpListener)).get("String_Node_Str");
  return value != null ? Integer.parseInt(value) : defaultPort;
}
Program: 28134
Project: 28134
Buggy source:
/** 
 * Marshalling a Payara Mng API response XML document to a java Map object
 * @param XML document
 * @return map containing the XML doc representation in java map format
 */
public Map<String,Object> xmlToMap(String document){
  if (document == null) {
    return new HashMap<>();
  }
  Map<String,Object> map=null;
  XMLInputFactory factory=XMLInputFactory.newInstance();
  factory.setProperty(IS_VALIDATING,false);
  try (InputStream input=new ByteArrayInputStream(document.trim().getBytes("String_Node_Str"))){
    XMLStreamReader stream=factory.createXMLStreamReader(input);
    while (stream.hasNext()) {
      if (stream.next() == START_ELEMENT && "String_Node_Str".equals(stream.getLocalName())) {
        map=resolveXmlMap(stream);
      }
    }
  }
 catch (  Exception ex) {
    log.log(SEVERE,null,ex);
    throw new RuntimeException(ex);
  }
  return map;
}

Fixed version (ground truth):
/** 
 * Marshalling a Payara Mng API response XML document to a java Map object
 * @param document the XMl document to be converted
 * @return map containing the XML doc representation in java map format
 */
public Map<String,Object> xmlToMap(String document){
  if (document == null) {
    return new HashMap<>();
  }
  Map<String,Object> map=null;
  XMLInputFactory factory=XMLInputFactory.newInstance();
  factory.setProperty(IS_VALIDATING,false);
  try (InputStream input=new ByteArrayInputStream(document.trim().getBytes("String_Node_Str"))){
    XMLStreamReader stream=factory.createXMLStreamReader(input);
    while (stream.hasNext()) {
      if (stream.next() == START_ELEMENT && "String_Node_Str".equals(stream.getLocalName())) {
        map=resolveXmlMap(stream);
      }
    }
  }
 catch (  Exception ex) {
    log.log(SEVERE,null,ex);
    throw new RuntimeException(ex);
  }
  return map;
}
Program: 28137
Project: 28137
Buggy source:
public static String escapePropertyValue(String str){
  String chStr;
  int len;
  StringCharacterIterator it=new StringCharacterIterator(str);
  char ch=it.first();
  StringBuilder builder=new StringBuilder(str.length() << 2);
  while (ch != StringCharacterIterator.DONE) {
switch (ch) {
case '\t':
      builder.append("String_Node_Str");
    break;
case '\n':
  builder.append("String_Node_Str");
break;
case '\r':
builder.append("String_Node_Str");
break;
case '\b':
builder.append("String_Node_Str");
break;
case '\f':
builder.append("String_Node_Str");
break;
case '&':
case '<':
case '>':
case '(':
case ')':
case '{':
case '}':
case ':':
case '/':
case '\\':
case '\'':
case '"':
builder.append("String_Node_Str");
builder.append(ch);
break;
default :
if ((ch > 0x7e) || (ch < 0x20)) {
builder.append("String_Node_Str");
chStr=Integer.toHexString(ch);
len=chStr.length();
for (int idx=4; idx > len; idx--) {
builder.append('0');
}
builder.append(chStr);
}
 else {
builder.append(ch);
}
break;
}
ch=it.next();
}
return builder.toString();
}

Fixed version (ground truth):
public static String escapePropertyValue(String str){
  String chStr;
  int len;
  StringCharacterIterator it=new StringCharacterIterator(str);
  char ch=it.first();
  StringBuilder builder=new StringBuilder(str.length() << 2);
  while (ch != StringCharacterIterator.DONE) {
switch (ch) {
case '\t':
      builder.append("String_Node_Str");
    break;
case '\n':
  builder.append("String_Node_Str");
break;
case '\r':
builder.append("String_Node_Str");
break;
case '\b':
builder.append("String_Node_Str");
break;
case '\f':
builder.append("String_Node_Str");
break;
case '&':
case '<':
case '>':
case '(':
case ')':
case '{':
case '}':
case ':':
case '/':
case '\\':
case '\'':
case '"':
case '=':
builder.append("String_Node_Str");
builder.append(ch);
break;
default :
if ((ch > 0x7e) || (ch < 0x20)) {
builder.append("String_Node_Str");
chStr=Integer.toHexString(ch);
len=chStr.length();
for (int idx=4; idx > len; idx--) {
builder.append('0');
}
builder.append(chStr);
}
 else {
builder.append(ch);
}
break;
}
ch=it.next();
}
return builder.toString();
}
Program: 28141
Project: 28141
Buggy source:
/** 
 * Bootstraps the monitoring service. Creates a thread pool for the ScheduledExecutorService. Schedules the AMXBoot class to execute if AMX is enabled. Schedules the MonitoringFormatter to execute at a specified fixed rate  if enabled in the configuration.
 */
public void bootstrapMonitoringService(){
  if (configuration != null) {
    executor=Executors.newScheduledThreadPool(2,new ThreadFactory(){
      @Override public Thread newThread(      Runnable r){
        return new Thread(r,PREFIX.concat(Integer.toString(threadNumber.getAndIncrement())).concat("String_Node_Str"));
      }
    }
);
    final MBeanServer server=getPlatformMBeanServer();
    formatter=new MonitoringFormatter(server,buildJobs());
    enabled=Boolean.valueOf(configuration.getEnabled());
    if (enabled) {
      Logger.getLogger(MonitoringService.class.getName()).log(Level.INFO,"String_Node_Str");
      if (Boolean.valueOf(configuration.getAmx())) {
        executor.schedule(new AMXBoot(server),amxBootDelay,TimeUnit.SECONDS);
      }
      executor.scheduleAtFixedRate(formatter,monitoringDelay,TimeUnit.SECONDS.convert(Long.valueOf(configuration.getLogFrequency()),TimeUnit.valueOf(configuration.getLogFrequencyUnit())),TimeUnit.SECONDS);
    }
  }
}

Fixed version (ground truth):
/** 
 * Bootstraps the monitoring service. Creates a thread pool for the ScheduledExecutorService. Schedules the AMXBoot class to execute if AMX is enabled. Schedules the MonitoringFormatter to execute at a specified fixed rate  if enabled in the configuration.
 */
private void bootstrapMonitoringService(){
  if (configuration != null) {
    executor=Executors.newScheduledThreadPool(2,new ThreadFactory(){
      @Override public Thread newThread(      Runnable r){
        return new Thread(r,PREFIX.concat(Integer.toString(threadNumber.getAndIncrement())).concat("String_Node_Str"));
      }
    }
);
    final MBeanServer server=getPlatformMBeanServer();
    formatter=new MonitoringFormatter(server,buildJobs());
    Logger.getLogger(MonitoringService.class.getName()).log(Level.INFO,"String_Node_Str");
    if (Boolean.valueOf(configuration.getAmx())) {
      executor.schedule(new AMXBoot(server),amxBootDelay,TimeUnit.SECONDS);
    }
    executor.scheduleAtFixedRate(formatter,monitoringDelay,TimeUnit.SECONDS.convert(Long.valueOf(configuration.getLogFrequency()),TimeUnit.valueOf(configuration.getLogFrequencyUnit())),TimeUnit.SECONDS);
  }
}
Program: 28142
Project: 28142
Buggy source:
/** 
 * Shuts the scheduler down.
 */
public void shutdownMonitoringService(){
  if (executor != null) {
    Logger.getLogger(MonitoringService.class.getName()).log(Level.INFO,"String_Node_Str");
    executor.shutdownNow();
  }
}

Fixed version (ground truth):
/** 
 * Shuts the scheduler down.
 */
private void shutdownMonitoringService(){
  if (executor != null) {
    Logger.getLogger(MonitoringService.class.getName()).log(Level.INFO,"String_Node_Str");
    executor.shutdownNow();
  }
}
Program: 28143
Project: 28143
Buggy source:
/** 
 * Sets the service to be enabled/disabled. Has no effect if there is no change in the value.
 * @param enabled 
 */
public void setEnabled(Boolean enabled){
  amxBootDelay=0;
  monitoringDelay=amxBootDelay + 5;
  if (!this.enabled && enabled) {
    this.enabled=enabled;
    bootstrapMonitoringService();
  }
 else   if (this.enabled && !enabled) {
    this.enabled=enabled;
    shutdownMonitoringService();
  }
 else   if (this.enabled) {
    this.enabled=enabled;
    shutdownMonitoringService();
    bootstrapMonitoringService();
  }
}

Fixed version (ground truth):
/** 
 * Sets the service to be enabled/disabled. Has no effect if there is no change in the value.
 * @param enabled 
 */
public void setEnabled(Boolean enabled){
  amxBootDelay=0;
  monitoringDelay=amxBootDelay + 5;
  if (!this.enabled && enabled) {
    this.enabled=enabled;
    bootstrapMonitoringService();
  }
 else   if (this.enabled && !enabled) {
    this.enabled=enabled;
    shutdownMonitoringService();
  }
}
Program: 28144
Project: 28144
Buggy source:
/** 
 * Add a property change listener.
 * @param l the listener to add
 */
public synchronized void addPropertyChangeListener(PropertyChangeListener l){
  if (_support == null) {
synchronized (this) {
      if (_support == null)       _support=new PropertyChangeSupport(_element);
    }
  }
  _support.addPropertyChangeListener(l);
}

Fixed version (ground truth):
/** 
 * Add a property change listener.
 * @param l the listener to add
 */
public synchronized void addPropertyChangeListener(PropertyChangeListener l){
  if (_support == null)   _support=new PropertyChangeSupport(_element);
  _support.addPropertyChangeListener(l);
}
Program: 28145
Project: 28145
Buggy source:
/** 
 * Add a property change listener.
 * @param l the listener to add
 */
public synchronized void addPropertyChangeListener(PropertyChangeListener l){
  if (_support == null) {
synchronized (this) {
      if (_support == null)       _support=new PropertyChangeSupport(this);
    }
  }
  _support.addPropertyChangeListener(l);
}

Fixed version (ground truth):
/** 
 * Add a property change listener.
 * @param l the listener to add
 */
public synchronized void addPropertyChangeListener(PropertyChangeListener l){
  if (_support == null)   _support=new PropertyChangeSupport(this);
  _support.addPropertyChangeListener(l);
}
Program: 28147
Project: 28147
Buggy source:
/** 
 * Reconfigures the access log of this VirtualServer with the updated attributes of the access-log element from domain.xml.
 */
void reconfigureAccessLog(HttpService httpService,WebContainerFeatureFactory webcontainerFeatureFactory){
  try {
    boolean restart=false;
    if (accessLogValve.isStarted()) {
      accessLogValve.stop();
      restart=true;
    }
    accessLogValve.updateAccessLogAttributes(httpService,webcontainerFeatureFactory);
    if (restart) {
      accessLogValve.start();
      if (httpProbe != null)       httpProbe.enableAccessLogging();
    }
  }
 catch (  LifecycleException le) {
    _logger.log(Level.SEVERE,LogFacade.UNABLE_RECONFIGURE_ACCESS_LOG,le);
  }
}

Fixed version (ground truth):
/** 
 * Reconfigures the access log of this VirtualServer with the updated attributes of the access-log element from domain.xml.
 */
void reconfigureAccessLog(HttpService httpService,WebContainerFeatureFactory webcontainerFeatureFactory){
  try {
    boolean restart=false;
    if (accessLogValve.isStarted()) {
      accessLogValve.stop();
      restart=true;
    }
    accessLogValve.updateAccessLogAttributes(httpService,webcontainerFeatureFactory);
    if (restart) {
      accessLogValve.start();
      for (      HttpProbeImpl p : getHttpProbeImpl()) {
        p.enableAccessLogging();
      }
    }
  }
 catch (  LifecycleException le) {
    _logger.log(Level.SEVERE,LogFacade.UNABLE_RECONFIGURE_ACCESS_LOG,le);
  }
}
Program: 28148
Project: 28148
Buggy source:
@Handler(id="String_Node_Str",input={@HandlerInput(name="String_Node_Str",type=String.class,required=true),@HandlerInput(name="String_Node_Str",type=String.class)},output={@HandlerOutput(name="String_Node_Str",type=String.class)}) public static void convertDateTimeFormat(HandlerContext handlerCtx){
  String dateTime=(String)handlerCtx.getInputValue("String_Node_Str");
  String result="String_Node_Str";
  if (!GuiUtil.isEmpty(dateTime)) {
    try {
      long longValue=Long.valueOf(dateTime);
      String format=(String)handlerCtx.getHandler().getInputValue("String_Node_Str");
      if (format == null)       format="String_Node_Str";
      result=new SimpleDateFormat(format).format(new Date(longValue));
    }
 catch (    NumberFormatException ex) {
    }
  }
  handlerCtx.setOutputValue("String_Node_Str",result);
}

Fixed version (ground truth):
@Handler(id="String_Node_Str",input={@HandlerInput(name="String_Node_Str",type=String.class,required=true),@HandlerInput(name="String_Node_Str",type=String.class)},output={@HandlerOutput(name="String_Node_Str",type=String.class)}) public static void convertDateTimeFormat(HandlerContext handlerCtx){
  String dateTime=(String)handlerCtx.getInputValue("String_Node_Str");
  String result="String_Node_Str";
  if (!GuiUtil.isEmpty(dateTime)) {
    try {
      long longValue=Long.parseLong(dateTime);
      String format=(String)handlerCtx.getHandler().getInputValue("String_Node_Str");
      if (format == null)       format="String_Node_Str";
      result=new SimpleDateFormat(format).format(new Date(longValue));
    }
 catch (    NumberFormatException ex) {
    }
  }
  handlerCtx.setOutputValue("String_Node_Str",result);
}
Program: 28150
Project: 28150
Buggy source:
@Handler(id="String_Node_Str",input={@HandlerInput(name="String_Node_Str",type=java.util.Map.class,required=true),@HandlerInput(name="String_Node_Str",type=String.class,required=true),@HandlerInput(name="String_Node_Str",type=String.class)},output={@HandlerOutput(name="String_Node_Str",type=String.class)}) public static void convertScheduleToString(HandlerContext handlerCtx){
  Map<String,String> map=(Map)handlerCtx.getInputValue("String_Node_Str");
  String delimiter=(String)handlerCtx.getInputValue("String_Node_Str");
  String type=(String)handlerCtx.getInputValue("String_Node_Str");
  if (delimiter == null)   delimiter="String_Node_Str";
  String str="String_Node_Str";
  String[] data=values.get(type);
  for (  Map.Entry<String,String> e : map.entrySet()) {
    Object o=e.getValue();
    if (o == null)     continue;
    if (e.getKey().equals("String_Node_Str")) {
      str="String_Node_Str";
      break;
    }
    try {
      int val=Integer.valueOf(o.toString()).intValue();
      if (val >= 0 && val < data.length) {
        if (str.length() > 0)         str=str + "String_Node_Str";
        str=str + data[val];
      }
    }
 catch (    Exception ex) {
      GuiUtil.getLogger().info(GuiUtil.getCommonMessage("String_Node_Str") + ex.getLocalizedMessage());
      if (GuiUtil.getLogger().isLoggable(Level.FINE)) {
        ex.printStackTrace();
      }
    }
  }
  if (str.length() == 0)   str="String_Node_Str";
  handlerCtx.setOutputValue("String_Node_Str",str);
}

Fixed version (ground truth):
@Handler(id="String_Node_Str",input={@HandlerInput(name="String_Node_Str",type=java.util.Map.class,required=true),@HandlerInput(name="String_Node_Str",type=String.class,required=true),@HandlerInput(name="String_Node_Str",type=String.class)},output={@HandlerOutput(name="String_Node_Str",type=String.class)}) public static void convertScheduleToString(HandlerContext handlerCtx){
  Map<String,String> map=(Map)handlerCtx.getInputValue("String_Node_Str");
  String delimiter=(String)handlerCtx.getInputValue("String_Node_Str");
  String type=(String)handlerCtx.getInputValue("String_Node_Str");
  if (delimiter == null)   delimiter="String_Node_Str";
  String str="String_Node_Str";
  String[] data=values.get(type);
  for (  Map.Entry<String,String> e : map.entrySet()) {
    Object o=e.getValue();
    if (o == null)     continue;
    if (e.getKey().equals("String_Node_Str")) {
      str="String_Node_Str";
      break;
    }
    try {
      int val=Integer.parseInt(o.toString());
      if (val >= 0 && val < data.length) {
        if (str.length() > 0)         str=str + "String_Node_Str";
        str=str + data[val];
      }
    }
 catch (    Exception ex) {
      GuiUtil.getLogger().info(GuiUtil.getCommonMessage("String_Node_Str") + ex.getLocalizedMessage());
      if (GuiUtil.getLogger().isLoggable(Level.FINE)) {
        ex.printStackTrace();
      }
    }
  }
  if (str.length() == 0)   str="String_Node_Str";
  handlerCtx.setOutputValue("String_Node_Str",str);
}
Program: 28151
Project: 28151
Buggy source:
private static Map getDataMap(String data,String type){
  List<String> dataList=GuiUtil.parseStringList(data,"String_Node_Str");
  String[] dataValues=values.get(type);
  Map dataMap=new HashMap();
  for (  String dataItem : dataList) {
    if (dataItem.equals("String_Node_Str")) {
      dataMap.put(dataItem,dataItem);
      continue;
    }
    try {
      int i=Integer.valueOf(dataItem).intValue();
      if (i >= 0 && i < dataValues.length)       dataMap.put(dataValues[i],String.valueOf(i));
    }
 catch (    NumberFormatException e) {
      for (int i=0; i < dataValues.length; i++) {
        if (dataValues[i].equalsIgnoreCase(dataItem))         dataMap.put(dataItem,String.valueOf(i));
      }
    }
  }
  return dataMap;
}

Fixed version (ground truth):
private static Map getDataMap(String data,String type){
  List<String> dataList=GuiUtil.parseStringList(data,"String_Node_Str");
  String[] dataValues=values.get(type);
  Map dataMap=new HashMap();
  for (  String dataItem : dataList) {
    if (dataItem.equals("String_Node_Str")) {
      dataMap.put(dataItem,dataItem);
      continue;
    }
    try {
      int i=Integer.parseInt(dataItem);
      if (i >= 0 && i < dataValues.length)       dataMap.put(dataValues[i],String.valueOf(i));
    }
 catch (    NumberFormatException e) {
      for (int i=0; i < dataValues.length; i++) {
        if (dataValues[i].equalsIgnoreCase(dataItem))         dataMap.put(dataItem,String.valueOf(i));
      }
    }
  }
  return dataMap;
}
Program: 28153
Project: 28153
Buggy source:
private int initVersionAsInt(){
  int firstDot=versionString.indexOf("String_Node_Str");
  String tensString=versionString.substring(0,firstDot);
  int nextDot=versionString.indexOf("String_Node_Str",firstDot + 1);
  if (nextDot < 0) {
    nextDot=versionString.length();
  }
  String onesString=versionString.substring(firstDot + 1,nextDot);
  int version=-1;
  int tens=new Integer(tensString).intValue();
  int ones=new Integer(onesString).intValue();
  version=(tens * 10) + ones;
  return version;
}

Fixed version (ground truth):
private int initVersionAsInt(){
  int firstDot=versionString.indexOf("String_Node_Str");
  String tensString=versionString.substring(0,firstDot);
  int nextDot=versionString.indexOf("String_Node_Str",firstDot + 1);
  if (nextDot < 0) {
    nextDot=versionString.length();
  }
  String onesString=versionString.substring(firstDot + 1,nextDot);
  int version=-1;
  int tens=Integer.parseInt(tensString);
  int ones=Integer.parseInt(onesString);
  version=(tens * 10) + ones;
  return version;
}
Program: 28156
Project: 28156
Buggy source:
private List<StepExecution> findStepExecutions() throws JobSecurityException, NoSuchJobExecutionException {
  JobOperator jobOperator=AbstractListCommand.getJobOperatorFromBatchRuntime();
  JobExecution je=jobOperator.getJobExecution(Long.valueOf(executionId));
  if (!glassFishBatchSecurityHelper.isVisibleToThisInstance(((TaggedJobExecution)je).getTagName()))   throw new NoSuchJobExecutionException("String_Node_Str" + executionId);
  List<StepExecution> stepExecutions=jobOperator.getStepExecutions(Long.valueOf(executionId));
  if (stepExecutions == null || stepExecutions.size() == 0)   throw new NoSuchJobExecutionException("String_Node_Str" + executionId);
  return stepExecutions;
}

Fixed version (ground truth):
private List<StepExecution> findStepExecutions() throws JobSecurityException, NoSuchJobExecutionException {
  JobOperator jobOperator=AbstractListCommand.getJobOperatorFromBatchRuntime();
  JobExecution je=jobOperator.getJobExecution(Long.parseLong(executionId));
  if (!glassFishBatchSecurityHelper.isVisibleToThisInstance(((TaggedJobExecution)je).getTagName()))   throw new NoSuchJobExecutionException("String_Node_Str" + executionId);
  List<StepExecution> stepExecutions=jobOperator.getStepExecutions(Long.parseLong(executionId));
  if (stepExecutions == null || stepExecutions.size() == 0)   throw new NoSuchJobExecutionException("String_Node_Str" + executionId);
  return stepExecutions;
}
Program: 28157
Project: 28157
Buggy source:
@Override public void setElementValue(XMLElement element,String value){
  if (EjbTagNames.TIMEOUT_VALUE.equals(element.getQName())) {
    descriptor.setValue(new Long(value));
  }
 else   if (EjbTagNames.TIMEOUT_UNIT.equals(element.getQName())) {
    descriptor.setUnit(elementToTimeUnit.get(value));
  }
 else {
    super.setElementValue(element,value);
  }
}

Fixed version (ground truth):
@Override public void setElementValue(XMLElement element,String value){
  if (EjbTagNames.TIMEOUT_VALUE.equals(element.getQName())) {
    descriptor.setValue(Long.parseLong(value));
  }
 else   if (EjbTagNames.TIMEOUT_UNIT.equals(element.getQName())) {
    descriptor.setUnit(elementToTimeUnit.get(value));
  }
 else {
    super.setElementValue(element,value);
  }
}