You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Jim Marino (JIRA)" <tu...@ws.apache.org> on 2007/03/04 00:47:51 UTC
[jira] Closed: (TUSCANY-862) NPE when doing
CurrentCompositeContext.locateService on a reference which uses
interface.wsdl
[ https://issues.apache.org/jira/browse/TUSCANY-862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jim Marino closed TUSCANY-862.
------------------------------
Resolution: Fixed
The spec has removed this API.
> NPE when doing CurrentCompositeContext.locateService on a reference which uses interface.wsdl
> ---------------------------------------------------------------------------------------------
>
> Key: TUSCANY-862
> URL: https://issues.apache.org/jira/browse/TUSCANY-862
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core
> Affects Versions: Java-SCA-M3
> Reporter: ant elder
> Assigned To: Jim Marino
> Fix For: Java-SCA-M3
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org