Project

General

Profile

Actions

None #8388

open

Issue in Integrating with third party Identity Manager and API Manager

Added by Entgra Admin almost 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
None
Assignee:
-
Category:
-
Start date:
01/04/2020
Due date:
% Done:

0%

Estimated time:
0:00 h
Device Type:
Component:
Type:

Description

From Gitlab
------------------------
gitlabId --> 389 https://gitlab.com/entgra/product-iots/-/issues/389
labels -->
assignees -->
created_at --> 2020-04-01 12:32:56 IST +0530
updated_at --> 2020-04-08 10:10:46 IST +0530
------------------------

Hi Team,

Good Day,

We as a team working on Entgra Iot Server (3.6.0) and we are trying to integrate third party Identity Manager(5.5.0) and API Manager (2.2.0) since in the documentation we have seen like for production we need to integrate third-party client.
This is the steps we followed :
1. Downloaded Entgra IOT Server (3.6.0) and configured to change the hostname.
2. Downloaded Identity Manager (5.5.0) and also API Manager (2.2.0) and configured IDM as a key Manager pointing to the APIM Gateway.
3. In the Entgra IOT server, we have configured the key manager host and API Gateway host to point to external IDM and APIM in the "iot_server.sh" file.
But in this we are facing some exceptions like "failed to publish API"
Observer Errors :
```
TID: [-1] [] [2020-04-01 11:37:38,587] ERROR {org.wso2.carbon.apimgt.webapp.publisher.APIPublisherStartupHandler} - failed to publish api. {org.wso2.carbon.apimgt.webapp.publisher.APIPublisherStartupHandler}
org.wso2.carbon.apimgt.webapp.publisher.exception.APIManagerPublisherException: feign.codec.DecodeException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 19 column 1 path $
at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherServiceImpl.publishAPI(APIPublisherServiceImpl.java:75)
at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherStartupHandler.publishAPIs(APIPublisherStartupHandler.java:97)
at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherStartupHandler.access$500(APIPublisherStartupHandler.java:30)
at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherStartupHandler$1.run(APIPublisherStartupHandler.java:69)
at java.lang.Thread.run(Thread.java:748)
Caused by: feign.codec.DecodeException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 19 column 1 path $
at feign.SynchronousMethodHandler.decode(SynchronousMethodHandler.java:169)
at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:133)
at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:76)
at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103)
at com.sun.proxy.$Proxy28.register(Unknown Source)
at org.wso2.carbon.apimgt.integration.client.OAuthRequestInterceptor.apply(OAuthRequestInterceptor.java:87)
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.$Proxy43.apisGet(Unknown Source)
at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherServiceImpl.publishAPI(APIPublisherServiceImpl.java:53)
... 4 more
Caused by: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 19 column 1 path $
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:224)
at com.google.gson.Gson.fromJson(Gson.java:887)
at com.google.gson.Gson.fromJson(Gson.java:852)
at feign.gson.GsonDecoder.decode(GsonDecoder.java:55)
at feign.SynchronousMethodHandler.decode(SynchronousMethodHandler.java:165)
... 15 more
```
Can you guide us on this? It would be very helpful for us to proceed.

Best Regards,
Saranya K

Actions #1

Updated by Entgra Admin almost 2 years ago

From Gitlab
------------------------
author: jayasanka-sack
created_at: 2020-04-08 10:10:46 IST +0530
updated_at: 2020-04-08 10:10:46 IST +0530
------------------------

changed the description
Actions

Also available in: Atom PDF