java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by Petar Tahchiev,
  • 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.
    via by Petar Tahchiev,
  • Android progress bar doesn't update
    via Stack Overflow by Leonardo
    ,
  • Proguard android keep class
    via Stack Overflow by Ganesh
    ,
  • Kafka Timeline
    via by Unknown author,
  • java : convert string value to int
    via Stack Overflow by lamisse
    ,
    • java.lang.IllegalStateException: java.lang.NumberFormatException: For input string: "XXXXXXXXXX@fili-us-east-1.searchly.com:80" at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) Caused by: java.lang.NumberFormatException: For input string: "XXXXXXXXXX@fili-us-east-1.searchly.com:80" at java.lang.Integer.parseInt(Integer.java:580) at org.springframework.data.elasticsearch.client.TransportClientFactoryBean.afterPropertiesSet(TransportClientFactoryBean.java:85) ... 3 more

    Users with the same issue

    David
    1 times, last one,
    Aravind
    5 times, last one,
    rp
    2 times, last one,
    Unknown User
    1 times, last one,
    Unknown visitor1 times, last one,
    153 more bugmates