Return-Path: Delivered-To: apmail-abdera-user-archive@www.apache.org Received: (qmail 8934 invoked from network); 14 May 2009 15:31:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 May 2009 15:31:55 -0000 Received: (qmail 97331 invoked by uid 500); 14 May 2009 15:31:55 -0000 Delivered-To: apmail-abdera-user-archive@abdera.apache.org Received: (qmail 97258 invoked by uid 500); 14 May 2009 15:31:54 -0000 Mailing-List: contact user-help@abdera.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@abdera.apache.org Delivered-To: mailing list user@abdera.apache.org Received: (qmail 97248 invoked by uid 500); 14 May 2009 15:31:54 -0000 Delivered-To: apmail-incubator-abdera-user@incubator.apache.org Received: (qmail 97240 invoked by uid 99); 14 May 2009 15:31:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2009 15:31:54 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_HELO_PASS,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2009 15:31:43 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1M4cu2-0007Oz-U0 for abdera-user@incubator.apache.org; Thu, 14 May 2009 08:31:22 -0700 Message-ID: <23543017.post@talk.nabble.com> Date: Thu, 14 May 2009 08:31:22 -0700 (PDT) From: "mahmoud.ismaiel" To: abdera-user@incubator.apache.org Subject: Re: A minimal Atom server In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: mahmoud.ismaiel@gmail.com References: X-Virus-Checked: Checked by ClamAV on apache.org Hello, Bertrand I am new to Abdera and face the problem you get. could u post the trunk version u used? cuz i used the svn trunk version and still didn't work for me. Thanks, Mahmoud Ismaiel Goetzmann Bertrand wrote: > > Hello, > > I just discover Abdera and I'm very impressed! Thank you to all > committers to this project. > > So I downloaded the 0.4 version and tried to launch a minimal atom pub > server, using source code found in the employee folder: it contains > AppServer.java, Employee.java, and EmployeeCollectionAdapter.java. > > AppServer has the main method and starts a Jetty web server that listens > on the 9002 port. > > Using NetBenas 6.1 and these three sources I can start the server. > > With a browser I can navigate to the URL http://localhost:9002/employee > that returns an empty list but a correct response (a Atom document). > > But when I navigate to the URL http://localhost:9002/ in order to get > the service document I get an empty document (0 byte)! > I try also to add a new employee using a post command with the following > code in Groovy language: > > def abdera = new Abdera() > def factory = abdera.factory > def client = new AbderaClient(abdera) > > > def entry = factory.newEntry() > entry.addAuthor('Bertrand') > entry.setContent('

...

') > entry.setSummary('...') > entry.setTitle('...') > entry.setUpdated(new Date()) > > def response = client.post("http://localhost:9002/employee", entry) > println "POST : $response.type" > println response.inputStream.text > > > But the response type is CLIENT_ERROR and the response text is empty; on > the server side I don't have any trace. When debugging the > EmployeeCollectionAdapter.postEntry is not called. > With the client, if I call the put method, > EmployeeCollectionAdapter.putEntry is well called. > > > So, why I can't get the service document, and what is wrong with my > client code? > > Thank you for your help. > > > Bertrand > http://www.odelia-technologies.com > > -- View this message in context: http://www.nabble.com/A-minimal-Atom-server-tp19793398p23543017.html Sent from the abdera-user mailing list archive at Nabble.com.