BFG application.yml "java.nio.charset.MalformedInputException: Input length = 1"
search cancel

BFG application.yml "java.nio.charset.MalformedInputException: Input length = 1"

book

Article ID: 417650

calendar_today

Updated On:

Products

Endevor

Issue/Introduction

Endevor Bridge For Git startup fails with:
"org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1"

Environment

Bridge For Git 2.15.10

Resolution

The error indicates some problem with the application.yml file encoding.
The user also sees the same problem using default supplied application.yml file i.e. before they made any edits.
After the file was sent to Support (binary download from z/OS and zipped) it does not appear to be in UTF-8 encoding and appears to be an EBCDIC file.
There may be some issue with the way the file was copied on USS and the OS default encoding.

Using the file templates.zip from the BFG 2.15.10 software download file (BridgeForGit-Version-2.15.10.zip):

  1. On PC unzip the templates.zip which only contains 1 file application.yml.

  2. Using ftp in binary mode transfer the application.yml to USS file system and use that default file with no changes to verify the BFG STC will start without the error.

  3. If #2 is successful then stop the STC and use ISPF 3.17 EU (Edit with UTF-8 Data Encoding) option to edit the file and make required changes.
    Then restart the STC to check the status.

#2 & #3 were successful, and the application.yml file encoding problem was resolved.