[switchyard-issues] [JBoss JIRA] Created: (SWITCHYARD-296) NPE when promoted service name is different from the service name itself

Jiri Pechanec (JIRA) jira-events at lists.jboss.org
Thu Jun 16 06:48:23 EDT 2011


NPE when promoted service name is different from the service name itself
------------------------------------------------------------------------

                 Key: SWITCHYARD-296
                 URL: https://issues.jboss.org/browse/SWITCHYARD-296
             Project: SwitchYard
          Issue Type: Bug
          Components: core
    Affects Versions: 0.1
            Reporter: Jiri Pechanec


See the snippet of the configuration
        <service name="ErrorService1" promote="ErrorService">
            <binding.soap xmlns="urn:switchyard-component-soap:config:1.0">
                <wsdl>wsdl/ErrorService.wsdl</wsdl>
                <serverPort>9090</serverPort>
                <serverHost>10.34.3.135</serverHost>
            </binding.soap>
        </service>
        <component name="ErrorService">
            <service name="ErrorService">
                <interface.java interface="org.swi.ErrorService"/>
            </service>
            <implementation.bean xmlns="urn:switchyard-component-bean:config:1.0" class="org.swi.ErrorServiceBean"/>
        </component>

Such configuration throws NPE - the only reason is that the gateway is named ServiceName1. It seems that promote attribute is not taken into consideration.

If if this not a correct configuration then an error should be reported instead of NPE
12:46:11,968 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."errhandling.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."errhandling.jar".SwitchYardService: java.lang.NullPointerException
        at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:75)
.
.
.



--
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