类型 异常报告消息 Papers is not mapped from Papers where url=健康科技看j or title =null; nested exception is orghibernatehqlastQuerySyntaxException Papers is not mapped from Papers where url=健康科技看j or title =nul
这是一个异常报告,报告了一个服务器遇到的意外情况,导致无法完成请求。具体的异常信息如下:
异常类型:org.springframework.orm.hibernate3.HibernateQueryException 异常描述:Papers is not mapped [ from Papers where url='健康科技,看,j' or title ='null'] 嵌套异常:org.hibernate.hql.ast.QuerySyntaxException: Papers is not mapped [ from Papers where url='健康科技,看,j' or title ='null']
异常堆栈信息:
- org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:660)
- org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
- org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:411)
- org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
- org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:912)
- org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:904)
- com.hdfix.dao.impl.PapersDaoImpl.selectBean(PapersDaoImpl.java:29)
- com.hdfix.action.PaperAction.Paperssave(PaperAction.java:144)
- sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- java.lang.reflect.Method.invoke(Method.java:498)
根据报错信息分析,可能是在查询Papers表时出现了问题,可能是因为Papers表未正确映射导致的。请检查数据库配置和映射文件,确保Papers表正确映射。
原文地址: https://www.cveoy.top/t/topic/hRTQ 著作权归作者所有。请勿转载和采集!