Closed senthuran16 closed 6 months ago
After adding the OpenTelemetry config it was observed that the APIManagerConfigurationService is set
and unset
in APIHandlerServiceComponent several times. The null pointer occurs right after an unset call.
2024-02-13 15:34:11,782] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is set in APIHandlerServiceComponent
[2024-02-13 15:34:11,783] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:11,783] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:11,789] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is [UNSET] in APIHandlerServiceComponent
[2024-02-13 15:34:11,793] INFO - BinaryDataReceiver Started Binary SSL Transport on port : 9711
[2024-02-13 15:34:11,794] INFO - BinaryDataReceiver Started Binary TCP Transport on port : 9611
[2024-02-13 15:34:11,902] INFO - ThriftServerStartupObserver Thrift Data Receiver is disabled.
[2024-02-13 15:34:11,938] INFO - InMemoryAPIDeployer [TRACK] trying to set gatewayArtifactSynchronizerProperties set in InMemoryAPIDeployer ===
[2024-02-13 15:34:11,944] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is set in APIHandlerServiceComponent
[2024-02-13 15:34:11,944] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:11,944] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:11,950] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is [UNSET] in APIHandlerServiceComponent
[2024-02-13 15:34:11,952] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is set in APIHandlerServiceComponent
[2024-02-13 15:34:11,953] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:11,953] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:11,961] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is [UNSET] in APIHandlerServiceComponent
[2024-02-13 15:34:11,963] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is set in APIHandlerServiceComponent
[2024-02-13 15:34:11,964] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:11,964] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:11,969] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is [UNSET] in APIHandlerServiceComponent
[2024-02-13 15:34:11,971] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is set in APIHandlerServiceComponent
[2024-02-13 15:34:11,972] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:11,972] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:11,978] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is [UNSET] in APIHandlerServiceComponent
[2024-02-13 15:34:11,993] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is set in APIHandlerServiceComponent
[2024-02-13 15:34:11,994] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:11,994] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:11,999] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is [UNSET] in APIHandlerServiceComponent
[2024-02-13 15:34:12,148] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is set in APIHandlerServiceComponent
[2024-02-13 15:34:12,148] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:12,148] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:12,154] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is [UNSET] in APIHandlerServiceComponent
[2024-02-13 15:34:12,158] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is set in APIHandlerServiceComponent
[2024-02-13 15:34:12,158] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:12,158] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:12,165] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is [UNSET] in APIHandlerServiceComponent
[2024-02-13 15:34:12,167] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is set in APIHandlerServiceComponent
[2024-02-13 15:34:12,167] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:12,167] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:12,175] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is [UNSET] in APIHandlerServiceComponent
[2024-02-13 15:34:12,176] INFO - CarbonUIServiceComponent Mgt Console URL : https://localhost:9443/carbon/
[2024-02-13 15:34:12,177] INFO - CarbonUIServiceComponent API Developer Portal Default Context : https://localhost:9443/devportal
[2024-02-13 15:34:12,177] INFO - CarbonUIServiceComponent API Publisher Default Context : https://localhost:9443/publisher
[2024-02-13 15:34:12,181] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is set in APIHandlerServiceComponent
[2024-02-13 15:34:12,181] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:12,181] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:12,187] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is [UNSET] in APIHandlerServiceComponent
[2024-02-13 15:34:12,189] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is set in APIHandlerServiceComponent
[2024-02-13 15:34:12,189] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:12,189] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:12,195] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is [UNSET] in APIHandlerServiceComponent
[2024-02-13 15:34:12,202] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is set in APIHandlerServiceComponent
[2024-02-13 15:34:12,202] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:12,202] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:12,209] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is [UNSET] in APIHandlerServiceComponent
[2024-02-13 15:34:12,212] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is set in APIHandlerServiceComponent
[2024-02-13 15:34:12,212] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:12,212] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:12,218] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is [UNSET] in APIHandlerServiceComponent
[2024-02-13 15:34:12,225] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is set in APIHandlerServiceComponent
[2024-02-13 15:34:12,225] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:12,225] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:12,231] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is [UNSET] in APIHandlerServiceComponent
[2024-02-13 15:34:12,233] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is set in APIHandlerServiceComponent
[2024-02-13 15:34:12,233] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:12,233] INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2024-02-13 15:34:12,239] INFO - APIHandlerServiceComponent [TRACK] APIManagerConfigurationService is [UNSET] in APIHandlerServiceComponent
[2024-02-13 15:34:12,243] ERROR - Framework FrameworkEvent ERROR
java.lang.NullPointerException: null
at org.wso2.carbon.apimgt.gateway.internal.ServiceReferenceHolder.getAPIManagerConfiguration_aroundBody12(ServiceReferenceHolder.java:133) ~[org.wso2.carbon.apimgt.gateway_9.29.22.SNAPSHOT.jar:?]
at org.wso2.carbon.apimgt.gateway.internal.ServiceReferenceHolder.getAPIManagerConfiguration(ServiceReferenceHolder.java:1) ~[org.wso2.carbon.apimgt.gateway_9.29.22.SNAPSHOT.jar:?]
at org.wso2.carbon.apimgt.gateway.InMemoryAPIDeployer.<init>(InMemoryAPIDeployer.java:83) ~[org.wso2.carbon.apimgt.gateway_9.29.22.SNAPSHOT.jar:?]
at org.wso2.carbon.apimgt.gateway.listeners.GatewayStartupListener.cleanDeployment_aroundBody6(GatewayStartupListener.java:172) ~[org.wso2.carbon.apimgt.gateway_9.29.22.SNAPSHOT.jar:?]
at org.wso2.carbon.apimgt.gateway.listeners.GatewayStartupListener.cleanDeployment(GatewayStartupListener.java:1) ~[org.wso2.carbon.apimgt.gateway_9.29.22.SNAPSHOT.jar:?]
at org.wso2.carbon.apimgt.gateway.listeners.GatewayStartupListener.completingServerStartup_aroundBody0(GatewayStartupListener.java:129) ~[org.wso2.carbon.apimgt.gateway_9.29.22.SNAPSHOT.jar:?]
at org.wso2.carbon.apimgt.gateway.listeners.GatewayStartupListener.completingServerStartup(GatewayStartupListener.java:1) ~[org.wso2.carbon.apimgt.gateway_9.29.22.SNAPSHOT.jar:?]
The issue is caused by having multiple versions of the following jars. The lower versions are coming from the synapse which should also be bumped.
Proceeding to upgrade the relevant versions in the synapse and carbon-apimgt
<opentelemetry.all.version>1.34.1.wso2v1</opentelemetry.all.version>
<okhttp.wso2.version>4.11.0.wso2v1</okhttp.wso2.version>
<okio.wso2.version>3.6.0.wso2v1</okio.wso2.version>
Encountered :
Cannot complete the install because one or more required items could not be found.
Software being installed: WSO2 Carbon - Cache Mediator Feature 4.7.193.SNAPSHOT (org.wso2.carbon.mediator.cache.server.feature.group 4.7.193.SNAPSHOT)
Missing requirement: Zipkin Sender: OkHttp 3 2.16.3 (io.zipkin.reporter2.zipkin-sender-okhttp3 2.16.3) requires 'package okio [1.15.0,3.0.0)' but it could not be found
Cannot satisfy dependency:
From: WSO2 Carbon - Synapse Feature 4.0.0.wso2v84_SNAPSHOT (org.apache.synapse.wso2.feature.group 4.0.0.wso2v84_SNAPSHOT)
To: io.zipkin.reporter2.zipkin-sender-okhttp3 [2.16.3]
Cannot satisfy dependency:
From: WSO2 Carbon - Cache Mediator Feature 4.7.193.SNAPSHOT (org.wso2.carbon.mediator.cache.server.feature.group 4.7.193.SNAPSHOT)
To: org.apache.synapse.wso2.feature.group [4.0.0.wso2v84_SNAPSHOT,4.1.0)
Closing this as this is fixed in the master
Description
Upon enabling OpenTelemetry [1] (I tested with Jaeger) as follows:
Startup of the pack fails with the following error:
[1] https://apim.docs.wso2.com/en/latest/observe/api-manager/traces/monitoring-with-opentelemetry/#enabling-jaeger-tracing
Steps to Reproduce
Affected Component
APIM
Version
4.3.0.M1
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response