Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 69946 invoked from network); 3 Jul 2009 12:00:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jul 2009 12:00:51 -0000 Received: (qmail 52561 invoked by uid 500); 3 Jul 2009 12:01:01 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 52493 invoked by uid 500); 3 Jul 2009 12:01:01 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 52465 invoked by uid 99); 3 Jul 2009 12:00:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jul 2009 12:00:59 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.77.186.17] (HELO mx3.progress.com) (192.77.186.17) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jul 2009 12:00:47 +0000 Received: from mx3.progress.com (127.0.0.1) by mx3.progress.com (MlfMTA v3.2r9) id h9npeu0171st for ; Fri, 3 Jul 2009 08:00:26 -0400 (envelope-from ) Received: from progress.com ([192.233.92.16]) by mx3.progress.com (SonicWALL 7.1.1.1995) with ESMTP; Fri, 03 Jul 2009 07:59:00 -0400 Received: from NTEXFE01.bedford.progress.com (ntexfe01 [10.128.10.24]) by progress.com (8.13.8/8.13.8) with ESMTP id n63Bwx1p023010 for ; Fri, 3 Jul 2009 07:58:59 -0400 (EDT) Received: from sberyoz ([10.5.2.18]) by NTEXFE01.bedford.progress.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Fri, 3 Jul 2009 07:58:59 -0400 Message-ID: <00a801c9fbd5$a688f890$1202050a@emea.progress.com> From: "Sergey Beryozkin" To: References: <24297533.post@talk.nabble.com> Subject: Re: Problem with matrix params, works with one, but not with two (or more) params Date: Fri, 3 Jul 2009 12:58:56 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-OriginalArrivalTime: 03 Jul 2009 11:58:59.0866 (UTC) FILETIME=[A69CA7A0:01C9FBD5] X-Mlf-Version: 7.1.1.1995 X-Mlf-UniqueId: o200907031159000289721 X-Virus-Checked: Checked by ClamAV on apache.org I did few more tests today (with/without CXFServlet, with PathSegments) and I still can't reproduce it so I will give up for a moment. But I'm still nervous you managed to hit a problem somehow - can you please give me a favor and help to get to the bottom of it ? It should take 30 mins max of your time, download http://www.apache.org/dyn/closer.cgi?path=%2Fcxf%2F2.2.2%2Fapache-cxf-2.2.2-src.zip and put a breakpoint in URITemplate.match() A better news is that after trying to reproduce it, I added a new method to WebClient which can make it simpler for users to deal with template parameters, such that they can avoid dealing with UriBuilder directly. So you can do WebClient client = WebClient.create("http://widgets"); cleint.path("("/renderwidget/id/{widgetID}/type/{widgetType}/size/{size}/locale/{locale}/{properties}", idValue, widgetTypeValue, 1, "en_US", "properties;1=2").get(Widget.class) cheers, Sergey ----- Original Message ----- From: "Gabriel Guardincerri" To: Sent: Wednesday, July 01, 2009 10:35 PM Subject: Problem with matrix params, works with one, but not with two (or more) params > > Hello, > > I'm having a problem where matrix parameters are not recognized past the > first parameter. When I have one matrix parameter, the method below is > invoked and the PathSegment.getMatrixParameters() returns the single > result. > > However, if I append a second matrix parameter (or more), the service > method is not invoked at all and I receive the following error message: > > "No operation matching request". > > Service interface: > > @GET > @Path("/renderwidget/id/{widgetID}/type/{widgetType}/size/{size}/locale/{locale}/{properties}") > WSWidget renderWidget(@PathParam("widgetID") Long widgetID, > @PathParam("widgetType") Integer widgetType, > @PathParam("size") Long containerSize, > @PathParam("locale") String locale, > @PathParam("properties") PathSegment props) > throws RemoteBridgeException; > > Working > URL: > /renderwidget/id/1007/type/1/size/1/locale/en_US/properties;numResults=1 > > Broken: > URL: > /renderwidget/id/1007/type/1/size/1/locale/en_US/properties;numResults=1;foo=bar > > The reason I'm trying to use matrix parameters is that I have an > arbitrary map of name/value for a widget class. I can't try to parse > them out individually using @MatrixParam, because they vary by widget > class and are not known at the service level. > > Thanks for your help. > -- > View this message in context: > http://www.nabble.com/Problem-with-matrix-params%2C-works-with-one%2C-but-not-with-two-%28or-more%29-params-tp24297533p24297533.html > Sent from the cxf-user mailing list archive at Nabble.com. >