Got numberformatexception For input string: “0:0:0:0:0:0:0:1” for wso2

I have one API that have been published in WSO2 API gateway. When I test API, I got this error message from console. Exception in thread “pool-65-thread-1” java.lang.NumberFormatException: For input string: “0:0:0:0:0:0:0:1” at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Long.parseLong(Long.java:589) at java.lang.Long.parseLong(Long.java:631) at org.wso2.carbon.apimgt.impl.utils.APIUtil.ipToLong_aroundBody512(APIUtil.java:7851) at org.wso2.carbon.apimgt.impl.utils.APIUtil.ipToLong(APIUtil.java:7847) at org.wso2.carbon.apimgt.gateway.throttling.publisher.DataProcessAndPublishingAgent.run_aroundBody4(DataProcessAndPublishingAgent.java:155) at org.wso2.carbon.apimgt.gateway.throttling.publisher.DataProcessAndPublishingAgent.run(DataProcessAndPublishingAgent.java:141) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) According to the…

Details

Python ModuleNotFoundError: No module named ‘xxx’

Pycharm imports works correctly, but when I execute test_settings.py in the terminal, I have this error: ImportError while importing test module ‘/home/ed/PycharmProjects/TTime/tests/test_settings.py’. Hint: make sure your test modules/packages have valid Python names. Traceback: tests/test_settings.py:3: in from ttime import app, db E ModuleNotFoundError: No module named ‘ttime’ Here is my Flask project structure. I tried to…

Details

Calling RESTful Webservice using Angular

how to write angular service method params to call a restful webservice Spring MVC having in its signature @RequestBody and @RequestParam together. java code : @RequestMapping(value = “/getChargements”, method = RequestMethod.POST) @ResponseBody public PlanificationEtSuiviChargementDto getChargements (@RequestBody CriteriaPlanificationDto criteriaPlanificationDto, @RequestParam boolean historique) { LOG.info(“getChargements”); return demandeChargementService.getChargementCalendrier(criteriaPlanificationDto.getParams(), criteriaPlanificationDto.getStep(), criteriaPlanificationDto.getPage(), historique); } Angular service method : public getPlanification(criteria:…

Details