wso2 / carbon-device-mgt

Apache License 2.0
53 stars 113 forks source link

Getting Null Pointer exception when starting the server. #1247

Closed shagihan closed 6 years ago

shagihan commented 6 years ago

Description: When starting the the server getting the following error.

Exception in thread "Thread-32" java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:542) at java.lang.Integer.parseInt(Integer.java:615) at org.wso2.carbon.apimgt.integration.client.util.Utils$1.select(Utils.java:111) at okhttp3.internal.connection.RouteSelector.resetNextProxy(RouteSelector.java:117) at okhttp3.internal.connection.RouteSelector.<init>(RouteSelector.java:61) at okhttp3.internal.connection.StreamAllocation.<init>(StreamAllocation.java:89) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:107) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185) at okhttp3.RealCall.execute(RealCall.java:69) at feign.okhttp.OkHttpClient.execute(OkHttpClient.java:157) at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:97) at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:76) at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103) at com.sun.proxy.$Proxy26.register(Unknown Source) at org.wso2.carbon.apimgt.integration.client.OAuthRequestInterceptor.apply(OAuthRequestInterceptor.java:86) at feign.SynchronousMethodHandler.targetRequest(SynchronousMethodHandler.java:158) at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:88) at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:76) at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103) at com.sun.proxy.$Proxy40.apisGet(Unknown Source) at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherServiceImpl.publishAPI(APIPublisherServiceImpl.java:53) at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherStartupHandler.publishAPIs(APIPublisherStartupHandler.java:97)

Suggested Labels: WSO2IOT-3.1.0,IOT

Affected Product Version: WSO2IOT-3.1.0

Steps to reproduce:

Related Issues:

rasika commented 6 years ago

Please move this issue into product repo.

shagihan commented 6 years ago

Fix has been provided.