juddi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Chen <alex.c...@iona.com>
Subject getTModelDetail bug
Date Mon, 18 Oct 2004 02:08:20 GMT
Hi all:

    There's a bug in getTModelDetail UDDI operation, it's in the 
org.apache.juddi.datastore.jdbc.JDBCDataStore class's fetchTModel 
method, when fech the TModel's IdentifierBag the code should be:

  Vector idVector = TModelIdentifierTable.select(tModelKey,connection);
  if (idVector != null && idVector.size() != 0)
    {
      IdentifierBag idBag = new IdentifierBag();
      idBag.setKeyedReferenceVector(idVector);
      tModel.setIdentifierBag(idBag);
    }

but the original code is:

Vector idVector = TModelIdentifierTable.select(tModelKey,connection);
if (idVector != null)
   {
     IdentifierBag idBag = new IdentifierBag();
     idBag.setKeyedReferenceVector(idVector);
     tModel.setIdentifierBag(idBag);
   }

it doesn't follow the UDDI.xsd when retured to client side and will 
cause a exception.

thx.

Alex

Mime
View raw message