Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

cloud build failing with (java.lang.NumberFormatException: For input string: "$[secret:elasticsearch/port]")

TB3dock
Level 7
Level 7

09.06.2021 21:16:15.253 *ERROR* [FelixLogListener] org.apache.jackrabbit.oak.plugins.index.elastic.ElasticIndexProviderService bundle org.apache.jackrabbit.oak-search-elastic:1.39.0.R1887543 (135)[org.apache.jackrabbit.oak.plugins.index.elastic.ElasticIndexProviderService(226)] : The activate method has thrown an exception (java.lang.NumberFormatException: For input string: "$[secret:elasticsearch/port]")
java.lang.NumberFormatException: For input string: "$[secret:elasticsearch/port]"
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

 

Any ideas?

2 Replies
Ritesh_M
Community Advisor
Community Advisor

@TB3dock 

 

We get NumberFormatException, which is an unchecked exception when String cannot be converted to a number type.
You can check either through debugger or put logger to check value of  "$[secret:elasticsearch/port]".

TB3dock
Level 7
Level 7
Hi, this error happens during cloud depolyment, which happens within Adobe, so we cant debug unfortunately. The string "elasticsearch" does not occur in any file in our get repo, so presumably this is within the Adobe SDK or the cloud build or deployment process