# IllegalFormatConversionException\[d != java.lang.Double\]

**URL:** <https://discuss.elastic.co/t/illegalformatconversionexception-d-java-lang-double/22573>\
**Category:** Elasticsearch\
**Created:** [March 8, 2015, 3:14pm UTC](https://discuss.elastic.co/t/illegalformatconversionexception-d-java-lang-double/22573 "2015-03-08T15:14:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Germain](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Germain](https://discuss.elastic.co/u/Germain)\
**Post date:** [March 8, 2015, 3:14pm UTC](https://discuss.elastic.co/t/illegalformatconversionexception-d-java-lang-double/22573/1 "2015-03-08T15:14:40Z")

</div>

Hello everybody,

I have an error that never happened before.

On every node the versions are :  
Elasticsearch 0.90.13  
java version "1.7.0\_75"  
OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~precise1)  
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)

When i want to allocate or relocate shards, I get this error :

curl -XPOST node1:9200/\_cluster/reroute -d '{  
"commands" : [  
{  
"allocate" : {  
"index" : "warmup-2015-1", "shard" : 6, "node" : "node2"  
}  
}  
]  
}'  
{"error":"RemoteTransportException[[nodemaster][inet[/x.x.x.x:9300]][cluster/reroute]];  
nested: IllegalFormatConversionException[d != java.lang.Double];  
","status":400}

Nodemaster logs :  
[2015-03-08 15:18:30,577][DEBUG][action.admin.cluster.reroute]  
[nodemaster.rtgi.eu] failed to perform [cluster\_reroute (api)]  
java.util.IllegalFormatConversionException: d != java.lang.Double  
at  
java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4045)  
at  
java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2748)  
at java.util.Formatter$FormatSpecifier.print(Formatter.java:2702)  
at java.util.Formatter.format(Formatter.java:2488)  
at java.util.Formatter.format(Formatter.java:2423)  
at java.lang.String.format(String.java:2834)  
at  
org.elasticsearch.cluster.routing.allocation.decider.Decision$Single.toString(Decision.java:106)  
at  
org.elasticsearch.cluster.routing.allocation.decider.Decision$Multi.toString(Decision.java:145)  
at java.lang.String.valueOf(String.java:2847)  
at java.lang.StringBuilder.append(StringBuilder.java:128)  
at  
org.elasticsearch.cluster.routing.allocation.command.AllocateAllocationCommand.execute(AllocateAllocationCommand.java:197)  
at  
org.elasticsearch.cluster.routing.allocation.command.AllocationCommands.execute(AllocationCommands.java:116)  
at  
org.elasticsearch.cluster.routing.allocation.AllocationService.reroute(AllocationService.java:130)  
at  
org.elasticsearch.action.admin.cluster.reroute.TransportClusterRerouteAction$1.execute(TransportClusterRerouteAction.java:  
112)  
at  
org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:300)  
at  
org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsT  
hreadPoolExecutor.java:135)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:745)

I tried a full cluster restart, i does not help.

Any idea about the problem could this ?

Thank you.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0fe70182-080d-475e-a2b2-6f9151e36dd2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0fe70182-080d-475e-a2b2-6f9151e36dd2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Germain](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Germain](https://discuss.elastic.co/u/Germain)\
**Post date:** [March 8, 2015, 6:56pm UTC](https://discuss.elastic.co/t/illegalformatconversionexception-d-java-lang-double/22573/2 "2015-03-08T18:56:56Z")

</div>

Ok, i think i just hunted the problem !  
I put my master in DEBUG level, with I discovered the nodes are almost full  
considering disk usage, with the configured watermaks  
the cluster wasn't able to make a decision about allocation.

If I ask for an allocation I get this Exception stacktrace instead of  
saying it's not possible to allocate because of the disk usage allocation  
policy.

Le dimanche 8 mars 2015 16:14:40 UTC+1, Germain a écrit :

> Hello everybody,
> 
> I have an error that never happened before.
> 
> On every node the versions are :  
> Elasticsearch 0.90.13  
> java version "1.7.0\_75"  
> OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~precise1)  
> OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)
> 
> When i want to allocate or relocate shards, I get this error :
> 
> curl -XPOST node1:9200/\_cluster/reroute -d '{  
> "commands" : [  
> {  
> "allocate" : {  
> "index" : "warmup-2015-1", "shard" : 6, "node" : "node2"  
> }  
> }  
> ]  
> }'  
> {"error":"RemoteTransportException[[nodemaster][inet[/x.x.x.x:9300]][cluster/reroute]];  
> nested: IllegalFormatConversionException[d != java.lang.Double];  
> ","status":400}
> 
> Nodemaster logs :  
> [2015-03-08 15:18:30,577][DEBUG][action.admin.cluster.reroute] [  
> nodemaster.rtgi.eu] failed to perform [cluster\_reroute (api)]  
> java.util.IllegalFormatConversionException: d != java.lang.Double  
> at  
> java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4045)  
> at  
> java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2748)  
> at java.util.Formatter$FormatSpecifier.print(Formatter.java:2702)  
> at java.util.Formatter.format(Formatter.java:2488)  
> at java.util.Formatter.format(Formatter.java:2423)  
> at java.lang.String.format(String.java:2834)  
> at  
> org.elasticsearch.cluster.routing.allocation.decider.Decision$Single.toString(Decision.java:106)  
> at  
> org.elasticsearch.cluster.routing.allocation.decider.Decision$Multi.toString(Decision.java:145)  
> at java.lang.String.valueOf(String.java:2847)  
> at java.lang.StringBuilder.append(StringBuilder.java:128)  
> at  
> org.elasticsearch.cluster.routing.allocation.command.AllocateAllocationCommand.execute(AllocateAllocationCommand.java:197)  
> at  
> org.elasticsearch.cluster.routing.allocation.command.AllocationCommands.execute(AllocationCommands.java:116)  
> at  
> org.elasticsearch.cluster.routing.allocation.AllocationService.reroute(AllocationService.java:130)  
> at  
> org.elasticsearch.action.admin.cluster.reroute.TransportClusterRerouteAction$1.execute(TransportClusterRerouteAction.java:  
> 112)  
> at  
> org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:300)  
> at  
> org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsT  
> hreadPoolExecutor.java:135)  
> at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> at java.lang.Thread.run(Thread.java:745)
> 
> I tried a full cluster restart, i does not help.
> 
> Any idea about the problem could this ?
> 
> Thank you.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0017187e-3392-4934-a70b-bea2bdb662e2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0017187e-3392-4934-a70b-bea2bdb662e2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:27am UTC](https://discuss.elastic.co/t/illegalformatconversionexception-d-java-lang-double/22573/3 "2017-07-06T00:27:51Z")

</div>

Closed on July 6, 2017, 12:27am UTC


