[switchyard-issues] [JBoss JIRA] (SWITCHYARD-639) NPE thrown when transformer class not on classpath.

Marek Baluch (JIRA) jira-events at lists.jboss.org
Mon Feb 6 04:22:48 EST 2012


Marek Baluch created SWITCHYARD-639:
---------------------------------------

             Summary: NPE thrown when transformer class not on classpath.
                 Key: SWITCHYARD-639
                 URL: https://issues.jboss.org/browse/SWITCHYARD-639
             Project: SwitchYard
          Issue Type: Bug
          Components: transformation
    Affects Versions: 0.3
            Reporter: Marek Baluch


When a transformer class is defined and is not on classpath then a NPE is thrown. IMO this should be handled with an error message.

e.g.
{code}
<transforms>
    <transform.java xmlns="urn:switchyard-config:transform:1.0" class="org.missing.clazz.Transformers" from="{urn:switchyard-quickstart:bean-service:1.0}helloRequest" to="java:java.lang.String"/>
</transforms>
{code}

{noformat}
10:15:53,491 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."bean-service-0.3.0.Final.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."bean-service-0.3.0.Final.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: Error constructing Transformer instance for class 'org.jboss.cdi.defconf.Transformers'.
        at ... (legt out)
Caused by: java.lang.NullPointerException
	at org.switchyard.transform.TransformerUtil.isTransformer(TransformerUtil.java:217)
	at org.switchyard.transform.TransformerUtil.newTransformers(TransformerUtil.java:112)
	at org.switchyard.transform.TransformerUtil.newTransformers(TransformerUtil.java:71)
	... 11 more

{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the switchyard-issues mailing list