RE: Related Assets on Liferay 7.2 GA2

João Carneiro de Melo, modified 5 Years ago. New Member Posts: 13 Join Date: 12/6/19 Recent Posts
Hello everyone,
I am having an error when using the related assets widget. This widget shows a message that says "Related Assets is temporarily unavailable.".
The error log on the console displays the message sent in attachments.
Do you have the same problem?
Is there a way to fix this?
Thank you
thumbnail
Olaf Kock, modified 5 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
João Carneiro de Melo:

I am having an error when using the related assets widget. This widget shows a message that says "Related Assets is temporarily unavailable.".
The error log on the console displays the message sent in attachments.
Looks like classloader issues. Did you deploy any plugin that duplicated Liferay's own classes (e.g. through compileInclude)? Or just unpack 7.2 GA2 on top of GA1, so that old files are still around?
João Carneiro de Melo, modified 5 Years ago. New Member Posts: 13 Join Date: 12/6/19 Recent Posts
Actually none of them. I installed 7.2 GA2 without any previous version in my device and without deploying any other plugins.
thumbnail
Fernando Fernandez, modified 5 Years ago. Expert Posts: 401 Join Date: 8/22/07 Recent Posts
Same here, with documents:
Caused by: java.lang.ClassCastException: class com.liferay.portal.repository.liferayrepository.model.LiferayFileEntry cannot be cast to class com.liferay.asset.kernel.model.AssetEntry (com.liferay.portal.repository.liferayrepository.model.LiferayFileEntry is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @3f363cf5; com.liferay.asset.kernel.model.AssetEntry is in unnamed module of loader java.net.URLClassLoader @384ad17b)
    at com.liferay.asset.publisher.web.internal.util.RelatedAssetPublisherCustomizer.setAssetEntryQueryOptions(RelatedAssetPublisherCustomizer.java:89)
    at com.liferay.asset.publisher.web.internal.display.context.AssetPublisherDisplayContext.getAssetEntryQuery(AssetPublisherDisplayContext.java:351)
    at com.liferay.asset.publisher.web.internal.display.context.AssetPublisherDisplayContext.getAssetEntryResults(AssetPublisherDisplayContext.java:364)
    at org.apache.jsp.view_jsp._jspService(view_jsp:554)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
    ... 231 more


Opened LPS-105558

Fernando