[one-users] Java OCA: poor choice of Exception class

Carsten.Friedrich at csiro.au Carsten.Friedrich at csiro.au
Tue Apr 12 16:49:08 PDT 2011


Some time ago I wrote a Java OCA client library based on JAXB bindings and posted it to this group. Have a look in the achieve and see if that suits you better than the stock version. It's not complete as I had to reverse-engineer/guess the XSD from XML output and mostly focus on part I actually use. There is an updated version I can probably make available if there is interest.

Carsten


Carsten Friedrich
Research Team leader
ICT Centre, GPO Box 664,Canberra, ACT 2601
Phone: +61 2 6216 7019 
Email: Carsten.Friedrich at csiro.au
Web:   http://www.csiro.au/org/ICT.html


-----Original Message-----
From: users-bounces at lists.opennebula.org [mailto:users-bounces at lists.opennebula.org] On Behalf Of Gian Uberto Lauri
Sent: Tuesday, 12 April 2011 3:30
To: Carlos Martín Sánchez
Cc: users at lists.opennebula.org
Subject: Re: [one-users] Java OCA: poor choiche of Exception class

>>>>> "CMS" == Carlos Martín Sánchez <cmartin at opennebula.org> writes:

CMS> Hi Gian Uberto, Thank you for your feedback. As you may know, we
CMS> use mainly our Ruby bindings for external tools and extensions,
CMS> so these comments about the Java API are very welcome.  Please
CMS> feel free to open a ticket in our development portal [1], along
CMS> with any other comments, suggestions or patches.

Ticket #572  has been created.  There are two  version of the  Error I
add. The  firs one uses  java.lang.Error that is more  appropriate but
breaks the  legacy code. A  second version  does not change  the class
name (is  an Error after  all) but extends RuntimeException  since you
should  not write  a  catch  code for  it,  you  should provide  valid
resources for the program to run correctly.

--
ing. Gian Uberto Lauri
Ricercatore / Reasearcher
Laboratorio Ricerca e Sviluppo / Research & Development Lab.
Area Calcolo Distribuito / Distributed Computation Area

GianUberto.Lauri at eng.it

Engineering Ingegneria Informatica spa
Corso Stati Uniti 23/C, 35127 Padova (PD) 

Tel. +39-049.8283.571         | main(){printf(&unix["\021%six\012\0"], 
Fax  +39-049.8283.569		  |    (unix)["have"]+"fun"-0x60);}   
Skype: gian.uberto.lauri	  |          David Korn, AT&T Bell Labs             
http://www.eng.it 			  |          ioccc best One Liner, 1987             
_______________________________________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



More information about the Users mailing list