alitomcat 启动时报错,日志会把C盘填满-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

alitomcat 启动时报错,日志会把C盘填满

临安夜雨 2017-03-20 19:53:12 2709

用Idea启动项目时,项目启动成功,但是服务注册不上。表现为:C盘config-client.log日志文件体积增长很快,一会C盘就会没有空间。日志错误为:java.net.MalformedURLException: For input string: " text"。具体请看图片
QQ_20170320195156,整个日志一直报这个问题。

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
分享到
取消 提交回答
全部回答(1)
  • 没有昵称了
    2019-07-17 20:56:57

    Caused by: java.lang.NumberFormatException: For input string: " text" text前面貌似有个空格,在jsp中找到去掉试试

    0 0
云计算
使用钉钉扫一扫加入圈子
+ 订阅

时时分享云计算技术内容,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。

推荐文章