java.net.URISyntaxException

后端 未结 6 518
孤城傲影
孤城傲影 2021-01-01 11:08

I have get this exception. but this exception is not reproduced again. I want to get the cause of this

Exception Caught while Checking tag in XMLjava.net.UR         


        
6条回答
  •  情深已故
    2021-01-01 11:26

    I ran into this problem because my path had white space.

    Once I removed the white space in the file path it worked for me.

    Caused by: java.net.URISyntaxException: Illegal character in path at index 45: file:/var/lib/jenkins/workspace/Engine Release/target/classes/com/app/model/script/ScriptEngineScript.class
    at java.net.URI$Parser.fail(URI.java:2848) ~[?:1.8.0_191]
    at java.net.URI$Parser.checkChars(URI.java:3021) ~[?:1.8.0_191]
    at java.net.URI$Parser.parseHierarchical(URI.java:3105) ~[?:1.8.0_191]
    at java.net.URI$Parser.parse(URI.java:3053) ~[?:1.8.0_191]
    at java.net.URI.(URI.java:588) ~[?:1.8.0_191]
    at java.net.URL.toURI(URL.java:946) ~[?:1.8.0_191]
    at org.codehaus.groovy.ast.decompiled.AsmDecompiler.parseClass(AsmDecompiler.java:70) ~[groovy-2.5.11.jar:2.5.11]
    

提交回复
热议问题