朱杰兵blog

          jonhney'blog
          posts - 140, comments - 1, trackbacks - 0, articles - 0

          最近在研究dubbo,避免不了從最簡單的開始。按照網上教程啟動zookeeper,啟動tomcat時總是報錯,

          ERROR context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'uriBrokerService': Cannot create inner bean '(inner bean)' of type [com.alibaba.citrus.service.uribroker.impl.URIBrokerServiceImpl$URIBrokerInfo] while setting bean property 'brokers' with key [0]; nested excepti on is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#25': Cannot create inner bean 'server' of type [com.alibaba.citrus.service.uribroker.uri.GenericURIBroker] while setting constructor argument; nested exception is org.springframework.beans.fact ory.BeanCreationException: Error creating bean with name 'server': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'URIType' of bean class [com.alibaba.citrus.service.uribroker.uri.GenericURIBroker]: Bean property 'URIType' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287)

          查了很久,終于發現問題所在,現在記錄下


          原來是我用的jdk版本太高,jdk8, dubbo默認用的spring版本比較舊,沖突導致,降低jdk版本為1.7即可


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 玉屏| 兖州市| 镇安县| 房产| 延川县| 利辛县| 绥宁县| 堆龙德庆县| 沂源县| 绿春县| 毕节市| 兴文县| 陆丰市| 龙江县| 元阳县| 崇信县| 和平县| 乌兰浩特市| 陆丰市| 汪清县| 普兰店市| 荔波县| 忻州市| 巧家县| 卢湾区| 华容县| 都兰县| 明水县| 新化县| 蒲城县| 高阳县| 柳河县| 颍上县| 汤阴县| 遂平县| 新余市| 黄石市| 上饶市| 泗阳县| 万全县| 昭苏县|