Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: OGOJOGI XmlRpcPerson.updateJob: msg#00024

cms.opengroupware.xmlrpc.devel

Subject: Re: OGOJOGI XmlRpcPerson.updateJob

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
xmlrpc@xxxxxxxxxxxxxxxxx
http://mail.opengroupware.org/mailman/listinfo/xmlrpc



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
db.postgresql.b...    video.ffmpeg.us...    gis.qgis.devel/...    web.rdf.redland...    file-systems.oc...    recreation.rail...    systems.archos....    python.c++/2003...    lang.c--/2005-0...    multimedia.gpho...    network.unison....    editors.jedit.u...    hardware.pciids...    cms.tiki.cvs/20...    bug-tracking.ma...    java.hadoop.hba...    ietf.rsvp/2002-...    xfree86.devel/2...    qnx.openqnx.dev...    apache.labs.dev...    tex.pdftex/2008...    os.solaris.open...    user-groups.lin...    kde.koffice/200...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation