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

Spring JIRA | Petar Tahchiev | 1 year ago
  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

    Kafka Timeline

    rssing.com | 1 year ago
    java.lang.NumberFormatException: For input string: "wr"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    record not being inserted, foreign key issue

    Stack Overflow | 3 years ago | hina fatima
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.nearby_places/com.example.nearby_places.MainActivity2}: java.lang.NumberFormatException: Invalid int: "null"
  6. 0

    java : convert string value to int

    Stack Overflow | 5 years ago | lamisse
    java.lang.NumberFormatException: For input string: ""

  1. filpgame 4 times, last 2 weeks ago
  2. MoYapro 1 times, last 1 month ago
  3. Handemelindo 1 times, last 1 month ago
  4. silex 6 times, last 1 month ago
  5. ajinkya_w 3 times, last 1 month ago
31 more registered users
64 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