[suggest] Corba server badly handling some errors

delbd <[email protected]> Wed, 17 Aug 2005 11:13:39 +0200
Newsgroups gmane.comp.java.enhydra.shark
Organization Institut Royal Météorologique
Message-ID <[email protected]>
Hello,

I had to track thru the code of shark why an activity was unable to perform.
I knew this had to do with the way i was using shark in my environment but
the error message from corba interface was quite cryptic:

org.omg.CORBA.UNKNOWN:   vmcid: SUN  minor code: 202 completed: Maybe

and a client side stacktrace, no informations server side except the fact operation was being processed
(i had the classical activity completed message from completing activities)

Reason i had this is i forgot to add bsh library to envirronement (quiet stupid error i admit)
However, the NoClassDefFoundError never showed up anywhere so i had
no clue why this was failing on this activity and not on others.

Reasons for error not showing is as follow:
In org.enhydra.shark.WfActivityWrapper, method 
public void complete (SharkTransaction t), 
there is a catch (Exception ex) { throw new BaseException(ex);}

A better code would be 
catch (Throwable t) {throw new BaseException(t);}

Or the Errors make their way to the sun corba server code and are simply converted
in an unknow corba error :/

This also applies to lots of shark corba server wrapper methods!

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?
message-footer.txt (text/plain, 271 B)
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws