You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by Neo Sok Lay <so...@gridnode.com> on 2003/09/23 04:09:03 UTC

[juddi-Users] Inconsistent TModelKeyVector element type

Hi,

I was trying to discover business with the names and tmodelbag criteria,
however this caused a ClassCastException in
FindBusinessByTModelKeyQuery.appendWhere() at the line:
   TModelKey tModelKey = (TModelKey)keyVector.elementAt(i);

Apparently the keyVector contains String objects instead of TModelKey
objects.

Looking through the codes, I discover the following inconsistencies:
1. TModelBag class is adding String(s) to tModelKeyVector. (no check for the
setTModelKeyVector() though)
2. FindBusinessByTModelKeyQuery.appendWhere() is getting TModelKey from
tModelKeyVector (as mentioned above)
3. FindServiceByTModelKeyQuery.appendWhere() is getting TModelKey from
tModelKeyVector
4. FindBindingByTModelKeyQuery.appendWhere() is getting String from
tModelKeyVector

What should be the element type of tModelKeyVector?
Regards,
Sok Lay

"All that appears and happens about and around us is uncertain, transient.
But there is a Supreme Being hidden therein as a Certainty,

and one would be blessed if one could catch a glimpse of that
Certainty and hitch one's wagon to it. The quest for that Truth
is the summum bonum of life." -- Mohandas Gandhi