Skip to content

Instantly share code, notes, and snippets.

View stuartwdouglas's full-sized avatar

Stuart Douglas stuartwdouglas

  • Red Hat
  • Orange NSW Australia
View GitHub Profile
12:16:25,021 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "error-reporting-1.0-SNAPSHOT.jar")]) - failure description: {
"WFLYCTL0412: Required services that are not installed:" => [
"jboss.deployment.unit.\"error-reporting-1.0-SNAPSHOT.jar\".component.OkEjb5.WeldInstantiator",
"jboss.deployment.unit.\"error-reporting-1.0-SNAPSHOT.jar\".component.OkEjb1.WeldInterceptorBindingsService",
"jboss.deployment.unit.\"error-reporting-1.0-SNAPSHOT.jar\".component.OkEjb1.START",
"jboss.deployment.unit.\"error-reporting-1.0-SNAPSHOT.jar\".component.OkEjb7.WeldInstantiator",
"jboss.deployment.unit.\"error-reporting-1.0-SNAPSHOT.jar\".component.OkEjb3.WeldInterceptorBindingsService",
"jboss.deployment.unit.\"error-reporting-1.0-SNAPSHOT.jar\".component.OkEjb1.WeldInstantiator",
"jboss.deployment.unit.\"error-reporting-1.0-SNAPSHOT.jar\".component.OkEjb5.START",
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl=org.apache.xerces
org.apache.xerces.jaxp.DocumentBuilderImpl=org.apache.xerces
org.apache.xerces.jaxp.JAXPConstants=org.apache.xerces
org.apache.xerces.jaxp.SAXParserFactoryImpl=org.apache.xerces
org.apache.xerces.jaxp.SAXParserImpl=org.apache.xerces
org.apache.xerces.xs.PSVIProvider=org.apache.xerces
org.apache.xalan.xsltc.trax.TransformerFactoryImpl=org.apache.xalan
org.apache.xalan.xsltc.compiler.SourceLoader=org.apache.xalan
org.apache.xalan.xsltc.trax.TransformerImpl=org.apache.xalan
org.apache.xalan.xsltc.DOMCache=org.apache.xalan
New invocation
00002346 00 00 00 07 32 b9 00 46 9e fb 30 ....2..F ..0
00002351 00 00 03 12 30 b9 00 46 9e 61 fe 03 03 9e 0c 04 ....0..F .a......
00002361 04 09 00 00 00 22 6f 72 67 2e 6a 62 6f 73 73 2e ....."or g.jboss.
00002371 65 6a 62 2e 63 6c 69 65 6e 74 2e 45 4a 42 49 64 ejb.clie nt.EJBId
00002381 65 6e 74 69 66 69 65 72 62 0e 35 e3 b8 0f cc a8 entifier b.5.....
00002391 00 00 00 04 00 00 00 07 61 70 70 4e 61 6d 65 16 ........ appName.
000023A1 00 00 00 00 08 62 65 61 6e 4e 61 6d 65 16 00 00 .....bea nName...
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
/**
* @author Stuart Douglas
*/
@WebListener
public class SessionIDChangeListener implements ServletContextListener {
@Override
@stuartwdouglas
stuartwdouglas / gist:5e157cffa18676df28691c6088ce2b25
Created June 8, 2016 06:47
Commands to get mod_cluster running
:stop-servers
/server-group=lb:add(profile=load-balancer, socket-binding-group=load-balancer-sockets)
/host=master/server-config=la:add(group=lb)
/server-group=ha:add(profile=ha, socket-binding-group=ha-sockets)
/host=master/server-config=s1:add(group=ha, socket-binding-port-offset=100)
deploy ~/workspace/modcluster-example/load-balancing-demo/target/clustering-demo.war --server-groups=ha
/server-group=ha:start-servers
/server-group=lb:start-servers
@stuartwdouglas
stuartwdouglas / gist:4984419
Last active December 13, 2015 22:29
Unicorn meat by horrible reflection hack
public class MagicLand {
static {
try {
Field field = Math.class.getDeclaredField("randomNumberGenerator");
field.setAccessible(true);
field.set(null, new Random() {
@Override
public double nextDouble() {
return 0;
@stuartwdouglas
stuartwdouglas / gist:4984406
Created February 19, 2013 09:38
Unicorn by stack trace inspection
public class MagicLand {
public static void main(String[] args) {
for (int i = 0; i < (Math.random() * 500) + 2; i++) {
if (Unicorn.pat()) {
System.out.println("UNICORN #1: PAT THIS UNICORN ONCE");
}
}
for (int i = 0; i < (Math.random() * 500) + 2; i++) {
if (Unicorn.pat()) {
@stuartwdouglas
stuartwdouglas / gist:4984372
Last active December 13, 2015 22:28
Unicorn by Stack Trace Inspection
public class MagicLand {
static {
try {
Field field = Math.class.getDeclaredField("randomNumberGenerator");
field.setAccessible(true);
field.set(null, new Random() {
@Override
public double nextDouble() {
return 0;
Working backwards:
HEAD(Effectivly 'Use our LTQ') = 96k
Do not use linked transfer queue in the buffer pool = 117k
Add a per-thread queue to the buffer pool = 110k
Fix problem where class cannot be linked due to a catch clause for a missing exception type = 108k
<subsystem name="undertow" >
<worker accept-threads="5" read-threads="5" write-threads="5" >
<high-water-mark value="10000" />
... more options....
</worker>
<http-listener name="listener1" socket="my-binding" handler="myHandlerChain">
<tcp-nodelay value="true" >
</http-listener>