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:da93e5e0ceae7f1826b7
Created January 13, 2015 21:48
cannot find symbol [javac] symbol : class LocalFilesystemURL
-compile:
[javac] Compiling 20 source files to /project/bin/classes
[javac] /project/src/org/apache/cordova/mediacapture/Capture.java:32: cannot find symbol
[javac] symbol : class LocalFilesystemURL
[javac] location: package org.apache.cordova.file
[javac] import org.apache.cordova.file.LocalFilesystemURL;
[javac] ^
[javac] /project/src/org/apache/cordova/mediacapture/Capture.java:449: cannot find symbol
[javac] symbol : class LocalFilesystemURL
[javac] location: class org.apache.cordova.mediacapture.Capture
@bdw429s
bdw429s / gist:b6550c49b9105195d51f
Created May 10, 2014 04:41
Notes on installing Java to Ubuntu
Install Java JDK Oracle 7u11
Download JDK7
tar -xvf JDK
sudo mkdir -p /usr/lib/jvm/jdk1.7.0_21
sudo mv jdk1.7.0_21/* /usr/lib/jvm/jdk1.7.0_25/
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0_25/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0_25/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0_25/bin/javaws" 1
sudo update-alternatives --config java
@bdw429s
bdw429s / gist:11273758
Created April 25, 2014 00:05
Stack dump from a Railo server with 63 threads blocked while trying to lock railo.runtime.db.DCStack which is held by ajp-bio-8009-exec-743
This file has been truncated, but you can view the full file.
JVM Stack Trace
---------------
"main" Id=1 RUNNABLE (in native)
java.lang.Thread.State: RUNNABLE
at java.net.DualStackPlainSocketImpl.accept0(Native Method)
at java.net.DualStackPlainSocketImpl.socketAccept(DualStackPlainSocketImpl.java:131)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:198)
- locked java.net.SocksSocketImpl@4fa6abd2
@bdw429s
bdw429s / gist:10314685
Created April 9, 2014 20:56
Server Stack Trace. Thread "resin-port-127.0.0.1:6800-25" is blocking 14 other threads waiting for railo.runtime.reflection.storage.WeakMethodStorage@6a7e8192
JVM Stack Trace
---------------
"main" Id=1 TIMED_WAITING on com.caucho.server.resin.ResinWaitForExitService@69d064d
java.lang.Thread.State: TIMED_WAITING
at java.lang.Object.wait(Native Method)
- waiting on com.caucho.server.resin.ResinWaitForExitService@69d064d
at com.caucho.server.resin.ResinWaitForExitService.waitForExit(ResinWaitForExitService.java:135)
at com.caucho.server.resin.Resin.waitForExit(Resin.java:1393)
at com.caucho.server.resin.Resin.main(Resin.java:1442)
<cfset getMaxResults = 200>
<cftimer type="inline" label="cfquery">
<cfquery name="testSQL" datasource="contentBox">
select top #getMaxResults#
this_.commentID as commentID16_0_,
this_.content as content16_0_,
this_.author as author16_0_,
this_.authorIP as authorIP16_0_,
<cfscript>
/**
********************************************************************************
ContentBox - A Modular Content Platform
Copyright 2012 by Luis Majano and Ortus Solutions, Corp
www.gocontentbox.org | www.luismajano.com | www.ortussolutions.com
********************************************************************************
Apache License, Version 2.0
@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>
@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: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)