Skip to content

Instantly share code, notes, and snippets.

View bdw429s's full-sized avatar
📦
There's a box for that

Brad Wood bdw429s

📦
There's a box for that
View GitHub Profile
@bdw429s
bdw429s / gist:6440863
Created September 4, 2013 18:28
Stack trace of server under load test.
This file has been truncated, but you can view the full file.
"http-bio-8888-exec-123" Id=256 BLOCKED on java.lang.Object@266b6eb6 owned by "http-bio-8888-exec-106" Id=211
at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1695)
- blocked on java.lang.Object@266b6eb6
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectionCommand(SQLServerConnection.java:1761)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.setAutoCommit(SQLServerConnection.java:1901)
at railo.runtime.db.driver.ConnectionProxy.setAutoCommit(ConnectionProxy.java:238)
at railo.runtime.db.DatasourceConnectionPool.isValid(DatasourceConnectionPool.java:146)
at railo.runtime.db.DatasourceConnectionPool.getDatasourceConnection(DatasourceConnectionPool.java:55)
at railo.runtime.orm.hibernate.HibernateORMEngine.createSession(HibernateORMEngine.java:128)
at railo.runtime.PageContextImpl.getORMSession(PageContextImpl.java:2968)
@bdw429s
bdw429s / gist:6453871
Created September 5, 2013 18:09
Stack trace.
This file has been truncated, but you can view the full file.
"http-bio-8888-exec-96" Id=291 BLOCKED on railo.runtime.db.DCStack@26c9b4c owned by "http-bio-8888-exec-101" Id=296
at railo.runtime.db.DatasourceConnectionPool.getDatasourceConnection(DatasourceConnectionPool.java:40)
- blocked on railo.runtime.db.DCStack@26c9b4c
at railo.runtime.orm.hibernate.HibernateORMEngine.createSession(HibernateORMEngine.java:128)
at railo.runtime.PageContextImpl.getORMSession(PageContextImpl.java:2968)
at railo.runtime.orm.ORMUtil.getSession(ORMUtil.java:35)
at railo.runtime.orm.ORMUtil.getSession(ORMUtil.java:31)
at railo.runtime.functions.orm.EntityLoadByPK.call(EntityLoadByPK.java:12)
at system.orm.hibernate.baseormservice_cfc$cf._2(/opt/sites/webcom/wwwcore/coldbox/system/orm/hibernate/BaseORMService.cfc:480)
at system.orm.hibernate.baseormservice_cfc$cf.udfCall(/opt/sites/webcom/wwwcore/coldbox/system/orm/hibernate/BaseORMService.cfc)
"http-bio-8888-exec-261" Id=814 BLOCKED on java.lang.Class@7de431c0 owned by "http-bio-8888-exec-242" Id=795
at railo.runtime.type.KeyImpl.getInstance(KeyImpl.java:127)
- blocked on java.lang.Class@7de431c0
at railo.runtime.reflection.Reflector.getMethodInstance(Reflector.java:643)
at railo.runtime.java.JavaObject.call(JavaObject.java:213)
at railo.runtime.java.JavaObject.call(JavaObject.java:238)
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712)
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1494)
at system.cache.providers.cacheboxprovider_cfc$cf._3(/opt/sites/webcom/wwwcore/coldbox/system/cache/providers/CacheBoxProvider.cfc:551)
at system.cache.providers.cacheboxprovider_cfc$cf.udfCall(/opt/sites/webcom/wwwcore/coldbox/system/cache/providers/CacheBoxProvider.cfc)
This file has been truncated, but you can view the full file.
"Reference Handler" Id=2 WAITING on java.lang.ref.Reference$Lock@250a57aa
at java.lang.Object.wait(Native Method)
- waiting on java.lang.ref.Reference$Lock@250a57aa
at java.lang.Object.wait(Object.java:503)
at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
"Finalizer" Id=3 WAITING on java.lang.ref.ReferenceQueue$Lock@56a00a64
at java.lang.Object.wait(Native Method)
- waiting on java.lang.ref.ReferenceQueue$Lock@56a00a64
at java.lang.ref.ReferenceQueue.remove(Unknown Source)
java.io.UnixFileSystem.getBooleanAttributes0(UnixFileSystem.java:???)[Native Method]
java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:242)
java.io.File.isFile(File.java:876)
railo.commons.io.res.type.file.FileResource.isFile(FileResource.java:516)
railo.runtime.orm.hibernate.HibernateSessionFactory.loadComponents(HibernateSessionFactory.java:340)
railo.runtime.orm.hibernate.HibernateSessionFactory.loadComponents(HibernateSessionFactory.java:345)
railo.runtime.orm.hibernate.HibernateSessionFactory.loadComponents(HibernateSessionFactory.java:323)
railo.runtime.orm.hibernate.HibernateSessionFactory.loadComponents(HibernateSessionFactory.java:304)
railo.runtime.orm.hibernate.HibernateORMEngine.getSessionFactoryData(HibernateORMEngine.java:152)
railo.runtime.orm.hibernate.HibernateORMEngine.getSessionFactory(HibernateORMEngine.java:121)
@bdw429s
bdw429s / gist:6719613
Last active December 24, 2015 00:49
Stack trace obtained with FR 5.0.6 showing blocking threads and what appears to be circular references.
This file has been truncated, but you can view the full file.
"Reference Handler" Id=2 WAITING on java.lang.ref.Reference$Lock@6396038a
at java.lang.Object.wait(Native Method)
- waiting on java.lang.ref.Reference$Lock@6396038a
at java.lang.Object.wait(Object.java:503)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)
"Finalizer" Id=3 WAITING on java.lang.ref.ReferenceQueue$Lock@91cac0
at java.lang.Object.wait(Native Method)
- waiting on java.lang.ref.ReferenceQueue$Lock@91cac0
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
@bdw429s
bdw429s / gist:7419367
Created November 11, 2013 19:59
This is what my log files show any time I attempt to save settings in my CF 10 admin. Latest updates applied. This may have started last time I updated.
Nov 11, 2013 13:51:24 PM Information [catalina-exec-21] - User admin logged in.
Nov 11, 2013 13:51:24 PM Information [catalina-exec-21] - User admin logged in.
Nov 11, 2013 13:52:14 PM Warning [catalina-exec-27] - There was an error while verifying the token. Either the session timed out or un-authenticated access is suspected.
@bdw429s
bdw429s / gist:8222581
Created January 2, 2014 17:14
This fails as it uses a > (greater than)
<cfoutput>
#testerton(
function(){
if(1 > 2){
return true
}
return false;
})#
</cfoutput>
@bdw429s
bdw429s / gist:8222569
Created January 2, 2014 17:13
This works as it is using an < (less than)
<cfoutput>
#testerton(
function(){
if(1 < 2){
return true
}
return false;
})#
</cfoutput>
echo( ['a', 'at', 'cat', 'scat', 'catch'].filter( function( i ) { return reFind( '.+at', i ) } ).first() )