Closed
Description
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)
Activity
ddatsh commentedon Jun 7, 2014
切到 2.5.3 编译也是同样
ddatsh commentedon Jun 11, 2014
原因之前找到了,是因为用了jdk8
lichenglingl commentedon Aug 11, 2014
你好,我在搭建dubbo-admin-2.5.4的时候也出现了类似情况,请问你是如何处理的,谢谢
系统环境:java version "1.8.0_11" 64-Bit,apache-tomcat-6.0.37,
Caused by: 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.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:801)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:651)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1276)
... 61 more
dolt131943 commentedon Aug 12, 2014
各位,有用JDK8运行成功的吗?
ddatsh commentedon Sep 15, 2014
解决 dubbo-admin jdk8 运行
升级为
dubbo-admin项目再加上velocity 依赖
wumingabc commentedon Dec 11, 2014
webx_version 升级为3.1.6;还是不能运行,请问velocity 是哪个 velocity?
cnzxp521 commentedon Mar 2, 2015
我也报这个错,升级也没用,用JDK6和JDK7跑报:
java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView
JDK8报:
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?
lichenglingl commentedon Mar 2, 2015
当时解决是 将tomcat和对应的JDK部署起来就可以了
Date: Sun, 1 Mar 2015 18:05:52 -0800
From: notifications@github.com
To: dubbo@noreply.github.com
CC: lichenglingl@hotmail.com
Subject: Re: [dubbo] 2.5.4-SNAPSHOT dubbo admin error (#50)
我也报这个错,升级也没用,用JDK6和JDK7跑报:
java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView
JDK8报:
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?
—
Reply to this email directly or view it on GitHub.
stirp commentedon May 19, 2015
我使用的是JDK 1.8.0_05, dubbo-admin版本是2.5.4-SNAPSHOT,也遇到了一样的问题。解决方案如@ddatsh :
1、webx的依赖改为3.1.6版;
2、添加velocity的依赖,我用了1.7;
3、对依赖项dubbo添加exclusion,避免引入旧spring
4、webx已有spring 3以上的依赖,因此注释掉dubbo-admin里面的spring依赖
确定war包解压后lib目录没有spring 3 以下的依赖就行。然后运行正常了。
LiangZiGe commentedon May 23, 2015
@stirp 按照你的改后,运行成功,感谢。
lwkjob commentedon May 28, 2015
@stirp 谢谢
achang1230 commentedon Jul 9, 2015
java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet()的问题。
改com.alibaba.dubbo.common.utils.ConcurrentHashSet
第30行 :
改为:
或将其用Set代替
像这样。
Invalid property 'URIType' of bean class [com.alibaba.citrus.service.uribroker.uri.GenericURIBroker]: 的问题将spring换到3以上4以下。最简单的方法就是入上面 @stirp 所说。
googlefan commentedon Jul 23, 2015
首先谢谢@stirp ,通过升级citrus-webx-all 和spring 等,目前已不再报URIType 的错误了,但是现在tomcat卡在了Strarting ZkClient event thead.
teaey commentedon Jul 23, 2015
@googlefan 堆栈贴一下
51 remaining items