exception
javax.servlet.ServletException: could not insert: [com.shop.model.hiberbean.Sub] org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) com.shop.struts.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:32)
root cause
org.hibernate.exception.GenericJDBCException: could not insert: [com.shop.model.hiberbean.Sub] org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:92) org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:80) org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:1777) org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:2178) org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:34) org.hibernate.engine.ActionQueue.execute(ActionQueue.java:239) org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:240) org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:160) org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:95) org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:184) org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:173) org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:96) org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:69) org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:468) org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:463) com.shop.model.DAO.SubDAO.save(SubDAO.java:36) com.shop.struts.action.ProductAction.doCheck(ProductAction.java:268) com.shop.struts.action.ProductAction.execute(ProductAction.java:118) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) com.shop.struts.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:32)