Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion KCenter-Base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.68</version>
<version>2.0.60</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.parser.ParserConfig;
import org.nesc.ec.bigdata.cache.ConnectCache;
import org.nesc.ec.bigdata.exception.KSQLException;
import org.slf4j.Logger;
Expand Down Expand Up @@ -33,7 +32,6 @@ public String executeKsqlScript(String host,String body)throws KSQLException{
try{
String url = restService.generatorUrl(host,"/ksql");
ResponseEntity<String> responseEntity = sendRequest(url,HttpMethod.POST,buildQuery(body,true));
ParserConfig.getGlobalInstance().setAutoTypeSupport(true);
List<String> messageArray = JSON.parseArray(responseEntity.getBody(), String.class);
if(Objects.nonNull(messageArray) && !CollectionUtils.isEmpty(messageArray)){
JSONObject message = JSON.parseObject(messageArray.get(0));
Expand All @@ -46,7 +44,6 @@ public String executeKsqlScript(String host,String body)throws KSQLException{
}
return "";
}catch (HttpClientErrorException e){
ParserConfig.getGlobalInstance().setAutoTypeSupport(true);
JSONObject message = JSON.parseObject(e.getResponseBodyAsString());
LOGGER.error("execute ksql script has error,",e);
throw new KSQLException(message.getString("message"));
Expand All @@ -57,7 +54,6 @@ public String executeQueryScript(String host, String body,boolean isKsqlQuery) t
try{
String query = isKsqlQuery?"/ksql":"/query";
String url = restService.generatorUrl(host,query);
ParserConfig.getGlobalInstance().setAutoTypeSupport(true);
ResponseEntity<String> responseEntity = sendRequest(url,HttpMethod.POST,buildQuery(body,true));
return responseEntity.getBody();
}catch (HttpClientErrorException e){
Expand Down