From: <mih...@gu...> - 2003-04-10 13:39:52
|
Hi again, if server returns two contact addresses, internationalized and localized then I get java.lang.UnsupportedOperationException. The problem is in EPPContactInfo.java in toXML method when second address is added to the List. Bellow is updated code which works for me.. btw. I am using j2se 1.4.1_02 regards, Miha ------------------------------ epp_ContactNameAddress epp_address = addressFromXML(a_node); if ( action_response_.m_addresses == null ) { action_response_.m_addresses = new epp_ContactNameAddress[2]; action_response_.m_addresses[0] = epp_address; action_response_.m_addresses[1] = null; } else { // turn the fixed-size array into a list so we can easily add another element // to it, then convert it back to an array -- I love being lazy! // List addresses = java.util.Arrays.asList(action_response_.m_addresses); // addresses.add(epp_address); // action_response_.m_addresses = (epp_ContactNameAddress[]) EPPXMLBase.convertListToAr action_response_.m_addresses[1] = epp_address; } |