I debugged the error to this line in...propono.atom.client.ClientWorkspace parseWorkspaceElement(Element element){}
Element titleElem = element.getChild("title", AtomService.ATOM_FORMAT);
//Ady comments -> AtomService.ATOM_FORMAT = [Namespace: prefix "atom" is
mapped to URI "http://www.w3.org/2005/Atom"]
//Ady comments -> titleElem = null
setTitle(titleElem.getText()); //<- the exception is here java.lang.NullPointerExceptionat com.sun.syndication.propono.atom.client.ClientWorkspace.parseWorkspaceElement(ClientWorkspace.java:50) at com.sun.syndication.propono.atom.client.ClientWorkspace.<init>(ClientWorkspace.java:43) at com.sun.syndication.propono.atom.client.ClientAtomService.parseAtomServiceDocument(ClientAtomService.java:139) at com.sun.syndication.propono.atom.client.ClientAtomService.<init>(ClientAtomService.java:97) at com.sun.syndication.propono.atom.client.AtomClientFactory.getAtomService(AtomClientFactory.java:33)
at com.test.atom.EntryReader.getAtomService(EntryReader.java:34) at com.test.atom.EntryReader.main(EntryReader.java:24) Dave wrote:
Do you have a stack trace for that NPE? - Dave On 5/16/07, Ady Das OToole <[EMAIL PROTECTED]> wrote:So I'm trying to use the ClientAtomService hooked up to my Roller app feed and I get a null pointer exception in the Propono code when I try to do the following: ClientAtomService service = AtomClientFactory.getAtomService(endpoint, username, password); Looking at my app feed I see the following, which is different from the example of Roller app feeds that I see on the web (the "app:" prefix on the nodes). Anyway, I don't see how that would cause the error - but any help would be brilliant! (And thanks Dave for sorting out my app feed) <?xml version="1.0" encoding="UTF-8"?> <app:service xmlns:app="http://purl.org/atom/app#"> <app:workspace><atom:title xmlns:atom="http://www.w3.org/2005/atom">Test</atom:title><app:collection href="http://<server>:<port>/roller/roller-services/app/test/entries"> <atom:title xmlns:atom="http://www.w3.org/2005/atom">Weblog Entries</atom:title> <app:categories app:fixed="yes" app:scheme="http://<server>:<port>/roller/edn/"> <atom:category xmlns:atom="http://www.w3.org/2005/atom" atom:term="/Test" atom:label="Test" /> </app:categories> <app:accept>entry</app:accept> </app:collection> <app:collectionhref="http://http://<server>:<port>/roller/roller-services/app/test/resources"><atom:title xmlns:atom="http://www.w3.org/2005/atom">Media Files</atom:title> <app:accept /> </app:collection> </app:workspace> </app:service> -- Ady Das-OToole
-- Ady Das-OToole Optaros, Inc. 617-227-1855 x113 (p) 617-227-1755 (f) 617-217-1041 (m) [EMAIL PROTECTED] www.optaros.com
