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?
问题描述: 用JDK6和JDK7跑报:java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetViewJDK8报:Invalid property 'URIType' of bean class [co
问题描述:
用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?
解决方法:
1、webx的依赖改为3.1.6版;
2、添加velocity的依赖,我用了1.7;
3、对依赖项dubbo添加exclusion,避免引入旧spring
4、webx已有spring 3以上的依赖,因此注释掉dubbo-admin里面的spring依赖
确定war包解压后lib目录没有spring 3 以下的依赖就行。然后运行正常了。
防止以后再用,记下。
原文:https://github.com/alibaba/dubbo/issues/50