Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-202

Deployment: NullPointerException if component does not contain an implemention element.

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 0.2
    • Component/s: deployment
    • Labels:
      None

      Description

      According to SCA Assembly spec a component element can have zero or more implementation elements as its child. But the method getActivator(component) in Deployment.java you can find the following code:

      private Activator getActivator(ComponentModel component) {
              String type = component.getImplementation().getType();
              Activator activator = _componentActivators.get(type);
      
              if (activator == null) {
                  throw new RuntimeException("Unknown configuration component type '" + type + "'.  No Activator implementation registered for this type.");
              }
      
              return activator;
          }
      

      I noticed this while working on SWITCHYARD-201 which also contains an example of the config that I'm using (See Keith's last comment)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kcbabo Keith Babo
                Reporter:
                beve Daniel Bevenius
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: