用Idea启动项目时,项目启动成功,但是服务注册不上。表现为:C盘config-client.log日志文件体积增长很快,一会C盘就会没有空间。日志错误为:java.net.MalformedURLException: For input string: " text"。具体请看图片
,整个日志一直报这个问题。
2017-03-20 16:46:28,826 ERROR - [] [] [%s] [Internal] Unhandled exception in deliverer:
java.lang.RuntimeException: java.net.MalformedURLException: For input string: " text"
at com.taobao.config.client.ServerAddressIterator$RandomizedServerAddress.<init>(ServerListManager.java:234) ~[config-client-1.6.6.5.jar:na]
at com.taobao.config.client.ServerAddressIterator.<init>(ServerListManager.java:262) ~[config-client-1.6.6.5.jar:na]
at com.taobao.config.client.ServerListManager.iterator(ServerListManager.java:114) ~[config-client-1.6.6.5.jar:na]
at com.taobao.config.client.ConnectionCreator.roll(ConnectionCreator.java:48) ~[config-client-1.6.6.5.jar:na]
at com.taobao.config.client.ConnectionCreator.connect(ConnectionCreator.java:39) ~[config-client-1.6.6.5.jar:na]
at com.taobao.config.client.ConfigClientWorker$WorkerThread.ensureConnected(ConfigClientWorker.java:153) ~[config-client-1.6.6.5.jar:na]
at com.taobao.config.client.ConfigClientWorker$WorkerThread.runOnce(ConfigClientWorker.java:134) ~[config-client-1.6.6.5.jar:na]
at com.taobao.config.client.ConfigClientWorker$WorkerThread.run(ConfigClientWorker.java:82) ~[config-client-1.6.6.5.jar:na]
Caused by: java.net.MalformedURLException: For input string: " text"
at java.net.URL.<init>(URL.java:627) ~[na:1.8.0_74]
at com.taobao.config.common.ConfigServerURL.<init>(ConfigServerURL.java:37) ~[config-common-2.0.2-release.jar:na]
at com.taobao.config.client.ServerAddressIterator$RandomizedServerAddress.<init>(ServerListManager.java:230) ~[config-client-1.6.6.5.jar:na]
... 7 common frames omitted
Caused by: java.lang.NumberFormatException: For input string: " text"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_74]
at java.lang.Integer.parseInt(Integer.java:569) ~[na:1.8.0_74]
at java.lang.Integer.parseInt(Integer.java:615) ~[na:1.8.0_74]
at java.net.URLStreamHandler.parseURL(URLStreamHandler.java:216) ~[na:1.8.0_74]
at java.net.URL.<init>(URL.java:622) ~[na:1.8.0_74]
... 9 common frames omitted
Caused by: java.lang.NumberFormatException: For input string: " text" text前面貌似有个空格,在jsp中找到去掉试试
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。