org.hibernate.QueryException - could not resolve property [问题点数:100分]

Bbs4
本版专家分:1387
结帖率 98%
Bbs4
本版专家分:1387
Bbs3
本版专家分:711
其他相关推荐
出现“org.hibernate.QueryException: could not resolve property”错误的解决,针对多对一的表的结构
ggg滚滚滚
jeecg条件查询出错
条件查询出现org.hibernate.QueryException: could not resolve property: serviceName of: weixin.apimarket.entity.ApiBankingUserAuthEntity错误 原因:是使用了实体类瞬态属性@Transient 解决办法:使用数据库已有属性进行查询
org.hibernate.QueryException: could not resolve property: DownloadFile
帮我找一下原因rnrnrn public DownloadFile get(String trueUrl, String baseUrl) rn DownloadFile downloadFile = (DownloadFile) sessionFactoryrn .getCurrentSession()rn .createQuery(rn "select d from SpiderUrls s inner join fetch s.DownloadFile as d where d.trueUrl =:trueUrl and s.pageUrl =: pageUrl")rn .setString("trueUrl", trueUrl).setString("pageUrl", baseUrl).uniqueResult();rn return downloadFile;rn rnrnrnrnrnorg.hibernate.QueryException: could not resolve property: DownloadFile of: com.spider.service.SpiderUrls [select d from com.spider.service.SpiderUrls s inner join fetch s.DownloadFile as d where d.trueUrl = :trueUrl and s.pageUrl =: pageUrl]rn at org.hibernate.persister.entity.AbstractPropertyMapping.propertyException(AbstractPropertyMapping.java:81)rn at org.hibernate.persister.entity.AbstractPropertyMapping.toType(AbstractPropertyMapping.java:75)rn at org.hibernate.persister.entity.AbstractEntityPersister.toType(AbstractEntityPersister.java:1451)rn at org.hibernate.hql.ast.tree.FromElementType.getPropertyType(FromElementType.java:312)rn at org.hibernate.hql.ast.tree.FromElement.getPropertyType(FromElement.java:487)rn at org.hibernate.hql.ast.tree.DotNode.getDataType(DotNode.java:611)rn at org.hibernate.hql.ast.tree.DotNode.prepareLhs(DotNode.java:263)rn at org.hibernate.hql.ast.tree.DotNode.resolve(DotNode.java:210)rn at org.hibernate.hql.ast.tree.FromReferenceNode.resolve(FromReferenceNode.java:117)rn at org.hibernate.hql.ast.HqlSqlWalker.createFromJoinElement(HqlSqlWalker.java:366)rn at org.hibernate.hql.antlr.HqlSqlBaseWalker.joinElement(HqlSqlBaseWalker.java:3583)rn at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3364)rn at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:3237)rn at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:724)rn at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:575)rn at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:292)rn at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:235)rn at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:254)rn at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:185)rn at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)rn at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:101)rn at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:80)rn at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:98)rn at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:156)rn at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:135)rn at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1760)rn at com.spider.service.DownloadFileService.get(DownloadFileService.java:33)rn at com.spider.service.DownloadFileService$$FastClassByCGLIB$$f3dc331c.invoke()rn at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)rn at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)rn at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)rn at com.spider.service.DownloadFileService$$EnhancerByCGLIB$$818c190c.get()rn at com.spider.extractor.ExtractorImage.download(ExtractorImage.java:102)rn at com.spider.extractor.ExtractorImage.extract(ExtractorImage.java:73)rn at org.archive.crawler.extractor.Extractor.innerProcess(Extractor.java:67)rn at org.archive.crawler.framework.Processor.process(Processor.java:109)rn at org.archive.crawler.framework.ToeThread.processCrawlUri(ToeThread.java:306)rn at org.archive.crawler.framework.ToeThread.run(ToeThread.java:154)rn
Hibernate常见错误
Hibernate常见错误1.错误:object references an unsaved transient instance - save the transient instance before flushing: com.xxxx.bean.java.Sysblog; nested exception is org.hibernate.TransientObjectExceptio
org.hibernate.QueryException: could not resolve property: dep_id of: pojo.Studen
public ArrayList getliststudent(String depname) rn ArrayList list=new ArrayList();rn Session session = HibernateSessionFactory.getSession();rn String hql="from Departments d where d.depname='"+depname+"'";rn List list1=session.createQuery(hql).list();rn Departments depart=new Departments();rn Iterator iter1=list1.iterator();rn if(iter1.hasNext())rn depart=(Departments) iter1.next();rn int id=depart.getDep_id();rn String hql1="from Student stu where stu.dep_id='"+id+"'";rn list= (ArrayList) session.createQuery(hql1).list();rn System.out.print(list.size());rn rn return list;rn rn rn注意:dep_id是外键rn
could not resolve property:
遇到了一个问题请教一下大家!先谢谢了哈!rn*.hbm.xml文件中有一个字段workfId的映射关系:rnrn rn rnrn我在查询中运用的是:rn public List getCombinationWorkfId(String workfId)rn rn Criteria criteria = getHibernateTemplate().getSessionFactory().openSession().createCriteria(Combination.class); rn criteria.add(Expression.eq("workfId","015"));rn List list = criteria.list(); rn System.out.print(list.size());rn getHibernateTemplate().getSessionFactory().close();rn return list; rn rn用debuge试也也能得到workId的值,但就是在 List list = criteria.list();取不到值,请各位指点!
could not resolve property
[b]rn用Criteria进行链表模糊查询时,报拉could not resolve property错,该怎么解决?rnrnrnrn/b]
HibernateQueryException: could not resolve property
org.springframework.orm.hibernate3.HibernateQueryException: could not resolve property: createSN.department.id of: cn.jbit.demo.entity.ClaimVoucher; nested exception is org.hibernate.QueryException: could not resolve property: createSN.department.id of: cn.jbit.demo.entity.ClaimVoucherrn at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:656)rn at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)rn at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:411)rn at org.springframework.orm.hibernate3.HibernateTemplate.executeFind(HibernateTemplate.java:343)rn at cn.jbit.demo.dao.impl.VoucherDaoImpl.getPage(VoucherDaoImpl.java:33)rn at cn.jbit.demo.service.impl.VoucherServiceImpl.getPage(VoucherServiceImpl.java:32)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)rn at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)rn at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)rn at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)rn at com.sun.proxy.$Proxy24.getPage(Unknown Source)rn at cn.jbit.demo.service.web.action.VoucherAction.searchClaimVoucher(VoucherAction.java:58)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)rn at org.apache.struts2.interceptor.DeprecationInterceptor.intercept(DeprecationInterceptor.java:41)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:139)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:562)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)rn at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)rn at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:277)rn at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2381)rn at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2370)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:745)rn使用Criteria查询时出现的问题,Hibernate用的是注解映射,能在JSP页面使用获取到值,求帮助
请问这是什么原因 org.hibernate.QueryException: could not resolve property: lsbh of: com.cisa.hibernate.sys.data.lspslsdb
请问这是什么原因 org.hibernate.QueryException: could not resolve property: lsbh of: com.cisa.hibernate.sys.data.lspslsdb [select new com.cisa.bean.databean.lspslsdbshow(lsdb.lsdh,lsdb.lsdmc,lsdb.dz,lsdb.dh,lsdb.sjlx,lsdb.lb) from com.cisa.hibernate.sys.data.lspslsdb as lsdb where lsdb.lsbh like :lsdbs or lsdb.lsdmc like :lsdbs order by lsdb.lsdh]rn
hibernate3报错: could not resolve property
求高手修改我的HQL语句。(SSH2/hibernate3)rnrn我的HQL语句如下:rnString hql = "From Question AS q WHERE q.qid IN(SELECT a.qid FROM Answer AS a WHERE a.userid=?)";rnrn报错信息:org.hibernate.QueryException: could not resolve property: qid of: org.lxh.myzngt.vo.Answer [From org.lxh.myzngt.vo.Question AS q WHERE q.qid IN(SELECT a.qid FROM org.lxh.myzngt.vo.Answer AS a WHERE a.userid=?)]rnrnrn表结构:表Answer 中有外键:qid 对应到表Question 中的q.id.rnrnQuestion.hbm.xml:rnrn rn rn rn rn rn rn rn rn rn rn rn rnrnAnswer.hbm.xml:rnrn rn rn rn rn rn rn rn rnrnrnrnQuestion.java:rnrnpublic class Question rn private int qid;rn private Set answers;rn public int getQid() rn return qid;rn rn public void setQid(int qid) rn this.qid = qid;rn rn public Set getAnswers() rn return answers;rn rn public void setAnswers(Set answers) rn this.answers = answers;rn rnrnrnAnswer.java:rnrnpublic class Answer rn private int aid;rn private int qid;rn private Question question;rn rn public Question getQuestion() rn return question;rn rn public void setQuestion(Question question) rn this.question = question;rn rn public int getAid() rn return aid;rn rn public void setAid(int aid) rn this.aid = aid;rn rn public int getQid() rn return qid;rn rn public void setQid(int qid) rn this.qid = qid;rn rn rn rnrn
could not resolve property: patientid of: com.dentist.domain.Case
之前的几个模块都没有报这个字段不匹配异常啊rnrn[code=java]rnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn[/code]rn[code=java]rnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn 照片rn rn rn rn rn rn rn rn rn rnrn[/code]rn[code=java]public Page findCase(Case c,Integer pageNum) rn rn DetachedCriteria dc = DetachedCriteria.forClass(Case.class);rn //患者idrn if(c.getPatient().getId()!=null)rn dc.add(Restrictions.eq("patientid", c.getPatient().getId()));rn rn //病历创建日期rn if(c.getDate() != null)rn dc.add(Restrictions.eq("date", c.getDate()));rn rn rn return findByPropertyWithCriteria(dc, pageNum);rn [/code]rn[code=java]rn /**rn * 分页rn */rn private Page findByPropertyWithCriteria(DetachedCriteria dc, int currPage) rn Session session = this.getSession();rn // 查总条数rn dc.setProjection(Projections.rowCount());rn Criteria c = dc.getExecutableCriteria(session);rn int countNum = (Integer) c.uniqueResult();//此行在运行时控制台报错rn // 总页数rn int totalPage = 1;rn if (countNum % Constants.PAGE_NUMBER == 0) rn totalPage = countNum / Constants.PAGE_NUMBER;rn else rn totalPage = countNum / Constants.PAGE_NUMBER + 1;rn rn Page page = new Page();rn page.setTotalPage(totalPage);rnrn // 去掉刚刚添加rowCount投影rn dc.setProjection(null);rn Criteria c1 = dc.getExecutableCriteria(session);rn int num = (currPage - 1) * Constants.PAGE_NUMBER;rn c1.setFirstResult(num);rn c1.setMaxResults(Constants.PAGE_NUMBER);rn List result = c1.list();rn page.setResult(result);rn page.setCurrPage(currPage);rn return page;rn [/code]
hibernate中 could not resolve property
hibernate could not resolve propertyrn配置是正确的,偶尔才会出现这个错误,求解。。。。。。
关于android studio升级3.0以后自动输出apk名的报错问题
升级gradle到3.0.1的时候,app.gradle报了如下几种错误错误:Could not get unknown property 'outputFile' for BuildType_Decorated{name=output, debuggable=false, testCoverageEnabled=false, jniDebuggable=false, pseudoLocalesE...
hibernate根据多属性查询报错:unexpected char :‘@’
解决SSH框架中hibernate根据多属性查询数据库报错:unexpected char :‘@’问题描述使用myeclipse工具对数据表进行逆向工程生成的DAO类中会有一个findByProperty方法: public List findByProperty(String propertyName, Object value) { log.debug("finding
Spring Boot之Test Case中placeholder信息无法找到的问题解决
引言: 在Spring Boot中的单元测试中,需要针对特定的场景进行测试,在其中碰到了placeholder的信息无法正确获取的问题,看看如何的解决的...
项目报错一
严重:Exception occurred during processing request:could not extract ResultSet            org.hibernate.exception.SQLGrammarException:could not extract ResultSet Caused by : java.sql.SQLException:O
在spring配置文件中设置读取jdbc.properties配置文件的时候报错
日期: 2016-7-13 内容: spring配置问价出错; 1、 spring配置文件配置数据库连接:
Andriod Studio科普篇——3.关于gradle插件的常见问题
1、andriod gradle插件版本过低。 出错位置: dependencies{ classpath 'com.android.tools.build:gradle:0.10.2' } 提示信息:You must use a newer version of the Android Gradle plugin. The minimum supported version is
[异常记录] 无法解析配置':app:debugRuntimeClasspath'的所有依赖项。
今天项目导入 com.writingminds:FFmpegAndroid:0.3.2 时出现: Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. Could not determine artifacts for com.writingminds:FFmpegAndroid:0....
could not resolve property: UserID of: com.Bean.Products [from com.Bean.Products
Products.java:rnpublic class Products rn private Integer productID;rn private String productName;rn private Integer userID;rn private String picture;rn private Integer counts;rn private Float price;rn private String productDsc;rn private Integer parentID;rn //getter&setter&construterrnxml:rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnDALProducts.java:rnpublic List findProductsByUserID(int id) rn String sql="from Products p where p.UserID=?";rn List list=new ArrayList();rn //testrn if (this.getHibernateTemplate()==null) rn System.out.println("get null value!");rn rn list = this.getHibernateTemplate().find(sql,new Integer(id)); rn return list;rn 配置文件感觉没有错啊 麻烦大神们帮忙看下!
[求高手解答]could not resolve property 的问题
could not resolve property: TSNotice of: org.jeecgframework.web.system.pojo.fwxt.TSNoticern 这里报错 差了下出错的方法是Hibernet中 下面这个方法rn private final Map typesByPropertyPath = new HashMap();rnrnrnpublic Type toType(String propertyName) throws QueryException rn Type type = (Type) typesByPropertyPath.get(propertyName);rn if ( type == null ) rn throw propertyException( propertyName );rn rn return type;rn rnrn这个问题 应该怎么解决 ? 求大神解答rn
idea 创建的maven+spring+mybatis项目整合 报错无法创建bean
最近在做一个由maven构建的spring+mybatis+struts2项目,刚开始的时候是用自己的老电脑Win7环境下的eclipse写的,托管到了码云上面,刚开始什么问题都没有 直到某一天在公司的时候无聊想继续写这个项目,于是就把这个项目clone了一份在公司用的电脑上,在公司用的是mac+idea,结果问题就来了,clone下来的代码居然不能运行!!!,各种看着一脸懵逼的报错信息(ide
hibernate报错:could not resolve property: roomTypes of:
这是异常信息:rnrn[code=text]could not resolve property: roomTypes of: com.qlw.hotelmanagenemt.model.Rooms [select r.roomId,r.roomTypes.typeName,r.roomStatus from com.qlw.hotelmanagenemt.model.Rooms r][/code]rnrn用的是注解的方式rnRooms跟RoomTypes是多对一的关系rn多方:rnrn[code=java]package com.qlw.hotelmanagenemt.model;rnrnimport javax.persistence.CascadeType;rnimport javax.persistence.Entity;rnimport javax.persistence.GeneratedValue;rnimport javax.persistence.JoinColumn;rnimport javax.persistence.ManyToOne;rnrnimport javax.persistence.Id;rnrnrn@Entityrnpublic class Rooms rnrn private int id;rn @Idrn @GeneratedValuern public int getId() rn return id;rn rn public void setId(int id) rn this.id = id;rn rn rn rn private RoomTypes roomTypes;rn rn @ManyToOne(cascade=CascadeType.ALL,targetEntity = RoomTypes.class)rn @JoinColumn(name="typeId",updatable=false,insertable=false)rn public RoomTypes getRoomtypes() rn return roomTypes;rn rn public void setRoomtypes(RoomTypes roomTypes) rn this.roomTypes = roomTypes;rn rn rn private int typeId;rn private String roomId;rn private int roomStatus;rn rn rn public int getTypeId() rn return typeId;rn rn public void setTypeId(int typeId) rn this.typeId = typeId;rn rn public String getRoomId() rn return roomId;rn rn public void setRoomId(String roomId) rn this.roomId = roomId;rn rn public int getRoomStatus() rn return roomStatus;rn rn public void setRoomStatus(int roomStatus) rn this.roomStatus = roomStatus;rn rn rnrn[/code]rnrn一方:rn[code=java]package com.qlw.hotelmanagenemt.model;rnrnimport java.util.ArrayList;rnimport java.util.Date;rnimport java.util.List;rnrnimport javax.persistence.Entity;rnimport javax.persistence.GeneratedValue;rnimport javax.persistence.JoinColumn;rnimport javax.persistence.OneToMany;rnrnimport javax.persistence.Id;rnrnrn@Entityrnpublic class RoomTypes rnrn private int id;rn @Idrn @GeneratedValuern public int getId() rn return id;rn rn public void setId(int id) rn this.id = id;rn rnrn private String typeName;rn private int bedNum;rn private String bedType;rn private int wifi; //0表示没有;1表示有rn private String area;rn private int price;rn private String remark;rn rn public String getTypeName() rn return typeName;rn rn public void setTypeName(String typeName) rn this.typeName = typeName;rn rn public int getBedNum() rn return bedNum;rn rn public void setBedNum(int bedNum) rn this.bedNum = bedNum;rn rn public String getBedType() rn return bedType;rn rn public void setBedType(String bedType) rn this.bedType = bedType;rn rn public int getWifi() rn return wifi;rn rn public void setWifi(int wifi) rn this.wifi = wifi;rn rn public String getArea() rn return area;rn rn public void setArea(String area) rn this.area = area;rn rn public int getPrice() rn return price;rn rn public void setPrice(int price) rn this.price = price;rn rn public String getRemark() rn return remark;rn rn public void setRemark(String remark) rn this.remark = remark;rn rn rnrn[/code]rnrn这是出错的地方:rnrn[code=java]public List getRooms() rn return (List)hibernateTemplate.find("select r.roomId,r.roomTypes.typeName,r.roomStatus from Rooms r");rn rn[/code]rnrnRoomInfo是一个DTOrn[code=java]package com.qlw.hotelmanagenemt.model;rnrnrnrnpublic class RoomInfo rnrn private int typeId;rn private String roomId;rn private int roomStatus;rn private String typeName;rn private int bedNum;rn private String bedType;rn private int wifi; //0表示没有;1表示有rn private String area;rn private int price;rn private String remark;rn rn rn public int getTypeId() rn return typeId;rn rn public void setTypeId(int typeId) rn this.typeId = typeId;rn rn public String getRoomId() rn return roomId;rn rn public void setRoomId(String roomId) rn this.roomId = roomId;rn rn public int getRoomStatus() rn return roomStatus;rn rn public void setRoomStatus(int roomStatus) rn this.roomStatus = roomStatus;rn rn public String getTypeName() rn return typeName;rn rn public void setTypeName(String typeName) rn this.typeName = typeName;rn rn public int getBedNum() rn return bedNum;rn rn public void setBedNum(int bedNum) rn this.bedNum = bedNum;rn rn public String getBedType() rn return bedType;rn rn public void setBedType(String bedType) rn this.bedType = bedType;rn rn public int getWifi() rn return wifi;rn rn public void setWifi(int wifi) rn this.wifi = wifi;rn rn public String getArea() rn return area;rn rn public void setArea(String area) rn this.area = area;rn rn public int getPrice() rn return price;rn rn public void setPrice(int price) rn this.price = price;rn rn public String getRemark() rn return remark;rn rn public void setRemark(String remark) rn this.remark = remark;rn rn rnrn[/code]rnrn新人求帮助!!!
Hibernate: 三种状态和CRUD四种操作
本篇博客是初学hibernate时笔记总结,主要总结hibernate的三种状态和hibernate的CRUD操作。1. hibernate的三种状态: Transient State : 瞬时状态; Persistent State : 持久状态; Detached State : 离线状态或托管状态;Transient State : 瞬时状态: 当我们new操作符初始化一个对象时,它处于瞬时
SSH-BOS项目:区域管理模块
RegionAction:package com.xushuai.bos.web.action; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframewo...
Spring配置报错
1. 报错信息 Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'tables' at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:17
使用svn出现的问题
问题一:visualSvn Server  创建好仓库后,在浏览器中没法访问。(错误提示:Error: OPTIONS of 'https://192.168.8.xx:8080/svn/aa': could not connect to server (https://192.168.8.xx:8080)  ) 查找解决方法: 1、查看”VisualSVN Repository Config
RN开发(1)__环境搭建与样例
目录 前言 正文 环境搭建 样例实现 问题整理(补充中) 相关资源链接 小结 Tip:使用”Ctrl+F”,在搜索框中输入问题 前言 先要了解几个相关的词汇Node.js,React...
gradle clean 失败的因素之一(连不上网)
bash: /Users/nfxchunyun/development/adt-bundle-mac-x86_64-20140321/sdk/tools: is a directory localhost:trunk nfxchunyun$ gradle clean                                                 FAILURE: Build
Tinker接入踩的坑
问题一: Error:A problem occurred configuring project ':app'. > Could not resolve all dependencies for configuration ':app:_debugApkCopy'.    > Could not resolve com.tencent.tinker:tinker-android-lib:1
最新配置dagger2,亲身经历,教你少走弯路!
不少同志看到网上配置dagger2的教程,结果可能一直报错,如下所示:  Error:Could not get unknown property 'classpath' for task ':app:transformJackWithJackForDebug' of type com.Android.build...... 这个时候我们需要检查自己是否是按照网上说的那样添加apt插件什么的,
myeclipse创建maven工程报错 Could not resolve
myeclipse创建maven工程报错 Could not resolve
archetype-catalog
新建maven项目时报Could not resolve archetype org.apache.maven.archetypes
springmvc 报无法解析视图异常
最近,前端nginx的日志一直在报一些URL的请求后端响应是500状态码,于是缓存其结果,可以看到一直是报一个 javax.servlet.ServletException: Could not resolve view with name 'xxxx'in servlet with name 'Spring MVC Dispatcher Servlet ‘的异常。         分析这些报这
总结SSH阶段常见的异常系列之二hibernate续
SSH阶段常见的异常系列之二hibernate续
resolve placeholder占位符不能被解析">Spring @Value("$XXX")注入值失败,错误信息提示:Could not resolve placeholder占位符不能被解析
问题原因: Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'wx.app.config.appid' in string value "${wx.app.config.appid}" 解决办法: 知道了怎么配置,就知道自己有没有配置错误,如果配置没有问题,那么就继续找问
AngularJS进阶(二)AngularJS路由问题解决
AngularJS路由问题解决 遇到了一个棘手的问题:点击优惠详情时总是跳转到药店详情页面中去。再加一层地址解决了,但是后来发现问题还是来了: Could not resolve 'yhDtlMaintain/yhdetail' from state 'yhMaintain' 药店详情http://192.168.1.118:8088/lmapp/index.html#/0   优惠券详情
Hibernate常见异常总结
系统配置 1.没有查找到src目录下的hibernate.cfg.xml Exception in thread "main" org.hibernate.HibernateException: /hibernate.cfg.xmlnot found 映射配置 2.在系统配置文件cfg.xml文件中写的映射文件名不存在 Exception in thread "main" org.hibernat
Hibernate4学习总结(3)--注解形式的基础映射,主键映射,基本属性映射,复合属性映射,继承映射。
Hibernate Annotation即hibernate注解,可以通过另一种方式将持久化类转化成表的相关信息,可以简化hibernate的配置文件。本文主要对Hibernate的注解进行讲解,由于篇幅原因,将注解部分分为两篇文章来写。集合映射和关联关系映射将在后面一文讲解。本文包括以下五个部分: 基础映射。主键映射。基本属性映射。复合属性映射。继承映射。 一、基础映射(注解
【MyBatis源码分析】TypeHandler解析属性配置元素详述及相关枚举使用高级进阶
TypeHandler解析接着看一下typeHandlerElement(root.evalNode("typeHandlers"));方法,这句读取的是<configuration>下的<typeHandlers>节点,代码实现为:private void typeHandlerElement(XNode parent) throws Exception { if...
测试回顾版-Loadrunner脚本编程(2)-
 Web用户Action    在VuGen中,脚本产生的默认模式是基于HTML的--“描述用户的动作的脚本”直接与用户的动作是对应的:    * web_url是浏览器地址栏的URL.    * web_link是点击在和之间的文本超链接。    * web_image是点击HTML的    * web_submit_form 是在前面操作的上下文中的GET或PUT表
【CentOS7】yum安装时出现错误Errno 14 Couldn't resolve host的解决办法
在安装python-sphinx时出现Errno 14 Couldn't resolve host,什么东东? [root@localhost jansson-1.2]# yum install python-sphinx Loaded plugins: fastestmirror http://yum.loway.ch/RPMS/repodata/repomd.xml: [Errno 14
微擎安装模块出现Could not resolve: update. 问题解决办法,亲测可用
微擎安装模块出现Could not resolve: wdl.weizancms.com 问题解决办法 当然:wdl.weizancms.com这个域名可能不一样 微擎安装模块出现Could not resolve,域名不一样 模板插件安装服务如果是win系统,修改hosts文件,新增: 127.0.0.1 wdl.weizancms.com 复制代码 如果是Linux系统,找到:etc/hos...
GitLab使用问题记录
GitLab 使用基本命令 记录提交时碰到问题及解决办法。
react_native环境问题
今天把项目移动到自己的电脑上进行开发,竟然出现了: Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not find com.android.support:appcompat-v7:23.0.1. Searched in the following locations:
can't resolve host-使用GIT 请求远程仓库时出现的问题以及解决办法
问题: can't resolve host-使用GIT 请求远程仓库时出现的问题,因以及解决,贴不出截图,出现这问题的原因不明,大致上应该是更改了网络代理引起的 解决: 因我不知道其他人是怎么解决该问题的,我也是误打误撞,记录一下,供大家参考: winsock的百度百科解释: winsock是Windows网络编程接口,winsock工作在应用层,它
【AndroidStudio】3.0升级gradle遇到的坑
升级了android studio3.0后,对于文件的搜索和方法中参数的使用,是一个重大的改变,但升级gradle后,缺出现很多的问题。个人整理一下,希望对大家有所帮助。 说明:我原来的环境是as2.3+gralde2.14.1+plugin2.2.3 升级后的环境是:as3.0+gradle4.2.1+plugin3.0.0 1、 Error:(82, 0) Ca
yum 安装时错误 Couldn't resolve host 解决办法
# vi /etc/resolv.conf添加一个 nameserver 8.8.8.8
搭建Hadoop-2.6.0集群
硬件配置 四台:IBM System x3650 M4(7915I51) 产品类别:机架式 产品结构:2U CPU型号:Xeon E5-2650 标配CPU数量:1颗 内存类型:ECC DDR3 内存容量:8GB 硬盘接口类型:SATA/SAS 标配硬盘容量:暂无数据 详细参数:http://detail.zol.com.cn/3
Spring MVC 对象中子对象的自动封装 异常处理
org.springframework.beans.NullValueInNestedPathException: Invalid property 'parent' of bean class [com.onlineexam.exam.core.entity.main.Permissions]: Could not instantiate property type [com.onlineexa
Gradle入门指南(二)
转载请标明出处: 本文出自:【ouyida3的博客】注意:本文内容都是通过gradle命令行完成,不涉及eclipse的插件。1、先阅读Gradle入门指南(一)2、常用命令gradle -v gradle build gradle build --stacktrace gradle publish gradle -q publish gradle clean gradle complieJav
使用databinding遇到的问题
Error:Failed to resolve: com.android.databinding:baseLibrary:1.1 Error:Failed to resolve: com.android.databinding:compiler:1.1 处理方式: 在build.gradle中加上 allprojects { repositories { jce
Android热修复—阿里的新一代热修复技术Sophix
我的简书:简书前言热修复作为当下热门的技术,在业界内比较著名的有阿里的AndFix、Dexposed,腾讯QQ空间的超级补丁技术和微信的Tinker。但是我对热修复基本没怎么研究过,由于最近一段时间了解到阿里发布了新一代热修复技术—Sophix。于是我决定折腾一波…一、开通移动热修复服务 1、注册阿里云账号,选择移动热修复服务 选择之后需要开通此功能,点击立即开通即可: 2、打开管理控制台,点击右上
阅读spring源码——编译、导入spring源码至eclipse
Release 表示 是正式的版本. RC stands for Release Candidate 表示 后选版本 M stands for milestone 表示里程碑版本. 一般而言, 稳定性由上而下, 依次降低. 注意: 本人在利用方式一导入到eclipse后会有各种不存在类型的错误,没有找到解决方案,对于jdk原因,可以buildpath jdk重新导入.在此推荐方式二。  ...
升级android studio3.0遇到的问题
问题1 场景: Error:A problem occurred configuring root project '项目名'. > Could not resolve all dependencies for configuration ':classpath'.    > Timeout waiting to lock artifact cache (/Users/Skyf/.grad
spring入门(16)--spring常见错误总结
本文转自 杨凯专属频道  在学习spring过程中遇见了种种不同的异常错误,这里做了一下总结,希望遇见类似错误的同学们共勉一下。 1. 错误一 Error creating bean with name 'helloServiceImpl' defined in class path resource [spring-service.xml]: Error setting propert
开启Hadoop2.6.0出现ssh无法解析主机名等错误提示的解决办法!
问题描述: 开启Hadoop时,出现如下信息: [root@hd-m1 /]# ./hadoop/hadoop-2.6.0/sbin/start-all.sh  This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh 15/01/23 20:23:41 WARN util.NativeCodeLoa
dubbo-admian的打包和平台搭建
本文简单介绍下dubbo-admin的搭建过程,包括dubbo-admin的打包细节,以及在打包过程中jdk8的一些坑的解决。
Eclipse archetype-catalog.xml
Eclipse Maven 创建Web 项目报错 Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webap
Android Studio倒入工程错误记录
1、gradle版本太低,如果倒入的工程依赖的版本较高,AndroidStudio就会自动下载并升级Gradle,由于AndroidStudio下载很慢,所以最好自己手动下载,具体步骤见 http://blog.csdn.net/zhang_ying_xian/article/details/51096487,感谢楼主。 2、Could not resolve org.slf4j:sl
kali问题集锦
使用kali时出现的问题: 一、apt-get update Could not resolve 'http.kali.org'
android问题解答
Q1:android studio出现错误:Error:Could not resolve all files for configuration ':app:debugAndroidTestRuntimeClasspath'. > Could not download junit.jar (junit:junit:4.12) > Could not get resource 'https://jc
Hibernate中in expected错误的原因之一。
执行查询的时候出了如下错误:net.sf.hibernate.QueryException: in expected: visitRecords [from ServiceVisitRecord visitRecords]     at net.sf.hibernate.hql.FromParser.token(FromParser.java:102)     at net.sf.
SpringBoot报错(八)返回页面报错
javax.servlet.ServletException: Could not resolve view with name 'test' in servlet with name 'dispatcherServlet
GIT文件的三种状态 & Git SSH秘钥问题(弄SSH到吐血了)
1-- 在目录下新建README.txt文件,接着,使用“git status”查看文件状态,如 可以看到,Git友好的标示出README.txt为“Untracked files”,并且提示使用“git add ...”的命令将文件包含到待提交清单中。 2-- 按照提示,使用“git add README.txt”命令,然后,使用“git status”查看文件状态,如 文件READM
Android Studio中support版本错误问题的处理
问题现象说实话,我真不知道Google是怎么想的,或者如这里所说的确是个BUG,也不知道为什么拖这么长时间没有解决掉,或者是我的RPWT。这问题的表现就是,在项目的build.gradle文件里,如果用传统的自动依赖处理方式:compile 'com.android.support:appcompat-v7:+'编译时系统就会去依赖最新版的support:21.0.0-rc1 。理论上这本不应该有
CentOS安装软件时提示找不到镜像:Couldn’t resolve host
Centos安装lamp时找不到镜像 Couldn’t resolve host ‘mirrorlist.centos.org’ 研究了一下这是报的错: [root@localhost etc]# yum install httpd 已加载插件:fastestmirror, langpacks Could not retrieve mirrorlist http://mirrorlist
Git基本命令整理
这篇博客的内容来自于我的未知笔记,整理到csdn上是为了让我的伙伴或zhe
Hibernate中in expected错误的原因之一
今天在执行语句查询时发现怎么都执行不了,换数据库别的表可以执行,以为是数据库表生成时哪里出了问题,一遍又一遍的对映射文件,数据库表,就是没有想出到底哪儿错了,还删了表重新生成表和索引,都没有办法。在网上看了一下资料突然明白,在Spring中没有配置BO。真晕!出现错误是:执行查询的时候出了如下错误:net.sf.hibernate.QueryException: in expected
spring用gradle导入eclipse时异常导致失败
一、出现的异常 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':spring-webmvc-tiles3:eclipseClasspath'. > Could not resolve all dependencies for configuration '
appcompat-v7和support-vector-drawable打包下载
appcompat-v7和support-vector-drawable打包下载,更多请查看博客:https://blog.csdn.net/xiayiye5/article/details/81304951
关于Spring加载classpath与classpath*的过程剖析
本篇文章是由朋友的一篇博客引出的,博客原文地址:http://jinnianshilongnian.iteye.com/blog/1416322     他这篇博客比较细的讲解了classpath与classpath*,以及通配符的使用,那些配置能成功加载到资源,那些配置加载不了资源。但是我相信仍然有很多同学不明白,为什么是这样的,知其然,不知其所以然,那么本篇文章将慢慢为你揭开神秘的面纱,让你
android 添加依赖出现Failed to resolve:"你添加的依赖名" 或者出现 debug@Compileclasspath问题
首先出现的问题是 debug@Compileclasspath的问题,经过一波百度之后都说是AS build.gradle版本3.0以上的问题,但是经过一波修改之后并没有什么卵用,并没有解决这个问题,并且出现了新的问题,就是Failed to resolve:.......这个问题了,这面贴下终极解决方案,希望可以帮到你。 问题截图: 解决方案:在整个工程的build.gradle中添
Android开发之Gradle笔记整理2-Gradle常用命令及UMeng多渠道打包实战
Title:Android开发之Gradle笔记整理2——Gradle常用命令及UMeng多渠道打包实战 Date:2015-04-06 21:54:47 Category:Android Develop Tag:技术,生活,Android Develop Author:EricTang在前一篇博客里我们简单快速的学习了一下Gradle的基本安装和配置,以及解决了其中遇到的一些小的错误,这篇
Could not resolve placeholder
2012-03-05 12:11:13,836] main org.springframework.web.context.ContextLoader ERROR - Context initialization failedrnorg.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name '_formLoginFilter' defined in null: Could not resolve placeholder 'ql.security.cas.server.loginUrl'rn at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:268)rn at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75)rn at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:553)rn at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:527)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:362)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3795)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:980)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:943)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rn[2012-03-05 12:11:13,840] main org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/anyangwrm] ERROR - Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
Velocity Could not resolve view
使用Velocity发送请求转发到vm文件报错???是几个意思??容器启动正常rnapplicationContext.xml配置:rn[code=html]rn rn rn rn rn rn rn rn rn [/code]rnrn[code=java]javax.servlet.ServletException: Could not resolve view with name 'test.vm' in servlet with name 'do'rn at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1190)rn at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:992)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:939)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)rn at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:662)[/code]rnrnrn
Mybatis使用中的几个问题
Mybatis使用中的几个问题 mapper.xml中允许入参为null interface mapper.java与mapper.xml自动注入绑定
Could not resolve host: http
curl_init请求返回Could not resolve host: http,系统linux,环境apache+phprn求解,急
ssh服务相关问题
1、在脚本中使用ssh命令,报如下错误: ssh: Could notresolve hostname T02-OSD101: Name or service not known lost connection 但是,在shell下使用ssh 到同一主机名,却没有报错;原因是什么? 使用telnet连接该机器,被拒绝了: huangjun:/bsdocfs/shell-script#te
在mybatis字段对应不上出现的小错误
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Could not set property 'printStyle' of 'class cn.itcast.jk.domain.Contract' with value
jedis应用实例
最近将redis整合到项目中,将redis作为cache使用,未来进一步作为消息推送使用。我通过jedis和spring配置实现操作redis。         spring配置
[React-native]第一行代码Helloworld及集成已有项目的方案
一、参考官方文档点击打开链接写了第一个文档hello world 二、开启学习ES 6第一步:部署支持环境 三、在已有项目中引入react native
Could not resolve placeholder 'hibernate.driverClassName'
将Tomcat下的SSH架构的项目移植到weblogic下,tomcat下是可以运行的rnrn在weblogic下部署项目rnrn部署成功,登陆页面点击登录报错No bean named 'sessionFactory' is definedrnrn然后我在weblogic.xml下加入rn rn true rn rnrn再在weblogic下部署,部署失败,并报错rnweblogic.application.ModuleException: :org.springframework.beans.factory.BeanDefinitionStoreException:Invalid bean definition with name 'dataSource' defined in file [D:\SDK\Workspace\Workspace fo MyEclipse\PersonnelPro\WebRoot\WEB-INF\classes\applicationContext-common.xml]: Could not resolve placeholder 'hibernate.driverClassName'rnrn我的applicationContext-common.xml文件rnrnrnrn rn rn rn rn classpath:hibernate.propertiesrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrn rn rnrn rn rn rn truern updatern rn org.hibernate.dialect.OracleDialectrn rn rn rn rn rn rn rn com/personnel/model/Message.hbm.xmlrn com/personnel/model/Organization.hbm.xmlrn com/personnel/model/User.hbm.xmlrn rn rn rnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn mgr rn rn rn rn rn rn rn rn transactionInterceptor rn rn rn rn rn rnrnrnrn我的web.xml文件rnrnrnrnrnrn rn rncontextConfigLocation rn classpath:applicationContext-*.xmlrnrn rn rn org.springframework.web.context.ContextLoaderListener rn rn rnrn rn rn rn encodingFilterrn org.springframework.web.filter.CharacterEncodingFilterrn rn encodingrn gbkrn rn rn rn pathfilterrn com.personnel.filter.FilterServletrn rn rn pathfilterrn /*rn rn rn rn rn struts2rn org.apache.struts2.dispatcher.FilterDispatcherrn rn rn rn hibernateFilterrn org.springframework.orm.hibernate3.support.OpenSessionInViewFilterrn rn rn hibernateFilterrn *.actionrn rn rn encodingFilterrn *.actionrn rn rn encodingFilterrn *.jsprn rn rn struts2rn *.actionrn rn rn rn rn ConnectorServletrn rn net.fckeditor.connector.ConnectorServletrn rn 1rn rnrn rn ConnectorServletrn /fckeditor/editor/filemanager/connectors/*rn rnrn rnrn login.jsprnrnrnrnrn
org.springframework.orm.hibernate3.HibernateQueryException: could not resolve pr
报错rn[code=text]rnorg.springframework.orm.hibernate3.HibernateQueryException: could not resolve property: userid of: com.smartcountry.domain.PowerService; nested exception is org.hibernate.QueryException: could not resolve property: userid of: com.smartcountry.domain.PowerServicern org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:656)rn org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)rn org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:411)rn org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)rn org.springframework.orm.hibernate3.HibernateTemplate.findByCriteria(HibernateTemplate.java:1046)rn com.smartcountry.dao.impl.PowerServiceDaoImpl.findByPage(PowerServiceDaoImpl.java:63)rn com.smartcountry.service.impl.UserServiceImpl.findByPage(UserServiceImpl.java:65)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn java.lang.reflect.Method.invoke(Method.java:601)rn org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)rn org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)rn org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)rn org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)rn org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)rn org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)rn sun.proxy.$Proxy8.findByPage(Unknown Source)rn com.smartcountry.action.UserAction.findBuyOrderAll(UserAction.java:110)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn java.lang.reflect.Method.invoke(Method.java:601)rn ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:870)rn ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1293)rn ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)rn com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117)rn com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:108)rn ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1369)rn ognl.ASTMethod.getValueBody(ASTMethod.java:90)rn ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)rn ognl.SimpleNode.getValue(SimpleNode.java:258)rn ognl.Ognl.getValue(Ognl.java:494)rn ognl.Ognl.getValue(Ognl.java:458)rn com.opensymphony.xwork2.ognl.OgnlUtil$2.execute(OgnlUtil.java:309)rn com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:340)rn com.opensymphony.xwork2.ognl.OgnlUtil.getValue(OgnlUtil.java:307)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:423)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:287)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:250)rn org.apache.struts2.interceptor.DeprecationInterceptor.intercept(DeprecationInterceptor.java:41)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)rn org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:76)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:139)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)rn org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)rn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:564)rn org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)rn[/code]rn[code=java]rnpublic List findByPage(User user, int begin, int pageSize) rn DetachedCriteria criteria = DetachedCriteria.forClass(PowerService.class).add(Restrictions.eq("state",new String("1")))rn .add(Restrictions.eq("userid", user))rn .addOrder(Order.desc("timer"));rn List list = this.getHibernateTemplate().findByCriteria(criteria,rn begin, pageSize);rn return list;rn rn[/code]rn出错的地方是 .add(Restrictions.eq("userid", user))rn不知道怎么解决,请教各位大神哥哥姐姐弟弟妹妹们
could not resolve service name ???
rnrnORA-12154: TNS:could not resolve service name rnrn/123/add.asp,行6 就是CONN。EXECUTE STRrnrn请问是怎么回事呀rn
Spring配置错误记录
更多Spring问题由于发生时未记录而遗忘了~~~~~~~ 现在动动手 解决方案由于不是源头分析因而仅供参考!!! 严重: Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListener jav
很奇怪的问题org.hibernate.QueryException: Unable to resolve path
[code=XML][/code]今天搞了个测试用myeclipse下oracle8.1.7和hibernate3.0+spring2.0做个测试,平台是tomcate6.0rnrn建了一个表叫test,里面有name,age等等几个属性吧rn然后做映射rn然后写dao查询rn用了HibernateTemplatern然后就出现怪事了rn如果用回调,使用createSQLQuery来运行sql语句,就没问题,一切查询正常rnrn如果运行hql语句,比如"from po.test where test.name = sdf"rn不管是直接用HibernateTemplate还是用回调,都会报下面这个错rnrnorg.hibernate.QueryException: Unable to resolve path [test.name], unexpected token [test] [SELECT * from po.test where test.name = sdf]rnrnrn配置文件test.hbm.xml,把头部声明去掉了,rn[code=XML]rnrn rn rn rn rn rn rn rn rn ………………此处省略许多property配置rn rnrn[/code]rnrnrnrnapplicationContext.xml也省略了头尾,拷来一个SessionFactory和一个dao的设置部分rn[code=XML]rn rn rn rn rn rn rn rn org.hibernate.dialect.Oracle8iDialectrn rn rn rn rn rn po/test.hbm.xmlrn rn rn rn rn rn rn rn rn rn[/code]rnrnrn请问到底是什么问题呢?
android studio 编译时遇到的各种问题(持续记录)
1, 我在使用small框架的使用,安装small提供的相关信息进行配置,然后出现了一下的错误。导致插件中的activity的R包导入失败。 Error:Execution failed for task ':app.main:preBuild'. > Could not get unknown property 'libraries' for task ':app.main:proc
腾讯Bugly异常监控集成
腾讯Bugly异常监控集成本文对bugly的集成及使用做简单的整理及说明集成Bugly SDK在Module的build.gradle文件中添加依赖和属性配置:dependencies { compile 'com.tencent.bugly:crashreport:latest.release' //其中latest.release指代最新版本号,也可以指定明确的版本号,例如2.1.5 }
将spring3源码导入进eclipse
环境准备 spring源码:spring-framework-3.2.18.RELEASE(githhub地址) jdk版本: jdk7(spring4需要使用jdk8) gradle: 3.1 (编译spring时会自动下载gradle,不会使用自己安装的。 该spring版本源码对应的build.gradle文件中定义了编译时使用的gradle的版本,使用ctrl+f搜索一下gradl
升级到AndroidStudio3.0 之后的遇到问题的处理(新建、方法数限制等)
转载:升级到AndroidStudio3.0 之后的遇到问题的处理(新建、方法数限制等) - 个人文章 - SegmentFault 思否  https://segmentfault.com/a/1190000012063649遇到的新问题:1,新建项目报错:Unable to resolve dependency for :app@debug/compileClasspath': Could n...
使用lifecycle时,1.0.0和1.0.3问题解决方法
lifecycle报错
异常解决:Hadoop启动出现ssh无法解析主机名等错误提示
先说一下刚搭建运行时报的错误:WARN util.NativeCodeLoader: Unable to load native-hadoop library for your plat
maven中无法下载依赖
Could not resolve dependencies for projectFailed to execute goal on project otsstreamreader: Could not resolve dependencies for project com.alibaba.datax:otsstreamreader:jar:0.0.1-SNAPSHOT: Could not ...
gradle下载更新依赖库失败的解决办法 - 依赖库下载加速1000%
现在的项目越来越多的使用gradle来构建项目,完成项目的依赖以及编译等工作。特别是有了google的Android Studio这个富二代,开发的Android项目默认支持gradle,搞得gradle从一个默默无闻的小妹子直接晋升为新一代的国民女神! 跟gradle互动的确能带来很多快感,不过这个妹子远在异国他乡,国内又没有适合它的(网络)环境,没有一个很好的家给她住(镜像库渠道来存储依赖
Spring MVC和shiro整合时自动注入的问题
spring mvc和shiro进行整合时,我采用的是注解的方式,也就是@Autowired,发现service服务无法再自定义的realm中进行注入,会出现以下错误。 Error creating bean with name 'shiroFilter' defined in class path resource [spring-shiro.xml]: Cannot resolve refe
我们是很有底线的