I'm new to the Google Java API's and have been trying them out. On of them is the PWA API. For this I have gone through the "getting started" material but haven't been able to get anything working. I kept getting nullpointer exceptions. SO I tried the sample code that is part of the API download (PicasawebClient & PicasawebCommandline). But when I run these I keep getting the same error trace:
Get Feed URL: http://picasaweb.google.com/data/feed/api/user/default?kind=tag 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 thrillart.gdata.PicasawebClient.getFeed(PicasawebClient.java:207) at thrillart.gdata.PicasawebClient.getTags(PicasawebClient.java:93) at thrillart.gdata.PicasawebClient.getTags(PicasawebClient.java:111) at thrillart.gdata.PicasawebCommandLine.showUserTags(PicasawebCommandLine.java: 142) at thrillart.gdata.PicasawebCommandLine.mainLoop(PicasawebCommandLine.java: 87) at thrillart.gdata.PicasawebCommandLine.main(PicasawebCommandLine.java: 64) This is from the unmodifed code running from within Eclipse. The commandLine class asks me for my username and pw and then gives me options to list albums or tags. When I chose either option the error above occurs. Does anyone have any idea on why this error is occuring? -- 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.