no setter found for property [问题点数:40分,结帖人qq_33626207]

Bbs1
本版专家分:0
结帖率 84.62%
Bbs6
本版专家分:8699
Blank
蓝花 2017年7月 Java大版内专家分月排行榜第三
Bbs5
本版专家分:3097
Blank
红花 2016年7月 Java大版内专家分月排行榜第一
Bbs2
本版专家分:146
no setter found for property看看这个问题
接口 rnpackage com.my.dao; rnrnpublic interface IUserDAO rn boolean login(String name, String password); rn rn实现类 rnpackage com.my.dao.imp; rnrnimport java.util.List; rnrnimport org.springframework.orm.hibernate3.support.HibernateDaoSupport; rnrnimport com.my.dao.IUserDAO; rnrnpublic class UserDAOImp extends HibernateDaoSupport implements IUserDAO rnrn private static final String hql = "from Users where username = ? and password = ?"; rn private List list; rnrn public boolean login(String name, String password) rn String[] param = new String[2]; rn param[0] = name; rn param[1] = password; rn list = this.getHibernateTemplate().find(hql, param); rn if (list.size() == 1) rn return true; rn rn return false; rn rn rnspring配置文件 rn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rn PROPAGATION_REQUIRED rn rn rn rn rn //这行报错 rn rn rn rn rn //这行报错 rn rn rn rn rn我以前用spring1.2这样写没报错,今天用spring2.0试了一下 居然报错 rnno <em>setter</em> <em>found</em> for <em>property</em> 'sessionFactory' in class 'com.my.dao.IUserDAO' rnno <em>setter</em> <em>found</em> for <em>property</em> 'IUserDAO' in class 'com.my.dao.imp.UserDAOImp' rn好像是说指定类里面没指定属性的set方法 我郁闷了 1。2的时候蛮好的 怎么2。0就这样了 rn请各位高人指点 rn
关于Property setter的问题
比如说,我有一个Property叫Width.rnrnpublic int Width set; get; rnrn这是最简单直接的方式.如果,我想在set的时候做些什么,我可以这么写:rnrnpublic int _width;rnrnpublic int Widthrnrn setrn rn _width = value;rn Console.Out.WriteLine(_width); //比如说显示出来rn //然后,再做些很复杂的东西.rn rn getrn rn return _width;rn rnrnrn我的问题是,有方法不额外定义local variable来实现吗? (_width)rn或者说,所有<em>setter</em>,不管Property名字是什么,不都可以用[b][color=#FF0000]value[/color][/b]来取得新的值嘛,那相对的被赋值的东西呢?rnrnpublic int Widthrnrn setrn rn Console.Out.WriteLine(value);rn //也做一些很复杂的东西.rn Width = value; //[color=#FF0000]这样是会死循环的.[/color]rn rn getrn rn //另外,没有local variable ( _width ),这里也不知道该return什么.rn rnrn
Spring2 +Hibernate3 配置时出现:“No setter found for property 'target'”!
在Spring2 +Hibernate3 配置时出现:“No <em>setter</em> <em>found</em> for <em>property</em> 'target' in class 'org.springframework.transaction.interceptor.TransactionProxyFactoryBean'”的错误!rnrn原代码如下:rnapplicationContext.xml里的代码:rnrnrnrnrn rn rn rn classpath:hibernate.cfg.xmlrn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn[color=#FF0000] [/color][color=#0000FF][/color]rn rn rn rn rn rn PROPAGATION_SUPPORTS,readOnlyrn rn rn rn rn rnrn请大家帮忙解决。rn
aop实现日志报错No setter found for property 'proxyinterface' in class
[code=XML]rn rn rn [/code]rnrn就是这行报错rnNo <em>setter</em> <em>found</em> for <em>property</em> 'proxyinterface' in class 'org.springframework.aop.framework.ProxyFactoryBean'rnrn请问哪里需要<em>setter</em>呀?
急急急!SSH问题,No setter found for property 'tTreeDao' in class 'com.web.bo.Home.TTre
我在applicationContext.xml中配置如下rnrnrn rn rn rn rn file:hibernate.cfg.xmlrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrnrn在bo里面代码:rnpackage com.web.bo.Home;rnrnimport java.util.ArrayList;rnimport java.util.List;rnrnimport org.springframework.context.ApplicationContext;rnimport org.springframework.context.support.FileSystemXmlApplicationContext;rnrnimport com.web.dao.Home.TTreeDao;rnimport com.web.po.TAuthority;rnimport com.web.po.TRole;rnimport com.web.po.TTree;rnrnpublic class TTreeBo rnrn private TTreeDao tTreeDao;rn private TAuthorityBo tAuthorityBo;rnrn public TTreeDao getTTreeDao() rn return tTreeDao;rn rnrnrn public void setTTreeDao(TTreeDao treeDao) rn tTreeDao = treeDao;rn rnrnrn public TAuthorityBo getTAuthorityBo() rn return tAuthorityBo;rn rnrnrn public void setTAuthorityBo(TAuthorityBo authorityBo) rn tAuthorityBo = authorityBo;rn rnrnrn /**rn * 根据角色查找出对应的功能rn * @param rolern * @returnrn */rn public List getTree(TRole tRole)rn TAuthority ta=new TAuthority();rn ta.setTRole(tRole);rn List list=new ArrayList();rn //tAuthorityBo.findByRole(ta)会返回一个Listrn for(TAuthority t:tAuthorityBo.findByRole(ta))rn list.add(t.getTTree());rn rn return list;rn rn rn public static void main(String[] args) rn TRole tRole=new TRole();rn tRole.setName("dd");rn ApplicationContext context=new FileSystemXmlApplicationContext("src/applicationContext.xml");rn TTreeBo bo=(TTreeBo)context.getBean("TTreeBo");rn List list=bo.getTree(tRole);rn System.out.println(list.size());rn rnrnrnrn求各位大侠帮忙解决,先谢谢了
附JAVA代码,急急急!SSH问题,No setter found for property 'tTreeDao' in
我在applicationContext.xml中配置如下rnrn[code=Java]rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn file:hibernate.cfg.xmlrn rn rn[/code]rnrn[code=Java]rnrn我的TTreeBo类rn private TTreeDao tTreeDao;rnrn public TTreeDao getTTreeDao() rn return tTreeDao;rn rnrnrn public void setTTreeDao(TTreeDao treeDao) rn tTreeDao = treeDao;rn rnrn[/code]rnrn我明明在TTreeBo里面有get和set方法,但是为什么报错啊???急急急,求求各位大侠出手相助,小弟先谢谢了rnrn
no setter found in property ...谁遇到类似的错误
我用了myeclipse的hibernate,springrnrn在applicationContext.xml文件里rn这里出错:rn rn 出错,提示no <em>setter</em> <em>found</em> in <em>property</em> "infoDAO" in service.Servicern rn rn rnrn这种问题不知道应该怎么解决?
【mybatis】There is no setter for property named xxx
异常详细信息如下,报错的位置是User类的uId属性的<em>setter</em>方法,可是我很确定<em>setter</em>方法没问题。更加诡异的是如果我把uId的getter和<em>setter</em>方法全删掉,再写一遍,然后重新部署,竟然没问题了。然后等我再用一会,重启了几次后,这个异常 又会蹦出来。大神们有什么想法,快被这个问题整吐了。rn另我一个同时说是Driver和User对应的两张表的主键名称相同(都是u_id)造成的,driver表外键引用user表rn[code=java]rnorg.apache.ibatis.reflection.ReflectionException: There is no <em>setter</em> for <em>property</em> named 'uId' in 'class com.yuedao.car.entity.User'rn at org.apache.ibatis.reflection.Reflector.getSetInvoker(Reflector.java:372)rn at org.apache.ibatis.reflection.MetaClass.getSetInvoker(MetaClass.java:174)rn at org.apache.ibatis.reflection.wrapper.BeanWrapper.setBeanProperty(BeanWrapper.java:167)rn at org.apache.ibatis.reflection.wrapper.BeanWrapper.set(BeanWrapper.java:57)rn at org.apache.ibatis.reflection.MetaObject.setValue(MetaObject.java:133)rn at org.apache.ibatis.executor.resultset.DefaultResultSetHandler.applyPropertyMappings(DefaultResultSetHandler.java:368)rn at org.apache.ibatis.executor.resultset.DefaultResultSetHandler.getRowValue(DefaultResultSetHandler.java:745)rn at org.apache.ibatis.executor.resultset.DefaultResultSetHandler.handleRowValuesForNestedResultMap(DefaultResultSetHandler.java:713)rn at org.apache.ibatis.executor.resultset.DefaultResultSetHandler.handleRowValues(DefaultResultSetHandler.java:264)rn at org.apache.ibatis.executor.resultset.DefaultResultSetHandler.handleResultSet(DefaultResultSetHandler.java:236)rn at org.apache.ibatis.executor.resultset.DefaultResultSetHandler.handleResultSets(DefaultResultSetHandler.java:150)rn at org.apache.ibatis.executor.statement.PreparedStatementHandler.query(PreparedStatementHandler.java:60)rn at org.apache.ibatis.executor.statement.RoutingStatementHandler.query(RoutingStatementHandler.java:73)rn at org.apache.ibatis.executor.ReuseExecutor.doQuery(ReuseExecutor.java:57)rn at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:267)rn at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:137)rn at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:120)rn at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:108)rn at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:102)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:358)rn at $Proxy12.selectList(Unknown Source)rn at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:198)rn at org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:119)rn at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:63)rn at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52)rn at $Proxy58.selectUsersOfPage(Unknown Source)rn at com.yuedao.car.service.impl.UserServiceImpl.getUserList(UserServiceImpl.java:24)rn at com.yuedao.car.controller.UserController.list(UserController.java:42)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)rn at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:749)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:689)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:938)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)rn at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:863)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)rn at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)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.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)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:619)rn[/code]rn
struts2+spring+hibernate中No property found
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'MemberServiceImpl' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.InvalidPropertyException: Invalid <em>property</em> 'memberDaoimpl' of bean class [cn.ssh.common.MemberServiceImpl]: No <em>property</em> 'memberDaoimpl' <em>found</em>rnrnCaused by: org.springframework.beans.InvalidPropertyException: Invalid <em>property</em> 'memberDaoimpl' of bean class [cn.ssh.common.MemberServiceImpl]: No <em>property</em> 'memberDaoimpl' <em>found</em>rn下面是我的applicationContext.xmlrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn cn/struts2/action/Menu.hbm.xmlrn rn rn rn rn org.hibernate.dialect.Oracle9Dialectrn truern rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn
No property 'driverClass' found
Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.InvalidPropertyException: Invalid <em>property</em> 'driverClass' of bean class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: No <em>property</em> 'driverClass' <em>found</em>
Property 'user_id' not found on type java.la
用SSH框架 在jsp页面出现错误rnrnrnaction 代码:rnpublic String queryMemorabilia() throws Exceptionrn List memo=idao.query("from Memorabilia order by memorabiliaDate desc");rn request.setAttribute("memo", memo);rn return "Memorabilia";rn rnjsprnrn rn 第条留言rn 留言内容rn 留言人rn rn rnrnrn
Caused by: org.hibernate.AnnotationException: Property of @IdClass not found in
rn异常:rn[code=text]严重: Context failedrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactoyr' defined in ServletContext resource [/WEB-INF/classes/applicationcontext.xml]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: Property of @IdClass not <em>found</em> in entity com.entity.Sc: conrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1507)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:299)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:295)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:625)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:493)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: org.hibernate.AnnotationException: Property of @IdClass not <em>found</em> in entity com.entity.Sc: conrn at org.hibernate.cfg.AnnotationBinder.fillComponent(AnnotationBinder.java:2390)rn at org.hibernate.cfg.AnnotationBinder.bindIdClass(AnnotationBinder.java:2503)rn at org.hibernate.cfg.AnnotationBinder.mapAsIdClass(AnnotationBinder.java:845)rn at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:671)rn at org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3537)rn at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3491)rn at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1376)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1781)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1865)rn at org.springframework.orm.hibernate4.LocalSessionFactoryBuilder.buildSessionFactory(LocalSessionFactoryBuilder.java:247)rn at org.springframework.orm.hibernate4.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:375)rn at org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:360)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1566)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1503)rn ... 21 morernrn十二月 20, 2013 4:40:58 下午 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactoyr' defined in ServletContext resource [/WEB-INF/classes/applicationcontext.xml]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: Property of @IdClass not <em>found</em> in entity com.entity.Sc: conrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1507)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:299)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:295)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:625)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:493)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: org.hibernate.AnnotationException: Property of @IdClass not <em>found</em> in entity com.entity.Sc: conrn at org.hibernate.cfg.AnnotationBinder.fillComponent(AnnotationBinder.java:2390)rn at org.hibernate.cfg.AnnotationBinder.bindIdClass(AnnotationBinder.java:2503)rn at org.hibernate.cfg.AnnotationBinder.mapAsIdClass(AnnotationBinder.java:845)rn at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:671)rn at org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3537)rn at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3491)rn at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1376)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1781)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1865)rn at org.springframework.orm.hibernate4.LocalSessionFactoryBuilder.buildSessionFactory(LocalSessionFactoryBuilder.java:247)rn at org.springframework.orm.hibernate4.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:375)rn at org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:360)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1566)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1503)rn ... 21 morern[/code]rnrn
Property 'title' not found on type org.apache.struts.action.DynaActionForm
[color=#FF0000]练习DynaActionForm , struts-config.xml中 中信息是这样写的[/color]rn[code=XML]rn rn rn rn rn rn rn rn rn rn rn [/code]rn[color=#FF0000]对应的PostAction 配置中 , name 属性也修改为HouseInfoDynaForm 。[/color]rn[code=XML]rn rn rn [/code]rn[color=#FF0000]在PostAction中的代码是这样写的[/color]rn[code=Java]DynaActionForm houseInfoDynaForm = (DynaActionForm)form ;rn HouseInfo houseInfo = new HouseInfo();rn houseInfo.setContactName(houseInfoDynaForm.getString("contactName"));rn houseInfo.setHall((Integer)houseInfoDynaForm.get("hall"));rn houseInfo.setHouseInfo(houseInfoDynaForm.getString("houseInfo"));rn houseInfo.setHouseType((Integer)houseInfoDynaForm.get("houseType")); rn houseInfo.setRent((Double)houseInfoDynaForm.get("rent"));rn houseInfo.setRoom((Integer)houseInfoDynaForm.get("room"));rn houseInfo.setStreetId((Integer)houseInfoDynaForm.get("streetId"));rn houseInfo.setTelephone(houseInfoDynaForm.getString("telephone"));rn houseInfo.setTitle(houseInfoDynaForm.getString("title"));rn[/code]rn[color=#FF0000]运行后报错 , 主要的错误是这样的[/color]rn[code=Java]严重: Servlet.service() for servlet jsp threw exceptionrnjavax.el.PropertyNotFoundException: Property 'title' not <em>found</em> on type org.apache.struts.action.DynaActionFormrn at javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:193)rn at javax.el.BeanELResolver$BeanProperties.access$400(BeanELResolver.java:170)rn at javax.el.BeanELResolver.<em>property</em>(BeanELResolver.java:279)rn at javax.el.BeanELResolver.getValue(BeanELResolver.java:60)rn at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)[/code]rnrn我也是初学这点 , 就是没看出错误出在哪里
Property 'Owner' not found on type kaiqi.helpu.beans.Friend
Property 'Owner' not <em>found</em> on type com.mall.beans.Friendrnrn请问:beans中属性: ‘Owner’有问题吗?我是说大写开头,Owner的getter <em>setter</em>都有,但就是页面找不到,rn我想问属性的写法,包括大小写 有影响吗?rn rn谢谢
javax.el.PropertyNotFoundException: Property '' not found on type java.lang.Stri
javax.el.PropertyNotFoundException: Property 'newsId' not <em>found</em> on type java.lang.Stringrn at javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:193)rn at javax.el.BeanELResolver$BeanProperties.access$400(BeanELResolver.java:170)rn at javax.el.BeanELResolver.<em>property</em>(BeanELResolver.java:279)rn at javax.el.BeanELResolver.getValue(BeanELResolver.java:60)rn at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)rn at org.apache.el.parser.AstValue.getValue(AstValue.java:118)rn at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)rn at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:935)rn at org.apache.jsp.move.part1_jsp._jspx_meth_s_005fiterator_005f0(part1_jsp.java:157)rn at org.apache.jsp.move.part1_jsp._jspService(part1_jsp.java:93)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)rn at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)rn at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)rn at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)rn at org.apache.jsp.move.myMain_jsp._jspx_meth_c_005fif_005f0(myMain_jsp.java:399)rn at org.apache.jsp.move.myMain_jsp._jspService(myMain_jsp.java:208)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)rn at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:154)rn at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)rn at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:362)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:266)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:130)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)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:235)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:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)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:849)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)rn at java.lang.Thread.run(Unknown Source)rn2010-8-6 16:59:46 org.apache.catalina.core.ApplicationDispatcher invokernrn rnrnrn 这个错是什么原因啊??rnrnrnrnrnrn
No property findDistinctEsBlogByTitle found for type EsBlog
[img=https://img-bbs.csdn.net/upload/201802/03/1517652355_429608.png][/img][img=https://img-bbs.csdn.net/upload/201802/03/1517652380_996152.png][/img][img=https://img-bbs.csdn.net/upload/201802/03/1517652395_147158.png][/img]rnrnrn WARN 24400 --- [ main] o.s.w.c.s.GenericWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'blogController': Unsatisfied dependency expressed through field 'esBlogRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'esBlogRepository': Invocation of init method failed; nested exception is org.springframework.data.mapping.PropertyReferenceException: No <em>property</em> findDistinctEsBlogByTitle <em>found</em> for type EsBlog!rn2018-02-03 16:48:24.680 INFO 24400 --- [ main] s.b.a.d.e.ElasticsearchAutoConfiguration : Closing Elasticsearch clientrn2018-02-03 16:48:24.680 INFO 24400 --- [ main] org.elasticsearch.node : [Rl'nnd] stopping ...rn2018-02-03 16:48:24.796 WARN 24400 --- [][generic][T#6]] org.elasticsearch.cluster.action.shard : [Rl'nnd] failed to send shard started to [Rl'nndfomIlv_HTAGVWmnVtZJH0Alocallocal[1]local=true]rnorg.elasticsearch.transport.SendRequestTransportException: [Rl'nnd][local[1]][internal:cluster/shard/started]rn at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:340) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:299) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.cluster.action.shard.ShardStateAction.shardStarted(ShardStateAction.java:123) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.cluster.action.shard.ShardStateAction.shardStarted(ShardStateAction.java:117) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.indices.cluster.IndicesClusterStateService$2.onRecoveryDone(IndicesClusterStateService.java:661) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.index.shard.StoreRecoveryService$1.run(StoreRecoveryService.java:156) ~[elasticsearch-2.4.6.jar:2.4.6]rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_151]rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_151]rn at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]rnCaused by: org.elasticsearch.transport.TransportException: TransportService is closed stopped can't send requestrn at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:320) ~[elasticsearch-2.4.6.jar:2.4.6]rn ... 8 common frames omittedrn2018-02-03 16:48:24.798 WARN 24400 --- [][generic][T#5]] org.elasticsearch.cluster.action.shard : [Rl'nnd] failed to send shard started to [Rl'nndfomIlv_HTAGVWmnVtZJH0Alocallocal[1]local=true]rnorg.elasticsearch.transport.SendRequestTransportException: [Rl'nnd][local[1]][internal:cluster/shard/started]rn at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:340) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:299) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.cluster.action.shard.ShardStateAction.shardStarted(ShardStateAction.java:123) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.cluster.action.shard.ShardStateAction.shardStarted(ShardStateAction.java:117) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.indices.cluster.IndicesClusterStateService$2.onRecoveryDone(IndicesClusterStateService.java:661) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.index.shard.StoreRecoveryService$1.run(StoreRecoveryService.java:156) ~[elasticsearch-2.4.6.jar:2.4.6]rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_151]rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_151]rn at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]rnCaused by: org.elasticsearch.transport.TransportException: TransportService is closed stopped can't send requestrn at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:320) ~[elasticsearch-2.4.6.jar:2.4.6]rn ... 8 common frames omittedrn2018-02-03 16:48:24.799 WARN 24400 --- [][generic][T#4]] org.elasticsearch.cluster.action.shard : [Rl'nnd] failed to send shard started to [Rl'nndfomIlv_HTAGVWmnVtZJH0Alocallocal[1]local=true]rnorg.elasticsearch.transport.SendRequestTransportException: [Rl'nnd][local[1]][internal:cluster/shard/started]rn at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:340) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:299) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.cluster.action.shard.ShardStateAction.shardStarted(ShardStateAction.java:123) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.cluster.action.shard.ShardStateAction.shardStarted(ShardStateAction.java:117) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.indices.cluster.IndicesClusterStateService$2.onRecoveryDone(IndicesClusterStateService.java:661) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.index.shard.StoreRecoveryService$1.run(StoreRecoveryService.java:156) ~[elasticsearch-2.4.6.jar:2.4.6]rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_151]rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_151]rn at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]rnCaused by: org.elasticsearch.transport.TransportException: TransportService is closed stopped can't send requestrn at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:320) ~[elasticsearch-2.4.6.jar:2.4.6]rn ... 8 common frames omittedrn2018-02-03 16:48:24.800 WARN 24400 --- [][generic][T#1]] org.elasticsearch.cluster.action.shard : [Rl'nnd] failed to send shard started to [Rl'nndfomIlv_HTAGVWmnVtZJH0Alocallocal[1]local=true]rnorg.elasticsearch.transport.SendRequestTransportException: [Rl'nnd][local[1]][internal:cluster/shard/started]rn at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:340) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:299) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.cluster.action.shard.ShardStateAction.shardStarted(ShardStateAction.java:123) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.cluster.action.shard.ShardStateAction.shardStarted(ShardStateAction.java:117) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.indices.cluster.IndicesClusterStateService$2.onRecoveryDone(IndicesClusterStateService.java:661) ~[elasticsearch-2.4.6.jar:2.4.6]rn at org.elasticsearch.index.shard.StoreRecoveryService$1.run(StoreRecoveryService.java:156) ~[elasticsearch-2.4.6.jar:2.4.6]rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_151]rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_151]rn at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]rnCaused by: org.elasticsearch.transport.TransportException: TransportService is closed stopped can't send requestrn at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:320) ~[elasticsearch-2.4.6.jar:2.4.6]rnrnrnrn
java.lang.NoSuchMethodException: Property 'name' has no setter method?
[code=HTML]rnrnrnrn rn Insert title herernrnrn rn rn use_name: rn age: rn job: rn rn rnrn[/code]rn[code=Java]rnpackage testPackage;rnrnimport java.io.*;rnimport java.lang.reflect.InvocationTargetException;rnrnimport javax.servlet.*;rnimport javax.servlet.annotation.*;rnimport javax.servlet.http.*;rnimport org.apache.commons.beanutils.*;rnimport coreservlets.ServletUtilities;rnrn/** Servlet that reads a code snippet from the requestrn * and displays it inside a PRE tag. Fails to filterrn * the special HTML characters.rn * rn * Taken from Core Servlets and JavaServer Pages 2nd Editionrn * from Prentice Hall and Sun Microsystems Press,rn * http://www.coreservlets.com/.rn * © 2003 Marty Hall; may be freely used or adapted.rn */rn@WebServlet("/BadCodeServlet")rnpublic class BadCodeServlet extends HttpServlet rn public void doGet(HttpServletRequest request,rn HttpServletResponse response)rn throws ServletException, IOException rn rn response.setContentType("text/html");rn PrintWriter out = response.getWriter();rn YourInformation you=new YourInformation();rn rn try rn BeanUtils.populate(you, request.getParameterMap());rn catch (IllegalAccessException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn catch (InvocationTargetException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn String title = "Code Sample";rn String docType =rn "\n";rn out.println(docType +rn "\n" +rn " " + title + "\n" +rn "\n" +rn " " + title + "\n" +rn "name:"+you.getName()+rn "name:"+request.getParameterMap()+rn " job:"+you.getJob()+rn " age:"+you.getAge()+rn rn "");rn rn rn rnrn protected String getCode(HttpServletRequest request) rn return ServletUtilities.filter(request.getParameter("code"));rn rnrnrnclass YourInformationrn String name;rn String job;rn int age;rn public void setName(String name)rn this.name=name;rn rn public String getName()rn return name;rn rn public void setJob(String job)rn this.job=job;rn rn public String getJob()rn return job;rn rn public void setAge(int age)rn this.age=age;rn rn public int getAge()rn return age;rn rn rnrn[/code]rnrnrn咋会总不对呢[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/13.gif][/img]
使用property升级getter和setter方法
class Money(object): def __init__(self): self.__money = 0 def getMoney(self): return self.__money def setMoney(self,value): if isinstance(value,int) ...
Property 'usertype' not found on type oracle.jdbc.driver.OracleResultSetImpl的问题
org.apache.jasper.JasperException: An exception occurred processing JSP page /pages/users/users_manager.jsp at line 41rnrn38: rn39: rn40: rn41: $uu.usertype rn42: ssrn43: ssrn44: ssrnrnrnStacktrace:rn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:435)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:157)rn org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)rn com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:374)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:278)rn org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)rn org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:211)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:211)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:90)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)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:249)rn com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:192)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)rn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:510)rn org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rnrnrnroot cause rnrnjavax.el.PropertyNotFoundException: Property 'usertype' not <em>found</em> on type oracle.jdbc.driver.OracleResultSetImplrn javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:193)rn javax.el.BeanELResolver.<em>property</em>(BeanELResolver.java:267)rn javax.el.BeanELResolver.getValue(BeanELResolver.java:60)rn javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)rn org.apache.el.parser.AstValue.getValue(AstValue.java:97)rn org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)rn org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:923)rn org.apache.jsp.pages.users.users_005fmanager_jsp._jspx_meth_c_005fforEach_005f0(users_005fmanager_jsp.java:152)rn org.apache.jsp.pages.users.users_005fmanager_jsp._jspService(users_005fmanager_jsp.java:97)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:157)rn org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)rn com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:374)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:278)rn org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)rn org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:211)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptrnrn以前用的时候也遇到过,不过这次貌似有些不一样:rnJSP页面代码:rnrn rn $uu.username rn $uu.password rn $uu.usertype rn $uu.parentagent rn 编辑 | 删除rn rn rn实体类代码:rn private String username;rn private String password;rn private String usertype;rn private String parentagent;rnrnpublic String getUsername() rn return this.username;rn rnrn public void setUsername(String username) rn this.username = username;rn rnrn public String getPassword() rn return this.password;rn rnrn public void setPassword(String password) rn this.password = password;rn rnrn public String getUsertype() rn return this.usertype;rn rnrn public void setUsertype(String usertype) rn this.usertype = usertype;rn rnrn public String getParentagent() rn return this.parentagent;rn rnrn public void setParentagent(String parentagent) rn this.parentagent = parentagent;rn rn看上去代码没问题啊,但是,问题到底出在哪里了呢?求解....
ReferenceError: Error #1069: Property isChecked not found on flash.events.EventD
自己写了一个checkbox,当选择的时候没有问题,可是当datagrid排序后再选中就会出现下面的错误,大家帮看看什么原因啊?rnReferenceError: Error #1069: Property isEnabled not <em>found</em> on flash.events.EventDispatcher and there is no default value.rn at mx.controls::Button/set data()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\Button.as:1102]rn at mx.controls.dataGridClasses::DataGridBase/setupColumnItemRenderer()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\dataGridClasses\DataGridBase.as:1209]rn at mx.controls.dataGridClasses::DataGridBase/makeRow()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\dataGridClasses\DataGridBase.as:934]rn at mx.controls.dataGridClasses::DataGridBase/makeRows()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\dataGridClasses\DataGridBase.as:789]rn at mx.controls.dataGridClasses::DataGridBase/makeRowsAndColumns()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\dataGridClasses\DataGridBase.as:694]rn at mx.controls::DataGrid/makeRowsAndColumns()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\DataGrid.as:1847]rn at mx.controls.listClasses::ListBase/makeRowsAndColumnsWithExtraRows()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\listClasses\ListBase.as:1742]rn at mx.controls.listClasses::ListBase/updateDisplayList()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\listClasses\ListBase.as:4383]rn at mx.controls.dataGridClasses::DataGridBase/updateDisplayList()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\dataGridClasses\DataGridBase.as:682]rn at mx.controls::DataGrid/updateDisplayList()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\DataGrid.as:1746]rn at mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\listClasses\ListBase.as:3963]rn at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736]rn at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:819]rn at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]
javax.el.PropertyNotFoundException 是怎么回事儿 (Property 'AdminName' not found……)
javax.el.PropertyNotFoundException: Property 'AdminName' not <em>found</em> on type com.felinc.admin.vo.AdminVOrnrn系统抛出这个异常 但是我下断点调试时 VO 的'AdminName'里面有值,怎么解决。rn请高手指点,小弟雪地里跪求,在线等。
javax.el.PropertyNotFoundException: Property 'id' not found on type java.lang.St
rnrnrnrnrn 信息展示rn rnrnrn rn rn rn rn rn 标记rn 用戶名rn 密码rn 年龄rn 文件信息rn rn rn rn rn rn rn $info.userNamern $info.passwordrn $info.agern rn rn rn rn rn rn rn  &nbsprn  &nbsprn  &nbsprn rn rn rnrn rnrnrn rn rn rn rn 存储路径rn rn rn $picPathrn rn rn rn rnrnrn rn rn rnrnrnrnpublic String getFile()rn String id = this.getRequest().getParameter("ID");rn String picPath = this.baseService.getFile(id);rn this.getRequest().setAttribute("picPath", picPath);rn return "list";rn rnrn为什么我运行了javax.el.PropertyNotFoundException: Property 'id' not <em>found</em> on type java.lang.String这个异常啊
ssh报错: No property 'eBclass1EntityDao' found 高手求助!!
老是提示找不到 eBclass1EntityDao,我在Bclass1Service.java里添加了get和set都还是报错!请问是否漏了要注意的地方!搞了几天了!请高手帮下忙!rn错误提示:rnError creating bean with name 'eBclass1EntityService' defined in ServletContext resource [/WEB-INF/applicationContext-service.xml]: Initialization of bean failed; nested exception is org.springframework.beans.InvalidPropertyException: Invalid <em>property</em> 'eBclass1EntityDao' of bean class [com.kingstarit.M811project.service.basemgr.Bclass1Service]: No <em>property</em> 'eBclass1EntityDao' <em>found</em>rn。。。。。rnCaused by: org.springframework.beans.InvalidPropertyException: Invalid <em>property</em> 'eBclass1EntityDao' of bean class [com.kingstarit.M811project.service.basemgr.Bclass1Service]: No <em>property</em> 'eBclass1EntityDao' <em>found</em>rnrnBclass1Service代码:rn[code=Java]public class Bclass1Service implements IBclass1Service, LocalBclass1Service rnrnrn private LocalBclass1Dao eBclass1EntityDao;rn rn public Bclass1 getById(Long id) rn Bclass1 obj = eBclass1EntityDao.load(id);rn return obj;rn rn rn public PageData listResult(Map map, int targetPage, int pageSize) rn return eBclass1EntityDao.getListByParam(map, targetPage, pageSize);rn rn rn public Bclass1 saveOrUpdate(Bclass1 entity) rn if ((entity.getId() == null) || (entity.getId().intValue() == 0)) rn eBclass1EntityDao.save(entity);rn else rn eBclass1EntityDao.update(entity);rn rn return entity;rn rn rn public boolean delete(Bclass1 entity) rn eBclass1EntityDao.delete(entity);rn return true;rn rn rn public boolean deleteEntitys(String ids) rn rn return true;rn rnrn public LocalBclass1Dao getBclass1EntityDao() rn return eBclass1EntityDao;rn rnrn public void setBclass1EntityDao(LocalBclass1Dao bclass1EntityDao) rn this.eBclass1EntityDao = bclass1EntityDao;rn rn[/code]rnrnapplicationContext-service.xml代码:rn[code=XML]rnrnrnrn rn rn rn rn rnrn rn rn rn rn rnrn rn rn rn rn rnrn rn rn rn rn rnrn rn rn rn rn rnrn rn rn rn rn rnrn rn rn rn rn rnrn rn rn rn rnrn rnrn rnrn[/code]
关于Struts+spirng+hibernate,Tomcat启动报错:No property 'SessionFactory' found
我在搭建一个测试SSH结构的小例子。启动tomcat的时候总是报错。不知道怎么改,希望大家指教一下。rnrn[b]错误信息:[/b]rn org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'empDao' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.InvalidPropertyException: Invalid <em>property</em> 'SessionFactory' of bean class [andyWebTestSpringDao.EmpHome]: No <em>property</em> 'SessionFactory' <em>found</em>rnrnandyWebTestSpringDao.EmpHome继承自"HibernateDaoSupport".
javax.naming.NamingException: No set method found for property: descrīption
server.xmlrn[code=XML] rnrn rn [/code]rncontext.xmlrn[code=XML][/code]rn/webapps/**/WEB-INF/web.xmlrn[code=XML]rn DB Connectionrn jdbc/connPoolrn javax.sql.DataSourcern Containerrn [/code]rnrncommons.xmlrn[code=XML]rn rn rn rn rn rn rn rn rn rn rn rnrn rn rn rn com/kds/pojo/xml/User.hbm.xmlrn com/kds/pojo/xml/Authority.hbm.xmlrn com/kds/pojo/xml/Contract.hbm.xmlrn com/kds/pojo/xml/Contracttype.hbm.xmlrn com/kds/pojo/xml/Landmark.hbm.xmlrn com/kds/pojo/xml/Orders.hbm.xmlrn com/kds/pojo/xml/Product.hbm.xmlrn com/kds/pojo/xml/Project.hbm.xmlrn com/kds/pojo/xml/Projectuserrelation.hbm.xmlrn com/kds/pojo/xml/Rightrolerelation.hbm.xmlrn com/kds/pojo/xml/Role.hbm.xmlrn com/kds/pojo/xml/Suit.hbm.xmlrn com/kds/pojo/xml/Suitproductrelation.hbm.xmlrn com/kds/pojo/xml/Suitproductrelationinorder.hbm.xmlrn com/kds/pojo/xml/Task.hbm.xmlrn com/kds/pojo/xml/Taskuserrelation.hbm.xmlrn rn rn rn rn org.hibernate.dialect.MySQLDialectrn updatern truern autorn truern truern truern rn rn rn [/code]rnrn在网上找到的帖子都是关于tomcat7.0bug的补丁解决办法,但我的问题应该不是bug的问题。rn现在的现象是,我网站正常启动了,但是客户端一提交表单到服务器查询就出现javax.servlet.ServletException: java.lang.NullPointerException的空指针错误,我觉得像是C3P0的配置没有连接上数据库而是对象为空造成的,但是为什么连不上我搞了2天都没找到原因,有没有遇到过同样问题的同志给点提示。
name not found accessing external object property documents
用oleObject 输出内容到word时 rn运行到此句 出现错误:application ternimated:name not <em>found</em> accessing external object <em>property</em> documentsrnole_obj.Doucuments.add("C:\normal.dot",false,0)rnrnrn请问怎么解决
The property named 'addnen' not found in Entity definition.
在数据库表里加了个列就出现这个错误:rnThe <em>property</em> named 'addnen' not <em>found</em> in Entity definition. rn说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: Game.Utils.DataHelper+PropertyNotFoundException: The <em>property</em> named 'ChouShui' not <em>found</em> in Entity definition.rnrn源错误: rnrnrn行 52: if ( <em>property</em> == null )rn行 53: rn[color=#FF0000]行 54: throw new PropertyNotFoundException( column.ColumnName );[/color]rn行 55: rn行 56: Type <em>property</em>Type = <em>property</em>.PropertyType;rnrnrn源文件: D:\web\Admin\Game.Utils\Utils\DataHelper.cs 行: 54 rn rn
着急!!!javax.el.PropertyNotFoundException: Property 'EmployeeID' not found on type
[code=Java]rnpackage bean;rnrnpublic class Employee rn private String EmployeeID;rn private String EmployeeName;rn private String BirthDate;rn private String HireDate;rn public String getEmployeeID() rn return EmployeeID;rn rn public void setEmployeeID(String employeeID) rn EmployeeID = employeeID;rn rn public String getEmployeeName() rn return EmployeeName;rn rn public void setEmployeeName(String employeeName) rn EmployeeName = employeeName;rn rn public String getBirthDate() rn return BirthDate;rn rn public void setBirthDate(String birthDate) rn BirthDate = birthDate;rn rn public String getHireDate() rn return HireDate;rn rn public void setHireDate(String hireDate) rn HireDate = hireDate;rn rn public Employee(String employeeID, String employeeName, String birthDate,rn String hireDate) rn EmployeeID = employeeID;rn EmployeeName = employeeName;rn BirthDate = birthDate;rn HireDate = hireDate;rn rnrnrn[/code]rnrn[code=Java]rnpublic ArrayList sort(String dest) rn ArrayList list = new ArrayList();rn Employee em = null;rn ResultSet rs = null;rn String sql = "select EmployeeID,LastName+' '+FirstName as EmployeeName,"rn + "BirthDate,HireDate from Employees order by " + dest + " asc";rn PreparedStatement ps = null;rn try rn Connection con = getConnection();rn ps = con.prepareStatement(sql);rn rs = ps.executeQuery();rn while (rs.next()) rn em = new Employee(rs.getString("EmployeeID"), rsrn .getString("EmployeeName"), rs.getString("BirthDate"),rn rs.getString("HireDate"));rn list.add(em);rn rnrn catch (Exception e) rn e.printStackTrace();rn rn return list;rn rn[/code]rnrn[code=Java]rnpublic void service(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rnrn DBUtil db=new DBUtil();rn ArrayList list=db.sort("EmployeeID");rn request.setAttribute("list", list);rn request.getRequestDispatcher("index.jsp").forward(request, response);rn rn[/code]rnrn[code=HTML]rn rn rn $list.EmployeeID rn $list.EmployeeName rn $list.BirthDatern $list.HireDate rn rn rn[/code]rnrn出现这个异常——javax.el.PropertyNotFoundException: Property 'EmployeeID' not <em>found</em> on type 那位仁兄帮帮忙?十分感谢!
奇怪的javax.el.PropertyNotFoundException: Property 'XX' not found on type com.XX
rn$bean.WjQuestionnaire.id,'$bean.TGraduate.idcard'rnrn报错:javax.el.PropertyNotFoundException: Property 'WjQuestionnaire' not <em>found</em> on type com.hjl.model.WjParticipantsGraduaternrnJAVABEAN:rnprivate WjQuestionnaire WjQuestionnaire;rn private TGraduate TGraduate;rnrnpublic WjQuestionnaire getWjQuestionnaire() rn return WjQuestionnaire;rn rn public void setWjQuestionnaire(WjQuestionnaire wjQuestionnaire) rn WjQuestionnaire = wjQuestionnaire;rn rn public TGraduate getTGraduate() rn return TGraduate;rn rn public void setTGraduate(TGraduate tGraduate) rn TGraduate = tGraduate;rn rnxml配置文件:rnrn rn rn rn rn rn[color=#FF0000]奇怪的是:rnTGraduate 的值能显示,而WjQuestionnaire 就会报错,没发现别的地方有问题,请大神指教[/color]
class CostDetail not found while looking for property: id
vo代码:rnpackage com.cost.orm.vo;rnrn/** @pdOid eaa2bf14-b9a6-4083-9c39-867276417c3e */rnpublic class CostType implements java.io.Serializable rn private static final long serialVersionUID = -5975636415761830236L;rn /** @pdOid 23dd5677-0440-4ded-93bb-519e6caa8111 */rn public int id;rn /** @pdOid 4e1c63ef-dd5d-4cd1-b58f-d0673021a309 */rn public java.lang.String name;rn /** @pdOid e3b20095-8634-42d0-a673-89a7ddc96361 */rn public java.lang.String marke;rnrn /** @pdRoleInfo migr=no name=CostDetail assc=reference1 mult=1..1 */rn public CostDetail costDetail;rnrn /**rn * Empty constructor which is required by Hibernatern * rn */rn public CostType() rn // TODO Auto-generated constructor stubrn rnrn /**rn * @pdGenerated default parent getterrn */rn public CostDetail getCostDetail() rn return costDetail;rn rnrn /**rn * @pdGenerated default parent <em>setter</em>rn * @param newCostDetailrn */rn public void setCostDetail(CostDetail newCostDetail) rn if (this.costDetail == null || !this.costDetail.equals(newCostDetail)) rn CostDetail oldCostDetail = this.costDetail;rn this.costDetail = newCostDetail;rn if (oldCostDetail != null)rn oldCostDetail.setCostType(null);rn // Re-assign the valuern this.costDetail = newCostDetail;rn if (this.costDetail != null)rn this.costDetail.setCostType(this);rn rn rnrn /**rn * Get value of idrn * rn * @return idrn */rn public int getId() rn return id;rn rnrn /**rn * Set value of idrn * rn * @param newIdrn */rn public void setId(int newId) rn this.id = newId;rn rnrn /**rn * Get value of namern * rn * @return namern */rn public java.lang.String getName() rn return name;rn rnrn /**rn * Set value of namern * rn * @param newNamern */rn public void setName(java.lang.String newName) rn this.name = newName;rn rnrn /**rn * Get value of markern * rn * @return markern */rn public java.lang.String getMarke() rn return marke;rn rnrn /**rn * Set value of markern * rn * @param newMarkern */rn public void setMarke(java.lang.String newMarke) rn this.marke = newMarke;rn rnrn /**rn * Get value of costTypePK.rn * rn * @return costTypePK objectrn */rn public CostTypePK getCostTypePK() rn return new CostTypePK(id);rn rnrn /**rn * Set value of costTypePK.rn * rn * @param pkrn */rn public void setCostTypePK(CostTypePK pk) rn if (pk != null) rn this.id = pk.getId();rn rn rnrn /*rn * (non-Javadoc)rn * rn * @see java.lang.Object#equals(java.lang.Object)rn */rn public boolean equals(Object other) rnrn if (other == null)rn return false;rnrn if (other == this)rn return true;rnrn if (!(other instanceof CostType))rn return false;rnrn CostType cast = (CostType) other;rnrn if (this.id != cast.getId())rn return false;rnrn if (this.name == null ? cast.getName() != this.name : !this.namern .equals(cast.getName()))rn return false;rnrn if (this.marke == null ? cast.getMarke() != this.marke : !this.markern .equals(cast.getMarke()))rn return false;rnrn return true;rn rnrn /*rn * (non-Javadoc)rn * rn * @see java.lang.Object#hashCode()rn */rn public int hashCode() rn int hashCode = 0;rn hashCode = 29 * hashCode + (new Integer(id)).hashCode();rn if (this.name != null)rn hashCode = 29 * hashCode + name.hashCode();rn if (this.marke != null)rn hashCode = 29 * hashCode + marke.hashCode();rn return hashCode;rn rnrn /*rn * (non-Javadoc)rn * rn * @see java.lang.Object#toString()rn */rn public String toString() rn StringBuffer ret = new StringBuffer();rn ret.append("CostType: ");rn ret.append("id='" + id + "'");rn ret.append("name='" + name + "'");rn ret.append("marke='" + marke + "'");rn return ret.toString();rn rnrnrn映射文件代码:rnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rnrn以上都是由pwoerdesigner15自动生成,测试代码:rn@Testrn public void insertTest()rn Session session = null;rn Configuration config = new Configuration().configure();rn SessionFactory sessionFactory = config.buildSessionFactory();rn session = sessionFactory.openSession();rn Transaction trans = null;rn trans = session.beginTransaction();rn CostType type = new CostType();rn type.setName("Micheal");rn session.save(type);rn session.flush();rn trans.commit();rn Assert.assertEquals(type.getId() > 0, true);rn session.close();rn rnJUNIT报错信息:rnorg.hibernate.InvalidMappingException: Could not parse mapping document from resource com/cost/orm/vo/CostDetail.hbm.xmlrn at org.hibernate.cfg.Configuration.addResource(Configuration.java:616)rn at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1635)rn at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1603)rn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1582)rn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1556)rn at org.hibernate.cfg.Configuration.configure(Configuration.java:1476)rn at org.hibernate.cfg.Configuration.configure(Configuration.java:1462)rn at test.ConnectionTest.insertTest(ConnectionTest.java:25)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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)rn at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)rn at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)rn at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)rn at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)rn at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)rn at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)rn at org.junit.runners.ParentRunner.run(ParentRunner.java:236)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)rnCaused by: org.hibernate.MappingException: class CostDetail not <em>found</em> while looking for <em>property</em>: idrn at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:232)rn at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:302)rn at org.hibernate.cfg.HbmBinder.bindSimpleId(HbmBinder.java:423)rn at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:356)rn at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:295)rn at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:166)rn at org.hibernate.cfg.Configuration.add(Configuration.java:716)rn at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:551)rn at org.hibernate.cfg.Configuration.addResource(Configuration.java:613)rn ... 30 morernCaused by: java.lang.ClassNotFoundException: CostDetailrn at java.net.URLClassLoader$1.run(Unknown Source)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at java.lang.ClassLoader.loadClassInternal(Unknown Source)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Unknown Source)rn at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:192)rn at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:228)rn ... 38 morern求高手解惑!
org.hibernate.PropertyNotFoundException: Could not find a setter for property id in class
请高手耐心分析下,小B感激不尽!rn[color=#FF0000]以下是异常信息:[/color]rnorg.hibernate.PropertyNotFoundException: Could not find a <em>setter</em> for <em>property</em> id in class com.gdms.domain.Messagesrn org.hibernate.<em>property</em>.BasicPropertyAccessor.createSetter(BasicPropertyAccessor.java:156)rn org.hibernate.<em>property</em>.BasicPropertyAccessor.getSetter(BasicPropertyAccessor.java:150)rn org.hibernate.mapping.Property.getSetter(Property.java:245)rn org.hibernate.tuple.PojoTuplizer.buildPropertySetter(PojoTuplizer.java:241)rn org.hibernate.tuple.AbstractTuplizer.(AbstractTuplizer.java:55)rn org.hibernate.tuple.PojoTuplizer.(PojoTuplizer.java:54)rn org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:47)rn org.hibernate.tuple.EntityMetamodel.(EntityMetamodel.java:218)rn org.hibernate.persister.entity.BasicEntityPersister.(BasicEntityPersister.java:400)rn org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:104)rn org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)rn org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:211)rn org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1005)rn com.gdms.dao.hibernate.HibernateUtil.(HibernateUtil.java:15)rn com.gdms.web.struts.action.LoginAction.execute(LoginAction.java:47)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:647)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:729)rn com.gdms.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:66)rnrn[color=#FF0000]Messages类:[/color]rnpackage com.gdms.domain;rnrnimport java.util.Random;rnrn//import java.util.Random;rnrnrnpublic class Messages implements java.io.Serializable rnrn // Fieldsrn private static final long serialVersionUID = 1L;rnrn private String id;rnrn private String title;rnrn private String name;rnrn private String mail;rnrn private String content;rnrn private String times;rn // 留言时间rn private Random r;rnrn /** default constructor */rn public Messages() rn rnrn /** full constructor */rn public Messages(String id, String title, String name, String mail,rn String times, String content) rn this.id = id;rn this.title = title;rn this.name = name;rn this.mail = mail;rn this.times = times;rn this.content = content;rn rn public String getId() rn return id;rn rnrn public void setId() rn while (true) rn r = new Random();rn int x = r.nextInt(9999);rn if (x > 1000) rn this.id = "4" + x; rn break;rn rn rn rn rnrn public String getContent() rn return content;rn rnrn public void setContent(String content) rn this.content = content;rn rnrnrnrn public String getMail() rn return mail;rn rnrn public void setMail(String mail) rn this.mail = mail;rn rnrn public String getName() rn return name;rn rnrn public void setName(String name) rn this.name = name;rn rnrn public String getTimes() rn return times;rn rnrn public void setTimes() rn java.util.Calendar cl = java.util.Calendar.getInstance();rn java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(rn "yyyy-MM-dd HH:mm:ss");rn this.times = sdf.format(cl.getTime());rn rnrn public String getTitle() rn return title;rn rnrn public void setTitle(String title) rn this.title = title;rn rnrn rn rnrn[del]以下是Message.hbm.xml:[/del][color=#FF0000][/color]rnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rnrn
15 Objective-C编程基础之Property的setter和getter 2 代码展示
本系列课程视频提供iOS培训之Objective-C基础视频,第一个Obj-C程序 Hello world,面向对象编程,面向过程编程,类和对象,self使用详解, <em>property</em>基础,synthesize基础,<em>property</em>Nam,Property的<em>setter</em>和getter,dot等基础开发内容,学生从零开始iOS开发的优质视频教程。
Bean property 'userService' is not writable or has an invalid setter method. Doe
用spring注入的时候出现这种错误,在网上查了好多都是因为命名不规范导致的spring注入错误,但是我感觉我这没错啊,以前也这么写过都没错。rnrn我而且我给userService都换名了还是不行啊。。。rnrn求助!rnrnrnspring配置文件rnrnrnrnrnrn rn rn rn rn rnrn rn rn rn rnrn rn rn rn rnrn rn rnrn rn rnrn[color=#FF0000] rn rn [/color]rnrn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rn rnrn rn rn rn rnrnrn rnrn rn rn rn[color=#FF0000] rn rn rn [/color]rnrnrnrnrnrnaction中rnrnpackage com.zhangss.stumanager.action;rnrnimport com.zhangss.stumanager.service.StudentService;rnimport com.zhangss.stumanager.service.UserService;rnrnpublic class LoginAction rnrn private String userName;rn private String password;rn [color=#FF0000]private UserService userService;[/color]rn private StudentService studentService;rnrnrn public String execute()rn if(userService.validateUser(userName, password))rn return "success";rn rn return "fail";rn rn rn public String getUserName() rn return userName;rn rnrn public void setUserName(String userName) rn this.userName = userName;rn rnrn public String getPassword() rn return password;rn rnrn public void setPassword(String password) rn this.password = password;rn rnrn[color=#FF0000]rn public UserService getUserService() rn return userService;rn rnrn public void setUserService(UserService userService) rn this.userService = userService;rn [/color]rnrn public StudentService getStudentService() rn return studentService;rn rnrn public void setStudentService(StudentService studentService) rn this.studentService = studentService;rn rn rnrnrnrn
Bean property 'jdbc' is not writable or has an invalid setter method.
这是xml文件:rnrnrnrnrn rnrn rn rn rn rnrn rn rn rn rn rn helloworld.propertiesrn rn rn rn rn oracle.jdbc.driver.OracleDriverrn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrn这是错误信息:rn八月 13, 2013 11:06:24 上午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitionsrnINFO: Loading XML bean definitions from class path resource [appcontext.xml]rnException in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fileHelloWorld' defined in class path resource [appcontext.xml]: Cannot resolve reference to bean 'fileHello' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fileHello' defined in class path resource [appcontext.xml]: Error setting <em>property</em> values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid <em>property</em> 'jdbc' of bean class [com.spring.HelloWorldStr]: [color=#FF0000]Bean <em>property</em> 'jdbc' is not writable or has an invalid <em>setter</em> method. Does the parameter type of the <em>setter</em> match the return type of the getter?[/color]rnCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fileHello' defined in class path resource [appcontext.xml]: Error setting <em>property</em> values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid <em>property</em> 'jdbc' of bean class [com.spring.HelloWorldStr]: Bean <em>property</em> 'jdbc' is not writable or has an invalid <em>setter</em> method. Does the parameter type of the <em>setter</em> match the return type of the getter?rnCaused by: org.springframework.beans.NotWritablePropertyException: Invalid <em>property</em> 'jdbc' of bean class [com.spring.HelloWorldStr]: Bean <em>property</em> 'jdbc' is not writable or has an invalid <em>setter</em> method. Does the parameter type of the <em>setter</em> match the return type of the getter?rn at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:793)rn at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:645)rn at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)rn at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1122)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:267)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)rn at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:389)rn at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:120)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:795)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:713)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)rn at com.spring.HelloWorldClient.main(HelloWorldClient.java:24)rn我的做法:rn[color=#FF0000]添加了<em>setter</em>和getter方法,然后能够正常使用了。rn但是我看到其他人的jdbctemplate注入没有加<em>setter</em>()和getter()方法的啊!这是怎么个情况。[/color]
setter以及property编译指令">OC 中"烦人"的小特性之getter和setter以及property编译指令
记得以前学C/C++/java时也接触过类似于类的实现问题. 只有在Java的类实现时,有一个不成文的小标准,就是需要为类中的成员变量实现一个getter和<em>setter</em>方法. 当时觉得就是给成员变量赋值和取值的时候更方便,更有独立性,逼格更高点,呵呵~ 所以在学习OC时也没有特别的在意,就是一目十行的瞟了一眼,以为就是那点事. 但是到了后的学习发现,貌似跟想想中的有点出入.当然了,关于IOS的
java 反序列化报错Conflicting setter definitions for property "threshold"
大家好!rn我在做java web项目时 ,反序列化报错:rn报错信息如下:rn[code=java]com.fasterxml.jackson.databind.JsonMappingException: Conflicting <em>setter</em> definitions for <em>property</em> "threshold": org.apache.log4j.spi.LoggerRepository#setThreshold(1 params) vs org.apache.log4j.spi.LoggerRepository#setThreshold(1 params)rn at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:252)rn[/code]rn[img=https://img-bbs.csdn.net/upload/201704/10/1491807991_667259.jpg][/img]rn序列化工具是Jackson rn不知道问题出在哪里,没有头绪,请求帮忙
python中Property替代setter和getter方法处理私有化属性
class Person(object): def __init__(self): self.__money = 1 @<em>property</em> def money(self): return self.__money @money.<em>setter</em> def money(self, num): self.__mone...
Bean property 'dao' is not writable or has an invalid setter method.
眼拙,看不出来了......rnrnapplicationContext.xml配置rn[code=XML]rn rn rnrn rn rn rn rn rn PROPAGATION_REQUIRED rn rn rnrnrn rn rn rnrnrn rn rn rn rn rn rnrn[/code]rnrnUsersService.java 如下rn[code=Java]rnpublic class UsersService implements IUsersService rnrn IUsersDAO dao = null ;rn rn public void saveOrUpdate(Users user) rn rn dao.saveOrUpdate(user) ;rn rnrn public IUsersDAO getDao() rn rn return dao;rn rnrn public void setDao(IUsersDAO dao)rn rn this.dao = dao;rn rnrnrn[/code]rnrn上网搜了一下,也无功而返rnrn是不是少了什么包呢?rnrn先谢过!
Bean property 'sqlSessionTemplate' is not writable or has an invalid setter meth
用spring注入的时候出现这种错误,我用的是Mybatis,名字检查了好多次都没发现错误,不知是哪里出错了老报这个错误 rnrnrnrn 求高手指点下,因为是初次接触Mybatis.谢谢了。rnrn spring配置文件:rn[code=XML]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 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 [/code]rnrnrnrnrnrn[code=Java]package com.action;rnrnimport java.util.List;rnrnimport com.opensymphony.xwork2.ActionSupport;rnimport com.entity.Admin;rnimport com.service.AdminService;rnrnpublic class AdminAction extends ActionSupport rn private Admin admin;rn private AdminService adminService;rn private List list ;rn rn public Admin getAdmin() rn return admin;rn rn public List getList() rn return list;rn rn public void setAdmin(Admin admin) rn this.admin = admin;rn rn public void setAdminService(AdminService adminService) rn this.adminService = adminService;rn rn public void setList(List list) rn this.list = list;rn rn rn @Overridern public String execute() throws Exception rn this.adminService.save(admin);rn this.list = this.adminService.findAll(admin);rn return "success";rn rnrn[/code]
Objective-C 【对于@property功能的新认识(setter、getter)】
@<em>property</em> (nonatomic, weak) XXXXX *xyz; 比如说这样一句话会有什么作用呢? 大家都知道,上面一句话可以默认生成 xyz 的<em>setter</em>和getter方法声明和实现,并生成下划线开头的成员变量(_xyz) 另外需要补充的是,如果手动实现了<em>setter</em>和getter方法,那么就不会自动生成<em>setter</em>和getter方法以及下划线开头的成员变量了。
iOS中setter方法 、getter方法、点语法、@property
静态类型和动态类型静态类型 指一个指针变量定义为特定的对象时,使用的是静态类型,在编译的时候就知道这个指针变量所属的类,这个变量总是存储特定类的对象,默认情况下所有的数据类型都是静态数据类型 @interface Person : NSObject @<em>property</em> (nonatomic,strong) NSString *name; -(void)run; @end@implementation
python 的返回值为list 的 property 绕过 setter 的问题
当用<em>property</em>装饰一个属性,并且这个属性返回的是一个list(或者一个类,一个dict,都会有同样的情况),那么如果我们使用list的索引去访问list,<em>setter</em>将不起任何作用。 如下所示:In [1]: class test(object): ...: a = [10,10,10] ...: @<em>property</em> ...: def ads(
14 Objective-C编程基础之 Property的setter和getter 1 理论部分
本系列课程视频提供iOS培训之Objective-C基础视频,第一个Obj-C程序 Hello world,面向对象编程,面向过程编程,类和对象,self使用详解, <em>property</em>基础,synthesize基础,<em>property</em>Nam,Property的<em>setter</em>和getter,dot等基础开发内容,学生从零开始iOS开发的优质视频教程。
__property
::= rnrn __<em>property</em> [ ] = "" ""rnrn ::= "[" [ ] "]" [ ]rnrn ::= [ , ]rnrn ::= read = rn ::= write = rn ::= stored = rn ::= stored = rn ::= default = rnrn ::= nodefaultrnrn ::= index = rnrnrn以上是帮助上的话。rn谁来解释下 ::= "[" [ ] "]" [ ]rnrnrn
setter和getter
用通俗的语言,带领你掌握Java面向对象的基础知识。
Property
如何用<em>property</em>访问*.properties中的所有内容?rn如:文件名:ATM.properties文件的中有内容如下:rnusername=a1rnpassword=1rnusername=a2rnpassword=2rnusername=a3rnpassword=3rn默认情况下我只能访问[color=#FF0000]最后一个[/color],如何将前面的内容也访问到?
property
rn 在人工智能大行其道的时代,许多开发者对Python这门编程语言都比较熟悉。但是如何用它实现一个企业级别的项目,可能许多同学还存在一些困难。本职业规划路线是专门针对想要从事Python&nbsp;web开发的同学而准备的,并且是严格按照企业需求的标准定制的学习路线。路线中包含Python基础和进阶、前端、MySQL数据库、Flask和Django框架以及多个企业真实项目。在学习完本路径中所有的课程后,从前端页面的实现,到后台代码的编写,再到数据库的管理,一人可以搞定一个公司网站的所有事情,真正实现全栈开发,让你升职加薪不是梦! rnrnrn rn rnrnrn rn rn
getter and setter
本课程包含14章59个小节课程,内容涵盖:JavaScript 简介、JavaScript基本语法、JavaScript 数据类型、表达式和运算符、语句和流程控制、对象、数组、函数、window 对象、DOM 访问,jQuery等。
setter注入
Spring是现在为流行的技术开发框架,其核心为DI(依赖注入)与AOP(面向切面编程),而后基于这两者基础上可以整合大量主流的开发框架。官方QQ群:612148723。
Getter与Setter
这是Java学习指南系列课程的第1篇,介绍Java语言的入门语法,引领希望学习Java语言编程的初学者进入Java大门。本课程不需要其他语言作为基础,可以直接学习。课程从Java开发平台的下载和安装开始,从浅到深、从易到难,循序渐进地进行语法讲解。为了让学员更好的掌握Java语言,本课程配套在线的Java题库及答案解析。相比于其他语言,Java语言更科学、更容易掌握,快来和大家一起学习Java吧。rn
setter方法
赋值才会调用<em>setter</em> self.JH = @”” 方法取值只会调用 getter NSString *string = self.JH;
Setter注入
【例】通过Setter注入为User属性赋值package com.shw; public class User { private String username; private String password; public String getUsername() { return username; } public void setUsername(String user...
getter和setter
Java 0基础小白入门课程,在学完本课程后,达到Java入门水平,为后面学习web开发, 各种流行框架的学习打下坚实的基础。迈出第一步,迎娶白富美,走向人生巅峰全靠它。
配置c3p0连接池报错 No set method found for property怎么回事啊?
在项目的META-INF下新建context.xml:rn[code=XML]rnrn rnrn[/code]rn[code=Java]rnservlet中测试的部分代码:rnContext context = new InitialContext();rnDataSource dataSource = (DataSource)context.lookup("java:/comp/env/jdbc/mysqlds");rnconn = dataSource.getConnection();rn[/code]rn错误消息:rn[code=Java]rnjavax.naming.NamingException: No set method <em>found</em> for <em>property</em>: nitialPoolSizern at org.apache.naming.factory.BeanFactory.getObjectInstance(BeanFactory.java:215)rn at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)rn at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)rn at org.apache.naming.NamingContext.lookup(NamingContext.java:793)rn at org.apache.naming.NamingContext.lookup(NamingContext.java:140)rn at org.apache.naming.NamingContext.lookup(NamingContext.java:781)rn at org.apache.naming.NamingContext.lookup(NamingContext.java:140)rn at org.apache.naming.NamingContext.lookup(NamingContext.java:781)rn at org.apache.naming.NamingContext.lookup(NamingContext.java:140)rn at org.apache.naming.NamingContext.lookup(NamingContext.java:781)rn at org.apache.naming.NamingContext.lookup(NamingContext.java:153)rn at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)rn at javax.naming.InitialContext.lookup(InitialContext.java:392)rn at com.wjf.CSPO.doGet(CSPO.java:28)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)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:228)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)rn at java.lang.Thread.run(Thread.java:619)rn[/code]rn我只在tomcat的lib下放了一个c3p0的jar包,对配置不太了解,rn请问factory="org.apache.naming.factory.BeanFactory"这句什么意思?是不是没有引入相关的包?还是其他问题?
NHibernate:No column name found for property 这是哪里出问题?
使用session.CreateSQLQuery执行SQL语句,sql语句如下:rnrnSELECT a.id as a.Id,a.FileName as a.FileName FROM tAttachments as a WHERE a.PostID in (select p.id from tPosts as p where p.ThreadID in (select t.id from tThreads as t where t.ForumID in ( SELECT f.id FROM tForum AS f INNER JOIN f_ChildForum('001') AS b ON f.Id = b.Id)) )rnrn结果发生异常:rn: NHibernate.QueryException: No column name <em>found</em> for <em>property</em> [] [SELECT a.id as a.Id,a.FileName as a.FileName FROM tAttachments as a WHERE a.PostID in (select p.id from tPosts as p where p.ThreadID in (select t.id from tThreads as t where t.ForumID in ( SELECT f.id FROM tForum AS f INNER JOIN f_ChildForum('001') AS b ON f.Id = b.Id)) )]rnrnrn这可能是哪里出了问题呢?数据库是有ID和FileName字段的rnrn请高手指点,谢谢 :)rnrn
ReferenceError: Error #1069: Property 0 not found on EList and there is no defau
我继承Array,写了一个EList类,它的主要作用是添加唯一的元素,如在add方法中,当你添加一个object,当这个object存在的时候他就不添加,否则,添加.但是为什么第一次添加正确,添加第二个元素的时候就出问题呢?rnrn[code=Assembly]packagernrn rn public class EList extends Arrayrn rn public static const SUCSS:int = 0;rn rn public static const FAILD:int = 1; rn rn public function EList(numElements:int=0)rn rn super(numElements);rn rn rn public function add(object:Object):intrn rn var index:int = this.indexOf(object);rn if (index < 0) rn this.push(object);rn return SUCSS;rn rn return FAILD;rn rn rn public function remove(object:Object):intrn rn var index:int = this.indexOf(object);rn if (index < 0) rn return FAILD;rn rn this.splice(index, 0);rn return SUCSS;rn rn rn public function isEmpty():Boolean rn return this.length == 0 ? true : false;rn rn rn rnrnrn测试:rnvar list:EList = new EList();rnlist.add("test1");rnlist.add("test2");[/code]rn
求大牛。A field or property with the name 'user.username' was not found on the
我一个asp.net系统(.net4.0,sql server2005)在win7、win8、win2008下部署都能正确执行。在win2003下(已经安装了.net 4.0包),有一个地方老是过不去,不知道问题会是在哪?出错代码如下:rn我用的三层架构,用code smith生成的。 会是 'user.username' 它的原因吗?为什么在其它系统可以获取返回数据rnrnrnServer Error in '/' Application.rn--------------------------------------------------------------------------------rnrnA field or <em>property</em> with the name 'user.username' was not <em>found</em> on the selected data source. rnDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. rnrnException Details: System.Web.HttpException: A field or <em>property</em> with the name 'user.username' was not <em>found</em> on the selected data source.rnrnSource Error: rnrnLine 44: gvScore.DataSource = UsOnlineStateManager.GetUserScore(sjID, txtKsKH.Text.Trim(),txtKsName.Text.Trim(),txtKsID.Text.Trim(),radSortType.SelectedValue.ToString().Trim());rnLine 45: //gvScore.DataSource = UsOnlineStateManager.GetAllUsOnlineStates();rnLine 46: gvScore.DataBind();rnLine 47: rnLine 48: protected void btnPrint_Click(object sender, EventArgs e)rn rnrnSource File: c:\gaoxinPoliceExam\webExam\st\testScore.aspx.cs Line: 46 rnrnStack Trace: rnrnrn[HttpException (0x80004005): A field or <em>property</em> with the name 'user.username' was not <em>found</em> on the selected data source.]rn System.Web.UI.WebControls.BoundField.GetValue(Control controlContainer) +1763627rn System.Web.UI.WebControls.BoundField.OnDataBindField(Object sender, EventArgs e) +67rn System.Web.UI.Control.OnDataBinding(EventArgs e) +91rn System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92rn System.Web.UI.Control.DataBind() +15rn System.Web.UI.Control.DataBindChildren() +201rn System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101rn System.Web.UI.Control.DataBind() +15rn System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) +166rn System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +3896rn System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +66rn System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) +14rn System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +128rn System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33rn System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143rn System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74rn System.Web.UI.WebControls.GridView.DataBind() +4rn st_testScore.btnSeek_Click(Object sender, EventArgs e) in c:\gaoxinPoliceExam\webExam\st\testScore.aspx.cs:46rn System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118rn System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112rn System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10rn System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13rn System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563rnrn rnrn
为什么在使用core标签后,提示Property '' not found on type java.lang.String
我在使用core标签后出现Property 'userable' not <em>found</em> on type java.lang.String这个错误rn而同样的东西在logic标签中能正确显示,rn还有我要是在core标签中只输出一个数据来就没有问题,jstl.jar,standard.jar 文件也拷贝到lib目录下了rnc.tld也拷贝到了正确的位置,rn代码:[code=HTML]rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn $user.userablern $user.userbranchrn rn [/code]
求问No property 'eduDao' found错误,问题在哪啊
配置文件如下rn[code=XML]rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn[/code]rnrn错误信息:rnrn13:07:51,109 INFO [STDOUT] ERROR [main] - Context initialization failedrn org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eduService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.InvalidPropertyException: Invalid <em>property</em> 'eduDao' of bean class [com.edu.service.impl.EduServiceImpl]: No <em>property</em> 'eduDao' <em>found</em>rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)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:3854)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)rn at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)rn at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)rn at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)rn at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)rn at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)rn at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)rn at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)rn at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)rn at org.jboss.web.WebModule.startModule(WebModule.java:83)rn at org.jboss.web.WebModule.startService(WebModule.java:61)rn at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)rn at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)rn at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)rn at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)rn at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)rn at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)rn at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)rn at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)rn at $Proxy0.start(Unknown Source)rn at org.jboss.system.ServiceController.start(ServiceController.java:417)rn at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)rn at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)rn at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)rn at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)rn at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)rn at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)rn at $Proxy45.start(Unknown Source)rn at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)rn at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)rn at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)rn at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)rn at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)rn at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)rn at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)rn at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)rn at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)rn at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)rn at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)rn at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)rn at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)rn at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)rn at $Proxy46.start(Unknown Source)rn at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)rn at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)rn at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)rn at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)rn at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)rn at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)rn at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)rn at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)rn at org.jboss.mx.server.Invocation.invokern
MVC报错The property named 'Gold' not found in Entity definition.
下载的别人的源码,调试的时候报这个错误,rn好像知道是因为用到了Gold但是没有实例化,是这样么?rn对于三层不太了解,具体我要怎样操作呢??rnrn[img=https://img-bbs.csdn.net/upload/201403/14/1394771792_700030.jpg][/img]
springboot2集成shiro 遇到No typehandler found for property roles异常
mapper.xml文件rn[img=https://img-bbs.csdn.net/upload/201804/23/1524462511_414682.png][/img]rn异常[img=https://img-bbs.csdn.net/upload/201804/23/1524462632_186797.png][/img]rn实体类rnpackage com.java.entity;rnrnimport java.io.Serializable;rnimport java.util.List;rnimport com.java.entity.Role;rnrnpublic class User implements Serializablern rn private static final long serialVersionUID = 2128346393707857300L;rn rn private Integer uid;rn rn private String username;rn rn private String password;rn rn private List roles;rn rn public Integer getUid() rn return uid;rn rnrn public void setUid(Integer uid) rn this.uid = uid;rn rnrn rn public String getUsername() rn return username;rn rnrn public void setUsername(String username) rn this.username = username;rn rnrn public String getPassword() rn return password;rn rnrn public void setPassword(String password) rn this.password = password;rn rnrn public List getRoles() rn return roles;rn rnrn public void setRoles(List roles) rn this.roles = roles;rn rnrn rn public User(Integer uid, String username, String password, List roles) rn super();rn this.uid = uid;rn this.username = username;rn this.password = password;rn this.roles = roles;rn rnrn public User() rn super();rn rn rn @Overridern public String toString() rn return "User [uid=" + uid + ", username=" + username + ", password=" + password + ", roles=" + roles + "]";rn rnrn rnrnrnpackage com.java.entity;rnrnimport java.io.Serializable;rnimport java.util.List;rnrn/**rn * @author Administratorrn *rn */rnpublic class Module implements Serializablern rn private static final long serialVersionUID = 2128346393707857300L;rn rn private Integer mid;rn rn private String mname;rn rn private List roles;rnrn public Integer getMid() rn return mid;rn rnrn public void setMid(Integer mid) rn this.mid = mid;rn rnrn public String getMname() rn return mname;rn rnrn public void setMname(String mname) rn this.mname = mname;rn rnrn public Module(Integer mid, String mname, List roles) rn super();rn this.mid = mid;rn this.mname = mname;rn this.roles = roles;rn rnrn public List getRoles() rn return roles;rn rnrn public Module() rn super();rn rnrn public void setRoles(List roles) rn this.roles = roles;rn rnrn @Overridern public String toString() rn return "Module [mid=" + mid + ", mname=" + mname + ", roles=" + roles + "]";rn rn rnrnpackage com.java.entity;rnrnimport java.io.Serializable;rnimport java.util.List;rnrnpublic class Role implements Serializablern private static final long serialVersionUID = 2128346393707857300L;rn rnrn private Integer rid;rn rn private String rname;rn rn private List users ;rn rn private List modules;rn rn public Role(Integer rid, String rname, List users, List modules) rn super();rn this.rid = rid;rn this.rname = rname;rn this.users = users;rn this.modules = modules;rn rnrn public Integer getRid() rn return rid;rn rnrn public void setRid(Integer rid) rn this.rid = rid;rn rnrn public String getRname() rn return rname;rn rnrn public void setRname(String rname) rn this.rname = rname;rn rnrn public List getUsers() rn return users;rn rnrn public void setUsers(List users) rn this.users = users;rn rnrn public List getModules() rn return modules;rn rnrn public void setModules(List modules) rn this.modules = modules;rn rnrn @Overridern public String toString() rn return "Role [rid=" + rid + ", rname=" + rname + ", users=" + users + ", modules=" + modules + "]";rn rnrn public Role() rn super();rn rn rnrnrn
关于No property 属性名 found for type 类名!的问题及解决方式之一
如上,在写项目的授权功能时发生了这个错误,既然错误上说了关于类Permission, 就先查看一下该类的代码,结果如下: 看起来代码没问题 Service和实现类中方法也都没有问题,经过DEGUB,发现,程序将这个方法,当成属性了, 我们知道在程序运行时,先走的时@Query注解得方法,问题找到了, 由于我在项目其他功能中配置了elasticsearch,导包的时候倒错了  正...
A field or property with the name 'JudgeTime' was not found on the selected data source.
Server Error in '/zxks' Application.rn--------------------------------------------------------------------------------rnrnA field or <em>property</em> with the name 'JudgeTime' was not <em>found</em> on the selected data source. rnDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. rnrnException Details: System.Web.HttpException: A field or <em>property</em> with the name 'JudgeTime' was not <em>found</em> on the selected data source.rnrnSource Error: rnrnrnLine 52: rnLine 53: GridView1.DataSource = ds; rnLine 54: GridView1.DataBind(); (出错行) rnLine 55: rnLine 56: elsern rnrnSource File: e:\MyOnLineExam\Web\StudentIndex.aspx.cs Line: 54 rnrnStack Trace: rnrnrn[HttpException (0x80004005): A field or <em>property</em> with the name 'JudgeTime' was not <em>found</em> on the selected data source.]rn System.Web.UI.WebControls.BoundField.GetValue(Control controlContainer) +432rn System.Web.UI.WebControls.BoundField.OnDataBindField(Object sender, EventArgs e) +60rn System.Web.UI.Control.OnDataBinding(EventArgs e) +98rn System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +208rn System.Web.UI.Control.DataBind() +12rn System.Web.UI.Control.DataBindChildren() +212rn System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +218rn System.Web.UI.Control.DataBind() +12rn System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) +221rn System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +3013rn System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +59rn System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) +12rn System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +111rn System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +25rn System.Web.UI.WebControls.DataBoundControl.PerformSelect() +149rn System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +68rn System.Web.UI.WebControls.GridView.DataBind() +4rn Web_StudentIndex.ScoreInitData() in e:\MyOnLineExam\Web\StudentIndex.aspx.cs:54rn Web_StudentIndex.Page_Load(Object sender, EventArgs e) in e:\MyOnLineExam\Web\StudentIndex.aspx.cs:19rn System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +13rn System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +45rn System.Web.UI.Control.OnLoad(EventArgs e) +98rn System.Web.UI.Control.LoadRecursive() +71rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4310rnrn rnrnrn--------------------------------------------------------------------------------rnVersion Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 rnrnrnrnrn请问,这是什么原因引起的,该如何解决?
j2ee框架搭建 [javax.sql.DataSource] for property 'dataSource': no matching editors or conversion strategy found
spring的xml:rnrnrnrnrn rn rn rn rn rn rn rn rnrn rn rn rn rn rn com/tianlesoftware/guestbook/model/Guestbook.hbm.xmlrn rn rn rn rn rn org.hibernate.dialect.Oracle9Dialectrn rn rn rnrn rn rn rn rn rn rn rn rn rn rnrn启动tomcat后就报错了:rn2008-7-16 14:49:47 org.apache.catalina.core.StandardContext addApplicationListenerrn信息: The listener "org.springframework.web.context.ContextLoaderListener" is already configured for this context. The duplicate definition has been ignored.rn2008-7-16 14:49:49 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrnlog4j:WARN No appenders could be <em>found</em> for logger (org.springframework.web.context.ContextLoader).rnlog4j:WARN Please initialize the log4j system properly.rn2008-7-16 14:49:55 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert <em>property</em> value of type [java.lang.String] to required type [javax.sql.DataSource] for <em>property</em> 'dataSource'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for <em>property</em> 'dataSource': no matching editors or conversion strategy <em>found</em>rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:478)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)rnat org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rnat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: org.springframework.beans.TypeMismatchException: Failed to convert <em>property</em> value of type [java.lang.String] to required type [javax.sql.DataSource] for <em>property</em> 'dataSource'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for <em>property</em> 'dataSource': no matching editors or conversion strategy <em>found</em>rn at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1287)rn ... 38 morernCaused by: java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for <em>property</em> 'dataSource': no matching editors or conversion strategy <em>found</em>rn at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:219)rn at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)rn at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)rn ... 42 morernrnrn有几点迷惑:rn1.信息: The listener "org.springframework.web.context.ContextLoaderListener" is already configured for this context. The duplicate definition has been ignored.rnrn2.Failed to convert <em>property</em> value of type [java.lang.String] to required type [javax.sql.DataSource] for <em>property</em> 'dataSource'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for <em>property</em> 'dataSource': no matching editors or conversion strategy <em>found</em>rnrn3. Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert <em>property</em> value of type [java.lang.String] to required type [javax.sql.DataSource] for <em>property</em> 'dataSource'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for <em>property</em> 'dataSource': no matching editors or conversion strategy <em>found</em>rnrn麻烦大家帮忙看看呀……先谢谢了
@property 参数(property 的进阶用法)
-
Properties文件读写;Property文件读写;Property
读/写属性文件的工具类. PropertyUtil.java对Property文件读写进行了封装, 使开发人员对Property文件的读写更加容易。 在性能、实用性 方面还是可以的。
and was not found
可能是我把注册表的的什么东西删掉了!或者是把某个服务删掉了,rn现在运行某些程序的话,就弹出程序的路径后面就加一句and was not <em>found</em> ,应该说是路径找不到了!
关于Property Let,Property Set,或Property Get的问题
想知道这三个方法的具体应用和作用,使用这几个获得参数有什么优势rn不要只copy参考书里面的介绍给我看啊。rn我是想知道具体应用。rn谢谢了。
Python 类,property属性(简化属性的操作),@propertyproperty()
  <em>property</em>属性的创建方式有两种:1.@<em>property</em>装饰器方式   2.类属性方式 ( 类属性=<em>property</em>() ) <em>property</em>属性可以简化实例对象对属性的操作(获取、设置),可以对属性做类型校验和预处理等。 装饰器方式: demo.py(@<em>property</em>,获取属性值,旧式类与新式类都有的方式): class Goods: @<em>property</em> ...
谁帮解释下 Property Get | Property Let | Property Set
谁帮解释下 Property Get | Property Let | Property Setrn解释或给例子不是要vbscript5.5里的解释rn请高手详细说明下他们的用处以及如何用谢谢了
教一下关于Property Let, Property Set, Property Get
呵呵,CSDN上面有人说rnProperty Let --属性付值rnProperty Set --像那些对象要用它rnProperty Get --取值rnrn还找了一段代码rn----------------------------------rnrn----------------------------------rnrn但是不懂的是这段class不用Property Set也能写rn如下:rn----------------------------------rnClass cls_onernPrivate mrstRecordSetrn Public Sub a(val)rn IF UCase(TypeName(Val)) = "RECORDSET" thenrn set mrstRecordSet = valrn End IFrn End Subrn Public Function b()rn b = typename(mrstRecordSet)rn End FunctionrnEnd Classrnrnset x = new cls_onern set bc = server.CreateObject("adodb.recordset")rn x.a(bc)rn Response.Write(x.b)rn set bc = nothingrnset x = nothingrn----------------------------------rn这样做我好像根本用不到Property Set。rn请个位高手赐教,Property Let, Property Set, Property Get这三个东东的优势在哪里?
setter方法和getter方法
<em>setter</em>方法和getter方法:       OC是一门面向对象的语言,面向对象的语言有三大特性,就是封装性,继承性和多态性. 类的数据与功能的封装,数据就是成员变量,功能就是类方法或者对象方法,对数据的封装,也就是对成员变量的封装,封装就是把数据隐藏起来,只能用此类的方法才可以读取或者设置数据,不可被外部任意修改是面向对象设计本质,降低了数据被误用的可能性,提高了代码的灵活性. 封装
setter和getter方法的书写
<em>setter</em>和getter方法的书写: 例子:     public Bitmap getImage(){         return image;     }     public void setImage(Bitmap image){         this.image=image;     }     public int getImageId(){
设置属性setter方法
var visitorInfo: [String : String]? {         didSet{             guard let imageName = visitorInfo?["imageName"],                 let message = visitorInfo?["message"]                 e
C#依赖注入- setter注入
在文章 C#依赖注入-初步概念了解 中,简单的介绍了依赖注入常用三种方式:<em>setter</em>注入,构造函数注入,接口注入。 在此文章中,使用代码具化对<em>setter</em>注入的解释。 <em>setter</em>注入: 就是在类A里面定义一个C接口的属性D,在A的上下文通过B实例化一个对象,然后将这个对象赋值给属性D。主要就是set 与 get Setter注入(Setter Inje...
getter和setter是不是多此一举?
如果在写一个类的时候,将某一属性指定为private,再为此属性写public的getter和<em>setter</em>方法,那么此时的写getter和<em>setter</em>方法是不是多此一举?rn既然最终此属性写public的getter和<em>setter</em>方法了,那么干嘛当初不直接指定该属性为public呢?rn
setter和gettter方法
各位大虾rnrn 在JavaBean中,对每个属性的访问是通过<em>setter</em>方法和getter方法完成,但写的时候是用setXXX和getXXX,为什么不是用<em>setter</em>XXX和getterXXX?rnrn 如:rn public class User rn private String name;rnrn public void setName(String name) rn this.name = name;rn rnrn public String getName() rn return name;rn rn
关于getter/setter
各位高手能说一下getter/<em>setter</em>该如何写rn如下是别人写的高手能讲解一下么rndatabase.javarn .......rn protected Connection conn = null;rn protected String name;rn ....rn public Connection getConnection()rn return conn;rn rn public String getName()rn return name;rn rn .....rn //能讲解一下那些方法该如何命名?rn 搜索了一下以前的帖子没找到答案:
Pref Setter 2.0
Mac 系统中得Property LIST文件阅读修改工具,非常好用
C++ getter和setter生成器
c++的成员变量的get和set生成器,简单易用。
iOS开发之getter与setter方法
1.在xxx.h文件中用@<em>property</em>进行申明 // // Student.h // <em>property</em> // // Created by skythinking on 15/12/7. // Copyright © 2015年 skythinking. All rights reserved. // #import @interface Student : NSObject {
构造器注入、setter注入
getbean(“injectionServiceImpl”); getbean(“injectionServiceImpl”);这两个注入都是一样的。
Spring_0200_IOC_Introduction setter注入
NULL 博文链接:https://diaochenlong2.iteye.com/blog/1831186
Spring使用Setter依赖注入
一个简单的Spring例子来展示如何通过<em>setter</em>方法注入依赖项,最常用DI方法注入bean。 1. IOutputGenerator 接口和实现类 package com.yiibai.output; public interface IOutputGenerator { public void generateOutput(); } package com.yiib
构造函数与getter和setter的区别
构造函数是用于初始化类的属性,且只有在创建对象时才会调用构造函数,用于给对象分配地址 无参的构造函数,创建对象时默认调用,当程序没有明确写出有参的构造函数,系统会默认的创建一个。 有参的构造函数,创建对象时传进参数。 <em>setter</em>方法,是对象引用调用<em>setter</em>方法,并传入参数。 getter方法,对象调用getter方法,获取对象属性的值。 区别: 构造方法只有在创建对象时才会被“系统”调用且只调
struts2中的setter不起作用...
[code=Java]rn[color=#FF0000]private String tmp = "";[/color]rnprivate Long topicId =new Long(0);rnprivate Integer forumId = 0; rnrnrnpublic void setForumId等<em>setter</em>..myeclipse自动生成rn[/code] rn以上代码中就红色的部分能取值,真是奇怪了 有的页面也能取到值..就是 topicId 和forumId取不了值..不知道是怎么一回事了..搞了好久都没整清楚..求教了
类的getter和setter方法
本课程包含了几乎所有的ECMAScript6核心内容,包括let、const、变量的解构赋值,字符串扩展、正则扩展、数值扩展、数组扩展、函数扩展、对象扩展、Symbol、Proxy和Reflect、二进制数组、Set和Map数据解构、Generator函数、Promise对象、异步操作和async函数、Class、修饰器、Module等内容。
为什么找不到setter方法?
大家帮我看看这个Tag运行的时候为什么报这样的错呢:rnrnTagHandler的源代码:rnrnpackage station.auction.db.taglib;rnimport java.sql.Connection;rnimport java.sql.ResultSet;rnimport java.sql.Statement;rnimport javax.servlet.jsp.*;rnimport javax.servlet.jsp.tagext.*;rnrnpublic class QueryTagHandler extends BodyTagSupportrnrn protected Connection con=null;rn rn public Connection getConnection()rn rn return con;rn rn rn public void setConnection(String newConnection)rn throws JspExceptionrn rn tryrn rn con=(Connection)pageContext.findAttribute(newConnection);rn catch(Exception exc)rn rn throw new JspException(exc.getMessage());rn rn rn rn public int doAfterBody() throws JspExceptionrn rn tryrn rn String query=getBodyContent().getString();rn rn //Create the statement and execute the queryrn Statement stmt=getConnection().createStatement();rn ResultSet rs=stmt.executeQuery(query);rn //Set the ResultSet in the page contextrn this.pageContext.setAttribute(getId(),rs,pageContext.PAGE_SCOPE);rn rn rn catch(Exception exc)rn rn throw new JspException(exc.getMessage());rn rn return SKIP_BODY;rn rnrn对应tld文件中的片段为:rnrnrn queryrn station.auction.db.taglib.QueryTagHandlerrn station.auction.db.taglib.QueryTagExtraInforn JSPrn Specifies a SQL queryrn rn idrn truern rn rn connectionrn truern rn rn在daysevents_tag.jsp文件中引用query这个Tag:rnrn SELECT name,description,start_date FROM Eventsrn WHERE MONTH(start_date)= rn AND YEAR(start_date)=rn AND DAY(start_date)=rn ORDER BY HOUR(start_date),MINUTE(start_date)rnrn在tomcat中报错:rnorg.apache.jasper.JasperException: /111/daysevents_tag.jsp(27,1) Unable to find <em>setter</em> method for attribute: connectionrn但是我明明是有写setConnection(String newConnection)这个函数的啊,怎么回事呢?希望大家帮我看看啊!非常感谢!rn
MRC下的setter方法
@<em>property</em> (nonatomic, strong) Car *car; - (void)setCar:(Car *)car {     if (_car != car) {         [_car release];         _car = [car retain];     } }
小结:c# setter属性注入
1、创建接口 public interface ITimeProvider { DateTime CurrentDate { get; } string CurrentYear { get; } } 2、继承接口,实现类 public class TimeProvider : ITimeProvider {
debued haoyue(java)下载
clear all bugs,it can work! 相关下载链接:[url=//download.csdn.net/download/FirBird_yin/3053297?utm_source=bbsseo]//download.csdn.net/download/FirBird_yin/3053297?utm_source=bbsseo[/url]
DHTMX 帮助文档下载
DHTMX 的帮助文档, 比较全面,介绍了详细的api 使用方法 相关下载链接:[url=//download.csdn.net/download/zhifeng_tian/3161290?utm_source=bbsseo]//download.csdn.net/download/zhifeng_tian/3161290?utm_source=bbsseo[/url]
uCGUI_V3.98下载
uCGUI_V3.98的源代码,希要的朋友可以下下来看看, 相关下载链接:[url=//download.csdn.net/download/csust_huhai/3907516?utm_source=bbsseo]//download.csdn.net/download/csust_huhai/3907516?utm_source=bbsseo[/url]
我们是很有底线的