Skip to content

Instantly share code, notes, and snippets.

View antonio-junior's full-sized avatar
🎯
Focusing

Antonio Junior antonio-junior

🎯
Focusing
View GitHub Profile
14:43:04,798 ERROR [http-bio-8080-exec-10][IncludeTag:129] Current URL /group/control_panel/manage?p_p_auth=n1UI3hbw&p_p_id=15&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&doAsGroupId=10486&refererPlid=10489&controlPanelCategory=sites&_15_folderId=14258&_15_viewEntries=1&_15_viewFolders=1&_15_struts_action=%2Fjournal%2Fview&_15_action=browseFolder&_15_entryStart=0&_15_entryEnd=20&_15_folderStart=0&_15_folderEnd=20 generates exception: com.liferay.portal.NoSuchLayoutException: No Layout exists with the key {uuid=045a1ec9-01d7-45b5-bd0b-69d770cbc9bd, companyId=10460}
com.liferay.portal.NoSuchLayoutException: No Layout exists with the key {uuid=045a1ec9-01d7-45b5-bd0b-69d770cbc9bd, companyId=10460}
at com.liferay.portal.service.persistence.LayoutPersistenceImpl.findByUuid_C_First(LayoutPersistenceImpl.java:1133)
at com.liferay.portal.service.base.LayoutLocalServiceBaseImpl.getLayoutByUuidAndCompanyId(LayoutLocalServiceBaseImpl.java:360)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed
public String replaceImportDLReferences(
PortletDataContext portletDataContext, Element entityElement,
String content, boolean importReferencedContent)
throws Exception {
List<Element> referenceDataElements =
portletDataContext.getReferenceDataElements(
entityElement, FileEntry.class,
PortletDataContext.REFERENCE_TYPE_DEPENDENCY);
21:24:12,391 ERROR [liferay/background_task-1][BackgroundTaskMessageListener:133] Unable to execute background task
com.liferay.portal.kernel.lar.PortletDataException: java.lang.NullPointerException
at com.liferay.portal.kernel.lar.BaseStagedModelDataHandler.importStagedModel(BaseStagedModelDataHandler.java:170)
at com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil.importStagedModel(StagedModelDataHandlerUtil.java:317)
at com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil.importReferenceStagedModels(StagedModelDataHandlerUtil.java:278)
at com.liferay.portlet.journal.lar.JournalContentPortletDataHandler.doProcessImportPortletPreferences(JournalContentPortletDataHandler.java:214)
at com.liferay.portal.kernel.lar.BasePortletDataHandler.processImportPortletPreferences(BasePortletDataHandler.java:535)
at com.liferay.portal.lar.PortletImporter.importPortletPreferences(PortletImporter.java:1159)
at com.liferay.portal.lar.LayoutImporter.doImportLayouts(LayoutImporter.java:599)
at com.liferay.porta
@antonio-junior
antonio-junior / ClientService.java
Created January 20, 2012 17:32
Client code calling Liferay Web Service
import java.net.MalformedURLException;
import java.net.URL;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.model.UserSoap;
import com.liferay.portal.service.http.UserServiceSoap;
import com.liferay.portal.service.http.UserServiceSoapServiceLocator;
public class ClientService {