【问题标题】:java.net.URISyntaxException:Invalid character at index 69 when deploying war in weblogicjava.net.URISyntaxException:在 weblogic 中部署战争时,索引 69 处的字符无效
【发布时间】:2013-04-01 09:45:08
【问题描述】:

我正在尝试在weblogic 中部署一个战争文件。我收到以下error message

 java.net.URISyntaxException: Illegal character in path [1] at index 69:
 https://xxxxxxxxxxx.test-secure-xxxxxxx-processing.com/xxxxxx/CNP_2_1

问题中的字符是_ (underscore)。有什么办法解决吗?

该 URL 已在 bean xml 文件中定义。

【问题讨论】:

    标签: java weblogic


    【解决方案1】:

    索引 69 处有一个非法字符。

    see here

    【讨论】:

    • 路径中没有空格。我们仔细检查了它。
    【解决方案2】:

    这样试试

    请使用 encode utils 来去除 URL 中的特殊符号

    String url = URLEncoder.encode("your url here","UTF-8"));
    

    也看看here

    【讨论】:

      猜你喜欢
      • 2019-04-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多