[
http://issues.apache.org/jira/browse/TUSCANY-75?page=comments#action_12369738 ]
Jim Marino commented on TUSCANY-75:
-----------------------------------
Just an update on this...We know what the problem is. To support multiplicity I
changed the interface used to the target service, since type information may
not be specified on the source reference (e.g. List). This doesn't take into
account the situation where a source and target reference interface are
different (i.e. just a single reference). The spec is fairly ambiguous in this
area right now but I'm implementing a solution that basically does the
following (I plan to take this up with the spec too):
- for "single" references, generate the source side proxy using the reference
interface
- For multiplicity do one of the following:
- for arrays, use the source array "component type"
- for lists, if they are genericized, introspect the generic type on the
source side and use that
- for lists, if they are not generics, use the target side interface. We
can't just use "object" here since the proxy would be useless ;)
I should have this in place soon.
> Hellowordwsclient fails
> -----------------------
>
> Key: TUSCANY-75
> URL: http://issues.apache.org/jira/browse/TUSCANY-75
> Project: Tuscany
> Type: Bug
> Components: Java SCA Core
> Environment: WinXp
> URL: https://svn.apache.org/repos/asf/incubator/tuscany/java
> Last Changed Rev: 384161
> Last Changed Date: 2006-03-08 04:03:21 -0500 (Wed, 08 Mar 2006)
> Reporter: Rick Rineholt
> Priority: Blocker
>
> Helloworldwsclient fails and so does it's associate testing\tomcat
> \helloworldws
> Exception in thread "main" java.lang.IllegalArgumentException
> at
> sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63)
> at java.lang.reflect.Field.set(Field.java:656)
> at
> org.apache.tuscany.core.injection.FieldInjector.inject(FieldInjector.java:40)
> at
> org.apache.tuscany.core.injection.PojoObjectFactory.getInstance(PojoObjectFactory.java:64)
> at
> org.apache.tuscany.container.java.context.JavaComponentContext.getInstance(JavaComponentContext.java:113)
> at
> org.apache.tuscany.core.context.impl.AggregateContextImpl.locateService(AggregateContextImpl.java:98)
> at
> org.apache.tuscany.samples.helloworldwsclient.HelloWorldClient.main(HelloWorldClient.java:42)
> Test failing line HelloWorldService helloworldService =
> (HelloWorldService) moduleContext.locateService("HelloWorldServiceComponent");
> It looks like on FieldInjector line 40 objectFactory is NullMonitorFactory
> ... this seems to be off?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira