Skip to content

Instantly share code, notes, and snippets.

# run colors from the command line to visualize different skins' colors
function colors {
echo -e "\033[0mCOLOR_NC (No color)"
echo -e "\033[1;37mCOLOR_WHITE\t\033[0;30mCOLOR_BLACK"
echo -e "\033[0;34mCOLOR_BLUE\t\033[1;34mCOLOR_LIGHT_BLUE"
echo -e "\033[0;32mCOLOR_GREEN\t\033[1;32mCOLOR_LIGHT_GREEN"
echo -e "\033[0;36mCOLOR_CYAN\t\033[1;36mCOLOR_LIGHT_CYAN"
echo -e "\033[0;31mCOLOR_RED\t\033[1;31mCOLOR_LIGHT_RED"
echo -e "\033[0;35mCOLOR_PURPLE\t\033[1;35mCOLOR_LIGHT_PURPLE"
echo -e "\033[0;33mCOLOR_YELLOW\t\033[1;33mCOLOR_LIGHT_YELLOW"
@lancespeelmon
lancespeelmon / gist:10908620
Created April 16, 2014 17:11
Switched from GlobalResourceLoader to KraServiceLocator in the hopes of clearing up memory leak
commit 999703743ec307824e239667efb86e26391ceff9
Author: Lance Speelmon <lance@speelmon.com>
Date: Tue Apr 15 15:57:23 2014 -0700
Switched from GlobalResourceLoader to KraServiceLocator in the hopes of clearing up memory leak
diff --git a/src/main/java/com/rsmart/kuali/coeus/hr/rest/HRImportResource.java b/src/main/java/com/rsmart/kuali/coeus/hr/rest/HRImportResource.java
index 973c0f8..6808296 100644
--- a/src/main/java/com/rsmart/kuali/coeus/hr/rest/HRImportResource.java
+++ b/src/main/java/com/rsmart/kuali/coeus/hr/rest/HRImportResource.java
@lancespeelmon
lancespeelmon / gist:8925551
Created February 10, 2014 22:28
KC svn vs git 5.2.0 tags
diff -r kc-release-5_2-tag kc-git-5.2.0
Only in kc-release-5_2-tag: .idea
Only in kc-release-5_2-tag: kc_project.iml
diff -r kc-release-5_2-tag/pom.xml kc-git-5.2.0/pom.xml
459,481d458
< <groupId>org.codehaus.mojo</groupId>
< <artifactId>truezip-maven-plugin</artifactId>
< <version>${truezip-maven-plugin.version}</version>
< <executions>
< <execution>
@lancespeelmon
lancespeelmon / IllegalArgumentException: argument type mismatch
Created August 28, 2013 16:58
IllegalArgumentException: argument type mismatch
org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase$KimTypeAttributeValidationException: java.lang.IllegalArgumentException: argument type mismatch
at org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase.validateDataDictionaryAttribute(DataDictionaryTypeServiceBase.java:503)
at org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase.validateAttributes(DataDictionaryTypeServiceBase.java:169)
at org.kuali.kra.kim.service.impl.UnitHierarchyRoleTypeServiceImpl.validateAttributes(UnitHierarchyRoleTypeServiceImpl.java:61)
at org.kuali.rice.kim.document.rule.IdentityManagementPersonDocumentRule.validateRoleQualifier(IdentityManagementPersonDocumentRule.java:412)
at org.kuali.rice.kim.document.rule.IdentityManagementPersonDocumentRule.processCustomSaveDocumentBusinessRules(IdentityManagementPersonDocumentRule.java:120)
at org.kuali.rice.krad.rules.DocumentRuleBase.processSaveDocument(DocumentRuleBase.java:161)
at org.kuali.rice.krad.rules.rule.event
HTTP Status 500 - An exception occurred processing JSP page /kr/WEB-INF/jsp/KualiExceptionIncident.jsp at line 82
type Exception report
message An exception occurred processing JSP page /kr/WEB-INF/jsp/KualiExceptionIncident.jsp at line 82
description The server encountered an internal error that prevented it from fulfilling this request.
exception
###############################################################################
# java
###############################################################################
if [[ "$OSTYPE" == darwin* ]]; then
export JAVA_HOME=`/usr/libexec/java_home -d64 -v 1.6`
# java 7 oracle jdk
# export JAVA_HOME=`/usr/libexec/java_home -d64 -v 1.7`
export JRE_HOME="$JAVA_HOME"
@lancespeelmon
lancespeelmon / gist:5306620
Created April 4, 2013 00:13
jetty:run normal startup
This file has been truncated, but you can view the full file.
me=null; destroyMethodName=null; defined in class path resource [org/kuali/rice/krad/uif/UifGroupDefinitions.xml]]
2013-04-03 17:07:15,989 [main] u:/d: INFO org.springframework.beans.factory.support.KualiDefaultListableBeanFactory - Overriding bean definition for bean 'Uif-ListCollectionGroup-parentBean': replacing [Generic bean: class [org.kuali.rice.krad.uif.container.CollectionGroup]; scope=; abstract=true; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [org/kuali/rice/krad/uif/UifGroupDefinitions.xml]] with [Generic bean: class [org.kuali.rice.krad.uif.container.CollectionGroup]; scope=; abstract=true; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [org/kuali/rice/krad/uif/UifGrou
@lancespeelmon
lancespeelmon / gist:5306596
Created April 4, 2013 00:08
normal KC 5.0.1 startup
This file has been truncated, but you can view the full file.
nitMethodName=null; destroyMethodName=null; defined in class path resource [org/kuali/rice/krad/bo/datadictionary/PessimisticLock.xml]]
2013-04-03 10:19:54,587 [main] u:/d: INFO org.springframework.beans.factory.support.KualiDefaultListableBeanFactory - Overriding bean definition for bean 'PessimisticLock-id': replacing [Generic bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [org/kuali/rice/krad/bo/datadictionary/PessimisticLock.xml]] with [Generic bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [org/kuali/rice/krad/bo/datadictionary/PessimisticLock.xml]]
2013-04-03 10:19:54,587 [main] u:/d: INFO o
@lancespeelmon
lancespeelmon / gist:4958657
Created February 15, 2013 05:02
post KC startup
2013-02-15 00:00:00,043 [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-1] u:/d: INFO org.apache.ojb.broker.metadata.MetadataManager - No 'default-connection' attribute set in jdbc-connection-descriptors, thus it's currently not possible to use 'defaultPersistenceBroker()' convenience method to lookup PersistenceBroker instances. But it's possible to enable this at runtime using 'setDefaultKey' method.
2013-02-15 00:00:00,051 [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-1] u:/d: INFO org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl - Create new PB instance for PBKey org.apache.ojb.broker.PBKey: jcdAlias=kimDataSource, user=null, password=null, already created persistence broker instances: 4
2013-02-15 00:00:00,051 [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-1] u:/d: INFO org.apache.ojb.broker.cache.ObjectCacheFactory - Start creating new ObjectCache instance
2013-02-15 00:00:00,052 [org.springframework.scheduling.quartz.Sched
ERROR org.apache.ojb.broker.core.PersistenceBrokerImpl - No running tx found, please only store in context of an PB-transaction, to avoid side-effects - e.g. when rollback of complex objects
java.lang.Exception: ** Try to store object without active PersistenceBroker transaction **
at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeAndLinkOneToMany(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeCollections(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeToDb(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)