Legacy Knowledge Base
公開されました Jul. 2, 2025

java.lang.IllegalArgumentException: java.net.URISyntaxException: インデックス 8 に権限が必要です: https://

Written By

Mariano Alvaro

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • s3Endpoint が設定されていない場合、ストアとして S3 を使用すると、次の例外が発生する可能性があります。
2021-03-16 01:18:14.998 ERROR [Start Level: Equinox Container: 8c2a1a4c-edbd-4cd0-9216-4a02f75d4f55][S3Store:93] bundle com.liferay.portal.store.s3:4.0.39 (949)[com.liferay.portal.store.s3.S3Store(2785)] : The activate method has thrown an exception
java.lang.IllegalArgumentException: java.net.URISyntaxException: Expected authority at index 8: https://
	at com.amazonaws.util.RuntimeHttpUtils.toUri(RuntimeHttpUtils.java:197)
	at com.amazonaws.util.RuntimeHttpUtils.toUri(RuntimeHttpUtils.java:171)
	at com.amazonaws.AmazonWebServiceClient.toURI(AmazonWebServiceClient.java:329)
	at com.amazonaws.AmazonWebServiceClient.setEndpoint(AmazonWebServiceClient.java:317)
	at com.amazonaws.services.s3.AmazonS3Client.setEndpoint(AmazonS3Client.java:728)
	at com.amazonaws.client.builder.AwsClientBuilder.setRegion(AwsClientBuilder.java:453)
	at com.amazonaws.client.builder.AwsClientBuilder.configureMutableProperties(AwsClientBuilder.java:424)
	at com.amazonaws.client.builder.AwsSyncClientBuilder.build(AwsSyncClientBuilder.java:46)

Environment

  • S3をストアとして使用するLiferay DXP。

解決策

  • com.liferay.portal.store.s3.configuration.S3StoreConfiguration.configで適切な s3Endpoint を構成します

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base