Message Boards

Deploiment of ext module for asset publisher web in Liferay 7.2 issue

Ana Marin, modified 3 Years ago.

Deploiment of ext module for asset publisher web in Liferay 7.2 issue

New Member Post: 1 Join Date: 2/26/21 Recent Posts

Dear Liferay Community,

I have developed a module ext project in Liferay 7.2.1 for com.liferay.asset.publisher.web (version:"3.0.47"), as I need to introduce the filter by page categories of the asset publishers.

I deployed my ext module as oficially documented: I stopped the original one in Gogo shell and then deployed mine. Even if the status of the original module is "resolved", the log is full of errors indicating duplicates, especially for plenty of soy templates (although I never touched them), like these :

Caused by: com.liferay.portal.kernel.template.TemplateException: Unable to process template 88_BUNDLE_CONTEXT_/META-INF/resources/js/SelectSiteNavigationMenuItem.soy,133_BUNDLE_CONTEXT_/META-INF/resources/js/FragmentEditor.soy,133_BUNDLE
_CONTEXT_/META-INF/resources/js/AceEditor.soy,133_BUNDLE_CONTEXT_/META-INF/resources/js/FragmentPreview.soy,133_BUNDLE_CONTEXT_/META-INF/resources/js/SourceEditor.soy,133_BUNDLE_CONTEXT_/META-INF/resources/js/SourceEditorToolbar.soy,141_
BUNDLE_CONTEXT_/META-INF/resources/flags/soy/Flags.soy,148_BUNDLE_CONTEXT_/META-INF/resources/translation_manager/TranslationManager.soy,148_BUNDLE_CONTEXT_/META-INF/resources/contextual_sidebar/ContextualSidebar.soy,148_BUNDLE_CONTEXT_/
META-INF/resources/cards_treeview/CardsTreeview.soy,148_BUNDLE_CONTEXT_/META-INF/resources/diff_version_comparator/DiffVersionComparator.soy,149_BUNDLE_CONTEXT_/META-INF/resources/node_modules/frontend-taglib-chart$clay-charts@2.18.1/src
/ScatterChart.soy,149_BUNDLE_CONTEXT_/META-INF/resources/node_modules/frontend-taglib-chart$clay-charts@2.18.1/src/GaugeChart.soy,149_BUNDLE_CONTEXT_/META-INF/resources/node_modules/frontend-taglib-chart$clay-charts@2.18.1/src/AreaSpline
Chart.soy,149_BUNDLE_CONTEXT_/META-INF/resources/node_modules/frontend-taglib-chart$clay-charts@2.18.1/src/BubbleChart.soy,149_BUNDLE_CONTEXT_/META-INF/resources/node_modules/frontend-taglib-chart$clay-charts@2.18.1/src/RadarChart.soy,14
9_BUNDLE_CONTEXT_/META-INF/
........
998_BUNDLE_CONTEXT_/META-INF/resources/js/ColorPickerInput.soy,998_BUNDLE_CONTEXT_/META-INF/resources/js/ToggleDisableInputs.soy,1066_BUNDLE_CONTEXT_/META-INF/resources/js/AutoField.soy
        at com.liferay.portal.template.BaseTemplate.processTemplate(BaseTemplate.java:132)
        at com.liferay.portal.template.soy.renderer.internal.SoyRendererImpl.renderSoy(SoyRendererImpl.java:66)
        at com.liferay.portal.template.soy.renderer.internal.SoyComponentRendererHelper._renderTemplate(SoyComponentRendererHelper.java:191)
        at com.liferay.portal.template.soy.renderer.internal.SoyComponentRendererHelper.renderSoyComponent(SoyComponentRendererHelper.java:70)
        at com.liferay.portal.template.soy.renderer.internal.SoyComponentRendererImpl.renderSoyComponent(SoyComponentRendererImpl.java:61)
        at com.liferay.frontend.taglib.soy.servlet.taglib.TemplateRendererTag.doEndTag(TemplateRendererTag.java:60)
        at org.apache.jsp.entries.layout_005fheader_jsp._jspService(layout_005fheader_jsp.java:310)

The only way I manage to make things work is UNINSTALL the original module (with uninstall <module_id> in Gogo Shell). This works until the very next restart of Liferay Server. At that moment, the original module comes back as active, near the ext one, which is also active. The log is full of errors again, like these:

2021-02-26 18:09:42.025 ERROR [main][AssetPublisherExportImportPortletPreferencesProcessor:93] bundle com.liferay.asset.publisher.web:3.0.47 (1087)[com.liferay.asset.publisher.web.internal.exportimport.portlet.preferences.processor.AssetPublisherExportImportPortletPreferencesProcessor(5153)] : The assetPublisherWebUtil field has thrown an exception
2021-02-26 18:09:42.027 ERROR [main][HighestRatedAssetsExportImportPortletPreferencesProcessor:93] bundle com.liferay.asset.publisher.web:3.0.47 (1087)[com.liferay.asset.publisher.web.internal.exportimport.portlet.preferences.processor.HighestRatedAssetsExportImportPortletPreferencesProcessor(5156)] : The assetPublisherWebUtil field has thrown an exception
2021-02-26 18:09:42.029 ERROR [main][MostViewedAssetsExportImportPortletPreferencesProcessor:93] bundle com.liferay.asset.publisher.web:3.0.47 (1087)[com.liferay.asset.publisher.web.internal.exportimport.portlet.preferences.processor.MostViewedAssetsExportImportPortletPreferencesProcessor(5157)] : The assetPublisherWebUtil field has thrown an exception
2021-02-26 18:09:42.031 ERROR [main][RecentContentExportImportPortletPreferencesProcessor:93] bundle com.liferay.asset.publisher.web:3.0.47 (1087)[com.liferay.asset.publisher.web.internal.exportimport.portlet.preferences.processor.RecentContentExportImportPortletPreferencesProcessor(5158)] : The assetPublisherWebUtil field has thrown an exception
2021-02-26 18:09:42.034 ERROR [main][RelatedAssetsExportImportPortletPreferencesProcessor:93] bundle com.liferay.asset.publisher.web:3.0.47 (1087)[com.liferay.asset.publisher.web.internal.exportimport.portlet.preferences.processor.RelatedAssetsExportImportPortletPreferencesProcessor(5159)] : The assetPublisherWebUtil field has thrown an exception
2021-02-26 18:09:42.036 ERROR [main][AssetEntriesCheckerUtil:93] bundle com.liferay.asset.publisher.web:3.0.47 (1087)[com.liferay.asset.publisher.web.internal.messaging.AssetEntriesCheckerUtil(5161)] : The _assetPublisherWebUtil field has thrown an exception
2021-02-26 18:09:42.038 ERROR [main][AssetPublisherPortlet:93] bundle com.liferay.asset.publisher.web:3.0.47 (1087)[com.liferay.asset.publisher.web.internal.portlet.AssetPublisherPortlet(5164)] : The assetEntryActionRegistry field has thrown an exception
2021-02-26 18:09:42.039 ERROR [main][AssetPublisherPortlet:93] bundle com.liferay.asset.publisher.web:3.0.47 (1087)[com.liferay.asset.publisher.web.internal.portlet.AssetPublisherPortlet(5164)] : The assetPublisherCustomizerRegistry field has thrown an exception
2021-02-26 18:09:42.041 ERROR [main][AssetPublisherPortlet:93] bundle com.liferay.asset.publisher.web:3.0.47 (1087)[com.liferay.asset.publisher.web.internal.portlet.AssetPublisherPortlet(5164)] : The assetPublisherWebUtil field has thrown an exception
2021-02-26 18:09:42.042 ERROR [main][AssetPublisherPortlet:93] bundle com.liferay.asset.publisher.web:3.0.47 (1087)[com.liferay.asset.publisher.web.internal.portlet.AssetPublisherPortlet(5164)] : The assetRSSUtil field has thrown an exception
2021-02-26 18:09:42.095 ERROR [main][AssetPublisherConfigurationAction:93] bundle com.liferay.asset.publisher.web:3.0.47 (1087)[com.liferay.asset.publisher.web.internal.portlet.action.AssetPublisherConfigurationAction(5171)] : The assetEntryActionRegistry field has thrown an exception
2021-02-26 18:09:42.096 ERROR [main][AssetPublisherConfigurationAction:93] bundle com.liferay.asset.publisher.web:3.0.47 (1087)[com.liferay.asset.publisher.web.internal.portlet.action.AssetPublisherConfigurationAction(5171)] : The assetPublisherCustomizerRegistry field has thrown an exception
2021-02-26 18:09:42.097 ERROR [main][AssetPublisherConfigurationAction:93] bundle com.liferay.asset.publisher.web:3.0.47 (1087)[com.liferay.asset.publisher.web.internal.portlet.action.AssetPublisherConfigurationAction(5171)] : The assetPublisherWebUtil field has thrown an exception
2021-02-26 18:09:42.100 ERROR [main][HighestRatedAssetsConfigurationAction:93] bundle com.liferay.asset.publisher.web:3.0.47 (1087)[com.liferay.asset.publisher.web.internal.portlet.action.HighestRatedAssetsConfigurationAction(5172)] : The assetEntryActionRegistry field has thrown an exception
.........................
2021-02-26 18:09:42.225 ERROR [main][DefaultAssetPublisherCustomizerRegistry:93] bundle com.liferay.asset.publisher.web:3.0.47.ext (1086)[com.liferay.asset.publisher.web.internal.util.DefaultAssetPublisherCustomizerRegistry(5139)] : The registerAssetPublisherCustomizer method has thrown an exception
java.lang.IllegalArgumentException: argument type mismatch
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:228)
        at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41)
        at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:664)
        at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:510)
        at org.apache.felix.scr.impl.inject.methods.BindMethod.invoke(BindMethod.java:42)
        at org.apache.felix.scr.impl.manager.DependencyManager.doInvokeBindMethod(DependencyManager.java:1813)
        at org.apache.felix.scr.impl.manager.DependencyManager.invokeBindMethod(DependencyManager.java:1788)
        at org.apache.felix.scr.impl.manager.SingleComponentManager.invokeBindMethod(SingleComponentManager.java:436)

If I uninstall both and install only mine, it may work again.

I mention that I have made a clean install of Liferay 7.2.1 in order to be sure that there isn't something else interfering. I simply cannot overcome this and I am really stuck.

Could you give me a hint, idea or guidance for what am I doing wrong in the deployment process (or even in the development one) and how could I make this work in a stable manner, please?

Thank you very much,

Ana.