Got numberformatexception对于输入字符串:wso2的“ 0:0:0:0:0:0:0:0:1”

问题描述 投票:0回答:1

我有一个已在WSO2 API网关中发布的API。当我测试API时,我从控制台收到此错误消息。

[线程“ pool-65-thread-1”中的异常java.lang.NumberFormatException:对于输入字符串:“ 0:0:0:0:0:0:0:0:1”在java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)在java.lang.Long.parseLong(Long.java:589)在java.lang.Long.parseLong(Long.java:631)在org.wso2.carbon.apimgt.impl.utils.APIUtil.ipToLong_aroundBody512(APIUtil.java:7851)在org.wso2.carbon.apimgt.impl.utils.APIUtil.ipToLong(APIUtil.java:7847)在org.wso2.carbon.apimgt.gateway.throttling.publisher.DataProcessAndPublishingAgent.run_aroundBody4(DataProcessAndPublishingAgent.java:155)处位于org.wso2.carbon.apimgt.gateway.throttling.publisher.DataProcessAndPublishingAgent.run(DataProcessAndPublishingAgent.java:141)在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)在java.lang.Thread.run(Thread.java:748)

根据博客,他们说它需要禁用IPv6。我只是通过注册表禁用了IPv6,仅在wso2server.bat文件的JAVA_OPTS处添加了IPV6支持。然后我再次重新启动,它仍然显示为IPv6地址。

[2020-01-15 14:40:21,171]信息-PassThroughListeningIOReactorManager传递HTTP侦听器始于0:0:0:0:0:0:0:0:8280

[2020-01-15 14:40:21,172]信息-PassThroughHttpMultiSSLListener开始传递HTTPS侦听器...

[2020-01-15 14:40:21,192]信息-PassThroughListeningIOReactorManager 传递HTTPS侦听器始于0:0:0:0:0:0:0:0:8243

[2020-01-15 14:40:21,449]信息-TaskServiceImpl以STANDALONE模式启动的任务服务...

[2020-01-15 14:40:21,509]信息-RegistryEventingServiceComponent在注册表上成功初始化事件

[2020-01-15 14:40:21,652]信息-JMXServerManager JMX服务网址:服务:jmx:rmi:// localhost:11111 / jndi / rmi:// localhost:9999 / jmxrmi

[当我再次运行时,出现相同的错误。请帮忙回答?

wso2 wso2-am wso2carbon
1个回答
0
投票

此API是否使用任何基于IP的高级限制策略?

© www.soinside.com 2019 - 2024. All rights reserved.