[
https://issues.apache.org/jira/browse/TUSCANY-1920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12546810
]
Simon Laws commented on TUSCANY-1920:
-------------------------------------
Changes checked in today but I'm leaving this open as it's highlighted that the
domain proxy needs refactoring.
> 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-1.1
>
>
> 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]