Foros de discusión
java.lang.UnsupportedOperationException
Tameez Lal, modificado hace 9 años.
java.lang.UnsupportedOperationException
New Member Mensajes: 20 Fecha de incorporación: 25/10/13 Mensajes recientes
Hi Everyone,
I am having local services that is developed in one portlet and kept that jar in lib/ext folder and other portlets also uses this services .When i am trying to get Menu master list from other porltet like this
its throwing UnsupportedOperationException before that it was working fine suddenly it happens i've attached the logs.txt kindly check that logs
I am having local services that is developed in one portlet and kept that jar in lib/ext folder and other portlets also uses this services .When i am trying to get Menu master list from other porltet like this
long menuId = ParamUtil.getLong(actionRequest, "menuId");
LinkedHashMap<string, string> childBreadCrumbMap = new LinkedHashMap<string, string>();
if(menuId!=0){
MenuMaster master=null;
try {
master = MenuMasterLocalServiceUtil.getMenuMaster(menuId);
} catch (PortalException pe) {
LOGGER.error(pe.getMessage(), pe);
} catch (SystemException se) {
LOGGER.error(se.getMessage(), se);
}
if (master != null) {
List<menumasterlocale> masterLocales = master.getMenuMasterLocaleList();</menumasterlocale></string,></string,>
its throwing UnsupportedOperationException before that it was working fine suddenly it happens i've attached the logs.txt kindly check that logs
Archivos adjuntos:
Mayur Patel, modificado hace 9 años.
RE: java.lang.UnsupportedOperationException
Expert Mensajes: 358 Fecha de incorporación: 17/11/10 Mensajes recientes
Some methods cannot be replicated from the service implementation into the local service in the service jar. When this is the case, the UnsupportedOperationException will get thrown.
David H Nebinger, modificado hace 9 años.
RE: java.lang.UnsupportedOperationException
Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
Yep, nothing with collections is going to work in the service tier.