Skip to content

Instantly share code, notes, and snippets.

View wezell's full-sized avatar

Will Ezell wezell

View GitHub Profile
@wezell
wezell / gist:2312421
Created April 5, 2012 16:40
git results
root@dotcms-colo2:/wwwroot/starter.dotcms.com# git pull
Updating c6a4c7e..76c3e23
Fast-forward
.gitignore | 3 +-
.../examples/osgi/com.dotcms.actionlet/INSTALL.txt | 10 +
.../osgi/com.dotcms.actionlet/META-INF/MANIFEST.MF | 11 +
docs/examples/osgi/com.dotcms.actionlet/README.txt | 50 +
.../osgi/com.dotcms.actionlet/deploy.jardesc | 16 +
.../com/dotmarketing/osgi/actionlet/Activator.java | 11 +
.../dotmarketing/osgi/actionlet/MyActionlet.java | 38 +
@wezell
wezell / gist:2628102
Created May 7, 2012 14:34
Cannot find escalation role
2012-05-07 14:33:09,021 INFO com.dotmarketing.business.DotGuavaCacheAdministratorImpl - *** Building Cache : livecache_23836f6d-6a92-446f-b147-29e4724eedd8, size:1000, toDisk:false,Concurrency:32
EXECUTE ESCALATION ACTION
2012-05-07 14:33:14,456 ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/].[jsp] - Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at com.dotmarketing.business.RoleFactoryImpl.findUserIdsForRole(RoleFactoryImpl.java:372)
at com.dotmarketing.business.RoleAPIImpl.findUserIdsForRole(RoleAPIImpl.java:243)
at com.dotmarketing.business.RoleAPIImpl.findUsersForRole(RoleAPIImpl.java:247)
at org.apache.jsp.html.portlet.ext.workflows.view_005fexp_005ftool_jsp._jspService(view_005fexp_005ftool_jsp.java:465)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
@wezell
wezell / bundle_test.jsp
Created May 11, 2012 14:14
Running a publishing job
<%@page import="com.dotcms.publishing.PublishStatus"%>
<%@page import="com.dotcms.publishing.sitesearch.SiteSearchConfig"%>
<%@page import="java.util.Date"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.dotcms.publishing.sitesearch.ESSiteSearchPublisher"%>
<%@page import="java.util.Arrays"%>
<%@page import="java.util.List"%>
<%@page import="com.dotmarketing.business.APILocator"%>
<%@page import="com.dotcms.publishing.PublisherConfig"%>
<%@ page import="com.dotmarketing.util.UtilMethods" %>
@wezell
wezell / gist:2693789
Created May 14, 2012 12:55
URLMapperError
[14/05/12 08:52:01:515 EDT] WARN bundlers.URLMapBundler: Bundle Failed: cant get host for com.dotmarketing.portlets.contentlet.model.Contentlet@41eebf22[map={wfActionAssign=null, tag=, videothumb1=null, videothumb2=null, stInode=0afc3ce3-6bd5-4659-8a47-b63c3e0a0d5d, videothumb3=null, videothumb4=null, videothumb5=null, disabledWYSIWYG=[documentation], wfActionComments=null, title=Files as Content, reviewInternal=1y, sinceVersion=2.0, userLevel=CM,CA,, modUser=dotcms.org.2805, diagram1=null, diagram2=null, diagram8=null, diagram7=null, diagram9=null, file2=null, diagram4=null, diagram3=null, sortOrder=0, diagram6=null, diagram5=null, file1=null, diagram11=null, diagram10=null, lastReview=2012-05-10 23:02:52.454, languageId=1, folder=SYSTEM_FOLDER, nextReview=2013-05-10 23:02:52.454, modDate=2012-05-10 23:02:52.471, availableOn=1, wikiTitle=FilesAsContent, documentation=<p>In previous versions of dotCMS when you uploaded a file you didn't have the ability to add additional metadata to them.</p>
<p>In dotCMS 2
@wezell
wezell / gist:01b751637cd76ba87818
Created April 2, 2015 13:58
Simple custom field example
## This example uses a custom field that is called "test" and has the variable name "test"
## first we get the content (we have access to all our
## velocity tools, including any custom ones that have been written
#set($content = $dotcontent.find($request.getParameter("inode")))
## then we write some ugly js to get and set the values on the edit content form -
@wezell
wezell / gist:4c8994ce9bea9c1ee03a
Created April 24, 2015 19:01
Off Heap dotCMS Cache Implementation
package com.dotmarketing.business;
import java.io.StringWriter;
import java.util.Comparator;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
This file has been truncated, but you can view the full file.
2016-11-10 10:32:35
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.101-b13 mixed mode):
"elasticsearch[bd5035cb-b6c0-4bc5-938e-00316aa4a8b4][management][T#4]" #444 daemon prio=5 os_prio=31 tid=0x00007fa7dba1d000 nid=0x30003 waiting on condition [0x0000700019a93000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007071275d8> (a org.elasticsearch.common.util.concurrent.EsExecutors$ExecutorScalingQueue)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
at java.util.concurrent.LinkedTransferQueue.awaitMatch(LinkedTransferQueue.java:734)
#!/bin/sh
src=~/git/core/dotCMS/src
build=~/git/tomcat8/webapps/ROOT
cd ~/git/core
differ=`git pull`
#!/bin/bash
workFolder=~/fileMigration
mkdir -p $workFolder
dbFile=$workFolder/db-file.txt
webdavUrl=http://demo.dotcms.com/webdav/live/1
creds=admin@dotcms.com:admin
sqlCmd="mysql dotcms3 -e \"$sql\""
#sqlCmd="psql -UXXXXXXX dotcms36 -c"
delimiter="[\t, \|]"
objc[97020]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/bin/java (0x1091524c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10b2064e0). One of the two will be used. Which one is undefined.
2017-03-04 18:50:16.607 INFO org.glowroot - Glowroot version: 0.9.12, built 2017-02-27 03:05:14 +0000
2017-03-04 18:50:18.382 INFO org.glowroot - plugins loaded: Cassandra Plugin, Executor Plugin, Grails Plugin, Hibernate Plugin, HTTP Client Plugin, JAX-RS Plugin, Jdbc Plugin, JMS Plugin, JSF Plugin, JSP Plugin, Logger Plugin, Play Plugin, Netty Plugin, Quartz Plugin, Redis Plugin, Servlet Plugin, Spray Plugin, Spring Plugin, Struts Plugin
Mar 04, 2017 6:50:25 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Valve} Setting property 'resolveHosts' to 'false ' did not find a matching property.
Mar 04, 2017 6:50:25 PM org.apache.catalina.s