NPE when doing CurrentCompositeContext.locateService on a reference which uses 
interface.wsdl 
----------------------------------------------------------------------------------------------

                 Key: TUSCANY-862
                 URL: http://issues.apache.org/jira/browse/TUSCANY-862
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Core
    Affects Versions: Java-M2
            Reporter: ant elder
             Fix For: Java-M2


If you do CurrentCompositeContext.locateService on a reference which uses 
interface.wsdl you get a NPE:

java.lang.NullPointerException
        at 
org.apache.tuscany.core.wire.jdk.JDKWireService.createProxy(JDKWireService.java:92)
        at 
org.apache.tuscany.spi.extension.ReferenceExtension.getServiceInstance(ReferenceExtension.java:81)
        at 
org.apache.tuscany.spi.extension.CompositeComponentExtension.locateService(CompositeComponentExtension.java:275)
        at 
org.apache.tuscany.core.launcher.CompositeContextImpl.locateService(CompositeContextImpl.java:65)
        at helloworld.HelloWorldWSClient.setUp(HelloWorldWSClient.java:46)

Thats becuase the wire.getServiceContract().getInterfaceClass() returns null.

To demonstrate change the helloworldwsclient to use the reference 
'HelloWorldService'


 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to