Return-Path: Delivered-To: apmail-ws-scout-dev-archive@www.apache.org Received: (qmail 60181 invoked from network); 8 Aug 2005 14:15:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Aug 2005 14:15:49 -0000 Received: (qmail 64647 invoked by uid 500); 8 Aug 2005 14:15:41 -0000 Delivered-To: apmail-ws-scout-dev-archive@ws.apache.org Received: (qmail 64585 invoked by uid 500); 8 Aug 2005 14:15:40 -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 64539 invoked by uid 99); 8 Aug 2005 14:15:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2005 07:15:40 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [217.110.1.229] (HELO aspirin.carnot.ag) (217.110.1.229) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2005 07:16:02 -0700 Received: from saxon ([192.168.0.1]) by aspirin.carnot.ag (8.12.3/8.12.2/SuSE Linux 0.6) with ESMTP id j78EETJY009159 for ; Mon, 8 Aug 2005 16:14:29 +0200 Message-Id: <200508081414.j78EETJY009159@aspirin.carnot.ag> From: "Robert Sauer" To: Subject: JDK 1.3 problem Date: Mon, 8 Aug 2005 16:15:37 +0200 Organization: Carnot AG MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_000C_01C59C34.6A277390" X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Thread-Index: AcWcI6Qh+YwQOBHVQgOlgRh5gL4lgw== X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_NextPart_000_000C_01C59C34.6A277390 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Hi all, while embedding Scout I found a small issue regarding Scout JDK 1.3 compatibility in JAXRException. I would happily contribute a patch fixing this, because after a short code inspection it looks like not depending on JDK 1.4 chained exceptions was a goal originally. Additionally I would like to propose a patch in the area of retrieving organization and services from a registry. At first we obtained a NPE if no services were registered for a business (starting at line 172). After fixing this, we missed binding details for services (patching from line 267). The problem here is, that I don't know if both fixes correct in a semantic way, i.e. towards spec compliance. Anyways, I'm pretty sure someone on this list will know in an instant. Best regards, Robert ------=_NextPart_000_000C_01C59C34.6A277390 Content-Type: application/octet-stream; name="scout-src-r191441.zip.jdk13.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="scout-src-r191441.zip.jdk13.patch" Index: modules/jaxr-api/src/java/javax/xml/registry/JAXRException.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/jaxr-api/src/java/javax/xml/registry/JAXRException.java = (revision 191441) +++ modules/jaxr-api/src/java/javax/xml/registry/JAXRException.java = (working copy) @@ -40,12 +40,12 @@ } =20 public JAXRException(Throwable cause) { - super(cause); + super(cause.getMessage()); this.cause =3D cause; } =20 public JAXRException(String message, Throwable cause) { - super(message, cause); + super(message); this.cause =3D cause; } =20 ------=_NextPart_000_000C_01C59C34.6A277390 Content-Type: application/octet-stream; name="scout-src-r191441.zip.ScoutUddiJaxrNPE.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="scout-src-r191441.zip.ScoutUddiJaxrNPE.patch" Index: = modules/scout/src/java/org/apache/ws/scout/util/ScoutUddiJaxrHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- = modules/scout/src/java/org/apache/ws/scout/util/ScoutUddiJaxrHelper.java = (revision 191441) +++ = modules/scout/src/java/org/apache/ws/scout/util/ScoutUddiJaxrHelper.java = (working copy) @@ -24,6 +24,7 @@ import org.apache.juddi.datatype.Name;=0A= import org.apache.juddi.datatype.binding.AccessPoint;=0A= import org.apache.juddi.datatype.binding.BindingTemplate;=0A= +import org.apache.juddi.datatype.binding.BindingTemplates;=0A= import org.apache.juddi.datatype.binding.TModelInstanceDetails;=0A= import org.apache.juddi.datatype.binding.TModelInstanceInfo;=0A= import org.apache.juddi.datatype.business.BusinessEntity;=0A= @@ -42,6 +43,7 @@ import javax.xml.registry.LifeCycleManager;=0A= import javax.xml.registry.infomodel.*;=0A= import java.util.Collection;=0A= +import java.util.Iterator;=0A= import java.util.Vector;=0A= =0A= /**=0A= @@ -172,7 +174,7 @@ =0A= //Set Services also=0A= BusinessServices services =3D entity.getBusinessServices();=0A= - Vector svect =3D services.getBusinessServiceVector();=0A= + Vector svect =3D (null !=3D services) ? = services.getBusinessServiceVector() : null;=0A= for (int i =3D 0; svect !=3D null && i < svect.size(); i++)=0A= {=0A= BusinessService s =3D (BusinessService)svect.elementAt(i);=0A= @@ -267,6 +269,17 @@ Vector descvect =3D bs.getDescriptionVector();=0A= Description desc =3D descvect !=3D null ? = (Description)descvect.elementAt(0) : null;=0A= if(desc !=3D null ) = serve.setDescription(lcm.createInternationalString(desc.getValue()));=0A= +=0A= + BindingTemplates bts =3D bs.getBindingTemplates();=0A= + if ((null !=3D bts) && (null !=3D bts.getBindingTemplateVector()))=0A= + {=0A= + for (Iterator i =3D bts.getBindingTemplateVector().iterator(); = i.hasNext();)=0A= + {=0A= + BindingTemplate bt =3D (BindingTemplate) i.next();=0A= + serve.addServiceBinding(getServiceBinding(bt, lcm));=0A= + }=0A= + }=0A= + =0A= return serve;=0A= }=0A= =0A= ------=_NextPart_000_000C_01C59C34.6A277390 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: scout-dev-unsubscribe@ws.apache.org For additional commands, e-mail: scout-dev-help@ws.apache.org ------=_NextPart_000_000C_01C59C34.6A277390--