SSH常见异常笔记(4)

简介: SSH常见异常笔记(4)
org.springframework.orm.hibernate5.HibernateSystemException:Unknown integral data type for ids : java.lang.String; nested exception is org.hibernate.id.IdentifierGenerationException:Unknown integral data type for ids : java.lang.String  at org.springframework.orm.hibernate5.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:219)  at org.springframework.orm.hibernate5.HibernateTemplate.doExecute(HibernateTemplate.java:344)  at org.springframework.orm.hibernate5.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:309)  at org.springframework.orm.hibernate5.HibernateTemplate.save(HibernateTemplate.java:616)  at top.simba1949.erp.dao.impl.IDepDaoImpl.save(IDepDaoImpl.java:35)  at top.simba1949.erp.biz.impl.IDepBizImpl.save(IDepBizImpl.java:36)  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  at java.lang.reflect.Method.invoke(Method.java:498)  at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)  at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)  at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)  at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)  at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)  at com.sun.proxy.$Proxy51.save(Unknown Source)  at top.simba1949.erp.action.IDepAction.add(IDepAction.java:34)  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  at java.lang.reflect.Method.invoke(Method.java:498)  at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:891)  at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1293)  at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)  at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117)  at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:108)  at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1369)  at ognl.ASTMethod.getValueBody(ASTMethod.java:90)  at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)  at ognl.SimpleNode.getValue(SimpleNode.java:258)  at ognl.Ognl.getValue(Ognl.java:494)  at ognl.Ognl.getValue(Ognl.java:458)  at com.opensymphony.xwork2.ognl.OgnlUtil$2.execute(OgnlUtil.java:309)  at com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:340)  at com.opensymphony.xwork2.ognl.OgnlUtil.getValue(OgnlUtil.java:307)  at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:423)  at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:287)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:250)  at org.apache.struts2.interceptor.DeprecationInterceptor.intercept(DeprecationInterceptor.java:41)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)  at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)  at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:76)  at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)  at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)  at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)  at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:139)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)  at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)  at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:564)  at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)  at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)  at org.springframework.orm.hibernate5.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:151)  at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)  at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)  at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)  at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)  at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  at java.lang.Thread.run(Thread.java:748)Caused by: org.hibernate.id.IdentifierGenerationException:Unknown integral data type for ids : java.lang.String  at org.hibernate.id.IdentifierGeneratorHelper.getIntegralDataTypeHolder(IdentifierGeneratorHelper.java:204)  at org.hibernate.id.SequenceGenerator.buildHolder(SequenceGenerator.java:144)  at org.hibernate.id.SequenceGenerator.generateHolder(SequenceGenerator.java:119)  at org.hibernate.id.SequenceGenerator.generate(SequenceGenerator.java:109)  at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:101)  at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:192)  at org.hibernate.event.internal.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:38)  at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:177)  at org.hibernate.event.internal.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:32)  at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:73)  at org.hibernate.internal.SessionImpl.fireSave(SessionImpl.java:679)  at org.hibernate.internal.SessionImpl.save(SessionImpl.java:671)  at org.hibernate.internal.SessionImpl.save(SessionImpl.java:666)  at org.springframework.orm.hibernate5.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:620)  at org.springframework.orm.hibernate5.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:616)  at org.springframework.orm.hibernate5.HibernateTemplate.doExecute(HibernateTemplate.java:341)  ... 109 more

解决方案:实体类的字段类型和数据库的字段类型不匹配

目录
相关文章
在使用SSH+Spring开发webservice ,报的一些异常及处理方法
在使用SSH+Spring开发webservice ,报的一些异常及处理方法
262 0
在使用SSH+Spring开发webservice ,报的一些异常及处理方法
|
1月前
|
监控 Ubuntu Linux
使用VSCode通过SSH远程登录阿里云Linux服务器异常崩溃
通过 VSCode 的 Remote - SSH 插件远程连接阿里云 Ubuntu 22 服务器时,会因高 CPU 使用率导致连接断开。经排查发现,VSCode 连接根目录 ".." 时会频繁调用"rg"(ripgrep)进行文件搜索,导致 CPU 负载过高。解决方法是将连接目录改为"root"(或其他具体的路径),避免不必要的文件检索,从而恢复正常连接。
|
2月前
|
大数据 网络安全 数据安全/隐私保护
大数据-03-Hadoop集群 免密登录 超详细 3节点云 分发脚本 踩坑笔记 SSH免密 集群搭建(二)
大数据-03-Hadoop集群 免密登录 超详细 3节点云 分发脚本 踩坑笔记 SSH免密 集群搭建(二)
145 5
|
2月前
|
XML 大数据 网络安全
大数据-03-Hadoop集群 免密登录 超详细 3节点云 分发脚本 踩坑笔记 SSH免密 集群搭建(一)
大数据-03-Hadoop集群 免密登录 超详细 3节点云 分发脚本 踩坑笔记 SSH免密 集群搭建(一)
74 4
|
网络安全
SNETCracker.exe 2022/1/26 31:13:29----检查12.26.20.1:SSH登录发生异常!未能加载文件或程序集“ChilkatDotNet4.dll”或它的某一个依赖项
SNETCracker.exe 2022/1/26 31:13:29----检查12.26.20.1:SSH登录发生异常!未能加载文件或程序集“ChilkatDotNet4.dll”或它的某一个依赖项
372 0
|
网络安全 数据安全/隐私保护 Windows
[笔记]Windows Cyswin ssh配置及远程控制
[笔记]Windows Cyswin ssh配置及远程控制
129 0
|
Linux 网络安全 开发工具
[笔记]github SSH 配置
[笔记]github SSH 配置
|
Linux C语言 C++
[笔记]Win10+VSCode+CentOs7+SSH+gcc 远程开发C++(二)
[笔记]Win10+VSCode+CentOs7+SSH+gcc 远程开发C++(二)
162 0
[笔记]Win10+VSCode+CentOs7+SSH+gcc 远程开发C++(二)
|
Linux Python
[笔记]Win10+VSCode+CentOS7+SSH+远程开发Python
[笔记]Win10+VSCode+CentOS7+SSH+远程开发Python
158 0
|
Linux 网络安全 开发工具
[笔记]Win10+VSCode+CentOs7+SSH+gcc 远程开发C++(一)
[笔记]Win10+VSCode+CentOs7+SSH+gcc 远程开发C++
168 0