-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Search before asking
- I searched the issues and found no similar issues.
DSS Component
dss-appconn
What happened + What you expected to happen
creating a project reports an error. Tracing the source code, I found an error in QualitisProjectSearchOperation.java calling /outer/api/v1/project/workflow/get through restTemplate.
com.webank.wedatasphere.dss.appconn.qualitis.project.QualitisProjectSearchOperation 68 searchProject - Start to search qualitis project. url: http://219.151.186.245:8090/qualitis/outer/api/v1/project/workflow/get?app_id=&nonce=67114×tamp=1752824753347&signature=2e61ccc6de5b6bb64c7e9fd6e1dbea006551b0d99178b7f2ed43c7a1663bd19e, method: POST, body: <{"name":"rr","username":"hadoop"},[Content-Type:"application/json"]>
2025-07-18 15:45:53.363 ERROR [qtp1337906940-103] com.webank.wedatasphere.dss.appconn.qualitis.project.QualitisProjectSearchOperation 72 searchProject - Search qualitis project exception org.springframework.web.client.UnknownContentTypeException: Could not extract response: no suitable HttpMessageConverter found for response type [interface java.util.Map] and content type [application/octet-stream]
at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:126) ~[spring-web-5.2.23.RELEASE.jar:5.2.23.RELEASE]
at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:996) ~[spring-web-5.2.23.RELEASE.jar:5.2.23.RELEASE]
at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:979) ~[spring-web-5.2.23.RELEASE.jar:5.2.23.RELEASE]
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:739) ~[spring-web-5.2.23.RELEASE.jar:5.2.23.RELEASE]
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:672) ~[spring-web-5.2.23.RELEASE.jar:5.2.23.RELEASE]
at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:581) ~[spring-web-5.2.23.RELEASE.jar:5.2.23.RELEASE]
at com.webank.wedatasphere.dss.appconn.qualitis.project.QualitisProjectSearchOperation.searchProject(QualitisProjectSearchOperation.java:69) ~[?:?]
at com.webank.wedatasphere.dss.appconn.qualitis.project.QualitisProjectSearchOperation.searchProject(QualitisProjectSearchOperation.java:29) ~[?:?]
at com.webank.wedatasphere.dss.framework.project.service.impl.DSSFrameworkProjectServiceImpl.lambda$isExistSameProjectName$9(DSSFrameworkProjectServiceImpl.java:234) ~[dss-framework-project-server-1.1.2.jar:?]
part of the code:
QualitisProjectSearchOperation searchProject the error location is as follows:
RestTemplate restTemplate = new RestTemplate();
LOGGER.info("Start to search qualitis project. url: {}, method: {}, body: {}", url, HttpMethod.POST, entity);
resMap = restTemplate.exchange(url, org.springframework.http.HttpMethod.POST, entity, Map.class).getBody();
printed in the log"Start to search qualitis project. url....."
@path("outer/api/v1/project/workflow")
public class OuterWorkflowController {
...
@post
@path("get")
@produces(MediaType.APPLICATION_JSON)
@consumes(MediaType.APPLICATION_JSON)
public GeneralResponse getWorkflowProject(GetProjectRequest request) throws UnExpectedRequestException {
try {
GetProjectRequest.checkRequest(request);
LOGGER.info("Get project request: {}", request.toString());
return outerWorkflowService.getWorkflowProject(request);
} catch (UnExpectedRequestException e) {
LOGGER.error(e.getMessage(), e);
throw e;
} catch (Exception e) {
LOGGER.error("Failed to get workflow project. Project name: {}, caused by: {}", request.getName(), e.getMessage(), e);
return new GeneralResponse<>(ResponseStatusConstants.SERVER_ERROR, "{&FAILED_TO_GET_PROJECT}", null);
}
}
}
no print was found in the log"Get project request:......"
Relevent platform
jdk1.8 centos7.9
Reproduction script
com.webank.wedatasphere.dss.framework.project.service.impl.DSSFrameworkProjectServiceImpl 230 isExistSameProjectName - begin to check whether the project name rr is already exists in third-party AppConn...
2025-07-18 15:45:53.357 INFO [qtp1337906940-103] com.webank.wedatasphere.dss.appconn.qualitis.project.QualitisProjectSearchOperation 68 searchProject - Start to search qualitis project. url: http://219.151.186.245:8090/qualitis/outer/api/v1/project/workflow/get?app_id=&nonce=67114×tamp=1752824753347&signature=2e61ccc6de5b6bb64c7e9fd6e1dbea006551b0d99178b7f2ed43c7a1663bd19e, method: POST, body: <{"name":"rr","username":"hadoop"},[Content-Type:"application/json"]>
2025-07-18 15:45:53.363 ERROR [qtp1337906940-103] com.webank.wedatasphere.dss.appconn.qualitis.project.QualitisProjectSearchOperation 72 searchProject - Search qualitis project exception org.springframework.web.client.UnknownContentTypeException: Could not extract response: no suitable HttpMessageConverter found for response type [interface java.util.Map] and content type [application/octet-stream]
at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:126) ~[spring-web-5.2.23.RELEASE.jar:5.2.23.RELEASE]
at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:996) ~[spring-web-5.2.23.RELEASE.jar:5.2.23.RELEASE]
at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:979) ~[spring-web-5.2.23.RELEASE.jar:5.2.23.RELEASE]
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:739) ~[spring-web-5.2.23.RELEASE.jar:5.2.23.RELEASE]
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:672) ~[spring-web-5.2.23.RELEASE.jar:5.2.23.RELEASE]
at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:581) ~[spring-web-5.2.23.RELEASE.jar:5.2.23.RELEASE]
at com.webank.wedatasphere.dss.appconn.qualitis.project.QualitisProjectSearchOperation.searchProject(QualitisProjectSearchOperation.java:69) ~[?:?]
at com.webank.wedatasphere.dss.appconn.qualitis.project.QualitisProjectSearchOperation.searchProject(QualitisProjectSearchOperation.java:29) ~[?:?]
at com.webank.wedatasphere.dss.framework.project.service.impl.DSSFrameworkProjectServiceImpl.lambda$isExistSameProjectName$9(DSSFrameworkProjectServiceImpl.java:234) ~[dss-framework-project-server-1.1.2.jar:?]
at com.webank.wedatasphere.dss.framework.project.utils.ProjectOperationUtils.lambda$tryProjectOperation$4(ProjectOperationUtils.java:54) ~[dss-framework-project-server-1.1.2.jar:?] at com.webank.wedatasphere.dss.standard.app.structure.utils.StructureOperationUtils.tryStructureOperation(StructureOperationUtils.java:55) ~[dss-structure-integration-standard-1.1.2.jar:?]
at com.webank.wedatasphere.dss.standard.app.structure.utils.StructureOperationUtils.tryProjectOperation(StructureOperationUtils.java:83) ~[dss-structure-integration-standard-1.1.2.jar:?]
at com.webank.wedatasphere.dss.framework.project.utils.ProjectOperationUtils.lambda$tryProjectOperation$5(ProjectOperationUtils.java:48) ~[dss-framework-project-server-1.1.2.jar:?] at java.util.ArrayList.forEach(ArrayList.java:1257) ~[?:1.8.0_212]
at com.webank.wedatasphere.dss.framework.project.utils.ProjectOperationUtils.lambda$tryProjectOperation$6(ProjectOperationUtils.java:46) ~[dss-framework-project-server-1.1.2.jar:?] at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[?:1.8.0_212]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_212]
at java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:352) ~[?:1.8.0_212]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_212]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_212]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:1.8.0_212]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[?:1.8.0_212]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_212]
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) ~[?:1.8.0_212]
Anything else
qualitis1.2.0
Are you willing to submit a PR?
- Yes I am willing to submit a PR!