Action.admin.indices.create failed to create

HI ,

I using elastic4s for an api client , i cant index anything
im getting this error

[2014-04-21 20:34:02,735][DEBUG][action.admin.indices.create] [Captain UK]
[] failed to create
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:658)
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.
validateIndexName(MetaDataCreateIndexService.java:168)
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.validate(
MetaDataCreateIndexService.java:523)
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.access$100
(MetaDataCreateIndexService.java:87)
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$2.execute(
MetaDataCreateIndexService.java:220)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(
InternalClusterService.java:308)
at org.elasticsearch.common.util.concurrent.
PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(
PrioritizedEsThreadPoolExecutor.java:134)
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 several method and option but the result is the same ,

what im i doing wrong ??

thanks
miki

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/70f69cec-12d0-4306-b0b1-11c703e8b507%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I'm not familiar with elastic4s but it "seems" like you are trying to
create an index and passing a blank string to it as the index name? Is that
possible?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/01c071b4-e855-4e3c-997a-9749ea91c91c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hey,

from the elasticsearch exception it looks as if you did not specify an
index name to create. Not sure how the scala client works..

--Alex

On Mon, Apr 21, 2014 at 7:37 PM, miki haiat miko5054@gmail.com wrote:

HI ,

I using elastic4s for an api client , i cant index anything
im getting this error

[2014-04-21 20:34:02,735][DEBUG][action.admin.indices.create] [Captain UK]
failed to create
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:658)
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.
validateIndexName(MetaDataCreateIndexService.java:168)
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.validate
(MetaDataCreateIndexService.java:523)
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.
access$100(MetaDataCreateIndexService.java:87)
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$2.
execute(MetaDataCreateIndexService.java:220)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.
run(InternalClusterService.java:308)
at org.elasticsearch.common.util.concurrent.
PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(
PrioritizedEsThreadPoolExecutor.java:134)
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 several method and option but the result is the same ,

what im i doing wrong ??

thanks
miki

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/70f69cec-12d0-4306-b0b1-11c703e8b507%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/70f69cec-12d0-4306-b0b1-11c703e8b507%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM9HOe4zXAo4uO0KWUeO5VNmEk4Nu%3DwayG0F10fpct_SDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Bit of a late reply as I never saw this, but like the other guys say,
sounds like you're not specifying the index. What was the syntax you were
using.

On Monday, April 21, 2014 6:37:39 PM UTC+1, miki haiat wrote:

HI ,

I using elastic4s for an api client , i cant index anything
im getting this error

[2014-04-21 20:34:02,735][DEBUG][action.admin.indices.create] [Captain UK]
failed to create
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:658)
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.
validateIndexName(MetaDataCreateIndexService.java:168)
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.validate
(MetaDataCreateIndexService.java:523)
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.
access$100(MetaDataCreateIndexService.java:87)
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$2.
execute(MetaDataCreateIndexService.java:220)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.
run(InternalClusterService.java:308)
at org.elasticsearch.common.util.concurrent.
PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(
PrioritizedEsThreadPoolExecutor.java:134)
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 several method and option but the result is the same ,

what im i doing wrong ??

thanks
miki

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/8064b263-fcaa-47b2-a7ab-5e77717a59a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.