Return-Path: Delivered-To: apmail-ws-scout-dev-archive@www.apache.org Received: (qmail 55602 invoked from network); 23 Jul 2009 08:04:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jul 2009 08:04:32 -0000 Received: (qmail 12937 invoked by uid 500); 23 Jul 2009 08:05:37 -0000 Delivered-To: apmail-ws-scout-dev-archive@ws.apache.org Received: (qmail 12899 invoked by uid 500); 23 Jul 2009 08:05:37 -0000 Mailing-List: contact scout-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: scout-dev@ws.apache.org List-Id: Delivered-To: mailing list scout-dev@ws.apache.org Received: (qmail 12891 invoked by uid 99); 23 Jul 2009 08:05:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jul 2009 08:05:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jul 2009 08:05:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EFEA029A0017 for ; Thu, 23 Jul 2009 01:05:14 -0700 (PDT) Message-ID: <1991902869.1248336314982.JavaMail.jira@brutus> Date: Thu, 23 Jul 2009 01:05:14 -0700 (PDT) From: "David Jencks (JIRA)" To: scout-dev@ws.apache.org Subject: [jira] Commented: (SCOUT-72) Scout - need to transfor specifications to TModelBag In-Reply-To: <1049827089.1234482179668.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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