# Problem running ElasticSearch (Spring Data)

**URL:** <https://discuss.elastic.co/t/problem-running-elasticsearch-spring-data/13690>\
**Category:** Elasticsearch\
**Created:** [September 19, 2013, 3:00pm UTC](https://discuss.elastic.co/t/problem-running-elasticsearch-spring-data/13690 "2013-09-19T15:00:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![apprentice321](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@apprentice321](https://discuss.elastic.co/u/apprentice321)\
**Post date:** [September 19, 2013, 3:00pm UTC](https://discuss.elastic.co/t/problem-running-elasticsearch-spring-data/13690/1 "2013-09-19T15:00:30Z")

</div>

Hi,

I'm getting the following stacktrace on running ElasticSearch (Spring Data)  
Application. Anyone know the cause of this error?

INFO: Illegal access: this web application instance has been stopped  
already. Could not load  
org.elasticsearch.cluster.routing.RoutingService$1. The eventual following  
stack trace is caused by an error thrown for debugging purposes as well as  
to attempt to terminate the thread which caused the illegal access, and has  
no functional impact.  
java.lang.IllegalStateException  
at  
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1599)  
at  
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1558)  
at  
org.elasticsearch.cluster.routing.RoutingService.reroute(RoutingService.java:142)  
at  
org.elasticsearch.cluster.routing.RoutingService.access$200(RoutingService.java:51)  
at  
org.elasticsearch.cluster.routing.RoutingService$RoutingTableUpdater.run(RoutingService.java:163)  
at  
org.elasticsearch.threadpool.ThreadPool$LoggingRunnable.run(ThreadPool.java:530)  
at  
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)  
at  
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)  
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)  
at  
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)  
at  
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)  
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:722)

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![costin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/costin/32/44950_2.png) [@costin](https://discuss.elastic.co/u/costin)\
**Post date:** [September 19, 2013, 3:08pm UTC](https://discuss.elastic.co/t/problem-running-elasticsearch-spring-data/13690/2 "2013-09-19T15:08:36Z")

</div>

From the error message it looks like your webapp has stopped and ES, probably while shutting down is trying to log  
something which leads to class loading which causes the message and exception by Tomcat (which prevent the loading from  
happening).  
You should probably find out what causes the webapp to close in the first place.

On 19/09/2013 6:00 PM, [apprentice321@googlemail.com](mailto:apprentice321@googlemail.com) wrote:

> Hi,
> 
> I'm getting the following stacktrace on running Elasticsearch (Spring Data) Application. Anyone know the cause of this  
> error?
> 
> INFO: Illegal access: this web application instance has been stopped already. Could not load  
> org.elasticsearch.cluster.routing.RoutingService$1. The eventual following stack trace is caused by an error thrown for  
> debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional  
> impact.  
> java.lang.IllegalStateException  
> at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1599)  
> at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1558)  
> at org.elasticsearch.cluster.routing.RoutingService.reroute(RoutingService.java:142)  
> at org.elasticsearch.cluster.routing.RoutingService.access$200(RoutingService.java:51)  
> at org.elasticsearch.cluster.routing.RoutingService$RoutingTableUpdater.run(RoutingService.java:163)  
> at org.elasticsearch.threadpool.ThreadPool$LoggingRunnable.run(ThreadPool.java:530)  
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)  
> at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)  
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)  
> at  
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)  
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)  
> 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:722)
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Costin

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:15am UTC](https://discuss.elastic.co/t/problem-running-elasticsearch-spring-data/13690/3 "2017-07-06T02:15:31Z")

</div>

Closed on July 6, 2017, 2:15am UTC


