You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Rick <cr...@gmail.com> on 2007/01/19 03:35:10 UTC
LocateService on reference with web service binding,
I was looking at http://issues.apache.org/jira/browse/TUSCANY-862
I tried changing the helloWorldClient sample to directly :locate the
reference using a web service binding. This no longer
gets an NPE. Currently it gets a ServiceRuntimeException: Local binding
for service not found.
This is thrown in AbstractCompositeContext.getInboundWire line 106.
There is no match on the reference case cause
the check on BindingType line 100 for match on Wire.LOCAL_BINDING and
type is binding.ws
Anyon know the reason for this check?
Stack:
org.apache.tuscany.core.launcher.CompositeContextImpl(org.apache.tuscany.core.implementation.composite.AbstractCompositeContext).getInboundWire(org.apache.tuscany.spi.component.SCAObject,
org.apache.tuscany.spi.QualifiedName) line: 106
org.apache.tuscany.core.launcher.CompositeContextImpl(org.apache.tuscany.core.implementation.composite.AbstractCompositeContext).locateService(java.lang.Class<T>,
java.lang.String) line: 66
helloworld.HelloWorldClient.main(java.lang.String[]) line: 32
sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method,
java.lang.Object, java.lang.Object[]) line: not available [native
method]
sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object,
java.lang.Object[]) line: 39
sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object,
java.lang.Object[]) line: 25
java.lang.reflect.Method.invoke(java.lang.Object,
java.lang.Object...) line: 585
org.apache.tuscany.launcher.Main.runApplication(java.io.File,
java.lang.ClassLoader, java.lang.String[]) line: 154
org.apache.tuscany.launcher.Main.main(java.lang.String[]) line: 77
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: LocateService on reference with web service binding,
Posted by Jim Marino <jm...@myromatours.com>.
This should be the case for services but not references. I'll fix it
in a few minutes.
Jim
On Jan 18, 2007, at 6:35 PM, Rick wrote:
> I was looking at http://issues.apache.org/jira/browse/TUSCANY-862
> I tried changing the helloWorldClient sample to directly :locate
> the reference using a web service binding. This no longer
> gets an NPE. Currently it gets a ServiceRuntimeException: Local
> binding for service not found.
>
> This is thrown in AbstractCompositeContext.getInboundWire line
> 106. There is no match on the reference case cause
> the check on BindingType line 100 for match on Wire.LOCAL_BINDING
> and type is binding.ws
> Anyon know the reason for this check?
>
> Stack:
> org.apache.tuscany.core.launcher.CompositeContextImpl
> (org.apache.tuscany.core.implementation.composite.AbstractCompositeCon
> text).getInboundWire(org.apache.tuscany.spi.component.SCAObject,
> org.apache.tuscany.spi.QualifiedName) line: 106
> org.apache.tuscany.core.launcher.CompositeContextImpl
> (org.apache.tuscany.core.implementation.composite.AbstractCompositeCon
> text).locateService(java.lang.Class<T>, java.lang.String) line:
> 66 helloworld.HelloWorldClient.main(java.lang.String[]) line:
> 32 sun.reflect.NativeMethodAccessorImpl.invoke0
> (java.lang.reflect.Method, java.lang.Object, java.lang.Object[])
> line: not available [native method]
> sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object,
> java.lang.Object[]) line: 39
> sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object,
> java.lang.Object[]) line: 25 java.lang.reflect.Method.invoke
> (java.lang.Object, java.lang.Object...) line: 585
> org.apache.tuscany.launcher.Main.runApplication(java.io.File,
> java.lang.ClassLoader, java.lang.String[]) line: 154
> org.apache.tuscany.launcher.Main.main(java.lang.String[]) line: 77
>
>
> Thanks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org