wso2 / streaming-integrator-tooling

Apache License 2.0
45 stars 33 forks source link

[Aync API generation] Once the async api is generated and changed default values it cannot be deployed on SI server #179

Closed dnwick closed 3 years ago

dnwick commented 3 years ago

Description: I changed the default values of generated async api attributes like Enter server name value to "prod" etc. Once using deploy to server function is used throws following error

osgi> [2021-04-09 17:28:25,217] INFO {org.wso2.carbon.streaming.integrator.core.internal.util.SiddhiAppFilesystemInvoker} - Siddhi App: websocketServerApp saved in the filesystem [2021-04-09 17:28:29,183] INFO {org.wso2.transport.http.netty.contractimpl.listener.ServerConnectorBootstrap$HttpServerConnector} - HttpConnectorListener stopped listening on host localhost and port 8030 [2021-04-09 17:28:29,186] INFO {org.wso2.carbon.streaming.integrator.core.internal.StreamProcessorService} - Siddhi App File websocketServerApp undeployed successfully. [2021-04-09 17:28:29,197] INFO {org.wso2.carbon.streaming.integrator.core.internal.StreamProcessorService} - Siddhi App websocketServerApp deployed successfully [2021-04-09 17:28:29,197] INFO {org.wso2.transport.http.netty.contractimpl.listener.ServerConnectorBootstrap$HttpServerConnector} - HTTP(S) Interface starting on host localhost and port 8030 [2021-04-09 17:28:29,215] ERROR {org.wso2.carbon.streaming.integrator.core.internal.StreamProcessorDeployer} - org.json.JSONException: JSONObject["production"] not found. org.wso2.carbon.streaming.integrator.core.internal.exception.SiddhiAppDeploymentException: org.json.JSONException: JSONObject["production"] not found. at org.wso2.carbon.streaming.integrator.core.internal.StreamProcessorDeployer.deploySiddhiQLFile(StreamProcessorDeployer.java:138) at org.wso2.carbon.streaming.integrator.core.internal.StreamProcessorDeployer.update(StreamProcessorDeployer.java:413) at org.wso2.carbon.deployment.engine.internal.DeploymentEngine.lambda$updateArtifacts$2(DeploymentEngine.java:342) at java.util.ArrayList.forEach(ArrayList.java:1255) at org.wso2.carbon.deployment.engine.internal.DeploymentEngine.updateArtifacts(DeploymentEngine.java:333) at org.wso2.carbon.deployment.engine.internal.RepositoryScanner.sweep(RepositoryScanner.java:98) at org.wso2.carbon.deployment.engine.internal.RepositoryScanner.scan(RepositoryScanner.java:68) at org.wso2.carbon.deployment.engine.internal.SchedulerTask.run(SchedulerTask.java:43) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) 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) Caused by: org.json.JSONException: JSONObject["production"] not found. at org.json.JSONObject.get(JSONObject.java:473) at org.json.JSONObject.getJSONObject(JSONObject.java:573) at org.wso2.carbon.streaming.integrator.core.internal.asyncapi.AsyncAPIDeployer.createAndGetMetadataContent(AsyncAPIDeployer.java:195) at org.wso2.carbon.streaming.integrator.core.internal.asyncapi.AsyncAPIDeployer.(AsyncAPIDeployer.java:72) at org.wso2.carbon.streaming.integrator.core.internal.StreamProcessorDeployer.deploySiddhiQLFile(StreamProcessorDeployer.java:118) ... 14 more

Suggested Labels:

Suggested Assignees:

Affected Product Version:

OS, DB, other environment details and versions:

Steps to reproduce:

Related Issues: