delete_tModel not working with LocalTransport(juddi-client)
------------------------------------------------------------
Key: JUDDI-508
URL: https://issues.apache.org/jira/browse/JUDDI-508
Project: jUDDI
Issue Type: Bug
Components: uddi-client
Affects Versions: 3.0.4
Environment: OS: Windows
App Server: WebSphere
DB: DB2
Reporter: Ashley
Assignee: Kurt T Stam
Priority: Critical
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
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira