KB Article #165129

String index out of range

Problem

-- Issue after Electronic Signature 2.8.0 upgrade
-- At first restart there is a FATAL error with 'String index out of range' details for instance:
2013-04-17 09:09:01 FATAL [main] (ConsoleLogger.java:82) - Error starting Electronic Signature server
java.lang.StringIndexOutOfBoundsException: String index out of range: 28

Resolution

-- Following the SP's indications, followings lines must have been added into /conf/configuration.properties
# encrypted password of the certificate imported in the keystore
server.keystore.certificate.encryptedPassword=1rpc1u2a1shw1shm1u301rpa

In case a space have been put by mistake at the end of the encrypted password, it will be count as a part of this password, and Electronic Signature will indicate a "String index out of range: 28" exception. Unexpected character must be removed.