java.lang.StringIndexOutOfBoundsException: String index out of range: 4

GitHub | mod3st | 1 month ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 21911#272369189

    GitHub | 1 month ago | mod3st
    java.lang.StringIndexOutOfBoundsException: String index out of range: 4
  2. 0

    Es 5.1.1: unassigned (p/r) shards and corrupt indices

    GitHub | 2 months ago | itkovian
    org.elasticsearch.index.engine.RefreshFailedEngineException: Refresh failed
  3. 0

    5.0.2 plugin analysis-stempel Array index out of range: -2

    GitHub | 3 months ago | crash2k
    java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -2
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.StringIndexOutOfBoundsException

      String index out of range: 4

      at java.lang.AbstractStringBuilder.getChars()
    2. Java RT
      StringBuilder.getChars
      1. java.lang.AbstractStringBuilder.getChars(AbstractStringBuilder.java:385)[?:1.8.0_111]
      2. java.lang.StringBuilder.getChars(StringBuilder.java:76)[?:1.8.0_111]
      2 frames
    3. Lucene
      CharTermAttributeImpl.append
      1. 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]
      1 frame
    4. Lucene Stempel Analyzer
      StempelFilter.incrementToken
      1. org.apache.lucene.analysis.stempel.StempelFilter.incrementToken(StempelFilter.java:76)[?:?]
      1 frame
    5. Lucene Common Analyzers
      SynonymFilter.incrementToken
      1. 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]
      2. 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]
      2 frames
    6. ElasticSearch
      UniqueTokenFilter.incrementToken
      1. 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]
      1 frame
    7. Lucene
      IndexWriter.updateDocuments
      1. 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]
      2. 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]
      3. 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]
      4. 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]
      5. 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]
      6. 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]
      6 frames
    8. ElasticSearch
      TransportReplicationAction$PrimaryOperationTransportHandler.messageReceived
      1. org.elasticsearch.index.engine.InternalEngine.update(InternalEngine.java:564)[elasticsearch-5.1.1.jar:5.1.1]
      2. org.elasticsearch.index.engine.InternalEngine.innerIndex(InternalEngine.java:522)[elasticsearch-5.1.1.jar:5.1.1]
      3. org.elasticsearch.index.engine.InternalEngine.index(InternalEngine.java:409)[elasticsearch-5.1.1.jar:5.1.1]
      4. org.elasticsearch.index.shard.IndexShard.index(IndexShard.java:556)[elasticsearch-5.1.1.jar:5.1.1]
      5. org.elasticsearch.index.shard.IndexShard.index(IndexShard.java:546)[elasticsearch-5.1.1.jar:5.1.1]
      6. org.elasticsearch.action.index.TransportIndexAction.executeIndexRequestOnPrimary(TransportIndexAction.java:191)[elasticsearch-5.1.1.jar:5.1.1]
      7. org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:348)[elasticsearch-5.1.1.jar:5.1.1]
      8. org.elasticsearch.action.bulk.TransportShardBulkAction.shardUpdateOperation(TransportShardBulkAction.java:411)[elasticsearch-5.1.1.jar:5.1.1]
      9. org.elasticsearch.action.bulk.TransportShardBulkAction.update(TransportShardBulkAction.java:233)[elasticsearch-5.1.1.jar:5.1.1]
      10. org.elasticsearch.action.bulk.TransportShardBulkAction.handleItem(TransportShardBulkAction.java:138)[elasticsearch-5.1.1.jar:5.1.1]
      11. org.elasticsearch.action.bulk.TransportShardBulkAction.onPrimaryShard(TransportShardBulkAction.java:120)[elasticsearch-5.1.1.jar:5.1.1]
      12. org.elasticsearch.action.bulk.TransportShardBulkAction.onPrimaryShard(TransportShardBulkAction.java:73)[elasticsearch-5.1.1.jar:5.1.1]
      13. org.elasticsearch.action.support.replication.TransportWriteAction.shardOperationOnPrimary(TransportWriteAction.java:75)[elasticsearch-5.1.1.jar:5.1.1]
      14. org.elasticsearch.action.support.replication.TransportWriteAction.shardOperationOnPrimary(TransportWriteAction.java:48)[elasticsearch-5.1.1.jar:5.1.1]
      15. org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryShardReference.perform(TransportReplicationAction.java:905)[elasticsearch-5.1.1.jar:5.1.1]
      16. org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryShardReference.perform(TransportReplicationAction.java:875)[elasticsearch-5.1.1.jar:5.1.1]
      17. org.elasticsearch.action.support.replication.ReplicationOperation.execute(ReplicationOperation.java:113)[elasticsearch-5.1.1.jar:5.1.1]
      18. org.elasticsearch.action.support.replication.TransportReplicationAction$AsyncPrimaryAction.onResponse(TransportReplicationAction.java:323)[elasticsearch-5.1.1.jar:5.1.1]
      19. org.elasticsearch.action.support.replication.TransportReplicationAction$AsyncPrimaryAction.onResponse(TransportReplicationAction.java:258)[elasticsearch-5.1.1.jar:5.1.1]
      20. org.elasticsearch.action.support.replication.TransportReplicationAction$1.onResponse(TransportReplicationAction.java:855)[elasticsearch-5.1.1.jar:5.1.1]
      21. org.elasticsearch.action.support.replication.TransportReplicationAction$1.onResponse(TransportReplicationAction.java:852)[elasticsearch-5.1.1.jar:5.1.1]
      22. org.elasticsearch.index.shard.IndexShardOperationsLock.acquire(IndexShardOperationsLock.java:142)[elasticsearch-5.1.1.jar:5.1.1]
      23. org.elasticsearch.index.shard.IndexShard.acquirePrimaryOperationLock(IndexShard.java:1655)[elasticsearch-5.1.1.jar:5.1.1]
      24. org.elasticsearch.action.support.replication.TransportReplicationAction.acquirePrimaryShardReference(TransportReplicationAction.java:864)[elasticsearch-5.1.1.jar:5.1.1]
      25. org.elasticsearch.action.support.replication.TransportReplicationAction.access$400(TransportReplicationAction.java:90)[elasticsearch-5.1.1.jar:5.1.1]
      26. org.elasticsearch.action.support.replication.TransportReplicationAction$AsyncPrimaryAction.doRun(TransportReplicationAction.java:275)[elasticsearch-5.1.1.jar:5.1.1]
      27. org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)[elasticsearch-5.1.1.jar:5.1.1]
      28. org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryOperationTransportHandler.messageReceived(TransportReplicationAction.java:254)[elasticsearch-5.1.1.jar:5.1.1]
      29. org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryOperationTransportHandler.messageReceived(TransportReplicationAction.java:246)[elasticsearch-5.1.1.jar:5.1.1]
      29 frames
    9. org.elasticsearch.xpack
      SecurityServerTransportInterceptor$ProfileSecuredRequestHandler.lambda$messageReceived$1
      1. org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler.lambda$messageReceived$1(SecurityServerTransportInterceptor.java:208)[?:?]
      1 frame
    10. ElasticSearch
      EsExecutors$1.execute
      1. org.elasticsearch.common.util.concurrent.EsExecutors$1.execute(EsExecutors.java:109)[elasticsearch-5.1.1.jar:5.1.1]
      1 frame
    11. org.elasticsearch.xpack
      SecurityServerTransportInterceptor$ProfileSecuredRequestHandler.lambda$messageReceived$2
      1. org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler.lambda$messageReceived$2(SecurityServerTransportInterceptor.java:246)[?:?]
      1 frame
    12. ElasticSearch
      ActionListener$1.onResponse
      1. org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:53)[elasticsearch-5.1.1.jar:5.1.1]
      1 frame
    13. org.elasticsearch.xpack
      ServerTransportFilter$NodeProfile.lambda$inbound$1
      1. org.elasticsearch.xpack.security.transport.ServerTransportFilter$NodeProfile.lambda$null$0(ServerTransportFilter.java:135)[?:?]
      2. org.elasticsearch.xpack.security.authz.AuthorizationUtils$AsyncAuthorizer.maybeRun(AuthorizationUtils.java:131)[?:?]
      3. org.elasticsearch.xpack.security.authz.AuthorizationUtils$AsyncAuthorizer.setRunAsRoles(AuthorizationUtils.java:125)[?:?]
      4. org.elasticsearch.xpack.security.authz.AuthorizationUtils$AsyncAuthorizer.authorize(AuthorizationUtils.java:113)[?:?]
      5. org.elasticsearch.xpack.security.transport.ServerTransportFilter$NodeProfile.lambda$inbound$1(ServerTransportFilter.java:137)[?:?]
      5 frames
    14. ElasticSearch
      ActionListener$1.onResponse
      1. org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:53)[elasticsearch-5.1.1.jar:5.1.1]
      1 frame
    15. org.elasticsearch.xpack
      SecurityServerTransportInterceptor$ProfileSecuredRequestHandler.messageReceived
      1. org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$authenticateAsync$0(AuthenticationService.java:180)[x-pack-5.1.1.jar:5.1.1]
      2. org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$lookForExistingAuthentication$2(AuthenticationService.java:199)[x-pack-5.1.1.jar:5.1.1]
      3. org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lookForExistingAuthentication(AuthenticationService.java:211)[x-pack-5.1.1.jar:5.1.1]
      4. org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.authenticateAsync(AuthenticationService.java:178)[x-pack-5.1.1.jar:5.1.1]
      5. org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.access$000(AuthenticationService.java:140)[x-pack-5.1.1.jar:5.1.1]
      6. org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:112)[x-pack-5.1.1.jar:5.1.1]
      7. org.elasticsearch.xpack.security.transport.ServerTransportFilter$NodeProfile.inbound(ServerTransportFilter.java:131)[x-pack-5.1.1.jar:5.1.1]
      8. org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler.messageReceived(SecurityServerTransportInterceptor.java:253)[x-pack-5.1.1.jar:5.1.1]
      8 frames
    16. ElasticSearch
      AbstractRunnable.run
      1. org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)[elasticsearch-5.1.1.jar:5.1.1]
      2. org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)[elasticsearch-5.1.1.jar:5.1.1]
      3. org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)[elasticsearch-5.1.1.jar:5.1.1]
      4. org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)[elasticsearch-5.1.1.jar:5.1.1]
      4 frames
    17. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_111]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_111]
      3. java.lang.Thread.run(Thread.java:745)[?:1.8.0_111]
      3 frames