You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Problem

When accessing a JS7 - Credential Store from a shell job or from a JVM job using JS7 - Job Templates then the following exception can be raised:

Exception when accessing Credential Store
2022-06-10 06:31:22.964+0000 [STDERR]  com.sos.commons.credentialstore.keepass.exceptions.SOSKeePassDatabaseException: [/var/sos-berlin.com/js7/agent/var_4445/config/yade.kdbx]java.lang.IllegalStateException: Inconsistent stream start bytes. This usually means the credentials were wrong.
	at com.sos.commons.credentialstore.keepass.extensions.simple.SOSSimpleDatabase.load(SOSSimpleDatabase.java:95)
	at com.sos.commons.credentialstore.keepass.SOSKeePassDatabase.getKDBXDatabase(SOSKeePassDatabase.java:373)
	at com.sos.commons.credentialstore.keepass.SOSKeePassDatabase.load(SOSKeePassDatabase.java:83)
	at com.sos.commons.credentialstore.keepass.SOSKeePassDatabase.loadFromUri(SOSKeePassDatabase.java:672)
	at com.sos.commons.credentialstore.keepass.SOSKeePassDatabase.getProperty(SOSKeePassDatabase.java:574)
	at com.sos.commons.credentialstore.keepass.SOSKeePassDatabase.main(SOSKeePassDatabase.java:744)


This exception can be found in the order log of the workflow and in the task log of the job.

Analysis

Users should look closely at the error message: Inconsistent stream start bytes. This usually means the credentials were wrong.

In most situation the error message translates to the fact that no password and no key file was specified or that a wrong password or key file was specified for a Credential Store that requires such credentials. Use of password an key file parameters is explained with the a JS7 - Credential Store article.



  • No labels