You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org> on 2006/04/28 15:16:44 UTC
[jira] Created: (TUSCANY-244) BuilderConfigException thrown when
trying to build config for reference with multiplicity 1..n
BuilderConfigException thrown when trying to build config for reference with multiplicity 1..n
----------------------------------------------------------------------------------------------
Key: TUSCANY-244
URL: http://issues.apache.org/jira/browse/TUSCANY-244
Project: Tuscany
Type: Bug
Components: Java SCA Core
Environment: Eclipse 3.1.1 on Windows XP SP2
Reporter: Ignacio Silva-Lepe
Priority: Minor
Exception in thread "main" org.apache.tuscany.core.builder.BuilderConfigException: Incompatible source and target interface types for reference [warehouses]
Context stack trace: [tuscany.root][supplychain][supplychain][RetailerComponent][WarehouseComponent1][tuscany.root]
at org.apache.tuscany.core.builder.impl.DefaultWireBuilder.connect(DefaultWireBuilder.java:64)
...
(SupplychainClient.java:43)
using SCDL:
<module xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
name="SupplyChain">
<component name="CustomerComponent">
<implementation.java class="org.apache.tuscany.samples.supplychain.CustomerComponentImpl"/>
<references>
<v:retailer>RetailerComponent</v:retailer>
</references>
</component>
<component name="RetailerComponent">
<implementation.java class="org.apache.tuscany.samples.supplychain.RetailerComponentImpl"/>
<references>
<v:warehouses>WarehouseComponent1</v:warehouses>
<v:warehouses>WarehouseComponent2</v:warehouses>
</references>
</component>
<component name="WarehouseComponent1">
<implementation.java class="org.apache.tuscany.samples.supplychain.WarehouseComponentImpl"/>
<references>
<v:shipper>ShipperComponent</v:shipper>
</references>
</component>
<component name="WarehouseComponent2">
<implementation.java class="org.apache.tuscany.samples.supplychain.WarehouseComponentImpl"/>
<references>
<v:shipper>ShipperComponent</v:shipper>
</references>
</component>
<component name="ShipperComponent">
<implementation.java class="org.apache.tuscany.samples.supplychain.ShipperComponentImpl"/>
<references>
<v:customer>CustomerComponent</v:customer>
</references>
</component>
</module>
and component interfaces:
package org.apache.tuscany.samples.supplychain;
/**
* This is the business interface of the Retailer service component.
*/
public interface Retailer {
public void submitOrder(String order);
}
and
package org.apache.tuscany.samples.supplychain;
/**
* This is the business interface of the Warehouse service component.
*/
public interface Warehouse {
public void fulfillOrder(String order);
}
with implementation of Retailer given by
package org.apache.tuscany.samples.supplychain;
import java.util.List;
import org.osoa.sca.annotations.Reference;
import org.osoa.sca.annotations.Service;
/**
* This class implements the Customer service component.
*/
@Service(Retailer.class)
public class RetailerComponentImpl implements Retailer {
@Reference(name="warehouses",required=true)
private List<Warehouse> warehouses;
public void submitOrder(String order) {
for(Warehouse warehouse : warehouses) {
warehouse.fulfillOrder(order + ", submitted");
}
}
}
--
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
[jira] Updated: (TUSCANY-244) BuilderConfigException thrown when
trying to build config for reference with multiplicity 1..n
Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-244?page=all ]
Jean-Sebastien Delfino updated TUSCANY-244:
-------------------------------------------
Fix Version: 0.91
Version: 0.91
> BuilderConfigException thrown when trying to build config for reference with multiplicity 1..n
> ----------------------------------------------------------------------------------------------
>
> Key: TUSCANY-244
> URL: http://issues.apache.org/jira/browse/TUSCANY-244
> Project: Tuscany
> Type: Bug
> Components: Java SCA Core
> Versions: 0.91
> Environment: Eclipse 3.1.1 on Windows XP SP2
> Reporter: Ignacio Silva-Lepe
> Priority: Minor
> Fix For: 0.91
>
> Exception in thread "main" org.apache.tuscany.core.builder.BuilderConfigException: Incompatible source and target interface types for reference [warehouses]
> Context stack trace: [tuscany.root][supplychain][supplychain][RetailerComponent][WarehouseComponent1][tuscany.root]
> at org.apache.tuscany.core.builder.impl.DefaultWireBuilder.connect(DefaultWireBuilder.java:64)
> ...
> (SupplychainClient.java:43)
> using SCDL:
> <module xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
> name="SupplyChain">
> <component name="CustomerComponent">
> <implementation.java class="org.apache.tuscany.samples.supplychain.CustomerComponentImpl"/>
> <references>
> <v:retailer>RetailerComponent</v:retailer>
> </references>
> </component>
>
> <component name="RetailerComponent">
> <implementation.java class="org.apache.tuscany.samples.supplychain.RetailerComponentImpl"/>
> <references>
> <v:warehouses>WarehouseComponent1</v:warehouses>
> <v:warehouses>WarehouseComponent2</v:warehouses>
> </references>
> </component>
>
> <component name="WarehouseComponent1">
> <implementation.java class="org.apache.tuscany.samples.supplychain.WarehouseComponentImpl"/>
> <references>
> <v:shipper>ShipperComponent</v:shipper>
> </references>
> </component>
>
> <component name="WarehouseComponent2">
> <implementation.java class="org.apache.tuscany.samples.supplychain.WarehouseComponentImpl"/>
> <references>
> <v:shipper>ShipperComponent</v:shipper>
> </references>
> </component>
>
> <component name="ShipperComponent">
> <implementation.java class="org.apache.tuscany.samples.supplychain.ShipperComponentImpl"/>
> <references>
> <v:customer>CustomerComponent</v:customer>
> </references>
> </component>
>
> </module>
> and component interfaces:
> package org.apache.tuscany.samples.supplychain;
> /**
> * This is the business interface of the Retailer service component.
> */
> public interface Retailer {
>
> public void submitOrder(String order);
> }
> and
> package org.apache.tuscany.samples.supplychain;
> /**
> * This is the business interface of the Warehouse service component.
> */
> public interface Warehouse {
>
> public void fulfillOrder(String order);
> }
> with implementation of Retailer given by
> package org.apache.tuscany.samples.supplychain;
> import java.util.List;
> import org.osoa.sca.annotations.Reference;
> import org.osoa.sca.annotations.Service;
> /**
> * This class implements the Customer service component.
> */
> @Service(Retailer.class)
> public class RetailerComponentImpl implements Retailer {
>
> @Reference(name="warehouses",required=true)
> private List<Warehouse> warehouses;
>
> public void submitOrder(String order) {
> for(Warehouse warehouse : warehouses) {
> warehouse.fulfillOrder(order + ", submitted");
> }
> }
> }
--
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
[jira] Resolved: (TUSCANY-244) BuilderConfigException thrown when
trying to build config for reference with multiplicity 1..n
Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-244?page=all ]
Jean-Sebastien Delfino resolved TUSCANY-244:
--------------------------------------------
Resolution: Fixed
I believe that this has been fixed by Jim 2 days ago (under a similar JIRA issue that I had created). Could you please try again now with the latest code... and reopen if this is not actually fixed? Thanks.
> BuilderConfigException thrown when trying to build config for reference with multiplicity 1..n
> ----------------------------------------------------------------------------------------------
>
> Key: TUSCANY-244
> URL: http://issues.apache.org/jira/browse/TUSCANY-244
> Project: Tuscany
> Type: Bug
> Components: Java SCA Core
> Versions: M1
> Environment: Eclipse 3.1.1 on Windows XP SP2
> Reporter: Ignacio Silva-Lepe
> Priority: Minor
> Fix For: M1
>
> Exception in thread "main" org.apache.tuscany.core.builder.BuilderConfigException: Incompatible source and target interface types for reference [warehouses]
> Context stack trace: [tuscany.root][supplychain][supplychain][RetailerComponent][WarehouseComponent1][tuscany.root]
> at org.apache.tuscany.core.builder.impl.DefaultWireBuilder.connect(DefaultWireBuilder.java:64)
> ...
> (SupplychainClient.java:43)
> using SCDL:
> <module xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
> name="SupplyChain">
> <component name="CustomerComponent">
> <implementation.java class="org.apache.tuscany.samples.supplychain.CustomerComponentImpl"/>
> <references>
> <v:retailer>RetailerComponent</v:retailer>
> </references>
> </component>
>
> <component name="RetailerComponent">
> <implementation.java class="org.apache.tuscany.samples.supplychain.RetailerComponentImpl"/>
> <references>
> <v:warehouses>WarehouseComponent1</v:warehouses>
> <v:warehouses>WarehouseComponent2</v:warehouses>
> </references>
> </component>
>
> <component name="WarehouseComponent1">
> <implementation.java class="org.apache.tuscany.samples.supplychain.WarehouseComponentImpl"/>
> <references>
> <v:shipper>ShipperComponent</v:shipper>
> </references>
> </component>
>
> <component name="WarehouseComponent2">
> <implementation.java class="org.apache.tuscany.samples.supplychain.WarehouseComponentImpl"/>
> <references>
> <v:shipper>ShipperComponent</v:shipper>
> </references>
> </component>
>
> <component name="ShipperComponent">
> <implementation.java class="org.apache.tuscany.samples.supplychain.ShipperComponentImpl"/>
> <references>
> <v:customer>CustomerComponent</v:customer>
> </references>
> </component>
>
> </module>
> and component interfaces:
> package org.apache.tuscany.samples.supplychain;
> /**
> * This is the business interface of the Retailer service component.
> */
> public interface Retailer {
>
> public void submitOrder(String order);
> }
> and
> package org.apache.tuscany.samples.supplychain;
> /**
> * This is the business interface of the Warehouse service component.
> */
> public interface Warehouse {
>
> public void fulfillOrder(String order);
> }
> with implementation of Retailer given by
> package org.apache.tuscany.samples.supplychain;
> import java.util.List;
> import org.osoa.sca.annotations.Reference;
> import org.osoa.sca.annotations.Service;
> /**
> * This class implements the Customer service component.
> */
> @Service(Retailer.class)
> public class RetailerComponentImpl implements Retailer {
>
> @Reference(name="warehouses",required=true)
> private List<Warehouse> warehouses;
>
> public void submitOrder(String order) {
> for(Warehouse warehouse : warehouses) {
> warehouse.fulfillOrder(order + ", submitted");
> }
> }
> }
--
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