ws-scout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <scout-...@ws.apache.org>
Subject [jira] Commented: (SCOUT-72) Scout - need to transfor specifications to TModelBag
Date Thu, 23 Jul 2009 08:05:14 GMT

    [ https://issues.apache.org/jira/browse/SCOUT-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734508#action_12734508
] 

David Jencks commented on SCOUT-72:
-----------------------------------

I haven't had a chance to test the code yet but the original error I got was

Caused by: java.lang.ClassCastException: org.apache.ws.scout.registry.infomodel.ConceptImpl
cannot be cast to javax.xml.registry.infomodel.SpecificationLink
	at org.apache.ws.scout.util.ScoutJaxrUddiHelper.getTModelBagFromSpecifications(ScoutJaxrUddiHelper.java:862)


It looks like the current code would avoid this but also skip the ConceptImpl.  I'm completely
lost with the jaxr classes but I would think something like the following might give more
complete results
{code}
			Iterator speciter = specifications.iterator();
			while (speciter.hasNext()) {
				RegistryObject registryobject = (RegistryObject) speciter.next();
				while (registryobject instanceof SpecificationLink) {
					registryObject = ((SpecificationLink) registryobject).getSpecificationObject();
                               }
					if (registryObject != null  && registryObject.getKey() != null && !(registryObject
instanceof ExtrinsicObject) {
							Key key = registryObject.getKey();
							tbag.getTModelKey().add(key.toString());
						}
					
				}
			}
{code}

> Scout - need to transfor specifications to TModelBag
> ----------------------------------------------------
>
>                 Key: SCOUT-72
>                 URL: https://issues.apache.org/jira/browse/SCOUT-72
>             Project: Scout
>          Issue Type: Bug
>            Reporter: Tom Cunningham
>            Assignee: Tom Cunningham
>             Fix For: 1.1rc1
>
>
> In findServiceBindings, we pass in a collection of specifications but we never transform
that into a TModelBag before passing it into findBinding.
>     public BulkResponse findServiceBindings(Key serviceKey,
>                                             Collection findQualifiers,
>                                             Collection classifications,
>                                             Collection specifications) throws JAXRException
>     {
>         BulkResponseImpl blkRes = new BulkResponseImpl();
>         IRegistry iRegistry = registryService.getRegistry();
>         FindQualifiers juddiFindQualifiers = mapFindQualifiers(findQualifiers);
>         try
>         {
>  
>             BindingDetail l = iRegistry.findBinding(serviceKey.getId(),
>                     ScoutJaxrUddiHelper.getCategoryBagFromClassifications(classifications),

>             		null,
>             		juddiFindQualifiers,registryService.getMaxRows());

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: scout-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: scout-dev-help@ws.apache.org


Mime
View raw message