Search code examples
wso2wso2-api-managerwso2-das

wso2am Error while sending stream to wso2das


While trying to follow the instructions from the wso2am (1.10.0) manual, regarding working with statistics with the wso2das (3.0.1) server i have encountered a problem.

If i choose to let the wso2am server define the stream while making the first call of the api, the wso2das server refuses to post statistics to the WSO2_STATS_DB.

If on the other hand i choose to import the analytics.car file in wso2das (as stated here ) i get an exception (AsyncDataPublisher Stream definition already exist) because the org.wso2.apimgt.statistics.request defined in the latest Analytics.car is different to the one being send from wso2am.

I pinpointed the problem in the definition of the Eventstream_request_1.0 in files org.wso2.apimgt.statistics.request_1.0.0.json , throttledOutORG_WSO2_APIMGT_STATISTICS_REQUEST.xml

where the definition of the throttledOut option is missing

Is there a way to solve this issue?

Thank you.


Solution

  • I think your DAS is in some kind of a corrupted state. Can you first delete the car application (/repository/deployment/server/carbonapps) and then log in to DAS and go to Manage > Event > Streams and delete any existing streams. Then try again to deploy the car app in the /repository/deployment/server/carbonapps location.

    If everything goes well you would see two scripts in Manage > Batch Analytics > Scripts section. Try to execute each script and see if there is any error. If not then you can point the API manager to DAS