abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lookman sanni <lookous...@gmail.com>
Subject Re: Porting Abdera onto Android 1.0
Date Thu, 07 May 2009 14:27:57 GMT
You may be right. I gave up to quickly fearing another dependency to handle.
Well, i'm gon try tonight with [1], and tell you how it comes!

[1] : http://www.docjar.org/html/api/javax/xml/namespace/QName.java.html

Thx;

On Thu, May 7, 2009 at 4:19 PM, <jasnell@gmail.com> wrote:

> Or, you can grab an open source impl of the qname class (or impl it
> yourself) and include it in your code...
>
> - james
> Sent from my Verizon Wireless BlackBerry
>
> -----Original Message-----
> From: lookman sanni <lookouster@gmail.com>
>
> Date: Thu, 7 May 2009 15:58:28
> To: <user@abdera.apache.org>
>  Subject: Re: Porting Abdera onto Android 1.0
>
>
> Thx for your feeback. I've finally tried to build the abdera-core as an
> android project so that it could use android's native Apache HttpClient.
> That works pretty well till i find out it needs the javax.xml package
> (QNAME
> class) android don't support.
>
> I guess then that i should start thinking of another way posting my atom
> resources to my servlet.
>
>
>
>
> On Thu, May 7, 2009 at 3:30 PM, James Abley <james.abley@gmail.com> wrote:
>
> > 2009/5/6 Jim Ancona <jim@anconafamily.com>:
> > > I think Android includes a version of Apache HttpClient 4. It's
> > > possible that is causing a conflict with Abdera. I've also been
> > > meaning to give this a try. When I do, I'll report back.
> > >
> > > Jim
> >
> > I can confirm that it does; specifically this ABI:
> >
> >
> >
> http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4_0_API_FREEZE/
> >
> > Cheers,
> >
> > James
> >
> > >
> > > On Tue, May 5, 2009 at 8:09 PM,  <jasnell@gmail.com> wrote:
> > >> Haven't tried to port abdera to a mobile java platform but its
> something
> > I want to do. Not sure what's causing the issue you're seeing. - james
> > >> Sent from my Verizon Wireless BlackBerry
> > >>
> > >> -----Original Message-----
> > >> From: lookman sanni <lookouster@gmail.com>
> > >>
> > >> Date: Wed, 6 May 2009 01:59:58
> > >> To: <user@abdera.apache.org>
> > >> Subject: Porting Abdera onto Android 1.0
> > >>
> > >>
> > >> Hi folks!.
> > >> I'm encountering some issues while trying to built an atom feed and
> post
> > it
> > >> from an android app. I'm doin it this way:
> > >>
> > >>> Abdera abdera = new Abdera();
> > >>>  AbderaClient client = new AbderaClient(abdera);
> > >>>  Entry entry = abdera.newEntry();
> > >>>  entry.setContent("<entry xmlns='http://www.w3.org/2005/Atom'>"
+
> > >>>  "<title>item</title>" +
> > >>>  "<content type='text/xml'>" +
> > >>>   "<Item xmlns='http://services/'>" +
> > >>>   "<name xmlns=''>" + item.getName()+ "</name>" +
> > >>>  "<price xmlns=''>" +item.getPrice()+"</price>" +
> > >>>   "</Item></content></entry>");
> > >>>  ClientResponse resp = client.post(ServiceURI,entry);
> > >>
> > >>
> > >> And i always get the following error:
> > >>
> > >>> java.lang.VerifyError: org.apache.abdera.protocol.client.AbderaClient
> > >>
> > >>
> > >> I even tried to comment the Abdera Client initialisation and and the
> > >> client.post lines, but all i got is a null pointer error. Did someone
> > face
> > >> such issues so far?
> > >> Thx;
> > >> --
> > >> Lookman SANNI;
> > >>
> > >>
> > >
> >
>
>
>
> --
> Lookman SANNI;
>
>


-- 
Lookman SANNI;

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message