wso2 / wso2/cipher-tool

getting a NULL pointer exception when encrypting passwords in deployement.toml file

Open
#60 6 comments 0 reactions 1 assignee View on GitHub

@tharindu1st is already working on this.

Since Apr 29, 2020.

Priority/Normal Type/Bug
Dominant language
Java
Stars
41
Forks
92
PR merge metrics
No merged PRs in 30d

Description

Description:

Getting the following exception when running cipher tool for the first time with the -Dconfigure parameter

[wso2student@ip-172-31-39-130 bin]$ ./ciphertool.sh -Dconfigure

Encrypting using Internal KeyStore.

{type: JKS, alias: wso2carbon, path: /opt/wso2/Desktop/c3/wso2am-3.0.0/repository/resources/security/wso2carbon.jks}
[Please Enter Internal KeyStore Password of Carbon Server : ]

Internal KeyStore of Carbon Server is initialized Successfully

Encryption is done Successfully

Exception in thread "main" java.lang.NullPointerException
at java.lang.String.concat(String.java:2027)
at org.wso2.ciphertool.CipherTool.updateDeploymentConfigurationWithEncryptedKeys(CipherTool.java:381)
at org.wso2.ciphertool.CipherTool.main(CipherTool.java:75)

Suggested Labels:
cipher-tool,toml

Steps to reproduce:

  • Run the ciphertool.sh file in the APIM-3.0.0 with the -Dconfigre command.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.