diff --git a/gradle.properties b/gradle.properties index 7747d0ba9..291bf3594 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=0.57 +version=0.58 diff --git a/micro-core/src/main/java/com/aol/micro/server/rest/jersey/JerseyRestApplication.java b/micro-core/src/main/java/com/aol/micro/server/rest/jersey/JerseyRestApplication.java index 9a0a49b5e..3a29c6786 100644 --- a/micro-core/src/main/java/com/aol/micro/server/rest/jersey/JerseyRestApplication.java +++ b/micro-core/src/main/java/com/aol/micro/server/rest/jersey/JerseyRestApplication.java @@ -32,6 +32,7 @@ public JerseyRestApplication() { } public JerseyRestApplication(List allResources,List packages, List resources) { + if (allResources != null) { for (Object next : allResources) { if(isSingleton(next)) @@ -42,7 +43,11 @@ public JerseyRestApplication(List allResources,List packages, Li } } property(ServerProperties.BV_SEND_ERROR_IN_RESPONSE, true); - packages.stream().forEach( e -> packages(e)); + + //http://stackoverflow.com/questions/25755773/bean-validation-400-errors-are-returning-default-error-page-html-instead-of-re + property(ServerProperties.RESPONSE_SET_STATUS_OVER_SEND_ERROR, "true"); + + packages.stream().forEach( e -> packages(e)); resources.stream().forEach( e -> register(e)); }