It's all about the answers!

Ask a question

RAMAction[] actions = relatedAsset.getAvailableActions(); //this fails with RAMRuntimeException: Failed to load available actions


SImon Starkie (135) | asked May 29 '15, 6:37 p.m.
edited Nov 10 '15, 12:58 p.m. by Martin Madzio (9617)

The following statements fails with :

RAMAction[] actions = relatedAsset.getAvailableActions(); //this fails with RAMRuntimeException: Failed to load available actions

Here's the entire code:

 private String retireCurrentImplementations(RAMAsset assetCode, RAMSubCategory ramCategory, RAMAsset assetImpl) throws EISRAMUtilityException {
  
  logger.info("EISRAMUtility.retireCurrentImplementations starting...");
  
  String strComment = "";
  
  for(Relationship relationship : assetCode.getRelationships()) {
   if(!relationship.getRelationshipTypeName().equals(EISRAMUtilityConstants.RELATIONSHIP_AGGREGATION))
    continue;
      
         RAMAsset relatedAsset = session.getAsset(new AssetIdentification(relationship.getChildAssetGUID(), relationship.getChildAssetVersion()));
logger.info("EISRAMUtility.retireCurrentImplementations relatedAsset " + relatedAsset.toString());         
         
         // Retire only the currently active implementations for a particular ENV
         if(!findCategory(relatedAsset, ramCategory.getFullPath()))
          continue;
         
   try {

    if(assetImpl != null && relatedAsset.getIdentification().getGUID().equals(assetImpl.getIdentification().getGUID())) {
     
     logger.info("Ignoring this asset for retiring (as it's an update): " + relatedAsset + " with GUID " + relatedAsset.getIdentification().getGUID());
     continue;
     
    }
    
    logger.info("Retiring asset: " + relatedAsset + " with GUID " + relatedAsset.getIdentification().getGUID());
logger.info("EISRAMUtility.retireCurrentImplementations got here ONE...");
    RAMAction[] actions = relatedAsset.getAvailableActions(); //this fails with RAMRuntimeException: Failed to load available actions
logger.info("EISRAMUtility.retireCurrentImplementations got here TWO...");         
    RAMAction retireAction = null;
    for(RAMAction action: actions) {
     
     logger.info("Current state:" + relatedAsset.getStateName() + ", Available action: " + action.getName());
              // Note that RAMAction.RETIRE is a legacy action, but its name and the name for the typical life cycle is the same
              if (action.getName().equals(RAMAction.RETIRE.getName()))
                  retireAction = action;
             
    }
         
    // Move the asset to "pre-retired" state
    relatedAsset.setAction(retireAction);
    session.put(relatedAsset, new NullProgressMonitor());
    
    actions = relatedAsset.getAvailableActions();
          retireAction = null;
    for(RAMAction action: actions) {
     
     logger.info("Current state:" + relatedAsset.getStateName() + ", Available action: " + action.getName());
              // Note that RAMAction.RETIRE is a legacy action, but its name and the name for the typical life cycle is the same
              if (action.getName().equals(RAMAction.RETIRE.getName()))
                  retireAction = action;
             
    }
    
    // Move the asset to "retired" state
    relatedAsset.setAction(retireAction);
    session.put(relatedAsset, new NullProgressMonitor());
 
    strComment += "Retired " + relatedAsset + " [ID = " + relatedAsset.getIdentification().getGUID() + "].  ";
    
   } catch(RAMRuntimeException rre) {
          
    String strErrorMsg = "RAMRuntimeException Error retiring " + relatedAsset + ", can't proceed..." + rre.getMessage();
    logger.error(strErrorMsg);
    throw new EISRAMUtilityException(strErrorMsg, rre);
   
         } // try - catch

         
  } // for each related asset
  
  return strComment;
    
 } // retireCurrentImplementations(RAMAsset, RAMSubCategory, RAMAsset)

Here's the log from a test:

2015-05-21T14:25:08.473-0700 | INFO | EIS_RTC_RAM_Client | uploadDeployableArtifactToRAM | EIS_RTC_RAM_Client.uploadDeployableArtifactToRAM starting...
2015-05-21T14:25:08.489-0700 | INFO | EIS_RTC_RAM_Client | processArguments | [Param] RTC_COMP_NAME = DP_AllApps
2015-05-21T14:25:08.489-0700 | INFO | EIS_RTC_RAM_Client | processArguments | [Param] RAM_COMP_NAME = SIMON_artifact
2015-05-21T14:25:08.489-0700 | INFO | EIS_RTC_RAM_Client | processArguments | [Param] RTC_CHANGE_SET = SIMON_artifact_20150520
2015-05-21T14:25:08.489-0700 | INFO | EIS_RTC_RAM_Client | processArguments | [Param] RTC_COMP_TYPE = WSPnotepad
2015-05-21T14:25:08.489-0700 | INFO | EIS_RTC_RAM_Client | processArguments | [Property] RTC_PROJECT_AREA = EIS-Datapower
2015-05-21T14:25:08.489-0700 | INFO | EIS_RTC_RAM_Client | processArguments | [Property] RTC_REPO_URL = https://rational.kp.org/ccm1
2015-05-21T14:25:08.489-0700 | INFO | EIS_RTC_RAM_Client | processArguments | [Property] RTC_DP_STREAM = EIS-DataPower Stream
2015-05-21T14:25:08.489-0700 | INFO | EIS_RTC_RAM_Client | processArguments | [Property] RAM_URL = https://rational.kp.org/ram
2015-05-21T14:25:08.489-0700 | INFO | EIS_RTC_RAM_Client | processArguments | [Property] RAM_COMMUNITY = EIS
2015-05-21T14:25:08.489-0700 | INFO | EIS_RTC_RAM_Client | processArguments | [Property] RTC_USER_PWD = **********
2015-05-21T14:25:08.504-0700 | INFO | EIS_RTC_RAM_Client | processArguments | [Property] RTC_USER_ID = m236259
2015-05-21T14:25:08.504-0700 | INFO | EIS_RTC_RAM_Client | uploadDeployableArtifactToRAM | Initializing RTC Utility
2015-05-21T14:25:15.114-0700 | INFO | HttpMethodDirector | isAuthenticationNeeded | Authentication requested but doAuthentication is disabled
2015-05-21T14:25:20.067-0700 | INFO | EISRTCUtility | log | [login()] Logged into Repository 'https://rational.kp.org/ccm1' with user id 'M236259'
2015-05-21T14:25:20.129-0700 | INFO | EIS_RTC_RAM_Client | uploadDeployableArtifactToRAM | Initializing RAM Utility
2015-05-21T14:25:23.989-0700 | WARN | JavaUtils | isAttachmentSupported | Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
2015-05-21T14:25:28.049-0700 | INFO | EIS_RTC_RAM_Client | uploadDeployableArtifactToRAM | Component: DP_AllApps
2015-05-21T14:25:28.049-0700 | INFO | EIS_RTC_RAM_Client | uploadDeployableArtifactToRAM | Change Set: SIMON_artifact_20150520
2015-05-21T14:25:28.049-0700 | INFO | EIS_RTC_RAM_Client | uploadDeployableArtifactToRAM | Downloading Datapower Artifact from RTC
2015-05-21T14:25:28.909-0700 | INFO | EISRTCUtility | log | [findOrCreateDeployWorkspace()] Workspace found: M236259_Deploy_Workspace (Workspace used for deploying Datapower artifacts, created automatically and managed by org.kp.eis.rtc.utility.EISRTCUtility)
2015-05-21T14:25:29.783-0700 | INFO | EISRTCUtility | log | [findComponent()] Stream found: EIS-DataPower Stream
2015-05-21T14:25:30.048-0700 | INFO | EISRTCUtility | log | [findComponent()] Found component 'DP_AllApps' in Stream 'EIS-DataPower Stream' in Project Area 'EIS-Datapower'
2015-05-21T14:25:31.283-0700 | INFO | EISRTCUtility | log | [downloadDatapowerComponent()] Changeset retrieved -> SIMON_artifact_20150520, 2015-05-20 10:03:24.023, size=784
2015-05-21T14:25:31.595-0700 | INFO | EISRTCUtility | log | [downloadDatapowerComponent()] Trying to download file = SIMON_artifact.xcfg, size = 5325021
2015-05-21T14:25:32.126-0700 | INFO | EISRTCUtility | log | Transferred 16.0 KB of 5.1 MB.
2015-05-21T14:25:32.611-0700 | INFO | EISRTCUtility | log | Transferred 31.9 KB of 5.1 MB.
2015-05-21T14:25:32.767-0700 | INFO | EISRTCUtility | log | Transferred 47.9 KB of 5.1 MB.
2015-05-21T14:25:32.939-0700 | INFO | EISRTCUtility | log | Transferred 63.9 KB of 5.1 MB.
2015-05-21T14:25:32.939-0700 | INFO | EISRTCUtility | log | Transferred 64.0 KB of 5.1 MB.
2015-05-21T14:25:33.095-0700 | INFO | EISRTCUtility | log | Transferred 80.0 KB of 5.1 MB.
2015-05-21T14:25:33.251-0700 | INFO | EISRTCUtility | log | Transferred 95.9 KB of 5.1 MB.
2015-05-21T14:25:33.392-0700 | INFO | EISRTCUtility | log | Transferred 111.9 KB of 5.1 MB.
2015-05-21T14:25:33.486-0700 | INFO | EISRTCUtility | log | Transferred 127.9 KB of 5.1 MB.
2015-05-21T14:25:33.486-0700 | INFO | EISRTCUtility | log | Transferred 128.0 KB of 5.1 MB.
2015-05-21T14:25:33.642-0700 | INFO | EISRTCUtility | log | Transferred 144.0 KB of 5.1 MB.
2015-05-21T14:25:33.720-0700 | INFO | EISRTCUtility | log | Transferred 159.9 KB of 5.1 MB.
2015-05-21T14:25:33.861-0700 | INFO | EISRTCUtility | log | Transferred 175.9 KB of 5.1 MB.
2015-05-21T14:25:33.939-0700 | INFO | EISRTCUtility | log | Transferred 191.9 KB of 5.1 MB.
2015-05-21T14:25:33.954-0700 | INFO | EISRTCUtility | log | Transferred 192.0 KB of 5.1 MB.
2015-05-21T14:25:34.033-0700 | INFO | EISRTCUtility | log | Transferred 208.0 KB of 5.1 MB.
2015-05-21T14:25:34.111-0700 | INFO | EISRTCUtility | log | Transferred 223.9 KB of 5.1 MB.
2015-05-21T14:25:34.204-0700 | INFO | EISRTCUtility | log | Transferred 239.9 KB of 5.1 MB.
2015-05-21T14:25:34.345-0700 | INFO | EISRTCUtility | log | Transferred 255.9 KB of 5.1 MB.
2015-05-21T14:25:34.345-0700 | INFO | EISRTCUtility | log | Transferred 256.0 KB of 5.1 MB.
2015-05-21T14:25:34.423-0700 | INFO | EISRTCUtility | log | Transferred 272.0 KB of 5.1 MB.
2015-05-21T14:25:34.501-0700 | INFO | EISRTCUtility | log | Transferred 287.9 KB of 5.1 MB.
2015-05-21T14:25:34.579-0700 | INFO | EISRTCUtility | log | Transferred 303.9 KB of 5.1 MB.
2015-05-21T14:25:34.673-0700 | INFO | EISRTCUtility | log | Transferred 319.9 KB of 5.1 MB.
2015-05-21T14:25:34.673-0700 | INFO | EISRTCUtility | log | Transferred 320.0 KB of 5.1 MB.
2015-05-21T14:25:34.736-0700 | INFO | EISRTCUtility | log | Transferred 336.0 KB of 5.1 MB.
2015-05-21T14:25:34.829-0700 | INFO | EISRTCUtility | log | Transferred 351.9 KB of 5.1 MB.
2015-05-21T14:25:34.908-0700 | INFO | EISRTCUtility | log | Transferred 367.9 KB of 5.1 MB.
2015-05-21T14:25:35.001-0700 | INFO | EISRTCUtility | log | Transferred 383.9 KB of 5.1 MB.
2015-05-21T14:25:35.001-0700 | INFO | EISRTCUtility | log | Transferred 384.0 KB of 5.1 MB.
2015-05-21T14:25:35.064-0700 | INFO | EISRTCUtility | log | Transferred 400.0 KB of 5.1 MB.
2015-05-21T14:25:35.126-0700 | INFO | EISRTCUtility | log | Transferred 415.9 KB of 5.1 MB.
2015-05-21T14:25:35.533-0700 | INFO | EISRTCUtility | log | Transferred 431.9 KB of 5.1 MB.
2015-05-21T14:25:35.611-0700 | INFO | EISRTCUtility | log | Transferred 447.9 KB of 5.1 MB.
2015-05-21T14:25:35.611-0700 | INFO | EISRTCUtility | log | Transferred 448.0 KB of 5.1 MB.
2015-05-21T14:25:35.689-0700 | INFO | EISRTCUtility | log | Transferred 464.0 KB of 5.1 MB.
2015-05-21T14:25:35.829-0700 | INFO | EISRTCUtility | log | Transferred 479.9 KB of 5.1 MB.
2015-05-21T14:25:35.908-0700 | INFO | EISRTCUtility | log | Transferred 495.9 KB of 5.1 MB.
2015-05-21T14:25:36.017-0700 | INFO | EISRTCUtility | log | Transferred 511.9 KB of 5.1 MB.
2015-05-21T14:25:36.017-0700 | INFO | EISRTCUtility | log | Transferred 512.0 KB of 5.1 MB.
2015-05-21T14:25:36.095-0700 | INFO | EISRTCUtility | log | Transferred 528.0 KB of 5.1 MB.
2015-05-21T14:25:36.158-0700 | INFO | EISRTCUtility | log | Transferred 543.9 KB of 5.1 MB.
2015-05-21T14:25:36.251-0700 | INFO | EISRTCUtility | log | Transferred 559.9 KB of 5.1 MB.
2015-05-21T14:25:36.314-0700 | INFO | EISRTCUtility | log | Transferred 575.9 KB of 5.1 MB.
2015-05-21T14:25:36.314-0700 | INFO | EISRTCUtility | log | Transferred 576.0 KB of 5.1 MB.
2015-05-21T14:25:36.408-0700 | INFO | EISRTCUtility | log | Transferred 592.0 KB of 5.1 MB.
2015-05-21T14:25:36.486-0700 | INFO | EISRTCUtility | log | Transferred 607.9 KB of 5.1 MB.
2015-05-21T14:25:36.564-0700 | INFO | EISRTCUtility | log | Transferred 623.9 KB of 5.1 MB.
2015-05-21T14:25:36.626-0700 | INFO | EISRTCUtility | log | Transferred 639.9 KB of 5.1 MB.
2015-05-21T14:25:36.642-0700 | INFO | EISRTCUtility | log | Transferred 640.0 KB of 5.1 MB.
2015-05-21T14:25:36.704-0700 | INFO | EISRTCUtility | log | Transferred 656.0 KB of 5.1 MB.
2015-05-21T14:25:36.767-0700 | INFO | EISRTCUtility | log | Transferred 671.9 KB of 5.1 MB.
2015-05-21T14:25:36.845-0700 | INFO | EISRTCUtility | log | Transferred 687.9 KB of 5.1 MB.
2015-05-21T14:25:36.908-0700 | INFO | EISRTCUtility | log | Transferred 703.9 KB of 5.1 MB.
2015-05-21T14:25:36.923-0700 | INFO | EISRTCUtility | log | Transferred 704.0 KB of 5.1 MB.
2015-05-21T14:25:37.001-0700 | INFO | EISRTCUtility | log | Transferred 720.0 KB of 5.1 MB.
2015-05-21T14:25:37.064-0700 | INFO | EISRTCUtility | log | Transferred 735.9 KB of 5.1 MB.
2015-05-21T14:25:37.158-0700 | INFO | EISRTCUtility | log | Transferred 751.9 KB of 5.1 MB.
2015-05-21T14:25:37.236-0700 | INFO | EISRTCUtility | log | Transferred 767.9 KB of 5.1 MB.
2015-05-21T14:25:37.251-0700 | INFO | EISRTCUtility | log | Transferred 768.0 KB of 5.1 MB.
2015-05-21T14:25:37.314-0700 | INFO | EISRTCUtility | log | Transferred 784.0 KB of 5.1 MB.
2015-05-21T14:25:37.408-0700 | INFO | EISRTCUtility | log | Transferred 799.9 KB of 5.1 MB.
2015-05-21T14:25:37.470-0700 | INFO | EISRTCUtility | log | Transferred 815.9 KB of 5.1 MB.
2015-05-21T14:25:37.548-0700 | INFO | EISRTCUtility | log | Transferred 831.9 KB of 5.1 MB.
2015-05-21T14:25:37.548-0700 | INFO | EISRTCUtility | log | Transferred 832.0 KB of 5.1 MB.
2015-05-21T14:25:37.626-0700 | INFO | EISRTCUtility | log | Transferred 848.0 KB of 5.1 MB.
2015-05-21T14:25:37.658-0700 | INFO | EISRTCUtility | log | Transferred 863.9 KB of 5.1 MB.
2015-05-21T14:25:37.736-0700 | INFO | EISRTCUtility | log | Transferred 879.9 KB of 5.1 MB.
2015-05-21T14:25:37.814-0700 | INFO | EISRTCUtility | log | Transferred 895.9 KB of 5.1 MB.
2015-05-21T14:25:37.814-0700 | INFO | EISRTCUtility | log | Transferred 896.0 KB of 5.1 MB.
2015-05-21T14:25:37.892-0700 | INFO | EISRTCUtility | log | Transferred 912.0 KB of 5.1 MB.
2015-05-21T14:25:37.970-0700 | INFO | EISRTCUtility | log | Transferred 927.9 KB of 5.1 MB.
2015-05-21T14:25:37.986-0700 | INFO | EISRTCUtility | log | Transferred 943.9 KB of 5.1 MB.
2015-05-21T14:25:38.064-0700 | INFO | EISRTCUtility | log | Transferred 959.9 KB of 5.1 MB.
2015-05-21T14:25:38.064-0700 | INFO | EISRTCUtility | log | Transferred 960.0 KB of 5.1 MB.
2015-05-21T14:25:38.126-0700 | INFO | EISRTCUtility | log | Transferred 976.0 KB of 5.1 MB.
2015-05-21T14:25:38.533-0700 | INFO | EISRTCUtility | log | Transferred 991.9 KB of 5.1 MB.
2015-05-21T14:25:38.533-0700 | INFO | EISRTCUtility | log | Transferred 1,007.9 KB of 5.1 MB.
2015-05-21T14:25:38.611-0700 | INFO | EISRTCUtility | log | Transferred 1,023.9 KB of 5.1 MB.
2015-05-21T14:25:38.611-0700 | INFO | EISRTCUtility | log | Transferred 1,024.0 KB of 5.1 MB.
2015-05-21T14:25:38.704-0700 | INFO | EISRTCUtility | log | Transferred 1.0 MB of 5.1 MB.
2015-05-21T14:25:38.861-0700 | INFO | EISRTCUtility | log | Transferred 1.1 MB of 5.1 MB.
2015-05-21T14:25:39.189-0700 | INFO | EISRTCUtility | log | Transferred 1.2 MB of 5.1 MB.
2015-05-21T14:25:39.486-0700 | INFO | EISRTCUtility | log | Transferred 1.3 MB of 5.1 MB.
2015-05-21T14:25:39.845-0700 | INFO | EISRTCUtility | log | Transferred 1.4 MB of 5.1 MB.
2015-05-21T14:25:40.079-0700 | INFO | EISRTCUtility | log | Transferred 1.5 MB of 5.1 MB.
2015-05-21T14:25:40.408-0700 | INFO | EISRTCUtility | log | Transferred 1.6 MB of 5.1 MB.
2015-05-21T14:25:40.642-0700 | INFO | EISRTCUtility | log | Transferred 1.7 MB of 5.1 MB.
2015-05-21T14:25:40.892-0700 | INFO | EISRTCUtility | log | Transferred 1.8 MB of 5.1 MB.
2015-05-21T14:25:41.376-0700 | INFO | EISRTCUtility | log | Transferred 1.9 MB of 5.1 MB.
2015-05-21T14:25:41.829-0700 | INFO | EISRTCUtility | log | Transferred 2.0 MB of 5.1 MB.
2015-05-21T14:25:42.158-0700 | INFO | EISRTCUtility | log | Transferred 2.1 MB of 5.1 MB.
2015-05-21T14:25:42.376-0700 | INFO | EISRTCUtility | log | Transferred 2.2 MB of 5.1 MB.
2015-05-21T14:25:42.611-0700 | INFO | EISRTCUtility | log | Transferred 2.3 MB of 5.1 MB.
2015-05-21T14:25:42.861-0700 | INFO | EISRTCUtility | log | Transferred 2.4 MB of 5.1 MB.
2015-05-21T14:25:43.079-0700 | INFO | EISRTCUtility | log | Transferred 2.5 MB of 5.1 MB.
2015-05-21T14:25:43.345-0700 | INFO | EISRTCUtility | log | Transferred 2.6 MB of 5.1 MB.
2015-05-21T14:25:43.533-0700 | INFO | EISRTCUtility | log | Transferred 2.7 MB of 5.1 MB.
2015-05-21T14:25:43.783-0700 | INFO | EISRTCUtility | log | Transferred 2.8 MB of 5.1 MB.
2015-05-21T14:25:44.017-0700 | INFO | EISRTCUtility | log | Transferred 2.9 MB of 5.1 MB.
2015-05-21T14:25:44.548-0700 | INFO | EISRTCUtility | log | Transferred 3.0 MB of 5.1 MB.
2015-05-21T14:25:44.954-0700 | INFO | EISRTCUtility | log | Transferred 3.1 MB of 5.1 MB.
2015-05-21T14:25:45.204-0700 | INFO | EISRTCUtility | log | Transferred 3.2 MB of 5.1 MB.
2015-05-21T14:25:45.470-0700 | INFO | EISRTCUtility | log | Transferred 3.3 MB of 5.1 MB.
2015-05-21T14:25:45.751-0700 | INFO | EISRTCUtility | log | Transferred 3.4 MB of 5.1 MB.
2015-05-21T14:25:45.954-0700 | INFO | EISRTCUtility | log | Transferred 3.5 MB of 5.1 MB.
2015-05-21T14:25:46.204-0700 | INFO | EISRTCUtility | log | Transferred 3.6 MB of 5.1 MB.
2015-05-21T14:25:46.408-0700 | INFO | EISRTCUtility | log | Transferred 3.7 MB of 5.1 MB.
2015-05-21T14:25:46.611-0700 | INFO | EISRTCUtility | log | Transferred 3.8 MB of 5.1 MB.
2015-05-21T14:25:46.861-0700 | INFO | EISRTCUtility | log | Transferred 3.9 MB of 5.1 MB.
2015-05-21T14:25:47.064-0700 | INFO | EISRTCUtility | log | Transferred 4.0 MB of 5.1 MB.
2015-05-21T14:25:47.720-0700 | INFO | EISRTCUtility | log | Transferred 4.1 MB of 5.1 MB.
2015-05-21T14:25:48.025-0700 | INFO | EISRTCUtility | log | Transferred 4.2 MB of 5.1 MB.
2015-05-21T14:25:48.253-0700 | INFO | EISRTCUtility | log | Transferred 4.3 MB of 5.1 MB.
2015-05-21T14:25:48.535-0700 | INFO | EISRTCUtility | log | Transferred 4.4 MB of 5.1 MB.
2015-05-21T14:25:48.769-0700 | INFO | EISRTCUtility | log | Transferred 4.5 MB of 5.1 MB.
2015-05-21T14:25:49.019-0700 | INFO | EISRTCUtility | log | Transferred 4.6 MB of 5.1 MB.
2015-05-21T14:25:49.206-0700 | INFO | EISRTCUtility | log | Transferred 4.7 MB of 5.1 MB.
2015-05-21T14:25:49.425-0700 | INFO | EISRTCUtility | log | Transferred 4.8 MB of 5.1 MB.
2015-05-21T14:25:49.660-0700 | INFO | EISRTCUtility | log | Transferred 4.9 MB of 5.1 MB.
2015-05-21T14:25:49.894-0700 | INFO | EISRTCUtility | log | Transferred 5.0 MB of 5.1 MB.
2015-05-21T14:25:50.144-0700 | INFO | EISRTCUtility | log | Transferred 5.1 MB of 5.1 MB.
2015-05-21T14:25:50.597-0700 | INFO | EISRTCUtility | log | [downloadDatapowerComponent()] File downloaded successfully from the change set: C:\Users\m236259\AppData\Local\Temp\SIMON_artifact.xcfg
2015-05-21T14:25:50.597-0700 | INFO | EIS_RTC_RAM_Client | uploadDeployableArtifactToRAM | Uploading Datapower Artifact to RAM
2015-05-21T14:25:50.597-0700 | INFO | EIS_RTC_RAM_Client | uploadDeployableArtifactToRAM | RAM Category 1 (Type): Technologies/Main Technologies/DP/Type/WSP
2015-05-21T14:25:50.597-0700 | INFO | EIS_RTC_RAM_Client | uploadDeployableArtifactToRAM | RAM Category 2 (Env): SOA Environment/DEV/esbidcddp030.ivdc.kp.org
2015-05-21T14:25:50.597-0700 | INFO | EIS_RTC_RAM_Client | uploadDeployableArtifactToRAM | File being uploaded: SIMON_artifact.xcfg
2015-05-21T14:25:50.597-0700 | INFO | EISRAMUtility | uploadNewDeployableArtifact | EISRAMUtility.uploadNewDeployableArtifact starting...
2015-05-21T14:26:46.604-0700 | INFO | EISRAMUtility | createAssetImplementation | Working on Asset implementation: SIMON_artifact_20150520_DEV
2015-05-21T14:26:48.588-0700 | INFO | EISRAMUtility | retrieveCurrentImplementation | Latest implementation found: SIMON_artifact_20150520_DEV[1.0] created on Thu May 21 14:23:28 PDT 2015
2015-05-21T14:26:50.760-0700 | INFO | EISRAMUtility | retireCurrentImplementations | EISRAMUtility.retireCurrentImplementations starting...
2015-05-21T14:26:50.760-0700 | INFO | EISRAMUtility | retireCurrentImplementations | Retiring asset: SIMON_artifact_20150520_DEV[1.0] with GUID 9AAE45C0-E435-F031-50B8-6BF8CE422F2C
2015-05-21T14:26:50.760-0700 | INFO | EISRAMUtility | retireCurrentImplementations | EISRAMUtility.retireCurrentImplementations got here ONE...
2015-05-21T14:26:51.291-0700 | ERROR | EISRAMUtility | retireCurrentImplementations | RAMRuntimeException Error retiring SIMON_artifact_20150520_DEV[1.0], can't proceed...Failed to load available actions
2015-05-21T14:26:51.291-0700 | ERROR | EISRAMUtility | uploadNewDeployableArtifact | Error uploading new deployable artifact: RAMRuntimeException Error retiring SIMON_artifact_20150520_DEV[1.0], can't proceed...Failed to load available actions: com.ibm.ram.common.data.exception.RAMRuntimeException: Failed to load available actions
 at com.ibm.ram.client.RAMAsset.getAvailableActions(RAMAsset.java:302)
 at org.kp.eis.ram.utility.EISRAMUtility.retireCurrentImplementations(EISRAMUtility.java:773)
 at org.kp.eis.ram.utility.EISRAMUtility.createAssetImplementation(EISRAMUtility.java:657)
 at org.kp.eis.ram.utility.EISRAMUtility.createNewImplementation(EISRAMUtility.java:224)
 at org.kp.eis.ram.utility.EISRAMUtility.uploadNewDeployableArtifact(EISRAMUtility.java:132)
 at org.kp.eis.rtcRamClient.EIS_RTC_RAM_Client.uploadDeployableArtifactToRAM(EIS_RTC_RAM_Client.java:104)
 at org.kp.eis.rtcRamClient.EIS_RTC_RAM_Client.main(EIS_RTC_RAM_Client.java:272)
Caused by: com.ibm.ram.internal.client.RAMServiceException: com.ibm.ram.internal.client.RAMServiceException[500][10006]
 at com.ibm.ram.internal.client.AbstractRESTClient.getAvailableActions(AbstractRESTClient.java:242)
 at com.ibm.ram.client.RAMAsset.getAvailableActions(RAMAsset.java:279)
 ... 6 more
Caused by: com.ibm.ram.internal.rest.RAMRestException: com.ibm.ram.internal.client.RAMServiceException[500]
 at com.ibm.ram.internal.client.RestClientService.doGet(RestClientService.java:62)
 at com.ibm.ram.internal.client.AbstractRESTClient.getAvailableActions(AbstractRESTClient.java:239)
 ... 7 more
Caused by: com.ibm.ram.internal.client.RAMServiceException[500]
 at com.ibm.ram.internal.client.RESTCacheManager.getResource(RESTCacheManager.java:144)
 at com.ibm.ram.internal.client.RESTCacheManager.getResource(RESTCacheManager.java:105)
 at com.ibm.ram.internal.client.RestClientService.doGet(RestClientService.java:53)
 ... 8 more
Caused by: java.lang.NullPointerException
 at java.lang.Enum.compareTo(Enum.java:178)
 at com.ibm.ram.internal.client.RESTCacheManager.resolveResourceURL(RESTCacheManager.java:640)
 at com.ibm.ram.internal.client.RESTCacheManager.primGetResourceObject(RESTCacheManager.java:307)
 at com.ibm.ram.internal.client.RESTCacheManager.getResource(RESTCacheManager.java:129)
 ... 10 more

 at org.kp.eis.ram.utility.EISRAMUtility.retireCurrentImplementations(EISRAMUtility.java:810)
 at org.kp.eis.ram.utility.EISRAMUtility.createAssetImplementation(EISRAMUtility.java:657)
 at org.kp.eis.ram.utility.EISRAMUtility.createNewImplementation(EISRAMUtility.java:224)
 at org.kp.eis.ram.utility.EISRAMUtility.uploadNewDeployableArtifact(EISRAMUtility.java:132)
 at org.kp.eis.rtcRamClient.EIS_RTC_RAM_Client.uploadDeployableArtifactToRAM(EIS_RTC_RAM_Client.java:104)
 at org.kp.eis.rtcRamClient.EIS_RTC_RAM_Client.main(EIS_RTC_RAM_Client.java:272)
Caused by: com.ibm.ram.common.data.exception.RAMRuntimeException: Failed to load available actions
 at com.ibm.ram.client.RAMAsset.getAvailableActions(RAMAsset.java:302)
 at org.kp.eis.ram.utility.EISRAMUtility.retireCurrentImplementations(EISRAMUtility.java:773)
 ... 5 more
Caused by: com.ibm.ram.internal.client.RAMServiceException: com.ibm.ram.internal.client.RAMServiceException[500][10006]
 at com.ibm.ram.internal.client.AbstractRESTClient.getAvailableActions(AbstractRESTClient.java:242)
 at com.ibm.ram.client.RAMAsset.getAvailableActions(RAMAsset.java:279)
 ... 6 more
Caused by: com.ibm.ram.internal.rest.RAMRestException: com.ibm.ram.internal.client.RAMServiceException[500]
 at com.ibm.ram.internal.client.RestClientService.doGet(RestClientService.java:62)
 at com.ibm.ram.internal.client.AbstractRESTClient.getAvailableActions(AbstractRESTClient.java:239)
 ... 7 more
Caused by: com.ibm.ram.internal.client.RAMServiceException[500]
 at com.ibm.ram.internal.client.RESTCacheManager.getResource(RESTCacheManager.java:144)
 at com.ibm.ram.internal.client.RESTCacheManager.getResource(RESTCacheManager.java:105)
 at com.ibm.ram.internal.client.RestClientService.doGet(RestClientService.java:53)
 ... 8 more
Caused by: java.lang.NullPointerException
 at java.lang.Enum.compareTo(Enum.java:178)
 at com.ibm.ram.internal.client.RESTCacheManager.resolveResourceURL(RESTCacheManager.java:640)
 at com.ibm.ram.internal.client.RESTCacheManager.primGetResourceObject(RESTCacheManager.java:307)
 at com.ibm.ram.internal.client.RESTCacheManager.getResource(RESTCacheManager.java:129)
 ... 10 more

2015-05-21T14:26:51.307-0700 | ERROR | EIS_RTC_RAM_Client | uploadDeployableArtifactToRAM | Error with RAM Utility: : Error uploading new deployable artifact: RAMRuntimeException Error retiring SIMON_artifact_20150520_DEV[1.0], can't proceed...Failed to load available actions: com.ibm.ram.common.data.exception.RAMRuntimeException: Failed to load available actions
 at com.ibm.ram.client.RAMAsset.getAvailableActions(RAMAsset.java:302)
 at org.kp.eis.ram.utility.EISRAMUtility.retireCurrentImplementations(EISRAMUtility.java:773)
 at org.kp.eis.ram.utility.EISRAMUtility.createAssetImplementation(EISRAMUtility.java:657)
 at org.kp.eis.ram.utility.EISRAMUtility.createNewImplementation(EISRAMUtility.java:224)
 at org.kp.eis.ram.utility.EISRAMUtility.uploadNewDeployableArtifact(EISRAMUtility.java:132)
 at org.kp.eis.rtcRamClient.EIS_RTC_RAM_Client.uploadDeployableArtifactToRAM(EIS_RTC_RAM_Client.java:104)
 at org.kp.eis.rtcRamClient.EIS_RTC_RAM_Client.main(EIS_RTC_RAM_Client.java:272)
Caused by: com.ibm.ram.internal.client.RAMServiceException: com.ibm.ram.internal.client.RAMServiceException[500][10006]
 at com.ibm.ram.internal.client.AbstractRESTClient.getAvailableActions(AbstractRESTClient.java:242)
 at com.ibm.ram.client.RAMAsset.getAvailableActions(RAMAsset.java:279)
 ... 6 more
Caused by: com.ibm.ram.internal.rest.RAMRestException: com.ibm.ram.internal.client.RAMServiceException[500]
 at com.ibm.ram.internal.client.RestClientService.doGet(RestClientService.java:62)
 at com.ibm.ram.internal.client.AbstractRESTClient.getAvailableActions(AbstractRESTClient.java:239)
 ... 7 more
Caused by: com.ibm.ram.internal.client.RAMServiceException[500]
 at com.ibm.ram.internal.client.RESTCacheManager.getResource(RESTCacheManager.java:144)
 at com.ibm.ram.internal.client.RESTCacheManager.getResource(RESTCacheManager.java:105)
 at com.ibm.ram.internal.client.RestClientService.doGet(RestClientService.java:53)
 ... 8 more
Caused by: java.lang.NullPointerException
 at java.lang.Enum.compareTo(Enum.java:178)
 at com.ibm.ram.internal.client.RESTCacheManager.resolveResourceURL(RESTCacheManager.java:640)
 at com.ibm.ram.internal.client.RESTCacheManager.primGetResourceObject(RESTCacheManager.java:307)
 at com.ibm.ram.internal.client.RESTCacheManager.getResource(RESTCacheManager.java:129)
 ... 10 more

 at org.kp.eis.ram.utility.EISRAMUtility.retireCurrentImplementations(EISRAMUtility.java:810)
 at org.kp.eis.ram.utility.EISRAMUtility.createAssetImplementation(EISRAMUtility.java:657)
 at org.kp.eis.ram.utility.EISRAMUtility.createNewImplementation(EISRAMUtility.java:224)
 at org.kp.eis.ram.utility.EISRAMUtility.uploadNewDeployableArtifact(EISRAMUtility.java:132)
 at org.kp.eis.rtcRamClient.EIS_RTC_RAM_Client.uploadDeployableArtifactToRAM(EIS_RTC_RAM_Client.java:104)
 at org.kp.eis.rtcRamClient.EIS_RTC_RAM_Client.main(EIS_RTC_RAM_Client.java:272)
Caused by: com.ibm.ram.common.data.exception.RAMRuntimeException: Failed to load available actions
 at com.ibm.ram.client.RAMAsset.getAvailableActions(RAMAsset.java:302)
 at org.kp.eis.ram.utility.EISRAMUtility.retireCurrentImplementations(EISRAMUtility.java:773)
 ... 5 more
Caused by: com.ibm.ram.internal.client.RAMServiceException: com.ibm.ram.internal.client.RAMServiceException[500][10006]
 at com.ibm.ram.internal.client.AbstractRESTClient.getAvailableActions(AbstractRESTClient.java:242)
 at com.ibm.ram.client.RAMAsset.getAvailableActions(RAMAsset.java:279)
 ... 6 more
Caused by: com.ibm.ram.internal.rest.RAMRestException: com.ibm.ram.internal.client.RAMServiceException[500]
 at com.ibm.ram.internal.client.RestClientService.doGet(RestClientService.java:62)
 at com.ibm.ram.internal.client.AbstractRESTClient.getAvailableActions(AbstractRESTClient.java:239)
 ... 7 more
Caused by: com.ibm.ram.internal.client.RAMServiceException[500]
 at com.ibm.ram.internal.client.RESTCacheManager.getResource(RESTCacheManager.java:144)
 at com.ibm.ram.internal.client.RESTCacheManager.getResource(RESTCacheManager.java:105)
 at com.ibm.ram.internal.client.RestClientService.doGet(RestClientService.java:53)
 ... 8 more
Caused by: java.lang.NullPointerException
 at java.lang.Enum.compareTo(Enum.java:178)
 at com.ibm.ram.internal.client.RESTCacheManager.resolveResourceURL(RESTCacheManager.java:640)
 at com.ibm.ram.internal.client.RESTCacheManager.primGetResourceObject(RESTCacheManager.java:307)
 at com.ibm.ram.internal.client.RESTCacheManager.getResource(RESTCacheManager.java:129)
 ... 10 more

2015-05-21T14:26:51.323-0700 | INFO | EIS_RTC_RAM_Client | uploadDeployableArtifactToRAM | File C:\Users\m236259\AppData\Local\Temp\SIMON_artifact.xcfg deletion successful? true
2015-05-21T14:26:51.323-0700 | INFO | EISRTCUtility | log | [cleanup()] Logged out from the repository...
2015-05-21T14:26:51.338-0700 | INFO | EISRTCUtility | log | -----------------------------------------------------------
2015-05-21T14:26:52.573-0700 | INFO | EISRAMUtility | cleanup | -----------------------------------------------------------

3 answers



permanent link
Lin Lu (3063) | answered May 30 '15, 1:38 p.m.
JAZZ DEVELOPER
Hi,

According to the root exception, it looks like ram API client could not find a match server version string in client side.

As far as I know, one possible cause could be using RAM API from a elder version to communicate with RAM server with newer version(for example, use RAm7511 client to communicate with RAM 7512 server).

RAM client is not supposed to talk with elder server versions. Could you check your version of your RAM client API, see if that is elder than server version?

Thanks.



permanent link
SImon Starkie (135) | answered May 30 '15, 2:39 p.m.
 Thanks Lin Lu, we will check this out. Appreciate the help. 


permanent link
SImon Starkie (135) | answered Jun 02 '15, 12:36 p.m.
 We've decided not to use RAM anymore for our SDLC.
Instead, we'll use RTC with a Work Item and Comments to manage the deployable code artifacts. 
Thanks again for the help though, we really appreciate it. 

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.