Need to build proxy when using locateService on Composite reference w/ 
<interface.wsdl>
---------------------------------------------------------------------------------------

                 Key: TUSCANY-942
                 URL: http://issues.apache.org/jira/browse/TUSCANY-942
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Core
    Affects Versions: Java-M2
         Environment: M2
            Reporter: Scott Kurz


Running code from the M2 branch, my Composite has a JSP and a Composite-level 
reference MyRef with <binding.ws>  and <interface.wsdl>.

My JSP does locateService("MyRef")

At invocation time I get:

 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)

This is an issue of using the locateService API as opposed to @Reference 
injection.  It has nothing to do with the lack of a Component in my Composite.

Maybe this isn't strictly spec'd but it seems that since Tuscany can handle:
* <interface.wsdl> combined w/ Reference injection
* <interface.java>  combined w/ locateService

we also should/could support:

* <interface.wsdl> combined w/ locateService.

Don't know how to go about building the proxy myself but I'll open this to 
track the issue.

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