Unable to login to WebSwing after changing masteradmin password: Caused by: java.lang.NumberFormatException: For input string: "100.0"
search cancel

Unable to login to WebSwing after changing masteradmin password: Caused by: java.lang.NumberFormatException: For input string: "100.0"

book

Article ID: 418830

calendar_today

Updated On:

Products

Automation Analytics & Intelligence

Issue/Introduction

Modifying the masteradmin password for the Webswing Config tool adds .0 in the following lines below.

"sessionMode": "CONTINUE_FOR_USER",

    "maxClients": 100.0,

    "maxClientsPerUser": -1.0,

    "allowStealSession": true,

    "autoLogout": true,

    "monitorEdtEnabled": true,

    "loadingAnimationDelay": 2.0,

    "recordingAllowed": true,

    "recordingConsentRequired": false,

    "mirroringAllowed": true,

    "mirroringConsentRequired": false,

    "uploadMaxSize": 5.0,

 

As a result, it is not possible to log in to WebSwing Config Tool. The error message in webswing.log.

==========================================================

Caused by: java.lang.NumberFormatException: For input string: "100.0"

at java.lang.NumberFormatException.forInputString(NumberFormatException.java:67) ~[?:?]

at java.lang.Integer.parseInt(Integer.java:668) ~[?:?]

at java.lang.Integer.parseInt(Integer.java:786) ~[?:?]

at org.webswing.server.core.services.sessionpool.impl.SessionPoolManagerImpl.isMaxClientsReached(SessionPoolManagerImpl.java:1010) ~[webswing-server-core-25.1.1.jar:?]

at org.webswing.server.core.services.sessionpool.impl.SessionPoolManagerImpl.connectView(SessionPoolManagerImpl.java:976) ~[webswing-server-core-25.1.1.jar:?]

at org.webswing.server.core.handler.application.impl.AppPathHandlerImpl.connectView(AppPathHandlerImpl.java:170) ~[webswing-server-core-25.1.1.jar:?]

at org.webswing.server.core.services.websocket.impl.BrowserWebSocketConnectionEndpoint.onMessage(BrowserWebSocketConnectionEndpoint.java:159) ~[webswing-server-core-25.1.1.jar:?]

at org.webswing.server.core.services.websocket.impl.AbstractWebSocketConnection$1.onMessage(AbstractWebSocketConnection.java:68) ~[webswing-server-core-25.1.1.jar:?]

at org.webswing.tools.servlet.websocket.Session$2.onMessage(Session.java:122) ~[webswing-tools-servlet-25.1.1.jar:?]

at org.webswing.tools.servlet.websocket.Session$2.onMessage(Session.java:118) ~[webswing-tools-servlet-25.1.1.jar:?]

at org.eclipse.jetty.ee10.websocket.jakarta.common.messages.AbstractDecodedMessageSink.invoke(AbstractDecodedMessageSink.java:61) ~[webswing-jetty-launcher.jar:?]

... 38 more

==========================================================

 

Environment

Product:  Automation Analytics & Intelligence v24.3.x

Cause

Product defect

Resolution

Workaround

After changing the password, remove the .0 in the lines below within the webswing.config file and restart the WebSwing.

=========================================

"sessionMode": "CONTINUE_FOR_USER",

    "maxClients": 100.0,

    "maxClientsPerUser": -1.0,

    "allowStealSession": true,

    "autoLogout": true,

    "monitorEdtEnabled": true,

    "loadingAnimationDelay": 2.0,

    "recordingAllowed": true,

    "recordingConsentRequired": false,

    "mirroringAllowed": true,

    "mirroringConsentRequired": false,

    "uploadMaxSize": 5.0,

=========================================

 

A defect DE178910 has been created to fix the issue.