Skip to content

Instantly share code, notes, and snippets.

java.lang.NoSuchMethodError: com.liferay.alloy.mvc.AlloyServiceInvoker.fetchModel(J)Ljava/lang/Object;
at com.liferay.alloy.mvc.BaseAlloyIndexer.doReindex(BaseAlloyIndexer.java:95)
at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:433)
at com.liferay.portal.search.SearchPermissionCheckerImpl.doUpdatePermissionFields(SearchPermissionCheckerImpl.java:469)
at com.liferay.portal.search.SearchPermissionCheckerImpl.updatePermissionFields(SearchPermissionCheckerImpl.java:142)
at com.liferay.portal.kernel.search.SearchEngineUtil.updatePermissionFields(SearchEngineUtil.java:807)
at com.liferay.portal.service.impl.ResourceLocalServiceImpl.addResources(ResourceLocalServiceImpl.java:913)
at com.liferay.portal.service.impl.ResourceLocalServiceImpl.addResources(ResourceLocalServiceImpl.java:265)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
at com.liferay.portal.spring.
@ethanbustad
ethanbustad / x_controller.jsp.java
Last active August 29, 2015 14:04
processDataRequest example
@Override
protected String processDataRequest(ActionRequest actionRequest) {
try {
String attributesString = ParamUtil.getString(actionRequest, "attributes");
Map<String, Serializable> attributes = JSONFactoryUtil.looseDeserialize(attributesString, HashMap.class);
String keywords = ParamUtil.getString(actionRequest, "keywords");
List<Sort> sorts = new ArrayList<Sort>();
@ethanbustad
ethanbustad / delete_URL.js
Last active August 29, 2015 14:05
Creating a delete actionURL with js
var actionURL = Liferay.PortletURL.createActionURL();
actionURL.setParameter('p_auth', Liferay.authToken);
actionURL.setParameter('controller', 'skills');
actionURL.setParameter('action', 'delete');
actionURL.setParameter('id', connectSkill.connectSkillId); // <-- not sure how you're accessing this ID
actionURL.setParameter('format', 'html');
actionURL.setParameter('redirect', document.URL);
actionURL.setPortletId(${themeDisplay.portletDisplay.rootPortletId});
actionURL.setWindowState('normal');
@ethanbustad
ethanbustad / up.sh
Created September 10, 2014 00:04
up script
function up() {
if echo $1 | grep -E '^[0-9]+$' > /dev/null; then
cd "$(printf '../%.0s' $(eval echo {1..$1}))"
else
cd $(echo $PWD | sed -e $"s/\(.*$1\).*/\1/")
fi
}
@ethanbustad
ethanbustad / MatrixUtil.jsp
Last active August 29, 2015 14:07
Matrix API stuff
<%@ page import="com.liferay.portal.kernel.json.JSONFactoryUtil" %>
<%@ page import="com.liferay.portal.kernel.jsonwebservice.JSONWebServiceActionsManagerUtil" %>
<%@ page import="com.liferay.portal.kernel.util.BigDecimalUtil" %>
<%@ page import="java.math.RoundingMode" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.Map" %>
<%--
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
<%--
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
Picked up _JAVA_OPTIONS: -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:ParallelGCThreads=4
Buildfile: d:\Liferay\source\CE\liferay-portal\modules\apps\amazon-rankings\amazon-rankings-web\build.xml
compile-jsp:
jar:
[unzip] Expanding: d:\Liferay\source\CE\liferay-portal\tools\sdk\dist\com.liferay.amazon.rankings.web-1.0.0.jar into d:\Liferay\source\CE\liferay-portal\modules\apps\amazon-rankings\amazon-rankings-web\20150826092744770
[echo] Aug 26, 2015 9:27:55 AM org.apache.jasper.compiler.TldLocationsCache tldScanJar
[echo] INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
[echo] org.apache.jasper.JasperException: file:D:/Liferay/source/CE/liferay-portal/modules/apps/amazon-rankings/amazon-rankings-web/20150826092744770/META-INF/resources/conf
01:56:06,374 ERROR [ajp-bio-8010-exec-2][PortletRequestDispatcherImpl:115] org.apache.jasper.JasperException: An exception occurred processing JSP page /WEB-INF/jsp/testray/views/case_results/view.jsp at line 206__203: </c:forEach>_204: </aui:field-wrapper>_205: <aui:field-wrapper name="logs">_206: <c:forEach items="${testrayCaseResultComposite.attachmentsMap}" var="attachmentEntry">_207: <c:set value="javascript:Liferay.Testray.openWindow('${attachmentEntry.value}', '${fn:escapeXml(attachmentEntry.key)}', true, 1000)" var="viewLogFileURL" />_208: _209: <a href="${viewLogFileURL}">${fn:escapeXml(attachmentEntry.key)}</a><br />___Stacktrace: [Sanitized]
org.apache.jasper.JasperException: An exception occurred processing JSP page /WEB-INF/jsp/testray/views/case_results/view.jsp at line 206__203: </c:forEach>_204: </aui:field-wrapper>_205: <aui:field-wrapper name="logs">_206: <c:forEach items="${testrayCaseResultComposite.attachmentsMap}" var="attachmentEntry">_207: <c:set value="
-rw-r--r-- 1 root root 3341 Apr 20 16:57 TESTS-cloud-10-0-18-16.lax.liferay.com_jenkins-test-portal-environment-debian7-tomcat8-mysql56-jdk7-firefox(ee-7.0.x)-AXIS_VARIABLE=PortalSmoke#Smoke,label_exp=debian7.mysql-4.xml
-rw-r--r-- 1 root root 3341 Apr 20 16:57 TESTS-cloud-10-0-18-20.lax.liferay.com_jenkins-test-portal-environment-debian8-tomcat8-mysql56-jdk7-firefox(ee-7.0.x)-AXIS_VARIABLE=PortalSmoke#Smoke,label_exp=debian8.mysql-4.xml
-rw-r--r-- 1 root root 3416 Apr 20 16:57 TESTS-cloud-10-0-18-26.lax.liferay.com_jenkins-test-portal-environment-orcllinux6-tomcat8-postgresql92-jdk7-firefox(ee-7.0.x)-AXIS_VARIABLE=PortalSmoke#Smoke,label_exp=orcllinux6.postgresql-4.xml
-rw-r--r-- 1 root root 3332 Apr 20 16:58 TESTS-cloud-10-0-18-38.lax.liferay.com_jenkins-test-portal-environment-suse11-tomcat8-mysql56-jdk7-firefox(ee-7.0.x)-AXIS_VARIABLE=PortalSmoke#Smoke,label_exp=suse11.mysql-4.xml
-rw-r--r-- 1 root root 3326 Apr 20 16:57 TESTS-cloud-10-0-18-46.lax.lif