Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Default Session Timeout Handling Causing API Deployment Error #3197

Open
dilshanfardil opened this issue Oct 7, 2024 · 0 comments · May be fixed by wso2/apim-apps#831
Open

Issue with Default Session Timeout Handling Causing API Deployment Error #3197

dilshanfardil opened this issue Oct 7, 2024 · 0 comments · May be fixed by wso2/apim-apps#831

Comments

@dilshanfardil
Copy link

Description

Getting the following exception while trying to deploy the API with the Loadbalncer endpoint.

Load Balance Configurations:

Algorithm: Round-Robin
Session Management: Transport
Session Timeout: 300 [Default Value]
[2024-10-02 22:57:33,846]  WARN - SynapseXMLConfigurationFactory Endpoint configuration: sample111--vv1_APIproductionEndpoint cannot be built - Continue in fail-safe mode
org.apache.synapse.SynapseException: Invalid session timeout value : 300.0
	at org.apache.synapse.config.xml.endpoints.EndpointFactory.handleException(EndpointFactory.java:334) ~[synapse-core_2.1.7.wso2v227_89.jar:2.1.7-wso2v227.89]
	at org.apache.synapse.config.xml.endpoints.SALoadbalanceEndpointFactory.createEndpoint(SALoadbalanceEndpointFactory.java:79) ~[synapse-core_2.1.7.wso2v227_89.jar:2.1.7-wso2v227.89]
	at org.apache.synapse.config.xml.endpoints.EndpointFactory.createEndpointWithName(EndpointFactory.java:143) ~[synapse-core_2.1.7.wso2v227_89.jar:2.1.7-wso2v227.89]
	at org.apache.synapse.config.xml.endpoints.EndpointFactory.getEndpointFromElement(EndpointFactory.java:80) ~[synapse-core_2.1.7.wso2v227_89.jar:2.1.7-wso2v227.89]
	at org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.defineEndpoint(SynapseXMLConfigurationFactory.java:285) [synapse-core_2.1.7.wso2v227_89.jar:2.1.7-wso2v227.89]
	at org.wso2.carbon.endpoint.service.EndpointAdmin.addEndpoint(EndpointAdmin.java:183) [org.wso2.carbon.endpoint_4.7.99.199.jar:?]
	at org.wso2.carbon.apimgt.gateway.utils.EndpointAdminServiceProxy.addEndpoint_aroundBody0(EndpointAdminServiceProxy.java:59) [org.wso2.carbon.apimgt.gateway_9.0.174.453.jar:?]
	at org.wso2.carbon.apimgt.gateway.utils.EndpointAdminServiceProxy.addEndpoint(EndpointAdminServiceProxy.java:55) [org.wso2.carbon.apimgt.gateway_9.0.174.453.jar:?]
	at org.wso2.carbon.apimgt.gateway.service.APIGatewayAdmin.deployAPI_aroundBody96(APIGatewayAdmin.java:655) [org.wso2.carbon.apimgt.gateway_9.0.174.453.jar:?]
	at org.wso2.carbon.apimgt.gateway.service.APIGatewayAdmin.deployAPI(APIGatewayAdmin.java:611) [org.wso2.carbon.apimgt.gateway_9.0.174.453.jar:?]
	at org.wso2.carbon.apimgt.gateway.InMemoryAPIDeployer.deployAPI_aroundBody0(InMemoryAPIDeployer.java:91) [org.wso2.carbon.apimgt.gateway_9.0.174.453.jar:?]
	at org.wso2.carbon.apimgt.gateway.InMemoryAPIDeployer.deployAPI(InMemoryAPIDeployer.java:81) [org.wso2.carbon.apimgt.gateway_9.0.174.453.jar:?]
	at org.wso2.carbon.apimgt.gateway.listeners.GatewayJMSMessageListener$1.run_aroundBody0(GatewayJMSMessageListener.java:178) [org.wso2.carbon.apimgt.gateway_9.0.174.453.jar:?]
	at org.wso2.carbon.apimgt.gateway.listeners.GatewayJMSMessageListener$1.run(GatewayJMSMessageListener.java:152) [org.wso2.carbon.apimgt.gateway_9.0.174.453.jar:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:829) [?:?]

Steps to Reproduce

Adding the default configuration on the Loadbalncer EP and save

Algorithm: Round-Robin
Session Management: Transport
Session Timeout: 300 [Default Value]

Affected Component

APIM

Version

4.0.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant