Skip to content

Instantly share code, notes, and snippets.

View cfalzone's full-sized avatar

Christopher Falzone cfalzone

  • Aquent
  • Erie County, PA
View GitHub Profile
@cfalzone
cfalzone / gist:5118056369baaf2ced58
Created June 5, 2014 16:20
Thread Dump from outage
This file has been truncated, but you can view the full file.
"http-8080-175" daemon prio=10 tid=0x00002aaabe2bf800 nid=0x2716 runnable [0x0000000051e44000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:741)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)
at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:765)
## ALLOW URL BASED LANGUAGE OVERRIDES
#if($UtilMethods.isSet($request.getParameter('forceLang')))
#set($forceLang = $request.getParameter('forceLang'))
#end
## OUR MOST COMMON DEFAULTS
#set($currentLang = '1')
#set($jobLang = '1')
#set($agentLang = '1')
## SWITCH FOR FRANCE
@cfalzone
cfalzone / gist:bc3780bacade99baaff8
Created May 8, 2014 18:05
Bundle stops trying to publish and hangs - error only in catalina.out not dotcms.log
Exception in thread "Thread-42" java.lang.AbstractMethodError
at com.dotmarketing.portlets.contentlet.business.ContentletAPIInterceptor.publishAssociated(ContentletAPIInterceptor.java:2225)
at com.dotcms.enterprise.publishing.remote.handler.ContentHandler.a(SourceFile:222)
at com.dotcms.enterprise.publishing.remote.handler.ContentHandler.handle(SourceFile:82)
at com.dotcms.enterprise.publishing.remote.handler.ContentHandler.handle(SourceFile:72)
at com.dotcms.publisher.receiver.BundlePublisher.process(BundlePublisher.java:137)
at com.dotcms.rest.PublishThread.run(PublishThread.java:42)
at java.lang.Thread.run(Thread.java:724)
@cfalzone
cfalzone / gist:f64cad070afc2eae4d22
Created May 8, 2014 17:54
Java Deadlock on Startup with OSGI Plugin deployed.
Found one Java-level deadlock:
=============================
"http-8080-4":
waiting to lock monitor 0x00007f931c772178 (object 0x00000006c00274e0, a org.apache.catalina.loader.WebappClassLoader),
which is held by "http-8080-2"
"http-8080-2":
waiting to lock monitor 0x00007f931c7720c8 (object 0x00000006a64b2b50, a com.dotmarketing.osgi.UrlOsgiClassLoader),
which is held by "fileinstall-/data/wwwroot/dotcms/current/tomcat/webapps/../../dotCMS/WEB-INF/felix/load"
"fileinstall-/data/wwwroot/dotcms/current/tomcat/webapps/../../dotCMS/WEB-INF/felix/load":
[05/05/14 14:45:43:979 EDT] DEBUG leadform.LeadFormServlet: Lead Form Handler Called no multipart
[05/05/14 14:45:43:979 EDT] DEBUG leadform.LeadFormServlet: Form Field - carrot_type=QUICK-HIRE
[05/05/14 14:45:43:979 EDT] DEBUG leadform.LeadFormServlet: Form Field - referring_site=aquent.com
[05/05/14 14:45:43:979 EDT] DEBUG leadform.LeadFormServlet: Form Field - last_name=Caplan
[05/05/14 14:45:43:979 EDT] DEBUG leadform.LeadFormServlet: Form Field - comments=
[05/05/14 14:45:43:979 EDT] DEBUG leadform.LeadFormServlet: Form Field - segment=
[05/05/14 14:45:43:979 EDT] DEBUG leadform.LeadFormServlet: Form Field - [email protected]
[05/05/14 14:45:43:979 EDT] DEBUG leadform.LeadFormServlet: Form Field - agent_id=1_1689396
[05/05/14 14:45:43:979 EDT] DEBUG leadform.LeadFormServlet: Form Field - medium=1009
[05/05/14 14:45:43:979 EDT] DEBUG leadform.LeadFormServlet: Form Field - upload_resume=
@cfalzone
cfalzone / LeadFrom.java
Created April 25, 2014 13:08
LeadForm Spam Detection
// HoneyPot Protection - if this field is filled in then this is probably a bot
if(UtilMethods.isSet(honeypot)) {
response.sendRedirect(errorPage);
Logger.debug(this, "Honey Pot detected, ignoring the request. Params: "+params);
return;
}
// Simple Spam Verification
if(firstName == null) firstName = "";
if(lastName == null) lastName = "";
@cfalzone
cfalzone / gist:11143006
Created April 21, 2014 13:40
more push fail on stag
2014-04-21 09:40:33,323 INFO com.dotcms.rest.PublishThread - : [BundleID: 207488ca-d985-4263-9b80-c449a99c1eed.tar.gz] Started bundle publish process
2014-04-21 09:40:33,433 INFO com.dotmarketing.business.DotGuavaCacheAdministratorImpl - *** Building Cache : hostaliascache, size:100, toDisk:false,Concurrency:32
2014-04-21 09:40:33,433 INFO com.dotmarketing.business.DotGuavaCacheAdministratorImpl - *** Building Cache : hostaliascache, size:100, toDisk:false,Concurrency:32
2014-04-21 09:40:33,449 INFO com.dotmarketing.business.DotGuavaCacheAdministratorImpl - *** Building Cache : hostaliascache, size:100, toDisk:false,Concurrency:32
2014-04-21 09:40:33,465 INFO com.dotcms.enterprise.publishing.remote.handler.ContentHandler - : [BundleID: 207488ca-d985-4263-9b80-c449a99c1eed.tar.gz] Content published. Id: 23836f6d-6a92-446f-b147-29e4724eedd8
2014-04-21 09:40:33,489 INFO com.dotmarketing.business.DotGuavaCacheAdministratorImpl - *** Building Cache : hostaliascache, size:100, toDisk:false,Concurrency:3
@cfalzone
cfalzone / gist:11142844
Created April 21, 2014 13:33
Push fail on stag
2014-04-21 09:34:35,563 INFO com.dotcms.rest.PublishThread - : [BundleID: e9ffd410-5214-4d6f-b0e5-4754f855b8a8.tar.gz] Started bundle publish process
2014-04-21 09:34:35,751 INFO com.dotmarketing.business.DotGuavaCacheAdministratorImpl - *** Building Cache : workflowstepcache, size:1000, toDisk:false,Concurrency:32
2014-04-21 09:34:35,877 INFO com.dotcms.enterprise.publishing.remote.handler.StructureHandler - : [BundleID: e9ffd410-5214-4d6f-b0e5-4754f855b8a8.tar.gz] Structure published. Id: 33888b6f-7a8e-4069-b1b6-5c1aa9d0a48d
2014-04-21 09:34:35,884 WARN net.sf.hibernate.util.JDBCExceptionReporter - SQL Error: 0, SQLState: 23505
2014-04-21 09:34:35,884 ERROR net.sf.hibernate.util.JDBCExceptionReporter - ERROR: duplicate key value violates unique constraint "unique_struct_vel_var_name"
Detail: Key (velocity_var_name)=(aquentAds) already exists.
2014-04-21 09:34:35,884 ERROR net.sf.hibernate.impl.SessionImpl - Could not synchronize database state with session
2014-04-21 09:34:35,886 ERROR com.dotcms.p
@cfalzone
cfalzone / gist:10674872
Created April 14, 2014 19:05
More errorness
[14/04/14 15:03:18:869 EDT] ERROR business.ESMappingAPIImpl: Problem loading Cats
java.lang.NullPointerException
at com.dotmarketing.portlets.categories.business.CategoryCacheImpl.getChildren(CategoryCacheImpl.java:51)
at com.dotmarketing.portlets.categories.business.CategoryFactoryImpl.getChildren(CategoryFactoryImpl.java:220)
at com.dotmarketing.portlets.categories.business.CategoryAPIImpl.getChildren(CategoryAPIImpl.java:266)
at com.dotmarketing.portlets.categories.business.CategoryAPIImpl.getChildren(CategoryAPIImpl.java:260)
at com.dotmarketing.portlets.categories.business.CategoryAPIImpl.getAllChildren(CategoryAPIImpl.java:455)
at com.dotcms.content.elasticsearch.business.ESMappingAPIImpl.loadCategories(ESMappingAPIImpl.java:409)
at com.dotcms.content.elasticsearch.business.ESMappingAPIImpl.toMap(ESMappingAPIImpl.java:271)
at com.dotcms.content.elasticsearch.business.ESContentletIndexAPI.indexContentletList(ESContentletIndexAPI.java:323)
@cfalzone
cfalzone / build.gradle
Created April 3, 2014 18:40
Gradle build file for dotCMS osgi plugin
apply plugin: 'war'
apply plugin: 'osgi'
apply plugin: 'eclipse'
sourceCompatibility = '1.6'
version = '0.1'
repositories {
mavenCentral()
maven {