private void checkLegalPath(final String uriPath, final String[] pathParts) {
        for (int i = 0; i < pathParts.length - 1 /* not the end of path */; i++) {
            if (isMatchAll(pathParts[i])) {
                LOG.error("error path:{}, error position:{}", uriPath, i);
                throw new ShenyuException("No more pattern data allowed after ** pattern element");
            }
        }
    }
check legal path.

@param pathParts path array
shenyu-plugin/shenyu-plugin-base/src/main/java/org/apache/shenyu/plugin/base/trie/ShenyuTrie.java