Skip to content

Instantly share code, notes, and snippets.

Jun 25, 2014 11:34:19 AM org.apache.catalina.session.StandardSession expire
SEVERE: Session event listener threw exception
java.lang.NullPointerException
	at org.apache.tomcat.websocket.server.WsServerContainer.unregisterAuthenticatedSession(WsServerContainer.java:367)
	at org.apache.tomcat.websocket.server.WsServerContainer.unregisterSession(WsServerContainer.java:344)
	at org.apache.tomcat.websocket.WsSession.sendCloseMessage(WsSession.java:494)
	at org.apache.tomcat.websocket.WsSession.doClose(WsSession.java:417)
	at org.apache.tomcat.websocket.WsSession.close(WsSession.java:394)
	at org.apache.tomcat.websocket.server.WsServerContainer.closeAuthenticatedSession(WsServerContainer.java:377)
@rwinch
rwinch / build.gradle
Created December 11, 2013 14:39
Gradle DependencyResolveDetails example
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
compile 'org.springframework:spring-core', // spring-core has no version specified
// security brings in spring version 3.0.7
'org.springframework.security:spring-security-core:3.1.4.RELEASE'
@rwinch
rwinch / Test.java
Created October 15, 2013 17:53
Imported Configuration can reference beans from Configuration that imported it
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
public class Test {
public static void main(String[] args) {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(A.class);
@rwinch
rwinch / DocbookToAsciidoctorForSpring.groovy
Created October 4, 2013 21:16
Script for approximate conversion of Docbook to Asciidoctor modified for Spring
import javax.xml.parsers.SAXParserFactory
import org.xml.sax.helpers.DefaultHandler
import org.xml.sax.*
String EOL = "---EOL---"
File doc = new File("/home/rwinch/git/spring-framework/src/reference/docbook/index.xml")
class Docbook5Handler extends DefaultHandler {
File doc
@rwinch
rwinch / DoocbookToAsciidoctor.groovy
Created October 4, 2013 14:21
Script for approximate conversion of Docbook to Asciidoctor
import javax.xml.parsers.SAXParserFactory
import org.xml.sax.helpers.DefaultHandler
import org.xml.sax.*
String EOL = "---EOL---"
File doc = new File("/home/rwinch/git/spring-security-3.2.x/docs/manual/src/docbook/index.xml")
class Docbook5Handler extends DefaultHandler {
File doc