java.nio.file.InvalidPathException: Illegal char <:> at index 4: file:///c%3A/test/test.mydsl

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

The path should start without the leading "/".

,
Expert tip

The path should start without the leading "/".

Solutions on the web

via GitHub by chriskn
, 1 year ago
Illegal char <:> at index 4: file:///c%3A/test/test.mydsl
via Google Groups by Joachim, 10 months ago
Illegal char <:> at index 2: /C:/Workspace-Modernisierung/BD-Disposition/tech.bison.bd. disposition.adapter/target/test-classes/
via Stack Overflow by Aequitas
, 2 years ago
Illegal char <?> at index 8: C:/temp/?.txt
via Coderanch by kri shan, 1 year ago
Illegal char <:> at index 2: /c:/a/b/c/d/hai.txt
via Stack Overflow by Rajeev Singh
, 2 years ago
Illegal char &lt;:&gt; at index 5: https://abc/dir
via howtobuildsoftware.com by Unknown author, 1 year ago
Illegal char <:> at index 5: https://abc/dir
java.nio.file.InvalidPathException: Illegal char <:> at index 4: file:///c%3A/test/test.mydsl
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:94)
at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
at java.nio.file.Paths.get(Paths.java:84)
at org.eclipse.xtext.ide.server.UriExtensions.toUri(UriExtensions.java:23)
at org.eclipse.xtext.ide.server.LanguageServerImpl.lambda$completion$18(LanguageServerImpl.java:441)
at org.eclipse.xtext.ide.server.concurrent.RequestManager.lambda$runRead$3(RequestManager.java:129)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 6 months ago
3 times, 3 weeks ago
Once, 7 months ago
8 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
8 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.