[LF7.4GA31] Portlet not showing in widget list when using @Reference[LF7.4GA31] Portlet not showing in widget list when using @Referencehttps://liferay.dev/c/message_boards/find_thread?p_l_id=119785333&threadId=1214611552024-03-28T20:51:14Z2024-03-28T20:51:14ZRE: [LF7.4GA31] Portlet not showing in widget list when using @ReferenceOlaf Kockhttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1214618392022-07-07T09:13:20Z2022-07-07T09:13:19Z<p>This typically means that the referenced service is not available -
e.g. you'd need to also deploy the service-builder generated API and
implementation bundle, and they'll need to start without any problems
(the bundle may be active, but the service might have a problem).</p>
<p>If your widget appears in the list without the @Reference, the
service won't be initialized, so you're likely running into
NullpointerExceptions when you actually use your widget, whenever it
tries to call the service.</p>
<p> </p>Olaf Kock2022-07-07T09:13:19Z[LF7.4GA31] Portlet not showing in widget list when using @ReferenceTinfo Tinfohttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1214611542022-07-06T13:24:47Z2022-07-06T13:24:45Z<p>Hi,</p>
<p>we are starting to do some test on the Liferay 7.4 version, we
noticed that portlet without any services works fine, instead portlet
with services modules aren't working, the problem is that the portlet
will not show up in widget list if we use @Reference(unbind =
"-") to retrieve the service, for example with this code </p>
<pre>
<code>private static CompetenzaLocalService _competenzaLocalService;
@Reference(unbind = "-")
protected void setCompetenzaLocalService(CompetenzaLocalService competenzaLocalService) {
_competenzaLocalService = competenzaLocalService;
}</code></pre>
<p>Portlet won't show, instead with this code:</p>
<pre>
<code>private static CompetenzaLocalService _competenzaLocalService;
protected void setCompetenzaLocalService(CompetenzaLocalService competenzaLocalService) {
_competenzaLocalService = competenzaLocalService;
}</code></pre>
<p>it will show up in the widget list.</p>
<p>There aren't other errors, the portlet in both case correctly start </p>
<p>2022-07-06 13:00:25.597 INFO [pipe-start
1560][BundleStartStopLogger:77] STARTED it.tinfo.competenze_1.0.0 [1560]</p>
<p>in the app manager the status is active, also the portlet work fine
in Liferay 7.3</p>
<p>Which could be the problem?</p>