Skip to content

Instantly share code, notes, and snippets.

View dmlloyd's full-sized avatar
🪐

David M. Lloyd dmlloyd

🪐
  • Red Hat, Inc.
  • Planet X
View GitHub Profile
@dmlloyd
dmlloyd / BufferPool.java
Last active August 29, 2015 14:16
BufferSource concept
/*
* JBoss, Home of Professional Open Source
*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@dmlloyd
dmlloyd / BufferSource.java
Last active August 29, 2015 14:16
Buffer source API
/*
* JBoss, Home of Professional Open Source
*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@dmlloyd
dmlloyd / JavaxToolsCompiler.java.diff
Created March 18, 2015 14:26
Proposed changes to JavaxToolsCompiler.java
diff --git a/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavaxToolsCompiler.java b/plexus-compilers/plexus-compiler-
index 00028b5..8f886f1 100644
--- a/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavaxToolsCompiler.java
+++ b/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavaxToolsCompiler.java
@@ -1,203 +1,324 @@
package org.codehaus.plexus.compiler.javac;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@dmlloyd
dmlloyd / fixinterceptors.patch
Created April 13, 2015 16:04
Fix for interceptors API change
diff --git a/ejb3/src/test/java/org/jboss/as/ejb3/component/stateful/StatefulSessionSynchronizationInterceptorTestCase.java b/ejb3/src/test/java/org/jboss/as/ej
index 3c2c452..26de83c 100644
--- a/ejb3/src/test/java/org/jboss/as/ejb3/component/stateful/StatefulSessionSynchronizationInterceptorTestCase.java
+++ b/ejb3/src/test/java/org/jboss/as/ejb3/component/stateful/StatefulSessionSynchronizationInterceptorTestCase.java
@@ -73,7 +73,7 @@ public class StatefulSessionSynchronizationInterceptorTestCase {
public void testDifferentTx() throws Exception {
final Interceptor interceptor = new StatefulSessionSynchronizationInterceptor(true);
final InterceptorContext context = new InterceptorContext();
- context.setInterceptors(Arrays.asList(noop()));
+ context.setInterceptors(new Interceptor[] { noop() });
@dmlloyd
dmlloyd / Main.java
Created July 9, 2015 15:23
Degenerate EJB client test thingy
/*
* JBoss, Home of Professional Open Source.
* Copyright 2015, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
@dmlloyd
dmlloyd / wildfly-config.xml
Created July 9, 2015 15:28
Example configuration file, fiddle as needed
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2015, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
/**
* Construct a new instance.
*
* @param urlScheme the URL scheme
* @param enumeration the name components
* @throws InvalidNameException if the name is not valid <--- this is being reported as "Invalid use of @throws"
*/
public URLSchemeName(final String urlScheme, final Enumeration<String> enumeration) throws InvalidNameException {
super(enumeration);
Assert.checkNotNullParam("urlScheme", urlScheme);
@dmlloyd
dmlloyd / output.txt
Created July 21, 2015 23:11
Example output when channel open fails
/home/david/local/jdk/home-1.8/bin/java -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Didea.launcher.port=7536 -Didea.launcher.bin.path=/home/david/local/idea-14.1.4-141.1532.4/bin -Dfile.encoding=UTF-8 -classpath /home/david/local/jdk/home-1.8/jre/lib/rt.jar:/home/david/local/jdk/home-1.8/jre/lib/resources.jar:/home/david/local/jdk/home-1.8/jre/lib/jsse.jar:/home/david/local/jdk/home-1.8/jre/lib/javaws.jar:/home/david/local/jdk/home-1.8/jre/lib/charsets.jar:/home/david/local/jdk/home-1.8/jre/lib/jfxswt.jar:/home/david/local/jdk/home-1.8/jre/lib/plugin.jar:/home/david/local/jdk/home-1.8/jre/lib/jce.jar:/home/david/local/jdk/home-1.8/jre/lib/management-agent.jar:/home/david/local/jdk/home-1.8/jre/lib/deploy.jar:/home/david/local/jdk/home-1.8/jre/lib/jfr.jar:/home/david/local/jdk/home-1.8/jre/lib/ext/sunec.jar:/home/david/local/jdk/home-1.8/jre/lib/ext/cldrdata.jar:/home/david/local/jdk/home-1.8/jre/lib/ext/nashorn.jar:/home/david/local/jdk/home-1.8/jre/lib/ext/localedata.jar:/home/david/local/jd
@dmlloyd
dmlloyd / stack.txt
Created July 23, 2015 18:57
Wrong stack...
javax.security.sasl.SaslException: ELY05009: [SCRAM-SHA-1] No SASL password was given
at org.wildfly.security._private.ElytronMessages_$logger.saslNoPasswordGiven(ElytronMessages_$logger.java:1612) <- this stack frame should be hidden
-- this is where the missing stack frame is --
at org.wildfly.security.sasl.scram.ScramSaslServer.getSaltedPasswordFromTwoWay(ScramSaslServer.java:547)
at org.wildfly.security.sasl.scram.ScramSaslServer.evaluateMessage(ScramSaslServer.java:209)
at org.wildfly.security.sasl.util.AbstractSaslParticipant.evaluateMessage(AbstractSaslParticipant.java:177)
at org.wildfly.security.sasl.util.AbstractSaslServer.evaluateResponse(AbstractSaslServer.java:52)
at org.wildfly.security.sasl.scram.ScramServerCompatibilityTest.testDifferentNonceAttack(ScramServerCompatibilityTest.java:286)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)
case Bytecodes::_invokevirtual :
case Bytecodes::_invokespecial :
case Bytecodes::_invokestatic :
verify_invoke_instructions(
&bcs, code_length, &current_frame, (bci >= ex_min && bci < ex_max),
&this_uninit, return_type, cp, &stackmap_table, CHECK_VERIFY(this));
no_control_flow = false; break;
case Bytecodes::_invokeinterface :
case Bytecodes::_invokedynamic :
verify_invoke_instructions(