java.lang.StringIndexOutOfBoundsException

String index out of range: 4


Solutions on the web4568

Solution icon of coderanch
via Coderanch by axel axek, 10 months ago
String index out of range: 4

Solution icon of bugzilla
via Eclipse Bugzilla by fury123, 1 year ago
String index out of range: 4

Solution icon of bugzilla
via Eclipse Bugzilla by tmader, 1 month ago
String index out of range: -4

Solution icon of github
via GitHub by confuser
, 1 year ago
String index out of range: 4

Solution icon of github
via GitHub by matiuri
, 7 months ago
String index out of range: 4

Solution icon of github
via GitHub by mod3st
, 7 months ago
String index out of range: 4

Solution icon of github
via GitHub by tomzo
, 11 months ago
String index out of range: -4

Solution icon of github
via GitHub by krasa
, 1 year ago
String index out of range: 4

Solution icon of github
String index out of range: 4

Solution icon of github
String index out of range: -4

Stack trace

  • java.lang.StringIndexOutOfBoundsException: String index out of range: 4 at java.lang.AbstractStringBuilder.getChars(AbstractStringBuilder.java:385)[?:1.8.0_111] at java.lang.StringBuilder.getChars(StringBuilder.java:76)[?:1.8.0_111] at org.apache.lucene.analysis.tokenattributes.CharTermAttributeImpl.append(CharTermAttributeImpl.java:183)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11] at org.apache.lucene.analysis.stempel.StempelFilter.incrementToken(StempelFilter.java:76)[?:?] at org.apache.lucene.analysis.synonym.SynonymFilter.parse(SynonymFilter.java:358)[lucene-analyzers-common-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:43] at org.apache.lucene.analysis.synonym.SynonymFilter.incrementToken(SynonymFilter.java:624)[lucene-analyzers-common-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:43] at org.apache.lucene.analysis.miscellaneous.UniqueTokenFilter.incrementToken(UniqueTokenFilter.java:53)[elasticsearch-5.1.1.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:43] at org.apache.lucene.index.DefaultIndexingChain$PerField.invert(DefaultIndexingChain.java:712)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11] at org.apache.lucene.index.DefaultIndexingChain.processField(DefaultIndexingChain.java:417)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11] at org.apache.lucene.index.DefaultIndexingChain.processDocument(DefaultIndexingChain.java:373)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11] at org.apache.lucene.index.DocumentsWriterPerThread.updateDocuments(DocumentsWriterPerThread.java:272)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11] at org.apache.lucene.index.DocumentsWriter.updateDocuments(DocumentsWriter.java:433)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11] at org.apache.lucene.index.IndexWriter.updateDocuments(IndexWriter.java:1375)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11] at org.elasticsearch.index.engine.InternalEngine.update(InternalEngine.java:564)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.index.engine.InternalEngine.innerIndex(InternalEngine.java:522)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.index.engine.InternalEngine.index(InternalEngine.java:409)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.index.shard.IndexShard.index(IndexShard.java:556)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.index.shard.IndexShard.index(IndexShard.java:546)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.index.TransportIndexAction.executeIndexRequestOnPrimary(TransportIndexAction.java:191)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:348)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.bulk.TransportShardBulkAction.shardUpdateOperation(TransportShardBulkAction.java:411)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.bulk.TransportShardBulkAction.update(TransportShardBulkAction.java:233)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.bulk.TransportShardBulkAction.handleItem(TransportShardBulkAction.java:138)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.bulk.TransportShardBulkAction.onPrimaryShard(TransportShardBulkAction.java:120)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.bulk.TransportShardBulkAction.onPrimaryShard(TransportShardBulkAction.java:73)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.support.replication.TransportWriteAction.shardOperationOnPrimary(TransportWriteAction.java:75)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.support.replication.TransportWriteAction.shardOperationOnPrimary(TransportWriteAction.java:48)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryShardReference.perform(TransportReplicationAction.java:905)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryShardReference.perform(TransportReplicationAction.java:875)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.support.replication.ReplicationOperation.execute(ReplicationOperation.java:113)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.support.replication.TransportReplicationAction$AsyncPrimaryAction.onResponse(TransportReplicationAction.java:323)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.support.replication.TransportReplicationAction$AsyncPrimaryAction.onResponse(TransportReplicationAction.java:258)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.support.replication.TransportReplicationAction$1.onResponse(TransportReplicationAction.java:855)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.support.replication.TransportReplicationAction$1.onResponse(TransportReplicationAction.java:852)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.index.shard.IndexShardOperationsLock.acquire(IndexShardOperationsLock.java:142)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.index.shard.IndexShard.acquirePrimaryOperationLock(IndexShard.java:1655)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.support.replication.TransportReplicationAction.acquirePrimaryShardReference(TransportReplicationAction.java:864)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.support.replication.TransportReplicationAction.access$400(TransportReplicationAction.java:90)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.support.replication.TransportReplicationAction$AsyncPrimaryAction.doRun(TransportReplicationAction.java:275)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryOperationTransportHandler.messageReceived(TransportReplicationAction.java:254)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryOperationTransportHandler.messageReceived(TransportReplicationAction.java:246)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler.lambda$messageReceived$1(SecurityServerTransportInterceptor.java:208)[?:?] at org.elasticsearch.common.util.concurrent.EsExecutors$1.execute(EsExecutors.java:109)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler.lambda$messageReceived$2(SecurityServerTransportInterceptor.java:246)[?:?] at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:53)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.xpack.security.transport.ServerTransportFilter$NodeProfile.lambda$null$0(ServerTransportFilter.java:135)[?:?] at org.elasticsearch.xpack.security.authz.AuthorizationUtils$AsyncAuthorizer.maybeRun(AuthorizationUtils.java:131)[?:?] at org.elasticsearch.xpack.security.authz.AuthorizationUtils$AsyncAuthorizer.setRunAsRoles(AuthorizationUtils.java:125)[?:?] at org.elasticsearch.xpack.security.authz.AuthorizationUtils$AsyncAuthorizer.authorize(AuthorizationUtils.java:113)[?:?] at org.elasticsearch.xpack.security.transport.ServerTransportFilter$NodeProfile.lambda$inbound$1(ServerTransportFilter.java:137)[?:?] at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:53)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$authenticateAsync$0(AuthenticationService.java:180)[x-pack-5.1.1.jar:5.1.1] at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$lookForExistingAuthentication$2(AuthenticationService.java:199)[x-pack-5.1.1.jar:5.1.1] at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lookForExistingAuthentication(AuthenticationService.java:211)[x-pack-5.1.1.jar:5.1.1] at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.authenticateAsync(AuthenticationService.java:178)[x-pack-5.1.1.jar:5.1.1] at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.access$000(AuthenticationService.java:140)[x-pack-5.1.1.jar:5.1.1] at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:112)[x-pack-5.1.1.jar:5.1.1] at org.elasticsearch.xpack.security.transport.ServerTransportFilter$NodeProfile.inbound(ServerTransportFilter.java:131)[x-pack-5.1.1.jar:5.1.1] at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler.messageReceived(SecurityServerTransportInterceptor.java:253)[x-pack-5.1.1.jar:5.1.1] at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)[elasticsearch-5.1.1.jar:5.1.1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_111] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_111] at java.lang.Thread.run(Thread.java:745)[?:1.8.0_111]

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.