Skip to content

Instantly share code, notes, and snippets.

@dnebing
dnebing / clone_portal_modules.sh
Created May 20, 2016 03:44
Shell script to clone the new portal modules. Works if you have "npm install -g gh" command. Be sure to edit for your own github id.
#!/bin/sh
# This shell script should allow a portal developer to clone and check out each of the
# separate portal projects.
GITHUB_ID=dnebing
LIFERAY_REPO_ROOT="https://github.com/liferay"
PERSONAL_REPO_ROOT="https://github.com/$GITHUB_ID"
REPOS="com-liferay-announcements com-liferay-application-list com-liferay-asset com-liferay-blogs com-liferay-bookmarks com-liferay-calendar com-liferay-comment com-liferay-configuration-admin com-liferay-contacts com-liferay-directory com-liferay-document-library com-liferay-dynamic-data-lists com-liferay-dynamic-data-mapping com-liferay-expando com-liferay-export-import com-liferay-flags com-liferay-frontend-css com-liferay-frontend-editor com-liferay-frontend-js com-liferay-frontend-taglib com-liferay-frontend-theme com-liferay-hello-soy com-liferay-hello-velocity com-liferay-hello-world com-liferay-iframe com-liferay-image-uploader com-liferay-invitation com-liferay-ip-geocoder com-liferay-item-selector com-liferay-journal com-liferay-layout com-liferay-license-mana
14:34:16,175 ERROR [localhost-startStop-1][PortletTracker:322] Portlet xxx from xxx_1.0.0 [43] failed to initialize
java.lang.NullPointerException
at com.liferay.portal.osgi.web.portlet.tracker.internal.PortletTracker$ServletContextServiceTrackerCustomizer.addingService(PortletTracker.java:1246)
at com.liferay.portal.osgi.web.portlet.tracker.internal.PortletTracker$ServletContextServiceTrackerCustomizer.addingService(PortletTracker.java:1229)
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)
at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)
@dnebing
dnebing / dlfileentry_check.groovy
Created November 29, 2018 22:03
Update for DLFileEntry existence check.
import com.liferay.portal.kernel.service.GroupLocalServiceUtil
import com.liferay.portal.kernel.util.PortalUtil
import com.liferay.document.library.kernel.exception.NoSuchFileException
import com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil;
import com.liferay.document.library.kernel.model.DLFileEntry;
import com.liferay.portal.kernel.util.StackTraceUtil
import java.io.File
long count = 0;
@dnebing
dnebing / touch.groovy
Last active December 6, 2018 23:20
Touch script for both basic and advanced filesystem stores.
import com.liferay.portal.kernel.service.GroupLocalServiceUtil
import com.liferay.portal.kernel.util.PortalUtil
import com.liferay.document.library.kernel.exception.NoSuchFileException
import com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil;
import com.liferay.document.library.kernel.service.DLFolderLocalServiceUtil;
import com.liferay.document.library.kernel.model.DLFileEntry;
import com.liferay.document.library.kernel.model.DLFolder;
import com.liferay.portal.kernel.util.StackTraceUtil
import java.io.File
ajp-nio-8009-exec-57 - priority:5 - threadId:0x00007fcbb0be0830 - nativeId:0x1cba0 - nativeId (decimal):117664 - state:RUNNABLE
stackTrace:
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at com.microsoft.sqlserver.jdbc.TDSChannel.read(IOBuffer.java:1983)
at com.microsoft.sqlserver.jdbc.TDSReader.readPacket(IOBuffer.java:6494)
- locked <0x000000068515c8c0> (a com.microsoft.sqlserver.jdbc.TDSReader)
DB2 Universal Database Version 10.5, 5622-044 (c) Copyright IBM Corp. 1991, 2012
Licensed Material - Program Property of IBM
IBM DB2 Universal Database SQL and XQUERY Explain Tool
DB2 Universal Database Version 10.5, 5622-044 (c) Copyright IBM Corp. 1991, 2012
Licensed Material - Program Property of IBM
IBM DB2 Universal Database SQL and XQUERY Explain Tool
******************** DYNAMIC ***************************************
DB2 Universal Database Version 10.5, 5622-044 (c) Copyright IBM Corp. 1991, 2012
Licensed Material - Program Property of IBM
IBM DB2 Universal Database SQL and XQUERY Explain Tool
DB2 Universal Database Version 10.5, 5622-044 (c) Copyright IBM Corp. 1991, 2012
Licensed Material - Program Property of IBM
IBM DB2 Universal Database SQL and XQUERY Explain Tool
******************** DYNAMIC ***************************************
@dnebing
dnebing / chportlets.log
Created July 10, 2019 15:27
Failure to load...
2019-07-10 15:02:57.410 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:261] Processing CHPortlets.war
2019-07-10 15:03:05.352 INFO [fileinstall-/Users/dnebinger/liferay/71ee/bundle/osgi/war][BaseAutoDeployListener:43] Copying portlets for /Users/dnebinger/liferay/71ee/bundle/tomcat-9.0.6/temp/20190710150305329VPNFBPNZ/CHPortlets.war
2019-07-10 15:03:05.473 INFO [fileinstall-/Users/dnebinger/liferay/71ee/bundle/osgi/war][BaseDeployer:877] Deploying CHPortlets.war
2019-07-10 15:03:06.527 INFO [fileinstall-/Users/dnebinger/liferay/71ee/bundle/osgi/war][BaseAutoDeployListener:50] Portlets for /Users/dnebinger/liferay/71ee/bundle/tomcat-9.0.6/temp/20190710150305329VPNFBPNZ/CHPortlets.war copied successfully
2019-07-10 15:03:08.802 ERROR [fileinstall-/Users/dnebinger/liferay/71ee/bundle/osgi/war][org_apache_felix_fileinstall:97] Error while starting bundle: webbundle:/Users/dnebinger/liferay/71ee/bundle/osgi/war/CHPortlets.war?Bundle-SymbolicName=CHPortlets&Web-ContextPath=/CHPortl
name=UHGPortlets
module-group-id=CHPortlets
module-incremental-version=1
short-description=IHR Portlets
change-log=Adapted to the latest version of Liferay
page-url=http://ihr.uhg.com
author=UHG, Inc.
licenses=CHIHR
liferay-versions=7.1.0+
@dnebing
dnebing / rest-openapi.yaml
Created September 3, 2019 15:28
This is my OpenAPI Yaml file for the Headless Vitamins API.
components:
schemas:
Vitamin:
description: Contains all of the data for a single vitamin or mineral.
properties:
name:
description: The vitamin or mineral name.
type: string
id:
description: The vitamin or mineral internal ID.