Hi again!
To start examining the different deployment options with SCA, I tried to
run the itest "two-nodes-two-vms-test".
I try to start a server and a client node in two separate JVMs on one
and the same computer.
Unfortunately, starting the client fails with the following exception:

Feb 22, 2010 9:17:50 PM
org.apache.tuscany.sca.core.runtime.impl.EndpointReferenceBinderImpl []
(EndpointReferenceCantBeMatched)
SEVERE: = Unable to match the endpoint reference
(@1162992854)EndpointReference:  URI =
HelloworldClient#reference(service) WIRED_TARGET_NOT_FOUND  Target =
(@24742184)Endpoint:  URI = HelloworldService [Unresolved] with the
policy of the service to which it refers.
Feb 22, 2010 9:17:50 PM
org.apache.tuscany.sca.node.launcher.NodeLauncher main
SEVERE: SCA Node could not be started
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.tuscany.sca.node.launcher.NodeLauncher.main(NodeLauncher.java:198)
    at org.apache.tuscany.sca.node.launcher.NodeMain.main(NodeMain.java:59)
    at itest.nodes.StartClientNode.main(StartClientNode.java:32)
Caused by: java.lang.IllegalStateException:
org.oasisopen.sca.ServiceUnavailableException:
org.apache.tuscany.sca.core.scope.TargetInitializationException:
org.apache.tuscany.sca.implementation.java.invocation.EventInvocationException:
Exception thrown by event method [initialize]
    at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:176)
    ... 7 more
Caused by: org.oasisopen.sca.ServiceUnavailableException:
org.apache.tuscany.sca.core.scope.TargetInitializationException:
org.apache.tuscany.sca.implementation.java.invocation.EventInvocationException:
Exception thrown by event method [initialize]
    at
org.apache.tuscany.sca.core.scope.impl.CompositeScopeContainer.getWrapper(CompositeScopeContainer.java:62)
    at
org.apache.tuscany.sca.core.scope.impl.CompositeScopeContainer.start(CompositeScopeContainer.java:81)
    at
org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.start(CompositeActivatorImpl.java:517)
    at
org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.start(CompositeActivatorImpl.java:475)
    at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:148)
    ... 7 more
Caused by:
org.apache.tuscany.sca.core.scope.TargetInitializationException:
org.apache.tuscany.sca.implementation.java.invocation.EventInvocationException:
Exception thrown by event method [initialize]
    at
org.apache.tuscany.sca.implementation.java.context.ReflectiveInstanceWrapper.start(ReflectiveInstanceWrapper.java:54)
    at
org.apache.tuscany.sca.core.scope.impl.CompositeScopeContainer.getWrapper(CompositeScopeContainer.java:60)
    ... 11 more
Caused by:
org.apache.tuscany.sca.implementation.java.invocation.EventInvocationException:
Exception thrown by event method [initialize]
    at
org.apache.tuscany.sca.implementation.java.invocation.MethodEventInvoker.invokeEvent(MethodEventInvoker.java:52)
    at
org.apache.tuscany.sca.implementation.java.context.ReflectiveInstanceWrapper.start(ReflectiveInstanceWrapper.java:47)
    ... 12 more
Caused by: org.oasisopen.sca.SCARuntimeException: Unable to bind
(@1162992854)EndpointReference:  URI =
HelloworldClient#reference(service) WIRED_TARGET_NOT_FOUND  Target =
(@24742184)Endpoint:  URI = HelloworldService [Unresolved]
    at
org.apache.tuscany.sca.core.assembly.impl.RuntimeWireImpl.resolveEndpointReference(RuntimeWireImpl.java:345)
    at
org.apache.tuscany.sca.core.assembly.impl.RuntimeWireImpl.initInvocationChains(RuntimeWireImpl.java:279)
    at
org.apache.tuscany.sca.core.assembly.impl.RuntimeWireImpl.getInvocationChains(RuntimeWireImpl.java:170)
    at
org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.getInvocationChain(JDKInvocationHandler.java:243)
    at
org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:143)
    at $Proxy22.sayHello(Unknown Source)

What could be the reason for something like this?
A second question related to the above mentioned test is where in the
SCA 1.1 specifications the format of the server-config.xml and
client-config.xml files, both with a <node> root element, are documented?
I am currently suspecting that  some configuration in those files need
to be changed in order for the client node to be able to locate the
server node, for instance the domain="http://domain1"; attribute on the
<node> element.
Thanks!
 Ivan

Reply via email to