[
https://issues.apache.org/jira/browse/TUSCANY-1920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simon Laws closed TUSCANY-1920.
-------------------------------
Resolution: Fixed
Am closing this issue as the calculator-distributed sample now uses the new
workspace code as its domain implementation. With this approach the domain
finder api goes and to get a remote client you would contribute a composite
with a client component, wire it to the remote reference, and run a local node
that uses this composite to look up the client component and hence the get a
proxy to the remote service.
> SCADomainFinder's getSCADomain() method always returning null object
> --------------------------------------------------------------------
>
> Key: TUSCANY-1920
> URL: https://issues.apache.org/jira/browse/TUSCANY-1920
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-1.0.1
> Environment: Java 1.5. Windows Vista. Eclipse Europa IDE..
> Reporter: Jeff Davis
> Assignee: Simon Laws
> Fix For: Java-SCA-Next
>
>
> Using the "calculator-distributed" sample, I start it as instructed in the
> README file (runDomain, runNodeB etc), and the sample works fine. However,
> when I leave the domain and nodes running and try running the following class
> main:
> public class TestRemote {
>
> public static void main(String[] args) {
> SCADomainFinder domainFinder = SCADomainFinder.newInstance();
> SCADomain domainProxy;
> try {
> domainProxy =
> domainFinder.getSCADomain("http://localhost:8877");
> CalculatorService calculatorService =
>
> domainProxy.getService(CalculatorService.class,
> "CalculatorServiceComponentA");
>
> System.out.println("3 + 2=" + calculatorService.add(3,
> 2));
>
> } catch (DomainException e) {
> e.printStackTrace();
> }
> }
> }
> It returns the following error:
> Exception in thread "main" java.lang.NullPointerException
> at
> org.apache.tuscany.sca.node.impl.SCADomainImpl.getServiceReference(SCADomainImpl.java:417)
> at
> org.apache.tuscany.sca.node.impl.SCADomainImpl.getService(SCADomainImpl.java:348)
> at node.TestRemote.main(TestRemote.java:17)
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]