- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2023 07:30 AM
The MalformedInputException is an exception in the java.nio.charset package in Java that indicates that an input sequence is malformed or cannot be decoded correctly using a specific character set.
```java.nio.charset.MalformedInputException``` is caused by the default locale settings difference in the DCS cluster. After setting the below environment variables in the DCS cluster environment variables, you should be able to run your code fine.
Kindly add the below settings in the environment variable:
LANG=C.UTF-8
LC_ALL=C.UTF-8
By setting LANG=C.UTF-8 and LC_ALL=C.UTF-8, you are configuring the locale to use the UTF-8 character encoding, which can help address issues related to character encoding and malformed input when working with Java processes.