You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Jeff Davis (JIRA)" <tu...@ws.apache.org> on 2007/11/27 16:31:43 UTC
[jira] Created: (TUSCANY-1920) SCADomainFinder's getSCADomain()
method always returning null object
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
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Closed: (TUSCANY-1920) SCADomainFinder's getSCADomain()
method always returning null object
Posted by "Simon Laws (JIRA)" <tu...@ws.apache.org>.
[ 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Updated: (TUSCANY-1920) SCADomainFinder's getSCADomain()
method always returning null object
Posted by "Simon Laws (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Laws updated TUSCANY-1920:
--------------------------------
Fix Version/s: (was: Java-SCA-1.1)
Java-SCA-Next
Not finalized for 1.1
> 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Updated: (TUSCANY-1920) SCADomainFinder's getSCADomain()
method always returning null object
Posted by "Simon Laws (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Laws updated TUSCANY-1920:
--------------------------------
Fix Version/s: Java-SCA-1.1
Assignee: Simon Laws
Target 1.1. and assign to me
> 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Commented: (TUSCANY-1920) SCADomainFinder's getSCADomain()
method always returning null object
Posted by "Simon Laws (JIRA)" <tu...@ws.apache.org>.
[ 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org