Legacy Knowledge Base
Published Jul. 2, 2025

java.lang.IllegalArgumentException: java.net.URISyntaxException: Expected authority at index 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.

Issue

  • The following exception can be obtained when using S3 as store if no s3Endpoint is configured:
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

  • Liferay DXP using S3 as store.

Resolution

  • Configure the appropiate s3Endpoint in com.liferay.portal.store.s3.configuration.S3StoreConfiguration.config

Additional Information

 

 

Did this article resolve your issue ?

Legacy Knowledge Base