Expand my Community achievements bar.

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

Avatar

Level 9

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

Avatar

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]".

Avatar

Level 9
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