You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Knight Chen <do...@gmail.com> on 2010/05/13 10:38:34 UTC

Fwd: There maybe a BUG when publish SCA Service through Spring implement.

Does anybody notice this question?

---------- Forwarded message ----------
From: Knight Chen <do...@gmail.com>
Date: Thu, Apr 22, 2010 at 2:20 PM
Subject: There maybe a BUG when publish SCA Service through Spring implement.
To: user@tuscany.apache.org


Hi,

I am using SCA(Tuscany 1.6) to publish Spring Bean as Service,
In Spring config file:
I use those line define a bean:
<bean name="testService" class="com.temp.TestServiceImpl" />

and use sca:service to deploy this bean as service:
<sca:service name="TestService" type="com.temp.TestService"
target="testService"/>

but When I invoke this service's method with remote reference there
will throw a exception :

[DEBUG]Get TestService:[Proxy -
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler@14ce5eb]
Exception in thread "main" java.lang.NullPointerException
       at org.apache.tuscany.sca.implementation.spring.invocation.SpringInvoker.setupMethod(SpringInvoker.java:75)
       at org.apache.tuscany.sca.implementation.spring.invocation.SpringInvoker.doInvoke(SpringInvoker.java:86)
       at org.apache.tuscany.sca.implementation.spring.invocation.SpringInvoker.invoke(SpringInvoker.java:113)
       at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:60)
       at org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:129)
       at org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:104)
       at org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:98)
...

But when I use this line to define spring bean:
<bean id="testService" class="com.shine.temp.TestServiceImpl" />

Remote invoke is OK.

I think this maybe a BUG in Tuscany's Spring implement.
in spring, use "name" or "id" property to define a bean is equal.
but combine with Tuscany Spring Implement, that seems Tuscany Spring
implement use "id" to find bean instead of find "id" and "name" both.

Can any body check this question?

Regard.


--
========================
Knight Chen



-- 
========================
Knight Chen

Re: There maybe a BUG when publish SCA Service through Spring implement.

Posted by Knight Chen <do...@gmail.com>.
It looks like this issue:
https://issues.apache.org/jira/browse/TUSCANY-2503

On Fri, May 14, 2010 at 5:06 AM, Luciano Resende <lu...@gmail.com> wrote:
> On Thu, May 13, 2010 at 1:38 AM, Knight Chen <do...@gmail.com> wrote:
>> Does anybody notice this question?
>>
>
> If you could provide a test case that reproduces the issue via JIRA, I
> could try to take a look at this over the weekend.
>
> --
> Luciano Resende
> http://people.apache.org/~lresende
> http://twitter.com/lresende1975
> http://lresende.blogspot.com/
>



-- 
========================
Knight Chen

Re: There maybe a BUG when publish SCA Service through Spring implement.

Posted by Knight Chen <do...@gmail.com>.
OK, I wil try to do this, but not today.

If done, i will send msg to maillist.


thks.

On Fri, May 14, 2010 at 5:06 AM, Luciano Resende <lu...@gmail.com> wrote:
> On Thu, May 13, 2010 at 1:38 AM, Knight Chen <do...@gmail.com> wrote:
>> Does anybody notice this question?
>>
>
> If you could provide a test case that reproduces the issue via JIRA, I
> could try to take a look at this over the weekend.
>
> --
> Luciano Resende
> http://people.apache.org/~lresende
> http://twitter.com/lresende1975
> http://lresende.blogspot.com/
>



-- 
========================
Knight Chen

Re: There maybe a BUG when publish SCA Service through Spring implement.

Posted by Luciano Resende <lu...@gmail.com>.
On Thu, May 13, 2010 at 1:38 AM, Knight Chen <do...@gmail.com> wrote:
> Does anybody notice this question?
>

If you could provide a test case that reproduces the issue via JIRA, I
could try to take a look at this over the weekend.

-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/