Uploaded image for project: 'jUDDI (Retired)'
  1. jUDDI (Retired)
  2. JUDDI-508

delete_tModel not working with LocalTransport(juddi-client)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.0.4
    • 3.1.1
    • juddi-client
    • OS: Windows
      App Server: WebSphere
      DB: DB2

    Description

      We are using jUDDI in our application and interacting to it using Local Transport (using scout) we are facing a problem while deleting any TModel and we have resolved this by fixing it in "UDDIPublicationService.java"

      Details of fix

      In RegistryV3Impl. deleteTModel() method before deleting the Tmodel it prepares JAXBElement with operation name as "delete_tModel" (by invoking ObjectFactory.deleteTModel()) and finally invokes UDDIPublicationService.publish() it returns "NullPointerException" due to mismatch in the case while getting the Appropriate Handler instance i.e. UDDIPublicationService can't get the appropriate "Handler" instance with the operation "delete_tModel" because this class has Handler with key "delete_tmodel".

      we have fixed by storing the Handler instance with key "delete_tModel" (changing "m" to Caps) in "org.apache.juddi.v3.client.transport.wrapper .UDDIPublicationService.java"

      code snippet

      public class UDDIPublicationService {
      ..
      ..
      private HashMap<String, Handler> operations = null;
      public UDDIPublicationService()

      { super(); ... operations.put("delete_tModel", new Handler("deleteTModel", DeleteTModel.class));//added by lokesh ... }

      ...
      ...
      }

      please help us in getting this fix in the official "juddi-client" jar

      Attachments

        Activity

          People

            kstam Kurt Stam
            callingashley@hotmail.com Ashley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: