Neo4j start 启动时在debug日志中发现的问题
发布于 7 个月前 作者 arrnyy 270 次浏览 来自 问答

2021-10-24 19:16:23.856+0800 ERROR [o.n.i.d.DiagnosticsManager] Failure while logging diagnostics for LIBRARY_PATH java.nio.file.InvalidPathException: Illegal char <"> at index 0: "D:\dev\jdk1.8\bin at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182) ~[?:?] at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153) ~[?:?] at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) ~[?:?] at sun.nio.fs.WindowsPath.parse(WindowsPath.java:92) ~[?:?] at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229) ~[?:?] at java.nio.file.Path.of(Path.java:147) ~[?:?] at org.neo4j.kernel.diagnostics.providers.SystemDiagnostics.canonicalize(SystemDiagnostics.java:354) ~[neo4j-kernel-4.2.12-SNAPSHOT.jar:4.2.12-SNAPSHOT] at org.neo4j.kernel.diagnostics.providers.SystemDiagnostics$6.dump(SystemDiagnostics.java:215) ~[neo4j-kernel-4.2.12-SNAPSHOT.jar:4.2.12-SNAPSHOT] at org.neo4j.internal.diagnostics.DiagnosticsManager.dump(DiagnosticsManager.java:55) ~[neo4j-diagnostics-4.2.12-SNAPSHOT.jar:4.2.12-SNAPSHOT] at org.neo4j.internal.diagnostics.DiagnosticsManager.dump(DiagnosticsManager.java:46) ~[neo4j-diagnostics-4.2.12-SNAPSHOT.jar:4.2.12-SNAPSHOT] at org.neo4j.kernel.diagnostics.providers.DbmsDiagnosticsManager.lambda$dumpSystemDiagnostics$4(DbmsDiagnosticsManager.java:153) ~[neo4j-kernel-4.2.12-SNAPSHOT.jar:4.2.12-SNAPSHOT] at org.neo4j.kernel.diagnostics.providers.DbmsDiagnosticsManager.dumpAsSingleMessageWithPrefix(DbmsDiagnosticsManager.java:212) [neo4j-kernel-4.2.12-SNAPSHOT.jar:4.2.12-SNAPSHOT] at org.neo4j.kernel.diagnostics.providers.DbmsDiagnosticsManager.dumpAsSingleMessage(DbmsDiagnosticsManager.java:195) [neo4j-kernel-4.2.12-SNAPSHOT.jar:4.2.12-SNAPSHOT] at org.neo4j.kernel.diagnostics.providers.DbmsDiagnosticsManager.dumpSystemDiagnostics(DbmsDiagnosticsManager.java:150) [neo4j-kernel-4.2.12-SNAPSHOT.jar:4.2.12-SNAPSHOT] at org.neo4j.kernel.diagnostics.providers.DbmsDiagnosticsManager.dumpSystemDiagnostics(DbmsDiagnosticsManager.java:70) [neo4j-kernel-4.2.12-SNAPSHOT.jar:4.2.12-SNAPSHOT] at org.neo4j.graphdb.factory.module.GlobalModule.<init>(GlobalModule.java:226) [neo4j-4.2.12-SNAPSHOT.jar:4.2.12-SNAPSHOT] at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.createGlobalModule(DatabaseManagementServiceFactory.java:252) [neo4j-4.2.12-SNAPSHOT.jar:4.2.12-SNAPSHOT] at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:126) [neo4j-4.2.12-SNAPSHOT.jar:4.2.12-SNAPSHOT] at org.neo4j.server.CommunityBootstrapper.createNeo(CommunityBootstrapper.java:36) [neo4j-4.2.12-SNAPSHOT.jar:4.2.12-SNAPSHOT] at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:134) [neo4j-4.2.12-SNAPSHOT.jar:4.2.12-SNAPSHOT] at org.neo4j.server.BlockingBootstrapper.start(BlockingBootstrapper.java:45) [neo4j-4.2.12-SNAPSHOT.jar:4.2.12-SNAPSHOT] at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:90) [neo4j-4.2.12-SNAPSHOT.jar:4.2.12-SNAPSHOT] at org.neo4j.server.CommunityEntryPoint.start(CommunityEntryPoint.java:49) [neo4j-4.2.12-SNAPSHOT.jar:4.2.12-SNAPSHOT]

报错部分如上,这个D:\dev\jdk1.8\bin 是我之前安装过的JDK1.8,后面卸载了改为了JDK11,maven编译版本也改为了11,请问一下这个出错的原因是什么呢,望大佬指点一下
2 回复

debug日志中,JVM infomation打印如下 VM Name: Java HotSpot™ 64-Bit Server VM VM Vendor: Oracle Corporation VM Version: 11.0.2+9-LTS JIT compiler: HotSpot 64-Bit Tiered Compilers VM Arguments: [-XX:+UnlockExperimentalVMOptions, -Djdk.tls.rejectClientInitiatedRenegotiation=true, -XX:+UseG1GC, -XX:-UseBiasedLocking, -XX:+TrustFinalNonStaticFields, -Dlog4j2.disable.jmx=true, -XX:FlightRecorderOptions=stackdepth=256, -XX:+AlwaysPreTouch, -XX:+UnlockDiagnosticVMOptions, -Djdk.tls.ephemeralDHKeySize=2048, -Djdk.nio.maxCachedBufferSize=262144, -Dio.netty.tryReflectionSetAccessible=true, -XX:-OmitStackTraceInFastThrow, -XX:+DebugNonSafepoints, -XX:+DisableExplicitGC, -XX:MaxInlineLevel=15, -Dfile.encoding=UTF-8, exit, abort]

电脑重启之后已经解决了这个问题

回到顶部