legacy-knowledge-base
公開されました Sep. 10, 2025

java.net error URISyntaxException:Illegal character in path at index 0 occurred during export process.

written-by

Kanchan Bisht

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • ウェブコンテンツをエクスポートする際、ユーザーは何度もエラーに遭遇するが、エラーの数にもかかわらずエクスポートは成功する。
  • 再現するための手順
    1) DXP 7.3 u23
    2) 'text', 'image', 'Link to page' フィールドを持つ構造を作成
    3) この構造からWebコンテンツを作成し、1つの基本Webコンテンツ
    4) 出版物に移動> エクスポートしてみる
    期待する動作: エクスポートプロセスは成功します。
    観察された挙動 エクスポート処理は成功しますが、以下のエラーが発生します。

    ERROR [liferay/background_task-4][HttpComponentsUtil:390] null
    com.liferay.portal.kernel.log.LogSanitizerException: java.net.URISyntaxException: Illegal character in path at index 0: <?xml version="1.0"?>__<root available-locales="en_US"default-locale="en_US" version="1.0">_       <dynamic-element index-type="" instance-id="EEyvJHNl" name="FieldsGroup58466005" type="fieldset">_              <dynamic-element index-type="keyword" instance-id="sV5xg7Z4" name="Text79630757" type="text">_                      <dynamic-content language-id="en_US"><![CDATA[Web Content 3]]></dynamic-content>_           </dynamic-element>_             <dynamic-element index-type="keyword" instance-id="Owl5PNmh" name="Upload42878555" type="document_library">_
                    <dynamic-content language-id="en_US"><![CDATA[{"classPK":43000,"groupId":"20123","title":"Asset2.jpg","type":"document","uuid":"bcf76f36-8a35-0278-e7fb-152b1930c169"}]]></dynamic-content>_                </dynamic-element>_             <dynamic-element index-type="keyword" instance-id="0825klPD" name="Numeric40046757" type="numeric">_                        <dynamic-content language-id="en_US"><![CDATA[9999999999]]></dynamic-content>_          </dynamic-element>_             <dynamic-element index-type="keyword" instance-id="NaxVSjAw" name="LinkToPage94792237" type="link_to_layout">_                      <dynamic-content language-id="en_US"><![CDATA[{"groupId":20123,"id":"e59a41e7-e366-73fd-c1b7-f825def8ef8a","layoutId":"2","name":"Pages > Home","privateLayout":false,"value":"\/home"}]]></dynamic-content>_               </dynamic-element>_ </dynamic-element>_</root> [Sanitized]
            at java.net.URI$Parser.fail(URI.java:2848) ~[?:1.8.0_201]
            at java.net.URI$Parser.checkChars(URI.java:3021) ~[?:1.8.0_201]
            at java.net.URI$Parser.parseHierarchical(URI.java:3105) ~[?:1.8.0_201]
            at java.net.URI$Parser.parse(URI.java:3063) ~[?:1.8.0_201]
            at java.net.URI.<init>(URI.java:588) ~[?:1.8.0_201]
            at com.liferay.portal.kernel.util.HttpComponentsUtil.getURI(HttpComponentsUtil.java:455) ~[portal-kernel.jar:?]
            at com.liferay.portal.kernel.util.HttpComponentsUtil.getProtocol(HttpComponentsUtil.java:387) [portal-kernel.jar:?]
            at com.liferay.portal.kernel.util.HttpComponentsUtil.hasProtocol(HttpComponentsUtil.java:476) [portal-kernel.jar:?]

Environment

  • Liferay DXP 7.4 update 23

解決策

  • 観測されたエラーは、DXP 7.4 update 26で対処された既知のバグによるものです。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base