# ES6.X , in IntelliJ IDEA ,from source unable start

**URL:** <https://discuss.elastic.co/t/es6-x-in-intellij-idea-from-source-unable-start/108544>\
**Category:** Elasticsearch\
**Created:** [November 21, 2017, 10:22am UTC](https://discuss.elastic.co/t/es6-x-in-intellij-idea-from-source-unable-start/108544 "2017-11-21T10:22:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sshling](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sshling/32/24052_2.png) [@sshling](https://discuss.elastic.co/u/sshling)\
**Post date:** [November 21, 2017, 10:22am UTC](https://discuss.elastic.co/t/es6-x-in-intellij-idea-from-source-unable-start/108544/1 "2017-11-21T10:22:53Z")

</div>

**conf:**  
**Main class** :  
`org.elasticsearch.bootstrap.Elasticsearch`  
**VM options** :  
-Xms1g  
-Xmx1g  
-Dlog4j.shutdownHookEnabled=false  
-Dlog4j2.disable.jmx=true  
-Des.path.home=/home/sl/02workspace/open/elasticsearch/core  
-Des.path.conf=/home/sl/02workspace/open/elasticsearch/core

**Run in debug mode, throw exceptions:**

```
[2017-11-21T18:16:13,285][INFO][o.e.n.Node] [] initializing ...
[2017-11-21T18:16:13,455][INFO][o.e.e.NodeEnvironment] [_U7tqWt] using [1] data paths, mounts [[/ (/dev/sda1)]], net usable_space [64.7gb], net total_space [105.1gb], types [ext4]
[2017-11-21T18:16:13,455][INFO][o.e.e.NodeEnvironment] [_U7tqWt] heap size [981.5mb], compressed ordinary object pointers [true]
[2017-11-21T18:16:13,457][INFO][o.e.n.Node] node name [_U7tqWt] derived from node ID [_U7tqWtVRP-qvPm4mWIJXA]; set [node.name] to override
[2017-11-21T18:16:13,457][INFO][o.e.n.Node] version[6.1.0], pid[4390], build[Unknown/Unknown], OS[Linux/4.10.0-37-generic/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_144/25.144-b01]
[2017-11-21T18:16:13,457][INFO][o.e.n.Node] JVM arguments [-agentlib:jdwp=transport=dt_socket,address=127.0.0.1:42209,suspend=y,server=n, -Xms1g, -Xmx1g, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Des.path.home=/home/sl/02workspace/open/elasticsearch/core, -Des.path.conf=/home/sl/02workspace/open/elasticsearch/core, -Dbuild.snapshot=false, -javaagent:/home/sl/01app/idea/idea-IU-172.3757.52/plugins/Groovy/lib/agent/gragent.jar, -Dfile.encoding=UTF-8]
[2017-11-21T18:16:16,171][INFO][o.e.p.PluginsService] [_U7tqWt] loaded module [aggs-matrix-stats]
[2017-11-21T18:16:16,171][INFO][o.e.p.PluginsService] [_U7tqWt] loaded module [analysis-common]
[2017-11-21T18:16:16,171][INFO][o.e.p.PluginsService] [_U7tqWt] loaded module [ingest-common]
[2017-11-21T18:16:16,171][INFO][o.e.p.PluginsService] [_U7tqWt] loaded module [lang-expression]
[2017-11-21T18:16:16,171][INFO][o.e.p.PluginsService] [_U7tqWt] loaded module [lang-mustache]
[2017-11-21T18:16:16,171][INFO][o.e.p.PluginsService] [_U7tqWt] loaded module [lang-painless]
[2017-11-21T18:16:16,172][INFO][o.e.p.PluginsService] [_U7tqWt] loaded module [mapper-extras]
[2017-11-21T18:16:16,172][INFO][o.e.p.PluginsService] [_U7tqWt] loaded module [parent-join]
[2017-11-21T18:16:16,172][INFO][o.e.p.PluginsService] [_U7tqWt] loaded module [percolator]
[2017-11-21T18:16:16,172][INFO][o.e.p.PluginsService] [_U7tqWt] loaded module [reindex]
[2017-11-21T18:16:16,172][INFO][o.e.p.PluginsService] [_U7tqWt] loaded module [repository-url]
[2017-11-21T18:16:16,172][INFO][o.e.p.PluginsService] [_U7tqWt] loaded module [transport-netty4]
[2017-11-21T18:16:16,172][INFO][o.e.p.PluginsService] [_U7tqWt] loaded module [tribe]
[2017-11-21T18:16:16,173][INFO][o.e.p.PluginsService] [_U7tqWt] no plugins loaded
[2017-11-21T18:16:16,358][INFO][i.n.u.i.PlatformDependent] Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system instability.
[2017-11-21T18:16:18,330][INFO][o.e.d.DiscoveryModule] [_U7tqWt] using discovery type [zen]
[2017-11-21T18:16:40,757][WARN][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: org.elasticsearch.common.inject.CreationException: Guice creation errors:

1) No implementation for org.elasticsearch.cluster.ClusterInfoService was bound.
  while locating org.elasticsearch.cluster.ClusterInfoService
    for parameter 6 at org.elasticsearch.action.admin.cluster.allocation.TransportClusterAllocationExplainAction.<init>(Unknown Source)
  at _unknown_
2) An exception was caught and reported. Message: null
  at _unknown_
3) No implementation for org.elasticsearch.transport.Transport was bound.
  at _unknown_
........
125 errors
	at org.elasticsearch.common.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:361) ~[main/:?]
	at org.elasticsearch.common.inject.InjectorBuilder.initializeStatically(InjectorBuilder.java:137) ~[main/:?]
	at org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:93) ~[main/:?]
	at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:96) ~[main/:?]
 ....

```

who can help me ? thanks

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [November 21, 2017, 1:42pm UTC](https://discuss.elastic.co/t/es6-x-in-intellij-idea-from-source-unable-start/108544/2 "2017-11-21T13:42:39Z")

</div>

Just run `gradle run` instead of trying to start from the IDE?

---

<div class="post-metadata">

**Author:** ![sshling](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sshling/32/24052_2.png) [@sshling](https://discuss.elastic.co/u/sshling)\
**Post date:** [November 22, 2017, 1:58am UTC](https://discuss.elastic.co/t/es6-x-in-intellij-idea-from-source-unable-start/108544/3 "2017-11-22T01:58:41Z")

</div>

By the way you said ,it can run.  
But here ,I want to debugg , running in the IDE ,so I can easily change the value of some variables test something . In the previous ES 5.X , it's no problem . I don't know why 6.x can not .

now, I just debugging by IDE remote debug -- slightly inconvenient.

Maybe some wrong my development environment...

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 22, 2017, 2:49am UTC](https://discuss.elastic.co/t/es6-x-in-intellij-idea-from-source-unable-start/108544/4 "2017-11-22T02:49:14Z")

</div>

> now, I just debugging by IDE remote debug -- slightly inconvenient.

That’s the way to go.

But what are you trying to debug? Elasticsearch? A plugin you wrote? Your application?

---

<div class="post-metadata">

**Author:** ![sshling](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sshling/32/24052_2.png) [@sshling](https://discuss.elastic.co/u/sshling)\
**Post date:** [November 22, 2017, 7:03am UTC](https://discuss.elastic.co/t/es6-x-in-intellij-idea-from-source-unable-start/108544/5 "2017-11-22T07:03:49Z")

</div>

Habits to keep the latest code, ES update more frequently ,each update must be repackaged ,more time-consuming.

and , dev plugin , just put code in `core/src` , can easily develop,debug,modify... the plugin code.

so ,remote debug -- time consuming , on my compute rebuilding a tar want about 10 min.

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [November 22, 2017, 7:09am UTC](https://discuss.elastic.co/t/es6-x-in-intellij-idea-from-source-unable-start/108544/6 "2017-11-22T07:09:41Z")

</div>

Then you need to run `gradle run --debug-jvm` and connect your IDE debugger to it.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 22, 2017, 7:25am UTC](https://discuss.elastic.co/t/es6-x-in-intellij-idea-from-source-unable-start/108544/7 "2017-11-22T07:25:37Z")

</div>

So you are writing a plugin? Sorry it's unclear to me.

If you are doing so, I'd run integration tests using the elasticsearch test framework.  
Then you can attach elasticsearch code source to your project and add breakpoints in it (or better in your code).

BTW, working on a non stable version of elasticsearch (like master branch) does not look to me as the best thing to do.  
I'm only doing so iif the latest version does not contain a patch I absolutely need. In which case, I'm building my local version which I'm using in integration tests.

My 2 cents.

---

<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:** [December 20, 2017, 7:25am UTC](https://discuss.elastic.co/t/es6-x-in-intellij-idea-from-source-unable-start/108544/8 "2017-12-20T07:25:44Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
