Created
April 24, 2014 06:32
-
-
Save tfnico/11243724 to your computer and use it in GitHub Desktop.
GET on entity fails in spring-data-rest-2.0.0.RELEASE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this is the error using spring-rest-data-2.0.0.RELEASE | |
# It worked fine in 2.0.0.M1 | |
# I believe it's caused by https://jira.spring.io/browse/DATAREST-253 (but not sure) | |
2014-04-23 17:01:22,385 [main] INFO ServerConnector - Started ServerConnector@6f0e15e9{HTTP/1.1}{0.0.0.0:8000} | |
2014-04-23 17:02:34,801 [qtp186591455-21] TRACE HandlerMethod - Invoking [listEntities] method with arguments [org.springframework.data.rest.webmvc.RootResourceInformation@7bd766d, Page request [number: 0, size 20, sort: null], null] | |
2014-04-23 17:02:35,007 [qtp186591455-21] TRACE HandlerMethod - Method [listEntities] returned [PagedResource { content: [Resource { content: PlannedWorkload{id='142', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/142>;rel="self"] }, Resource { content: PlannedWorkload{id='144', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/144>;rel="self"] }, Resource { content: PlannedWorkload{id='146', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/146>;rel="self"] }, Resource { content: PlannedWorkload{id='148', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/148>;rel="self"] }, Resource { content: PlannedWorkload{id='150', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/150>;rel="self"] }, Resource { content: PlannedWorkload{id='152', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/152>;rel="self"] }, Resource { content: PlannedWorkload{id='154', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/154>;rel="self"] }, Resource { content: PlannedWorkload{id='156', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/156>;rel="self"] }, Resource { content: PlannedWorkload{id='158', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/158>;rel="self"] }, Resource { content: PlannedWorkload{id='160', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/160>;rel="self"] }, Resource { content: PlannedWorkload{id='162', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/162>;rel="self"] }, Resource { content: PlannedWorkload{id='164', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/164>;rel="self"] }, Resource { content: PlannedWorkload{id='166', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/166>;rel="self"] }, Resource { content: PlannedWorkload{id='168', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/168>;rel="self"] }, Resource { content: PlannedWorkload{id='170', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/170>;rel="self"] }, Resource { content: PlannedWorkload{id='172', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/172>;rel="self"] }, Resource { content: PlannedWorkload{id='174', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/174>;rel="self"] }, Resource { content: PlannedWorkload{id='176', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/176>;rel="self"] }, Resource { content: PlannedWorkload{id='178', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/178>;rel="self"] }, Resource { content: PlannedWorkload{id='180', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/180>;rel="self"] }], metadata: Metadata { number: 0, total pages: 16, total elements: 302, size: 20 }, links: [<http://127.0.0.1:8000/api/plannedWorkload?page=1&size=20>;rel="next", <http://127.0.0.1:8000/api/plannedWorkload{?page,size,sort}>;rel="self", <http://127.0.0.1:8000/api/plannedWorkload/search>;rel="search"] }] | |
2014-04-23 17:02:35,118 [qtp186591455-21] TRACE HandlerMethod - Error handling return value [type=org.springframework.hateoas.PagedResources] [value=PagedResource { content: [Resource { content: PlannedWorkload{id='142', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/142>;rel="self"] }, Resource { content: PlannedWorkload{id='144', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/144>;rel="self"] }, Resource { content: PlannedWorkload{id='146', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/146>;rel="self"] }, Resource { content: PlannedWorkload{id='148', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/148>;rel="self"] }, Resource { content: PlannedWorkload{id='150', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/150>;rel="self"] }, Resource { content: PlannedWorkload{id='152', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/152>;rel="self"] }, Resource { content: PlannedWorkload{id='154', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/154>;rel="self"] }, Resource { content: PlannedWorkload{id='156', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/156>;rel="self"] }, Resource { content: PlannedWorkload{id='158', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/158>;rel="self"] }, Resource { content: PlannedWorkload{id='160', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/160>;rel="self"] }, Resource { content: PlannedWorkload{id='162', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/162>;rel="self"] }, Resource { content: PlannedWorkload{id='164', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/164>;rel="self"] }, Resource { content: PlannedWorkload{id='166', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/166>;rel="self"] }, Resource { content: PlannedWorkload{id='168', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/168>;rel="self"] }, Resource { content: PlannedWorkload{id='170', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/170>;rel="self"] }, Resource { content: PlannedWorkload{id='172', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/172>;rel="self"] }, Resource { content: PlannedWorkload{id='174', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/174>;rel="self"] }, Resource { content: PlannedWorkload{id='176', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/176>;rel="self"] }, Resource { content: PlannedWorkload{id='178', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/178>;rel="self"] }, Resource { content: PlannedWorkload{id='180', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/180>;rel="self"] }], metadata: Metadata { number: 0, total pages: 16, total elements: 302, size: 20 }, links: [<http://127.0.0.1:8000/api/plannedWorkload?page=1&size=20>;rel="next", <http://127.0.0.1:8000/api/plannedWorkload{?page,size,sort}>;rel="self", <http://127.0.0.1:8000/api/plannedWorkload/search>;rel="search"] }] | |
HandlerMethod details: | |
Controller [org.springframework.data.rest.webmvc.RepositoryEntityController] | |
Method [public org.springframework.hateoas.Resources<?> org.springframework.data.rest.webmvc.RepositoryEntityController.listEntities(org.springframework.data.rest.webmvc.RootResourceInformation,org.springframework.data.domain.Pageable,org.springframework.data.domain.Sort) throws org.springframework.data.rest.webmvc.ResourceNotFoundException,org.springframework.web.HttpRequestMethodNotSupportedException] | |
org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: (was java.lang.NullPointerException) (through reference chain: org.springframework.hateoas.PagedResources["_embedded"]->java.util.UnmodifiableMap["plannedWorkloads"]->java.util.ArrayList[0]->org.springframework.hateoas.Resource["content"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: (was java.lang.NullPointerException) (through reference chain: org.springframework.hateoas.PagedResources["_embedded"]->java.util.UnmodifiableMap["plannedWorkloads"]->java.util.ArrayList[0]->org.springframework.hateoas.Resource["content"]) | |
at org.springframework.http.converter.json.MappingJackson2HttpMessageConverter.writeInternal(MappingJackson2HttpMessageConverter.java:207) ~[spring-web-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at org.springframework.http.converter.AbstractHttpMessageConverter.write(AbstractHttpMessageConverter.java:179) ~[spring-web-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:148) ~[spring-webmvc-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:90) ~[spring-webmvc-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.handleReturnValue(RequestResponseBodyMethodProcessor.java:189) ~[spring-webmvc-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:69) ~[spring-web-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at org.springframework.data.rest.webmvc.ResourceProcessorHandlerMethodReturnValueHandler.handleReturnValue(ResourceProcessorHandlerMethodReturnValueHandler.java:172) ~[spring-data-rest-webmvc-2.0.0.RELEASE.jar:na] | |
at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:69) ~[spring-web-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:122) ~[spring-webmvc-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745) [spring-webmvc-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686) [spring-webmvc-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80) [spring-webmvc-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925) [spring-webmvc-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856) [spring-webmvc-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936) [spring-webmvc-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827) [spring-webmvc-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) [javax.servlet-api-3.1.0.jar:3.1.0] | |
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812) [spring-webmvc-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [javax.servlet-api-3.1.0.jar:3.1.0] | |
at org.atmosphere.util.AtmosphereFilterChain.doFilter(AtmosphereFilterChain.java:135) [atmosphere-runtime-2.1.2.jar:2.1.2] | |
at org.atmosphere.util.AtmosphereFilterChain.invokeFilterChain(AtmosphereFilterChain.java:96) [atmosphere-runtime-2.1.2.jar:2.1.2] | |
at org.atmosphere.handler.ReflectorServletProcessor$FilterChainServletWrapper.service(ReflectorServletProcessor.java:320) [atmosphere-runtime-2.1.2.jar:2.1.2] | |
at org.atmosphere.handler.ReflectorServletProcessor.onRequest(ReflectorServletProcessor.java:163) [atmosphere-runtime-2.1.2.jar:2.1.2] | |
at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:174) [atmosphere-runtime-2.1.2.jar:2.1.2] | |
at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:95) [atmosphere-runtime-2.1.2.jar:2.1.2] | |
at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:66) [atmosphere-runtime-2.1.2.jar:2.1.2] | |
at org.atmosphere.container.Jetty9AsyncSupportWithWebSocket.service(Jetty9AsyncSupportWithWebSocket.java:169) [atmosphere-runtime-2.1.2.jar:2.1.2] | |
at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:1805) [atmosphere-runtime-2.1.2.jar:2.1.2] | |
at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:205) [atmosphere-runtime-2.1.2.jar:2.1.2] | |
at org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:191) [atmosphere-runtime-2.1.2.jar:2.1.2] | |
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) [javax.servlet-api-3.1.0.jar:3.1.0] | |
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [javax.servlet-api-3.1.0.jar:3.1.0] | |
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:696) [jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1568) [jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] | |
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) [spring-web-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) [spring-web-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1539) [jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:180) [spring-orm-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1539) [jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:524) [jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:568) [jetty-security-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1110) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:453) [jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1044) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.eclipse.jetty.server.Server.handle(Server.java:459) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:280) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:229) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.eclipse.jetty.io.AbstractConnection$1.run(AbstractConnection.java:505) [jetty-io-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607) [jetty-util-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536) [jetty-util-9.1.0.v20131115.jar:9.1.0.v20131115] | |
at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] | |
Caused by: com.fasterxml.jackson.databind.JsonMappingException: (was java.lang.NullPointerException) (through reference chain: org.springframework.hateoas.PagedResources["_embedded"]->java.util.UnmodifiableMap["plannedWorkloads"]->java.util.ArrayList[0]->org.springframework.hateoas.Resource["content"]) | |
at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:232) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:197) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.ser.std.StdSerializer.wrapAndThrow(StdSerializer.java:187) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:640) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.SerializerProvider.defaultSerializeValue(SerializerProvider.java:865) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at org.springframework.data.rest.webmvc.json.PersistentEntityJackson2Module$PersistentEntityResourceSerializer.serialize(PersistentEntityJackson2Module.java:198) ~[spring-data-rest-webmvc-2.0.0.RELEASE.jar:na] | |
at org.springframework.data.rest.webmvc.json.PersistentEntityJackson2Module$PersistentEntityResourceSerializer.serialize(PersistentEntityJackson2Module.java:135) ~[spring-data-rest-webmvc-2.0.0.RELEASE.jar:na] | |
at com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serializeContents(IndexedListSerializer.java:100) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serializeContents(IndexedListSerializer.java:21) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.ser.std.AsArraySerializerBase.serialize(AsArraySerializerBase.java:183) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.ser.std.MapSerializer.serializeFieldsUsing(MapSerializer.java:507) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:386) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at org.springframework.hateoas.hal.Jackson2HalModule$HalResourcesSerializer.serialize(Jackson2HalModule.java:283) ~[spring-hateoas-0.9.0.RELEASE.jar:na] | |
at org.springframework.hateoas.hal.Jackson2HalModule$HalResourcesSerializer.serialize(Jackson2HalModule.java:237) ~[spring-hateoas-0.9.0.RELEASE.jar:na] | |
at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:541) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:632) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:114) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.ObjectMapper.writeValue(ObjectMapper.java:1837) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at org.springframework.http.converter.json.MappingJackson2HttpMessageConverter.writeInternal(MappingJackson2HttpMessageConverter.java:204) ~[spring-web-3.2.6.RELEASE.jar:3.2.6.RELEASE] | |
... 82 common frames omitted | |
Caused by: java.lang.NullPointerException: null | |
at org.springframework.data.rest.webmvc.json.PersistentEntityJackson2Module$AssociationOmittingSerializerModifier.updateBuilder(PersistentEntityJackson2Module.java:251) ~[spring-data-rest-webmvc-2.0.0.RELEASE.jar:na] | |
at com.fasterxml.jackson.databind.ser.BeanSerializerFactory.constructBeanSerializer(BeanSerializerFactory.java:433) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.ser.BeanSerializerFactory.findBeanSerializer(BeanSerializerFactory.java:272) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.ser.BeanSerializerFactory._createSerializer2(BeanSerializerFactory.java:217) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.ser.BeanSerializerFactory.createSerializer(BeanSerializerFactory.java:152) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.SerializerProvider._createUntypedSerializer(SerializerProvider.java:1077) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.SerializerProvider._createAndCacheUntypedSerializer(SerializerProvider.java:1037) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.SerializerProvider.findValueSerializer(SerializerProvider.java:445) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.ser.impl.UnwrappingBeanPropertyWriter._findAndAddDynamic(UnwrappingBeanPropertyWriter.java:186) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.ser.impl.UnwrappingBeanPropertyWriter.serializeAsField(UnwrappingBeanPropertyWriter.java:87) ~[jackson-databind-2.3.1.jar:2.3.1] | |
at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:632) ~[jackson-databind-2.3.1.jar:2.3.1] | |
... 99 common frames omitted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment