8000 除zookeeper放在linux系统中,其他都是window系统测试出现java.nio.file.InvalidPathException · Issue #166 · knightliao/disconf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

除zookeeper放在linux系统中,其他都是window系统测试出现java.nio.file.InvalidPathException #166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lyg123 opened this issue Sep 7, 2016 · 4 comments
Assignees
Labels
Milestone

Comments

@lyg123
Copy link
lyg123 commented Sep 7, 2016

No description provided.

@lyg123 lyg123 changed the title 除zookeeper放在linux系统中,其他都是window系统测试 除zookeeper放在linux系统中,其他都是window系统测试出现java.nio.file.InvalidPathException Sep 7, 2016
@lyg123
Copy link
Author
lyg123 commented Sep 7, 2016

remote.properties : /F:/GitHub/disconf-demos-java.git/disconf-standalone-demo/target/classes/\remote.properties
2016-09-07 17:58:50,768 [main-EventThread] ERROR com.baidu.disconf.client.core.processor.impl.DisconfFileCoreProcessorImpl - java.nio.file.InvalidPathException: Illegal char <:> at index 2: /F:/GitHub/disconf-demos-java.git/disconf-standalone-demo/target/classes/\remote.properties
java.nio.file.InvalidPathException: Illegal char <:> at index 2: /F:/GitHub/disconf-demos-java.git/disconf-standalone-demo/target/classes/\remote.properties
at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182) ~[na:1.8.0_102]
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153) ~[na:1.8.0_102]
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) ~[na:1.8.0_102]
at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94) ~[na:1.8.0_102]
at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255) ~[na:1.8.0_102]
at java.nio.file.Paths.get(Paths.java:84) ~[na:1.8.0_102]
at com.example.disconf.demo.service.callbacks.UpdatePipelineCallback.readFile(UpdatePipelineCallback.java:20) ~[classes/:na]
at com.example.disconf.demo.service.callbacks.UpdatePipelineCallback.reloadDisconfFile(UpdatePipelineCallback.java:28) ~[classes/:na]
at com.baidu.disconf.client.core.processor.impl.DisconfFileCoreProcessorImpl.callUpdatePipeline(DisconfFileCoreProcessorImpl.java:182) [disconf-client-2.6.35.jar:na]
at com.baidu.disconf.client.core.processor.impl.DisconfFileCoreProcessorImpl.updateOneConfAndCallback(DisconfFileCoreProcessorImpl.java:166) [disconf-client-2.6.35.jar:na]
at com.baidu.disconf.client.watch.inner.DisconfSysUpdateCallback.reload(DisconfSysUpdateCallback.java:24) [disconf-client-2.6.35.jar:na]
at com.baidu.disconf.client.watch.inner.NodeWatcher.callback(NodeWatcher.java:145) [disconf-client-2.6.35.jar:na]
at com.baidu.disconf.client.watch.inner.NodeWatcher.process(NodeWatcher.java:90) [disconf-client-2.6.35.jar:na]
at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:526) [zookeeper-3.3.6.jar:3.3.6-1366786]
at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:502) [zookeeper-3.3.6.jar:3.3.6-1366786]

@lyg123 lyg123 closed this as completed Sep 7, 2016
@lyg123
Copy link
Author
lyg123 commented Sep 7, 2016

window下java.nio.Paths.getPath()支持这种格式的F:/GitHub/disconf-demos-java.git/disconf-standalone-demo/target/classes/remote.properties
估计要修改String com.baidu.disconf.client.common.model.DisconfCenterFile.getFilePath()
或者 String com.baidu.disconf.core.common.utils.OsUtil.pathJoin(String... pathElements),统一解决这个路径问题

@lyg123 lyg123 reopened this Sep 7, 2016
@knightliao
Copy link
Owner

感谢报错,我会尽快修复

@knightliao knightliao self-assigned this Sep 7, 2016
@knightliao knightliao added this to the 2.6.36 milestone Sep 7, 2016
@knightliao knightliao added the bug label Sep 7, 2016
@knightliao
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
0