APAR status
Closed as program error.
Error description
When starting up z/OSMF server with Liberty 22.0.0.3 and getting this error and warning in message.log CWWKO1100E: The ScheduledExecutorService OSGi service is not available CWWKO1102W: A Swagger object cannot be created for APIProvider SwaggerWebProvider product = z/OSMF 2.5.0 (wlp-1.0.62.cl220320220302-1100) wlp.install.dir = /usr/lpp/liberty_zos/IBM/22.0.0.3/ With trace.specification = *=warning:com.ibm.ws.rest.api.disco very.*=all:com.ibm.zoszmf.*=info:com.ibm.zoszmf.environment.ui= finer:com.ibm.zoszmf.util.*=all trace.log shows the following details: CWWKO1102W: A Swagger object cannot be created for APIProvider SwaggerWebProvider={contextRoot=nullmoduleURL=} from document type Swagger_20_JSON due to class java.lang.IllegalStateException : CWWKO1100E: The ScheduledExecutorService OSGi service is not available.. CWWKO1100E: The ScheduledExecutorService OSGi service is not available. [12/12/22 17:35:36:557 GMT] 0000007e id=8922c2f3 com.ibm.ws.rest.api.discovery.SwaggerWebProvider > getContextRoot Entry [12/12/22 17:35:36:557 GMT] 0000007e id=8922c2f3 com.ibm.ws.rest.api.discovery.SwaggerWebProvider 1 Coudn't create context root URL: java.net.MalformedURLException: no protocol: at java.net.URL.<init>(URL.java:622) at java.net.URL.<init>(URL.java:519) at java.net.URL.<init>(URL.java:468) at com.ibm.ws.rest.api.discovery.SwaggerWebProvider.getContext Root(SwaggerWebProvider.java:340) at com.ibm.ws.rest.api.discovery.SwaggerWebProvider.toString(S waggerWebProvider.java:301) at java.text.MessageFormat.subformat(MessageFormat.java:1291) at java.text.MessageFormat.format(MessageFormat.java:876) at java.text.Format.format(Format.java:168) at java.text.MessageFormat.format(MessageFormat.java:852) at com.ibm.ws.logging.internal.impl.BaseTraceFormatter.formatM essage(BaseTraceFormatter.java:301) at com.ibm.ws.logging.internal.impl.BaseTraceFormatter.formatM essage(BaseTraceFormatter.java:237) at com.ibm.ws.logging.internal.impl.BaseTraceService.publishLo gRecord(BaseTraceService.java:1033) at com.ibm.ws.logging.internal.impl.BaseTraceService.warning(B aseTraceService.java:759) at com.ibm.websphere.ras.Tr.warning(Tr.java:797) at com.ibm.ws.rest.api.discovery.APIProviderAggregator.process ApiProvider(APIProviderAggregator.java:675) at com.ibm.ws.rest.api.discovery.APIProviderAggregator.setApiP roviderAction(APIProviderAggregator.java:450) at com.ibm.ws.rest.api.discovery.APIProviderAggregator.setServ erStartedPhase2(APIProviderAggregator.java:390) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Local fix
n/a
Problem summary
**************************************************************** * USERS AFFECTED: All users of WebSphere Liberty * **************************************************************** * PROBLEM DESCRIPTION: The Swagger document fails to generate * * due to ScheduledExecutorService OSGi * * service not yet available. * **************************************************************** * RECOMMENDATION: * **************************************************************** The Swagger document fails to generate due to java.lang.IllegalStateException : CWWKO1100E: The ScheduledExecutorService OSGi service is not available. The service takes some time to start and might not be available yet at the time when the API Discovery feature is scanning application(s) for the Swagger documentation.
Problem conclusion
ScheduledExecutorService has been marked as a mandatory service and Swagger document generation will not proceed until the OSGI service becomes available. The fix for this APAR is targeted for inclusion in fix pack 23.0.0.4. For more information, see 'Recommended Updates for WebSphere Application Server': https://www.ibm.com/support/pages/node/715553
Temporary fix
Restart affected application after full server startup to trigge Swagger document rescan and generation.
Comments
APAR Information
APAR number
PH52912
Reported component name
LIBERTY PROF -
Reported component ID
5655W6514
Reported release
CD0
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2023-02-28
Closed date
2023-04-25
Last modified date
2023-04-25
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
LIBERTY PROF -
Fixed component ID
5655W6514
Applicable component levels
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"CD0","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
26 April 2023