You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/05/12 09:46:38 UTC

[GitHub] [dolphinscheduler] JunjianS opened a new issue #5454: BindingException:Invalid bound statement(not found)

JunjianS opened a new issue #5454:
URL: https://github.com/apache/dolphinscheduler/issues/5454


   version:1.3.2
   I try to add a new mapper (sql),  get this exception when call the new api, but others is ok. i checked that interface method name is same as mapper id.
   org.apache.ibatis.binding.BindingException:Invalid bound statement(not found)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] JunjianS closed issue #5454: BindingException:Invalid bound statement(not found)

Posted by GitBox <gi...@apache.org>.
JunjianS closed issue #5454:
URL: https://github.com/apache/dolphinscheduler/issues/5454


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #5454: BindingException:Invalid bound statement(not found)

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #5454:
URL: https://github.com/apache/dolphinscheduler/issues/5454#issuecomment-839634658


   Hi:
   * Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
   * In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
   * If you haven't received a reply for a long time, you can subscribe to the developer's email,Mail subscription steps reference https://dolphinscheduler.apache.org/zh-cn/community/development/subscribe.html ,Then write the issue URL in the email content and send question to dev@dolphinscheduler.apache.org.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] chengshiwen commented on issue #5454: BindingException:Invalid bound statement(not found)

Posted by GitBox <gi...@apache.org>.
chengshiwen commented on issue #5454:
URL: https://github.com/apache/dolphinscheduler/issues/5454#issuecomment-839730730


   @JunjianS It's better to show all your changes about the new mapper


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] JunjianS commented on issue #5454: BindingException:Invalid bound statement(not found)

Posted by GitBox <gi...@apache.org>.
JunjianS commented on issue #5454:
URL: https://github.com/apache/dolphinscheduler/issues/5454#issuecomment-840300286


   > @JunjianS It's better to show all your changes about the new mapper
   
   thanks for you reply, I found the cause of the problem. I made a mistake in config dir.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] JunjianS commented on issue #5454: BindingException:Invalid bound statement(not found)

Posted by GitBox <gi...@apache.org>.
JunjianS commented on issue #5454:
URL: https://github.com/apache/dolphinscheduler/issues/5454#issuecomment-840206178


   > @JunjianS It's better to show all your changes about the new mapper
   @chengshiwen thanks for your reply.
   I add a new method in ProcessDefinitionMapper.java, a select in ProcessDefinitionMapper.xml, and corresponding method in service and controller.
   
       @ApiOperation(value = "queryProcessDefinitionListByState", notes = "QUERY_PROCESS_DEFINITION_LIST_BY_STATE_NOTES")
       @GetMapping(value = "/list-state")
       @ResponseStatus(HttpStatus.OK)
       @ApiException(QUERY_PROCESS_DEFINITION_LIST)
       public Result queryProcessDefinitionListByState(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser,
                                                       @RequestParam("releaseState") Integer releaseState
       ) {
           logger.info("query process definition list by release state, login user:{}",
                   loginUser.getUserName());
           Map<String, Object> result = processDefinitionService.queryProcessDefinitionListByState(releaseState);
           return returnDataList(result);
       }
   
       /**
        * list process definition by release state
        * @param releaseState release state
        * @return map
        */
       public Map<String, Object>  queryProcessDefinitionListByState(Integer releaseState){
           HashMap<String, Object> result = new HashMap<>(5);
   
           List<ProcessDefinition> processDefinitionList = processDefineMapper.queryDefinitionListByState(releaseState);
           result.put(Constants.DATA_LIST, processDefinitionList);
           putMsg(result, Status.SUCCESS);
   
           return result;
       }
   
       /**
        * list all process definition by release state
        * @param releaseState release state
        * @return process definition list
        */
       List<ProcessDefinition> queryDefinitionListByState(@Param("releaseState") int releaseState);
   
       <select id="queryDefinitionListByState" resultType="org.apache.dolphinscheduler.dao.entity.ProcessDefinition">
           select * from t_ds_process_definition where release_state = #{releaseState}
       </select>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] JunjianS removed a comment on issue #5454: BindingException:Invalid bound statement(not found)

Posted by GitBox <gi...@apache.org>.
JunjianS removed a comment on issue #5454:
URL: https://github.com/apache/dolphinscheduler/issues/5454#issuecomment-840206178


   > @JunjianS It's better to show all your changes about the new mapper
   @chengshiwen thanks for your reply.
   I add a new method in ProcessDefinitionMapper.java, a select in ProcessDefinitionMapper.xml, and corresponding method in service and controller.
   
       @ApiOperation(value = "queryProcessDefinitionListByState", notes = "QUERY_PROCESS_DEFINITION_LIST_BY_STATE_NOTES")
       @GetMapping(value = "/list-state")
       @ResponseStatus(HttpStatus.OK)
       @ApiException(QUERY_PROCESS_DEFINITION_LIST)
       public Result queryProcessDefinitionListByState(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser,
                                                       @RequestParam("releaseState") Integer releaseState
       ) {
           logger.info("query process definition list by release state, login user:{}",
                   loginUser.getUserName());
           Map<String, Object> result = processDefinitionService.queryProcessDefinitionListByState(releaseState);
           return returnDataList(result);
       }
   
       /**
        * list process definition by release state
        * @param releaseState release state
        * @return map
        */
       public Map<String, Object>  queryProcessDefinitionListByState(Integer releaseState){
           HashMap<String, Object> result = new HashMap<>(5);
   
           List<ProcessDefinition> processDefinitionList = processDefineMapper.queryDefinitionListByState(releaseState);
           result.put(Constants.DATA_LIST, processDefinitionList);
           putMsg(result, Status.SUCCESS);
   
           return result;
       }
   
       /**
        * list all process definition by release state
        * @param releaseState release state
        * @return process definition list
        */
       List<ProcessDefinition> queryDefinitionListByState(@Param("releaseState") int releaseState);
   
       <select id="queryDefinitionListByState" resultType="org.apache.dolphinscheduler.dao.entity.ProcessDefinition">
           select * from t_ds_process_definition where release_state = #{releaseState}
       </select>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org