Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用AngularJS、Spring和Hibernate保存房间预订_Java_Angularjs_Spring_Hibernate_Spring Mvc - Fatal编程技术网

Java 使用AngularJS、Spring和Hibernate保存房间预订

Java 使用AngularJS、Spring和Hibernate保存房间预订,java,angularjs,spring,hibernate,spring-mvc,Java,Angularjs,Spring,Hibernate,Spring Mvc,情景: 预订由用户为特定房间预订。保留实体具有以下属性: private Long reservationId; private Date startTime; private Date endTime; private User user; private Room room; private String note; 如您所见,预订实体也接收用户和房间实体我正试图将此预订保存到数据库中,但保存后仍会遇到以下问题: HTTP Status 400 -description The reque

情景:

预订由用户为特定房间预订。保留实体具有以下属性:

private Long reservationId;
private Date startTime;
private Date endTime;
private User user;
private Room room;
private String note;
如您所见,预订实体也接收用户和房间实体我正试图将此预订保存到数据库中,但保存后仍会遇到以下问题:

HTTP Status 400 -description The request sent by the client was syntactically incorrect.
我认为我的问题与错误地传递用户和房间对象有关,但我还没有完全弄清楚到底是什么问题

这是我的Spring@RestController方法:

@RequestMapping(method=RequestMethod.POST)
public ResponseEntity<ReservationResource> addReservation(@RequestBody ReservationResource reservation){
    try{
        Reservation newReservation = reservationService.addReservation(reservation.toReservation());
        ReservationResource reservationResource = new ReservationResourceAsm().toResource(newReservation);

        HttpHeaders headers = new HttpHeaders();
        headers.setLocation(URI.create(reservationResource.getLink("self").getHref()));
        return new ResponseEntity<ReservationResource>(reservationResource, headers, HttpStatus.CREATED);
    } catch (ReservationExistsException exception) {
        throw new ConflictException(exception); 
    }
}
以及相应的角度工厂服务:

.factory('reservationService', function($resource){
var reservations = {};

reservations.addReservation = function(reservation, success, failure){
    var Reservation = $resource('/libroomreserve/api/reservation');
    Reservation.save({}, reservation, success, failure);
};

return reservations;
})
最后,这里是请求负载,我通过验证器运行了它的内容,并将其签出:

{"user":{"userId":1,"userName":"tom","links":[{"rel":"self","href":"http://localhost:8080/libroomreserve/api/user/1"}]},"room":{"roomId":1,"roomNumber":"101A","roomDescription":"Best room ever","roomCapacity":15,"links":[{"rel":"self","href":"http://localhost:8080/libroomreserve/api/room/1"}]},"startTime":"2015-12-25 00:00:00","endTime":"2015-12-25 00:00:00","note":"dsfds"}
更新

下面是log4j在发布预订时返回的一堆错误开始日期和结束日期已过,似乎是一个问题。

    DispatcherServlet with name 'dispatcher' processing POST request for [/libroomreserve/api/reservation]
Looking up handler method for path /api/reservation
Returning handler method [public org.springframework.http.ResponseEntity<com.ucrisko.libroomreserve.rest.resources.ReservationResource> com.ucrisko.libroomreserve.rest.controllers.ReservationController.addReservation(com.ucrisko.libroomreserve.rest.resources.ReservationResource)]
Returning cached instance of singleton bean 'reservationController'
Skip CORS processing, request is a same-origin one
Read [class com.ucrisko.libroomreserve.rest.resources.ReservationResource] as "application/json;charset=UTF-8" with [org.springframework.http.converter.json.MappingJackson2HttpMessageConverter@ec39299]
Error resolving argument [0] [type=com.ucrisko.libroomreserve.rest.resources.ReservationResource]
HandlerMethod details: 
Controller [com.ucrisko.libroomreserve.rest.controllers.ReservationController]
Method [public org.springframework.http.ResponseEntity<com.ucrisko.libroomreserve.rest.resources.ReservationResource> com.ucrisko.libroomreserve.rest.controllers.ReservationController.addReservation(com.ucrisko.libroomreserve.rest.resources.ReservationResource)]

org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"]); nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"])
    at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:224)
    at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.read(AbstractJackson2HttpMessageConverter.java:208)
    at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodArgumentResolver.readWithMessageConverters(AbstractMessageConverterMethodArgumentResolver.java:193)
    at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.readWithMessageConverters(RequestResponseBodyMethodProcessor.java:148)
    at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.resolveArgument(RequestResponseBodyMethodProcessor.java:125)
    at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:78)
    at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:162)
    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:129)
    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:111)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:806)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:729)
    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:399)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:316)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:122)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:169)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:48)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:162)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:205)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:120)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:64)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:53)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)
    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1521)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1478)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)
Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"])
    at com.fasterxml.jackson.databind.exc.InvalidFormatException.from(InvalidFormatException.java:55)
    at com.fasterxml.jackson.databind.DeserializationContext.weirdStringException(DeserializationContext.java:904)
    at com.fasterxml.jackson.databind.deser.std.StdDeserializer._parseDate(StdDeserializer.java:787)
    at com.fasterxml.jackson.databind.deser.std.DateDeserializers$DateBasedDeserializer._parseDate(DateDeserializers.java:175)
    at com.fasterxml.jackson.databind.deser.std.DateDeserializers$DateDeserializer.deserialize(DateDeserializers.java:261)
    at com.fasterxml.jackson.databind.deser.std.DateDeserializers$DateDeserializer.deserialize(DateDeserializers.java:245)
    at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:520)
    at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:95)
    at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:337)
    at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:131)
    at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3731)
    at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2808)
    at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:221)
    ... 76 more
Resolving exception from handler [public org.springframework.http.ResponseEntity<com.ucrisko.libroomreserve.rest.resources.ReservationResource> com.ucrisko.libroomreserve.rest.controllers.ReservationController.addReservation(com.ucrisko.libroomreserve.rest.resources.ReservationResource)]: org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"]); nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"])
Resolving exception from handler [public org.springframework.http.ResponseEntity<com.ucrisko.libroomreserve.rest.resources.ReservationResource> com.ucrisko.libroomreserve.rest.controllers.ReservationController.addReservation(com.ucrisko.libroomreserve.rest.resources.ReservationResource)]: org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"]); nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"])
Resolving exception from handler [public org.springframework.http.ResponseEntity<com.ucrisko.libroomreserve.rest.resources.ReservationResource> com.ucrisko.libroomreserve.rest.controllers.ReservationController.addReservation(com.ucrisko.libroomreserve.rest.resources.ReservationResource)]: org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"]); nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"])
Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"]); nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"])
SecurityContext is empty or contents are anonymous - context will not be stored in HttpSession.
Handler execution resulted in exception: Could not read document: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"]); nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"])
Null ModelAndView returned to DispatcherServlet with name 'dispatcher': assuming HandlerAdapter completed request handling
Successfully completed request
Chain processed normally
SecurityContextHolder now cleared, as request processing completed
名为“dispatcher”的DispatcherServlet正在处理[/libroomreserve/api/reservation]的POST请求 查找路径/api/保留的处理程序方法 返回处理程序方法[public org.springframework.http.ResponseEntity com.ucrisgo.libroomreserve.rest.controllers.ReservationController.addReservation(com.ucrisgo.libroomreserve.rest.resources.ReservationResource)] 正在返回单例bean“reservationController”的缓存实例 跳过CORS处理,请求是同一来源的 使用[org.springframework.http.converter.json]将[class com.ucrisgo.libroomreserve.rest.resources.ReservationResource]读为“application/json;charset=UTF-8”。MappingJackson2HttpMessageConverter@ec39299] 解析参数[0][type=com.ucrisgo.libroomreserve.rest.resources.ReservationResource]时出错 HandlerMethod详细信息: 控制器[com.ucrisgo.libroomreserve.rest.controllers.ReservationController] 方法[public org.springframework.http.ResponseEntity com.ucrisgo.libroomreserve.rest.controllers.ReservationController.addReservation(com.ucrisgo.libroomreserve.rest.resources.ReservationResource)] org.springframework.http.converter.httpMessageNodeTableException:无法读取文档:无法从字符串值“2015-12-25 00:00:00”构造java.util.Date的实例:不是有效的表示形式(错误:无法解析日期值“2015-12-25 00:00:00”:无法解析日期“2015-12-25 00:00:00”:与任何标准表单都不兼容(“yyyy-MM-dd'T'HH:MM:ss.SSSZ”,“yyyy-MM-dd'T'HH:MM:ss.SSS'Z'”,“EEE,dd-MM-yyyy-HH:MM:ss-zzz”,“yyyy-MM-dd”)) 在[来源:java.io。PushbackInputStream@1f05a63c;行:1,列:295](通过引用链:com.ucrisgo.libroomreserve.rest.resources.ReservationResource[“startTime”]);嵌套异常为com.fasterxml.jackson.databind.exc.InvalidFormatException:无法从字符串值“2015-12-25 00:00:00”构造java.util.Date的实例:不是有效的表示形式(错误:无法分析日期值“2015-12-25 00:00:00”:无法分析日期“2015-12-25 00:00:00”:与任何标准表单不兼容(“yyyy-MM-dd'T'HH:MM:ss.SSSZ',“yyyy-MM-dd'T'HH:MM:ss.SSS'Z',“EEE,dd-MM-yyyy-HH:MM:ss-zzz”,“YY-MM-dd”)) 在[来源:java.io。PushbackInputStream@1f05a63c;行:1,列:295](通过引用链:com.ucrisgo.libroomreserve.rest.resources.ReservationResource[“startTime”]) 位于org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:224) 位于org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.read(AbstractJackson2HttpMessageConverter.java:208) 位于org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodArgumentResolver.readWithMessageConverters(AbstractMessageConverterMethodArgumentResolver.java:193) 位于org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.readWithMessageConverters(RequestResponseBodyMethodProcessor.java:148) 位于org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.resolveArgument(RequestResponseBodyMethodProcessor.java:125) 位于org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:78) 位于org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:162) 位于org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:129) 位于org.springframework.web.servlet.mvc.method.annotation.ServletinVaccableHandlerMethod.invokeAndHandle(ServletinVaccableHandlerMethod.java:111) 位于org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:806) 位于org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:729) 位于org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) 位于org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959) 位于org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893) 位于org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) 位于org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) 位于javax.servlet.http.HttpServlet.service(HttpServlet.java:648) 位于org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) 位于javax.servlet.http.HttpServlet.service(HttpServlet.java:729) 位于org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) 位于org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 位于org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:399) 在org.apach
    DispatcherServlet with name 'dispatcher' processing POST request for [/libroomreserve/api/reservation]
Looking up handler method for path /api/reservation
Returning handler method [public org.springframework.http.ResponseEntity<com.ucrisko.libroomreserve.rest.resources.ReservationResource> com.ucrisko.libroomreserve.rest.controllers.ReservationController.addReservation(com.ucrisko.libroomreserve.rest.resources.ReservationResource)]
Returning cached instance of singleton bean 'reservationController'
Skip CORS processing, request is a same-origin one
Read [class com.ucrisko.libroomreserve.rest.resources.ReservationResource] as "application/json;charset=UTF-8" with [org.springframework.http.converter.json.MappingJackson2HttpMessageConverter@ec39299]
Error resolving argument [0] [type=com.ucrisko.libroomreserve.rest.resources.ReservationResource]
HandlerMethod details: 
Controller [com.ucrisko.libroomreserve.rest.controllers.ReservationController]
Method [public org.springframework.http.ResponseEntity<com.ucrisko.libroomreserve.rest.resources.ReservationResource> com.ucrisko.libroomreserve.rest.controllers.ReservationController.addReservation(com.ucrisko.libroomreserve.rest.resources.ReservationResource)]

org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"]); nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"])
    at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:224)
    at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.read(AbstractJackson2HttpMessageConverter.java:208)
    at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodArgumentResolver.readWithMessageConverters(AbstractMessageConverterMethodArgumentResolver.java:193)
    at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.readWithMessageConverters(RequestResponseBodyMethodProcessor.java:148)
    at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.resolveArgument(RequestResponseBodyMethodProcessor.java:125)
    at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:78)
    at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:162)
    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:129)
    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:111)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:806)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:729)
    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:399)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:316)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:122)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:169)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:48)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:162)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:205)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:120)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:64)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:53)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)
    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1521)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1478)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)
Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"])
    at com.fasterxml.jackson.databind.exc.InvalidFormatException.from(InvalidFormatException.java:55)
    at com.fasterxml.jackson.databind.DeserializationContext.weirdStringException(DeserializationContext.java:904)
    at com.fasterxml.jackson.databind.deser.std.StdDeserializer._parseDate(StdDeserializer.java:787)
    at com.fasterxml.jackson.databind.deser.std.DateDeserializers$DateBasedDeserializer._parseDate(DateDeserializers.java:175)
    at com.fasterxml.jackson.databind.deser.std.DateDeserializers$DateDeserializer.deserialize(DateDeserializers.java:261)
    at com.fasterxml.jackson.databind.deser.std.DateDeserializers$DateDeserializer.deserialize(DateDeserializers.java:245)
    at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:520)
    at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:95)
    at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:337)
    at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:131)
    at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3731)
    at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2808)
    at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:221)
    ... 76 more
Resolving exception from handler [public org.springframework.http.ResponseEntity<com.ucrisko.libroomreserve.rest.resources.ReservationResource> com.ucrisko.libroomreserve.rest.controllers.ReservationController.addReservation(com.ucrisko.libroomreserve.rest.resources.ReservationResource)]: org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"]); nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"])
Resolving exception from handler [public org.springframework.http.ResponseEntity<com.ucrisko.libroomreserve.rest.resources.ReservationResource> com.ucrisko.libroomreserve.rest.controllers.ReservationController.addReservation(com.ucrisko.libroomreserve.rest.resources.ReservationResource)]: org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"]); nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"])
Resolving exception from handler [public org.springframework.http.ResponseEntity<com.ucrisko.libroomreserve.rest.resources.ReservationResource> com.ucrisko.libroomreserve.rest.controllers.ReservationController.addReservation(com.ucrisko.libroomreserve.rest.resources.ReservationResource)]: org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"]); nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"])
Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"]); nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"])
SecurityContext is empty or contents are anonymous - context will not be stored in HttpSession.
Handler execution resulted in exception: Could not read document: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"]); nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation (error: Failed to parse Date value '2015-12-25 00:00:00': Can not parse date "2015-12-25 00:00:00": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
 at [Source: java.io.PushbackInputStream@1f05a63c; line: 1, column: 295] (through reference chain: com.ucrisko.libroomreserve.rest.resources.ReservationResource["startTime"])
Null ModelAndView returned to DispatcherServlet with name 'dispatcher': assuming HandlerAdapter completed request handling
Successfully completed request
Chain processed normally
SecurityContextHolder now cleared, as request processing completed
Can not construct instance of java.util.Date from String value '2015-12-25 00:00:00': not a valid representation
standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
@JsonFormat(shape=Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")