[switchyard-issues] [JBoss JIRA] Created: (SWITCHYARD-202) Deployment: NullPointerException if component does not contain an implemention element.
Daniel Bevenius (JIRA)
jira-events at lists.jboss.org
Tue Mar 29 13:51:39 EDT 2011
Deployment: NullPointerException if component does not contain an implemention element.
---------------------------------------------------------------------------------------
Key: SWITCHYARD-202
URL: https://issues.jboss.org/browse/SWITCHYARD-202
Project: SwitchYard
Issue Type: Bug
Components: deployment
Reporter: Daniel Bevenius
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:
{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;
}
{code}
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)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the switchyard-issues
mailing list