HTTP Status 500 - Request processing failed; nested exception is java.lang.RuntimeException: Value for id cannot be null


type Exception report

message Request processing failed; nested exception is java.lang.RuntimeException: Value for id cannot be null

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.RuntimeException: Value for id cannot be null
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894)
	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	projects.commons.monitor.MonitorFilter.doFilter(MonitorFilter.java:31)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

root cause

java.lang.RuntimeException: Value for id cannot be null
	com.keygentec.biz.persistence.model.KeygenProductExample$GeneratedCriteria.addCriterion(KeygenProductExample.java:219)
	com.keygentec.biz.persistence.model.KeygenProductExample$GeneratedCriteria.andIdEqualTo(KeygenProductExample.java:245)
	com.keygentec.biz.persistence.model.KeygenProductExample$Criteria.andIdEqualTo(KeygenProductExample.java:3894)
	com.keygentec.biz.persistence.manager.KeygenProductManager.getById(KeygenProductManager.java:69)
	com.keygentec.biz.service.KeygenProductService.getById(KeygenProductService.java:90)
	com.keygentec.biz.service.KeygenProductService.getBlobById(KeygenProductService.java:99)
	com.keygentec.controller.ProductController.prd(ProductController.java:261)
	sun.reflect.GeneratedMethodAccessor636.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:606)
	org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)
	org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
	org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
	org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
	org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
	org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	projects.commons.monitor.MonitorFilter.doFilter(MonitorFilter.java:31)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.59 logs.


Apache Tomcat/7.0.59