Re: OGOJOGI XmlRpcPerson.updateJob
Christoph Guse <[email protected]>
| Newsgroups | gmane.comp.cms.opengroupware.xmlrpc.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi murphee, your objection with the nonexistance of a updateJob method made me reflective. I looked up the XML-RPC manual and found that in the manual there is a updateJob method for jobs and person object. BUT: person.updateJob isn't explained. There is something about person.get. job.updateJob isn't explained correctly. There is something about person.updateJob, but it is in the job section. In order to eliminate the obscurities I added a updateJob method in XmlRpcJob. The updateJob method already existed in XmlRpcPerson but with a big TODO above in the sourcecode. The result is the NullPointerException disappeared and I get in both cases "org.opengroupware.jogi.ogo.OgoException: NoSuchAction: action not implemented" It seems I have to create an own jobUpdate functionality based on delete and insert because there is no adequate XML-RPC method. Thanks a lot for your help @ murphee and Helge Greets Christoph murphee (Werner Schuster) wrote: > Christoph Guse wrote: > >> Doesn't work means my test-application breaks with a >> java.lang.NullPointerException. > > > Hmm... can you post the Stacktrace? > >> If I uncomment the line I don't get the NullPointerException. >> Unfortunately I'm not able to examine the error further, becaus I >> don't know what is called in the line. > > > caller is an instance of the XmlRpcCaller, I suppose you're using the > ApacheXmlRpcCaller implementation (the one that is shipped with JOGI). > This can't really be null, but maybe some reference inside it is null. > Could you step this through with a debugger to see what happens? > > I'm wondering... what causes this to happen? There's no updateJob > method in the Person class; does this happen when you call something > else? (Sorry if that's a bad question, I'm a bit rusty on this stuff). > > murphee -- **************************************** Christoph Guse LöhstraÃe 34 41747 Viersen Tel. 0 21 62 / 50 24 066 Mobil 01 72 / 160 74 84 VoIP 0 12 12 / 39 64 48 831 **************************************** -- OpenGroupware.org XML-RPC [email protected] http://mail.opengroupware.org/mailman/listinfo/xmlrpc