Skip to content

Instantly share code, notes, and snippets.

View raystorm's full-sized avatar

Tom Burton raystorm

View GitHub Profile
@raystorm
raystorm / Bean Embedded Kafka Error Stacktrace
Created October 5, 2020 14:21
Bean Embedded Kafka Error Stacktrace
Failed to load ApplicationContext
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:132)
at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:123)
at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:190)
at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:132)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:244)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:227)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289)
Failed to load ApplicationContext
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:132)
at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:123)
at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:190)
at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:132)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:244)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:227)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289)
module RubyStats
require 'google/api_client'
require 'google/api_client/client_secrets'
require 'google/api_client/auth/installed_app'
require 'openssl'
class GitHub_Archive
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
@raystorm
raystorm / monolog.yml
Created February 2, 2014 06:48
Symfony log to stdout & stderr
stdout:
type: stream
path: "php://stdout"
level: debug
stderr:
type: stream
path: "php://stderr"
level: warning
@raystorm
raystorm / PhoneConverter.java
Last active December 24, 2015 12:59
Strip phone number formatting
/**
* removes any non-digit character from the phone number
* @param phoneNumber number to be de-formatted
* @return phone number digits
*/
protected String clearFormatting(String phoneNumber)
{
StringBuilder out = new StringBuilder(phoneNumber.length());
int lower = ((int)'0'-1);
int upper = ((int)'9'+1);