Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Liferay Developer Studio 3.9.3 fails to start gradle workspace
After experiencing som network issues and being disconnected from the
development enviroment, and Liferay developer studio being shutdown
inproperly, I get the following errors when trying to start developer
studio:
FAILURE: Build failed with an exception.* Where:
Settings file 'C:\LiferayIDE_3_9_3\liferay-workspace\settings.gradle' line: 22* What went wrong:
A problem occurred evaluating settings 'liferay-workspace'.
> Failed to apply plugin 'com.liferay.workspace'.
> Could not create an instance of type com.liferay.gradle.plugins.workspace.WorkspaceExtension.
> Unable to get product info for :portal-7.4-ga1* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.org
CONFIGURE FAILED in 14s
Cant find anything about how to fix this? Any ideas what i can do to make the workspace load?
Hello, We are in the same situation, we cannot build our project.
In the settings.graddle, we have an url https://repository.liferay.com/nexus/content/groups/public and the certificat has expired.
Could Liferay do anything to fix the problem, please ?
Samuel Gru
Hi,
It seems like a issue with a certificate of the repo. With other version,
Caused by: org.gradle.api.GradleException: Unable to get product info for :dxp-7.3-sp1
at com.liferay.gradle.plugins.workspace.WorkspaceExtension.lambda$_getProductInfo$0(WorkspaceExtension.java:476)
at com.liferay.gradle.plugins.workspace.WorkspaceExtension._getProductInfo(WorkspaceExtension.java:443)
at com.liferay.gradle.plugins.workspace.WorkspaceExtension._getDefaultAppServerVersion(WorkspaceExtension.java:390)
at com.liferay.gradle.plugins.workspace.WorkspaceExtension.<init>(WorkspaceExtension.java:80)
at com.liferay.gradle.plugins.workspace.WorkspaceExtension_Decorated.<init>(Unknown Source)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at org.gradle.internal.instantiation.generator.AsmBackedClassGenerator$InvokeConstructorStrategy.newInstance(AsmBackedClassGenerator.java:1969)
at org.gradle.internal.instantiation.generator.AbstractClassGenerator$GeneratedClassImpl$GeneratedConstructorImpl.newInstance(AbstractClassGenerator.java:468)
at org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator.doCreate(DependencyInjectingInstantiator.java:64)
... 148 more
Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at com.liferay.portal.tools.bundle.support.internal.util.HttpUtil._downloadFile(HttpUtil.java:183)
at com.liferay.portal.tools.bundle.support.internal.util.HttpUtil.downloadFile(HttpUtil.java:152)
at com.liferay.portal.tools.bundle.support.commands.DownloadCommand.execute(DownloadCommand.java:65)
at com.liferay.gradle.plugins.workspace.WorkspaceExtension.lambda$_getProductInfo$0(WorkspaceExtension.java:456)
... 158 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
... 173 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
... 173 more
I think the only solution is waiting for Liferay to fix the issue
Regards,
I noticed it myself, their ssl certificate had expired.
Now though when i start my workspace, all gradle actions and workspace tree views are empty, any idea how to restore the workspace? This has happened before and had to resort to backups as i could find anything about the issue
Started working again for me about 10 minutes ago (11:30 AM EST)
Might have been an overlapping certificate that needed revoking to allow the new one to propagate.
But the exception was certainly not particularly helpful.
Restarted my Dev Studio and refreshed my workspace and I was back up and running.
After experiencing som network issues and being disconnected from the development enviroment, and Liferay developer studio being shutdown inproperly, I get the following errors when trying to start developer studio: ---> For the above issue it generally happens due to network break as it fails to apply gradle workspace plugin mentioned in settings.gradle file The only solution to this as of now is to make sure you have working network connection for to apply plugin & restart the LDS.
Still got an issue with the workspace being "corrupt" after this, dont know where to begin..:
Powered by Liferay™