java.lang.IllegalStateException: java.lang.NumberFormatException: For input string: "XXXXXXXXXX@fili-us-east-1.searchly.com:80"

Spring JIRA | Petar Tahchiev | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Hello, I have a spring-boot application that I want to deploy to cloudfoundry (PWS). I registered searchly elasticsearch on my pws and I get this url for the elasticsearch instance: {code} "credentials": { "uri": "http://gopivotal:XXXXXXXXXXX@fili-us-east-1.searchly.com", "sslUri": "https://gopivotal:XXXXXXXXXXX@fili-us-east-1.searchly.com" } {code} As per the elasticsearch properties I tried adding this property: {{spring.data.elasticsearch.cluster-nodes=${cloud.services.nemesis-elasticsearch.connection.cluster-nodes:gopivotal:XXXXXX@fili-us-east-1.searchly.com:80} }} but now i get this exception when i start the server: {code} icsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NumberFormatException: For input string: "XXXXXXXXXX@fili-us-east-1.searchly.com:80" 2015-10-08T22:41:06.44+0300 [App/0] ERR at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) 2015-10-08T22:41:06.44+0300 [App/0] ERR at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) 2015-10-08T22:41:06.44+0300 [App/0] ERR at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2015-10-08T22:41:06.44+0300 [App/0] ERR ... 276 more 2015-10-08T22:41:06.44+0300 [App/0] ERR Caused by: java.lang.NumberFormatException: For input string: "XXXXXXXXXX@fili-us-east-1.searchly.com:80" 2015-10-08T22:41:06.44+0300 [App/0] ERR at java.lang.Integer.parseInt(Integer.java:580) 2015-10-08T22:41:06.44+0300 [App/0] ERR at org.springframework.data.elasticsearch.client.TransportClientFactoryBean.afterPropertiesSet(TransportClientFactoryBean.java:85) 2015-10-08T22:41:06.44+0300 [App/0] ERR ... 286 more {code} I believe it's because the url assumes everything after the colon is port number. Perhaps you need several properties for host, port username, password, etc.

    Spring JIRA | 1 year ago | Petar Tahchiev
    java.lang.IllegalStateException: java.lang.NumberFormatException: For input string: "XXXXXXXXXX@fili-us-east-1.searchly.com:80"
  2. 0

    Hello, I have a spring-boot application that I want to deploy to cloudfoundry (PWS). I registered searchly elasticsearch on my pws and I get this url for the elasticsearch instance: {code} "credentials": { "uri": "http://gopivotal:XXXXXXXXXXX@fili-us-east-1.searchly.com", "sslUri": "https://gopivotal:XXXXXXXXXXX@fili-us-east-1.searchly.com" } {code} As per the elasticsearch properties I tried adding this property: {{spring.data.elasticsearch.cluster-nodes=${cloud.services.nemesis-elasticsearch.connection.cluster-nodes:gopivotal:XXXXXX@fili-us-east-1.searchly.com:80} }} but now i get this exception when i start the server: {code} icsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NumberFormatException: For input string: "XXXXXXXXXX@fili-us-east-1.searchly.com:80" 2015-10-08T22:41:06.44+0300 [App/0] ERR at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) 2015-10-08T22:41:06.44+0300 [App/0] ERR at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) 2015-10-08T22:41:06.44+0300 [App/0] ERR at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2015-10-08T22:41:06.44+0300 [App/0] ERR ... 276 more 2015-10-08T22:41:06.44+0300 [App/0] ERR Caused by: java.lang.NumberFormatException: For input string: "XXXXXXXXXX@fili-us-east-1.searchly.com:80" 2015-10-08T22:41:06.44+0300 [App/0] ERR at java.lang.Integer.parseInt(Integer.java:580) 2015-10-08T22:41:06.44+0300 [App/0] ERR at org.springframework.data.elasticsearch.client.TransportClientFactoryBean.afterPropertiesSet(TransportClientFactoryBean.java:85) 2015-10-08T22:41:06.44+0300 [App/0] ERR ... 286 more {code} I believe it's because the url assumes everything after the colon is port number. Perhaps you need several properties for host, port username, password, etc.

    Spring JIRA | 1 year ago | Petar Tahchiev
    java.lang.IllegalStateException: java.lang.NumberFormatException: For input string: "XXXXXXXXXX@fili-us-east-1.searchly.com:80"
  3. 0

    Proguard android keep class

    Stack Overflow | 3 years ago | Ganesh
    java.lang.NumberFormatException: Invalid int: "null"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android progress bar doesn't update

    Stack Overflow | 2 years ago | Leonardo
    java.lang.NumberFormatException: Invalid int: "0.0"
  6. 0

    Kafka Timeline

    rssing.com | 1 year ago
    java.lang.NumberFormatException: For input string: "wr"

  1. rp 4 times, last 2 weeks ago
  2. Handemelindo 6 times, last 2 weeks ago
  3. treefolk 3 times, last 1 month ago
  4. andreeaa marin 2 times, last 1 month ago
  5. eti22 6 times, last 1 month ago
33 more registered users
62 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NumberFormatException

    For input string: "XXXXXXXXXX@fili-us-east-1.searchly.com:80"

    at java.lang.Integer.parseInt()
  2. Java RT
    Integer.parseInt
    1. java.lang.Integer.parseInt(Integer.java:580)
    1 frame
  3. Spring Data Elasticsearch
    TransportClientFactoryBean.afterPropertiesSet
    1. org.springframework.data.elasticsearch.client.TransportClientFactoryBean.afterPropertiesSet(TransportClientFactoryBean.java:85)
    1 frame
  4. Spring Beans
    ConstructorResolver.instantiateUsingFactoryMethod
    1. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
    2. org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
    2 frames
  5. Java RT
    DelegatingMethodAccessorImpl.invoke
    1. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    1 frame