I am fairly new to the Google API's and wanted to use the Picasa API. Unfortunately I haven't been very succesful. I read the getting started guide and was getting nullpointers. So I turned to the samples that come with the download (PicasawebClient & PicasawebCommandLine). But when I run the CommandLine one (in Eclipse) I get the following stacktrace after I choose to list my albums: Please enter Username: cvdnthillart Please enter Password: Ccomp1978 Main Menu: 0) Exit Program 1) Show albums 2) Show user tags Please enter Action: 1 Get Feed URL: http://picasaweb.google.com/data/feed/api/user/default Exception in thread "main" java.lang.NullPointerException at com.google.gdata.data.Kind.getAdaptorClass(Kind.java:241) at com.google.gdata.data.Kind.getAdaptor(Kind.java:295) at com.google.gdata.data.Category $AtomHandler.processEndElement(Category.java:294) at com.google.gdata.util.XmlParser.endElement(XmlParser.java:996) at org.xml.sax.helpers.ParserAdapter.endElement(ParserAdapter.java: 626) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java: 593) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java: 180) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java: 377) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java: 648) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java: 140) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 510) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java: 807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java: 737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java: 107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java: 1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $JAXPSAXParser.parse(SAXParserImpl.java:522) at org.xml.sax.helpers.ParserAdapter.parse(ParserAdapter.java:405) at com.google.gdata.util.XmlParser.parse(XmlParser.java:677) at com.google.gdata.util.XmlParser.parse(XmlParser.java:568) at com.google.gdata.data.BaseFeed.parseAtom(BaseFeed.java:838) at com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java: 68) at com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java: 39) at com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java: 100) at com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java: 52) at com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java: 66) at com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java: 34) at com.google.gdata.client.Service.parseResponseData(Service.java: 2036) at com.google.gdata.client.Service.getFeed(Service.java:1074) at com.google.gdata.client.Service.getFeed(Service.java:936) at com.google.gdata.client.GoogleService.getFeed(GoogleService.java: 631) at com.google.gdata.client.Service.getFeed(Service.java:955) at sample.photos.PicasawebClient.getFeed(PicasawebClient.java:224) at sample.photos.PicasawebClient.getAlbums(PicasawebClient.java:82) at sample.photos.PicasawebClient.getAlbums(PicasawebClient.java:100) at sample.photos.PicasawebCommandLine.showAlbums(PicasawebCommandLine.java: 112) at sample.photos.PicasawebCommandLine.mainLoop(PicasawebCommandLine.java: 99) at sample.photos.PicasawebCommandLine.main(PicasawebCommandLine.java: 79)
And I have made an album on my Picasa account. Also the feed URL is working in Chrome. Does anyone have any idea why I am getting these errors? -- You received this message because you are subscribed to the Google Groups "Google Picasa Web Albums API" group. To post to this group, send email to google-picasa-data-...@googlegroups.com. To unsubscribe from this group, send email to google-picasa-data-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-picasa-data-api?hl=en.