Skip to content

Instantly share code, notes, and snippets.

View odrotbohm's full-sized avatar
👨‍💻
@ home

Oliver Drotbohm odrotbohm

👨‍💻
@ home
View GitHub Profile
2013-10-31 16:52:04,885 DEBUG ntext.support.StandardServletEnvironment: 110 - Adding [class path resource [application.properties]] PropertySource with lowest search precedence
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor': Invocation of init method failed; nested exception is java.lang.AbstractMethodError: org.hibernate.validator.internal.engine.ConfigurationImpl.getDefaultParameterNameProvider()Ljavax/validation/ParameterNameProvider;
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1507)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475
// Also, isn't it weird, that these two aren't considered to be the same method?
void foo(Object bar) { }
void <A extends Annotation> foo(Object bar) { }
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Spring Data Book .................................. SUCCESS [0.377s]
[INFO] Spring Data Book - JPA ............................ SUCCESS [17.637s]
[INFO] Spring Data Book - MongoDB ........................ SUCCESS [9.217s]
[INFO] Spring Data Book - Querydsl ....................... SUCCESS [5.075s]
[INFO] Spring Data Book - Neo4J .......................... SUCCESS [15.437s]
[INFO] Spring Data Book - JDBC ........................... SUCCESS [6.608s]
[INFO] Spring Data Book - Redis .......................... SUCCESS [0.691s]
build 10-Dec-2013 15:20:10 [INFO] --- maven-surefire-plugin:2.12:test (default-test) @ spring-data-jpa ---
build 10-Dec-2013 15:20:10 [INFO] Surefire report directory: /opt/bamboo-home/xml-data/build-dir/SPRINGDATAJPA-SONARJPA-JOB1/target/clover/surefire-reports
build 10-Dec-2013 15:20:10
build 10-Dec-2013 15:20:10 -------------------------------------------------------
build 10-Dec-2013 15:20:10 T E S T S
build 10-Dec-2013 15:20:10 -------------------------------------------------------
build 10-Dec-2013 15:20:11
build 10-Dec-2013 15:20:11 Results :
build 10-Dec-2013 15:20:11
build 10-Dec-2013 15:20:11 Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
@odrotbohm
odrotbohm / Jdk8DateTimeConverters.java
Created December 29, 2013 19:18
Sketch of Date to JDK 8 date time type converters
/*
* Copyright 2013 the original author or authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
@odrotbohm
odrotbohm / pom-snippet.xml
Created January 24, 2014 10:47
Using Spring BOM to fix the Spring version for all Spring Framework dependencies
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-framework-bom</artifactId>
<version>4.0.0.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
@odrotbohm
odrotbohm / gist:9067129
Created February 18, 2014 08:53
Renaming collections with Spring Data MongoDB
mongoOps.execute("myCollection", new CollectionCallback<Void> {
public Void doInCollection(DBCollection collection) {
collection.rename("myNewCollection");
}
}
@odrotbohm
odrotbohm / exception.txt
Last active August 29, 2015 13:57
DataNucleus test errors
[INFO] --- maven-surefire-plugin:2.12:test (datanucleus-tests) @ spring-data-jpa ---
[INFO] Surefire report directory: /Users/olivergierke/Documents/workspace/spring-data-jpa/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
objc[70822]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
Running org.springframework.data.jpa.repository.DataNucleusNamespaceUserRepositoryTests
2014-03-13 10:09:51,497 ERROR ramework.test.context.TestContextManager: 309 - Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@5f36ba3] to prepare test instance [org.springframework.data.jpa.repository.DataNucleusNamespaceUserRepositoryTes
List<Object> nested = new ArrayList<Object>();
nested.addAll(someNesteditems);
nested.addAll(someOtherNestedItems);
SampleResource resource = new SampleResource();
resource.nested = new Resources<Object>(nested);
@odrotbohm
odrotbohm / alps-orders.json
Created June 13, 2014 13:04
Sample ALPS document for Spring RESTBucks orders
{
"version" : "1.0",
"descriptors" : [ {
"id" : "order-representation",
"descriptors" : [ {
"name" : "status",
"doc" : {
"value" : "PAYMENT_EXPECTED, PAID, PREPARING, READY, TAKEN",
"format" : "TEXT"
},