From users-return-6763-apmail-continuum-users-archive=continuum.apache.org@continuum.apache.org Wed Jul 23 20:00:16 2008 Return-Path: Delivered-To: apmail-continuum-users-archive@www.apache.org Received: (qmail 32347 invoked from network); 23 Jul 2008 20:00:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jul 2008 20:00:15 -0000 Received: (qmail 81335 invoked by uid 500); 23 Jul 2008 20:00:14 -0000 Delivered-To: apmail-continuum-users-archive@continuum.apache.org Received: (qmail 81300 invoked by uid 500); 23 Jul 2008 20:00:14 -0000 Mailing-List: contact users-help@continuum.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@continuum.apache.org Delivered-To: mailing list users@continuum.apache.org Received: (qmail 81287 invoked by uid 99); 23 Jul 2008 20:00:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2008 13:00:14 -0700 X-ASF-Spam-Status: No, hits=3.5 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alegomes@gmail.com designates 209.85.198.247 as permitted sender) Received: from [209.85.198.247] (HELO rv-out-0708.google.com) (209.85.198.247) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2008 19:59:17 +0000 Received: by rv-out-0708.google.com with SMTP id f25so2248428rvb.50 for ; Wed, 23 Jul 2008 12:59:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=kU/VLhlk09axgKL7iVt9PUBHVKJEGAi+gP6A83JYpWs=; b=OU7rCDyajLJwf/3ZZHWhQPqj5YagZcp83iDLePXm1Zcb9IgF5BCXoipogAWhF5aiI8 8FKEVBYBP8ggMHlLShYPG5a+CK2wcU1MWeV3pScb7WGeoHYxNnS1piJPAX3xcVf7KSuX I6GQ9P2+c2Rbfu8BGaMiONlrEOlJC1UIBgqe8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=ApnrZaZNlMnrdqb+EEhiIMwN83Mmpdetp3j04BvwhI1VFT59MQ0vEPTiEn8P+DJ6Bt 4SMoGA70RtE4NWc2GIPeA7iRUoO8gJLEj9NEIKE4qO4uAbZg0CrqHjwyv5UV4WwgGMCu S72rPPx9Hw/oIoRXqvi/W90b0/Xk7dhbgyvHo= Received: by 10.141.180.11 with SMTP id h11mr78607rvp.158.1216843182527; Wed, 23 Jul 2008 12:59:42 -0700 (PDT) Received: by 10.141.62.21 with HTTP; Wed, 23 Jul 2008 12:59:42 -0700 (PDT) Message-ID: Date: Wed, 23 Jul 2008 16:59:42 -0300 From: "Alexandre Gomes" To: users@continuum.apache.org Subject: Re: XMLRPC API for Continuum 1.0.3? In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_108591_13250529.1216843182529" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_108591_13250529.1216843182529 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Wow! Solved! Just had to change the library used. org.apache.maven.continuum continuum-rpc-client 1.0.3 URL url =3D new URL("http://localhost:8000"); ProjectsReader reader =3D new ProjectsReader(url); Project[] projects =3D reader.readProjects(); for (Project p : projects) { System.out.println(p.getName()); } Sorry for bother you. []s On Wed, Jul 23, 2008 at 4:33 PM, Alexandre Gomes wrote= : > Hi, > > is there an API to programatically access Continuum 1.0.3? I've seem XMLR= PC > [1], but it seems to work only with 1.1 version. I tried to run a simple > example [2] against a 1.0.3 installation, but an error pops up [3]. I've > seen another reference to this error at Google [4], but it didn't have an= y > conclusion. > > Any help is appreciated. > thanks a lot. > -- Ale! > > [1] http://continuum.apache.org/docs/1.1/developer_guides/xmlrpc.html > > [2] > String username =3D "admin"; > String password =3D "admin"; > URL url =3D new URL("http://localhost:8000"); > ContinuumXmlRpcClient client =3D new ContinuumXmlRpcClient(url, > username, password); > > // List pgs =3D client.getAllProjectGroups()= ; > List pgs =3D client.getAllProjectGroupsWithProjects= (); > > [3] > Exception in thread "main" org.apache.xmlrpc.XmlRpcException: > java.lang.Exception: RPC handler object > "org.apache.maven.continuum.xmlrpc.ContinuumService" not found and no > default handler registered > at > org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamT= ransport.java:184) > at > org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTr= ansport.java:145) > at > org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransp= ort.java:94) > at > org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttp= Transport.java:39) > at > org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.ja= va:53) > at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:16= 6) > at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:13= 6) > at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:12= 5) > at > org.apache.xmlrpc.client.util.ClientFactory$1.invoke(ClientFactory.java:1= 04) > at $Proxy0.getAllProjectGroupsWithAllDetails(Unknown Source) > at > org.apache.maven.continuum.xmlrpc.client.ContinuumXmlRpcClient.getAllProj= ectGroupsWithAllDetails(ContinuumXmlRpcClient.java:172) > at > org.apache.maven.continuum.xmlrpc.client.ContinuumXmlRpcClient.getAllProj= ectGroupsWithProjects(ContinuumXmlRpcClient.java:181) > at > org.rhq.plugins.continuum.TestContinnumAPI.main(TestContinnumAPI.java:24) > > [4] http://osdir.com/ml/java.continuum.user/2006-09/msg00014.html > > -- > Al=EA! > --=20 Al=EA! ------=_Part_108591_13250529.1216843182529--