cloud build failing with (java.lang.NumberFormatException: For input string: "$[secret:elasticsearch/port]") | Community
Skip to main content
Level 8
June 10, 2021

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

  • June 10, 2021
  • 1 reply
  • 874 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Ritesh_Mittal
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
June 10, 2021

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

TB3dockAuthor
Level 8
June 11, 2021
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