stonelion opened a new issue, #12097: URL: https://github.com/apache/dubbo/issues/12097
<!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy --> - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate. ### Environment * Dubbo version: 3.1.8 * Operating System version: xxx * Java version: xxx ### Steps to reproduce this issue 1. registry 配置了 group。 2. 启用接口/应用同时注册。 3. 启动服务。 Pls. provide [GitHub address] to reproduce this issue. ### Expected Behavior <!-- What do you expect from the above steps?--> ### Actual Behavior <!-- What actually happens? --> If there is an exception, please attach the exception trace: ``` java.lang.RuntimeException: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('.' (code 46)): Expected space separating root-level values at [Source: [B@106f2425; line: 1, column: 8] at org.apache.dubbo.common.function.ThrowableFunction.execute(ThrowableFunction.java:54) ~[dubbo-3.1.8.jar!/:3.1.8] at org.apache.dubbo.common.function.ThrowableFunction.execute(ThrowableFunction.java:69) ~[dubbo-3.1.8.jar!/:3.1.8] at org.apache.dubbo.registry.zookeeper.ZookeeperServiceDiscovery.doInServiceDiscovery(ZookeeperServiceDiscovery.java:185) ~[dubbo-3.1.8.jar!/:3.1.8] ``` 原因是 ZookeeperServiceDiscovery 的 /services 目录没有使用二级目录创建,创建到同接口注册的 /{group}/{service-a} 路径下,导致基于接口的服务发现会在该目录下注册旧的(consumer、provider)等目录,导致无法反序列化。 <img width="498" alt="image" src="https://user-images.githubusercontent.com/5867317/232049292-a399c11b-dde7-4bbd-a925-d9a5c8b93a07.png"> 预期,需要在 /{group}/services/{service-a} <img width="542" alt="image" src="https://user-images.githubusercontent.com/5867317/232049904-94743aaf-51e0-4b50-b067-af42b8ca7e74.png"> 或者有其他解决方式? -- 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. To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org